Displaying 15 results from an estimated 15 matches for "dbit".
Did you mean:
bit
2014 Nov 20
2
[PATCH net V3] virtio-net: validate features during probe
...unsigned int fbit,
+ const char *fname, const char *dname)
+{
+ if (!virtio_has_feature(vdev, fbit))
+ return false;
+
+ dev_err(&vdev->dev, "Hypervisor bug: advertise feature %s but not %s",
+ fname, dname);
+
+ return true;
+}
+
+#define VIRTNET_FAIL_ON(vdev, fbit, dbit) \
+ virtnet_fail_on_feature(vdev, fbit, #fbit, #dbit)
+
+static bool virtnet_validate_features(struct virtio_device *vdev)
+{
+ if (!virtio_has_feature(vdev, VIRTIO_NET_F_CTRL_VQ) &&
+ (VIRTNET_FAIL_ON(vdev, VIRTIO_NET_F_CTRL_RX,
+ VIRTIO_NET_F_CTRL_VQ) ||
+ VIRTNET_FAIL_...
2014 Nov 20
2
[PATCH net V3] virtio-net: validate features during probe
...unsigned int fbit,
+ const char *fname, const char *dname)
+{
+ if (!virtio_has_feature(vdev, fbit))
+ return false;
+
+ dev_err(&vdev->dev, "Hypervisor bug: advertise feature %s but not %s",
+ fname, dname);
+
+ return true;
+}
+
+#define VIRTNET_FAIL_ON(vdev, fbit, dbit) \
+ virtnet_fail_on_feature(vdev, fbit, #fbit, #dbit)
+
+static bool virtnet_validate_features(struct virtio_device *vdev)
+{
+ if (!virtio_has_feature(vdev, VIRTIO_NET_F_CTRL_VQ) &&
+ (VIRTNET_FAIL_ON(vdev, VIRTIO_NET_F_CTRL_RX,
+ VIRTIO_NET_F_CTRL_VQ) ||
+ VIRTNET_FAIL_...
2011 Sep 29
1
Nothing but rhythm was left after encoding and decoding by speex on ipad(XCode 4.1 48110)
...nt)size) {
return_value = 0;
}
else {
return_value = (int)speex_bits_write(&ebits, (char*)out_bytes, size);
}
return return_value;
}
static int speexo_decode(const void *in_bytes, int in_len, void *out_bytes)
{
if (!codec_open)
return 0;
int return_value;
speex_bits_reset(&dbits);
speex_bits_read_from(&dbits, (char *)in_bytes, in_len);
if (0 != speex_decode_int(dec_state, &dbits, (short*)out_bytes)) {
return_value = 0;
}
else {
return_value = dec_frame_size*2;
}
return return_value;
}
Please give your suggestion, thanks.
2007 Jul 06
1
bitpack error message
...gt;session_File[ndx] = Client->temp_audio[i];
ndx+=1;
}
speex_bits_reset(&ebits);
speex_encode_int(enc_state,Client->temp_audio,&ebits);
Client->nBytes = speex_bits_write(&ebits,Client->encoded_audio, samples);
speex_bits_read_from(&dbits,Client->encoded_audio,Client->nBytes);
/*decode from dbits to raw_audio*/
speex_decode_int(dec_state,&dbits,Client->raw_audio);
i did move the reset function to before the for loop to test. but it still crashed.
Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> wrote:...
2005 Jan 11
0
Decoding producing garbled sound
...*CRecNplayDlg::decode(char *buffer, int encodeSize)
{
char *decodedBuffer = new char[320];
void *mDecode = speex_decoder_init(&speex_nb_mode);
short speexShort;
float *speexFloat = new float[160];
// Decode the sound data into a float buffer
speex_bits_init(&dBits);
speex_bits_reset(&dBits);
speex_bits_read_from(&dBits, buffer, encodeSize);
speex_decode(mDecode, &dBits, speexFloat);
// Convert from float to short to char
for (int i = 0, j=0; i < 160; i++, j++)
{
speexShort = speexFloat[i];...
2014 Nov 20
0
[PATCH net V3] virtio-net: validate features during probe
...dev_err(&vdev->dev, "Hypervisor bug: advertise feature %s but not %s",
Well we don't know it's a hypervisor. How about:
Device bug: advertises feature %s but not %s.
> + fname, dname);
> +
> + return true;
> +}
> +
> +#define VIRTNET_FAIL_ON(vdev, fbit, dbit) \
> + virtnet_fail_on_feature(vdev, fbit, #fbit, #dbit)
I would pass dbit directly, and supply a string from caller,
instead if #dbit, this way it can be any string.
> +
> +static bool virtnet_validate_features(struct virtio_device *vdev)
> +{
> + if (!virtio_has_feature(vdev, V...
2014 Nov 20
4
[PATCH net V5] virtio-net: validate features during probe
...chael S. Tsirkin <mst at redhat.com>
Signed-off-by: Jason Wang <jasowang at redhat.com>
---
Changes from V1:
- Drop NETIF_F_*_UFO from checklist
Changes from V2:
- only check the features for ctrl vq (this fix the real bug)
- better error message and simplify API
Changes from V3:
- pass dbit directly and even better error message
- typo fix
Changes from v4:
- add "device" before "advertise"
---
drivers/net/virtio_net.c | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index...
2014 Nov 20
4
[PATCH net V5] virtio-net: validate features during probe
...chael S. Tsirkin <mst at redhat.com>
Signed-off-by: Jason Wang <jasowang at redhat.com>
---
Changes from V1:
- Drop NETIF_F_*_UFO from checklist
Changes from V2:
- only check the features for ctrl vq (this fix the real bug)
- better error message and simplify API
Changes from V3:
- pass dbit directly and even better error message
- typo fix
Changes from v4:
- add "device" before "advertise"
---
drivers/net/virtio_net.c | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index...
2014 Nov 20
1
[PATCH v4 net] virtio-net: validate features during probe
...chael S. Tsirkin <mst at redhat.com>
Signed-off-by: Jason Wang <jasowang at redhat.com>
---
Changes from V1:
- Drop NETIF_F_*_UFO from checklist
Changes from V2:
- only check the features for ctrl vq (this fix the real bug)
- better error message and simplify API
Changes from V3:
- pass dbit directly and even better error message
- typo fix
---
drivers/net/virtio_net.c | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index ec2a8b4..cc53ff1 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/n...
2014 Nov 20
1
[PATCH v4 net] virtio-net: validate features during probe
...chael S. Tsirkin <mst at redhat.com>
Signed-off-by: Jason Wang <jasowang at redhat.com>
---
Changes from V1:
- Drop NETIF_F_*_UFO from checklist
Changes from V2:
- only check the features for ctrl vq (this fix the real bug)
- better error message and simplify API
Changes from V3:
- pass dbit directly and even better error message
- typo fix
---
drivers/net/virtio_net.c | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index ec2a8b4..cc53ff1 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/n...
2006 Jun 26
0
[klibc 21/43] alpha support for klibc
...$@
+ cmd_genss = $(CC) $(DIVCFLAGS) $(FILE_CFLAGS) \
+ -DNAME=$(basename $(notdir $@)) -S -o $@ $<
+
+$(obj)/arch/$(KLIBCARCH)/%.ss: $(obj)/arch/$(KLIBCARCH)/divide.c
+ $(call if_changed,genss)
+
+$(obj)/arch/$(KLIBCARCH)/__divqu.ss: FILE_CFLAGS := -DSIGNED=0 -DREM=0 -DBITS=64
+$(obj)/arch/$(KLIBCARCH)/__remqu.ss: FILE_CFLAGS := -DSIGNED=0 -DREM=1 -DBITS=64
+$(obj)/arch/$(KLIBCARCH)/__divq.ss: FILE_CFLAGS := -DSIGNED=1 -DREM=0 -DBITS=64
+$(obj)/arch/$(KLIBCARCH)/__remq.ss: FILE_CFLAGS := -DSIGNED=1 -DREM=1 -DBITS=64
+$(obj)/arch/$(KLIBCARCH)/__divlu.ss: FILE_CFLAGS...
2007 Jul 06
2
bitpack error message
Hi,
i have some code that gives me a "warning: Buffer too small to pack bits"
mesage. looking at the libspeex source/bits.c i see the warning in a
a function named speex_bits_pack. i'm not using this function.
can someone tell me where this may be coming from since i've had a
similiar problem before and had that fixed. i can't seem to pinpoint this
one.
thanks
Greg
2006 Jun 26
0
[klibc 23/43] cris support for klibc
...rch/$(KLIBCARCH)/setjmp.o \
+ arch/$(KLIBCARCH)/syscall.o \
+ arch/$(KLIBCARCH)/vfork.o \
+ libgcc/__divdi3.o \
+ libgcc/__moddi3.o \
+ libgcc/__udivdi3.o \
+ libgcc/__umoddi3.o \
+ libgcc/__udivmoddi4.o
+
+arch/$(KLIBCARCH)/__Umod.o: arch/$(KLIBCARCH)/divide.c
+ $(CC) $(CFLAGS) -DSIGNED=0 -DREM=1 -DBITS=32 -DNAME=__Umod -c -o $@ $<
+arch/$(KLIBCARCH)/__Udiv.o: arch/$(KLIBCARCH)/divide.c
+ $(CC) $(CFLAGS) -DSIGNED=0 -DREM=0 -DBITS=32 -DNAME=__Udiv -c -o $@ $<
+arch/$(KLIBCARCH)/__Mod.o: arch/$(KLIBCARCH)/divide.c
+ $(CC) $(CFLAGS) -DSIGNED=1 -DREM=1 -DBITS=32 -DNAME=__Mod -c -o $@ $<
+arc...
2020 Apr 30
0
[klibc:master] arch: Remove cris port
.../libgcc/__umoddi3.o
-klib-y += ../../libgcc/__udivmoddi4.o
-
-# Divide support
-klib-y := __Umod.o __Udiv.o __Mod.o __Div.o
-
-quiet_cmd_cc-div = DIV-CC $@
- cmd_cc-div = $(KLIBCC) $(klibccflags) -c -o $@ $<
-
-
-$(obj)/__Umod.o: $(src)/divide.c
-KLIBCCFLAGS___Umod.o := -DSIGNED=0 -DREM=1 -DBITS=32 -DNAME=__Umod
-$(obj)/__Udiv.o: $(src)/divide.c
-KLIBCCFLAGS___Udiv.o := -DSIGNED=0 -DREM=0 -DBITS=32 -DNAME=__Udiv
-$(obj)/__Mod.o: $(src)/divide.c
-KLIBCCFLAGS___Mod.o := -DSIGNED=1 -DREM=1 -DBITS=32 -DNAME=__Mod
-$(obj)/__Div.o: $(src)/divide.c
-KLIBCCFLAGS___Div.o := -DSIGNED=1 -DREM=0 -D...
2006 Jun 28
35
[klibc 00/31] klibc as a historyless patchset (updated and reorganized)
I have updated the klibc patchset based on feedback received. In
particular, the patchset has been reorganized so as not to break
git-bisect.
Additionally, this updates the patch base to 2.6.17-git12
(d38b69689c349f35502b92e20dafb30c62d49d63) and klibc 1.4.8; the main
difference on the klibc side is removal of obsolete code.
This is also available as a git tree at: