search for: tot_siz

Displaying 7 results from an estimated 7 matches for "tot_siz".

Did you mean: tot_size
2017 Dec 12
1
[PATCHv2] virtio_mmio: fix devm cleanup
...ior to the devm infrastructure releasing the memory. The devm_kmalloc_release function is a no-op since nothing has to be done prior to memory being freed, but the memory itself is still freed. In alloc_dr(), the struct devres is allocated together with the memory, since alloc_dr() does: size_t tot_size = sizeof(struct devres) + size; struct devres *dr; dr = kmalloc_node_track_caller(tot_size, gfp, nid); return dr->data; ... where dr->data points at the memory after the struct devres. Later, in release_nodes() we do: list_for_each_entry_safe_reverse(dr, tmp, &todo, node.entry)...
2017 Dec 12
1
[PATCHv2] virtio_mmio: fix devm cleanup
...ior to the devm infrastructure releasing the memory. The devm_kmalloc_release function is a no-op since nothing has to be done prior to memory being freed, but the memory itself is still freed. In alloc_dr(), the struct devres is allocated together with the memory, since alloc_dr() does: size_t tot_size = sizeof(struct devres) + size; struct devres *dr; dr = kmalloc_node_track_caller(tot_size, gfp, nid); return dr->data; ... where dr->data points at the memory after the struct devres. Later, in release_nodes() we do: list_for_each_entry_safe_reverse(dr, tmp, &todo, node.entry)...
2014 Jun 04
4
opus_multistream_encode_float not working in libopus 1.1
On Wed, Jun 4, 2014 at 4:31 PM, Timothy B. Terriberry <tterribe at xiph.org> wrote: > Alpha Thinktink wrote: >> max_data_bytes=-11 > > That value is passed in by you. I also don't think passing such a value > would have worked in earlier releases. It indicates the size of the > buffer you are passing to the encoder to receive the encoded output. Actually, I'm
2014 Jun 05
0
opus_multistream_encode_float not working in libopus 1.1
...e_size)); max_data_bytes after this code becomes -2 where as before it was 10200. I suspect it was because st->bitrate_bps was set to -1000 to indicate Auto bitrate. I imagine Max bitrate (-1) has a slightly similar effect. then in the same c file line 846 curr_max = max_data_bytes - tot_size; curr_max becomes -2 as tot_size was 0. then line 848 curr_max -= IMAX(0,4*(st->layout.nb_streams-s-1)-1); cur_max becomes -13 as nb_streams was 4 and s was 0. then line 849 curr_max = IMIN(curr_max,MS_FRAME_TMP); which left curr_max at -13 The result at line 853 is opus...
2014 Jun 21
1
opus_multistream_encode_float not working in libopus 1.1
...s code becomes -2 where as before it was > 10200. I suspect it was because st->bitrate_bps was set to -1000 to > indicate Auto bitrate. I imagine Max bitrate (-1) has a slightly > similar effect. > > then in the same c file > line 846 > curr_max = max_data_bytes - tot_size; > > curr_max becomes -2 as tot_size was 0. > > then line 848 > > curr_max -= IMAX(0,4*(st->layout.nb_streams-s-1)-1); > > cur_max becomes -13 as nb_streams was 4 and s was 0. > > then line 849 > > curr_max = IMIN(curr_max,MS_FRAME_TMP);...
2017 Dec 12
4
[PATCHv2] virtio_mmio: fix devm cleanup
Recent rework of the virtio_mmio probe/remove paths balanced a devm_ioremap() with an iounmap() rather than its devm variant. This ends up corrupting the devm datastructures, and results in the following boot-time splat on arm64 under QEMU 2.9.0: [ 3.450397] ------------[ cut here ]------------ [ 3.453822] Trying to vfree() nonexistent vm area (00000000c05b4844) [ 3.460534] WARNING: CPU:
2017 Dec 12
4
[PATCHv2] virtio_mmio: fix devm cleanup
Recent rework of the virtio_mmio probe/remove paths balanced a devm_ioremap() with an iounmap() rather than its devm variant. This ends up corrupting the devm datastructures, and results in the following boot-time splat on arm64 under QEMU 2.9.0: [ 3.450397] ------------[ cut here ]------------ [ 3.453822] Trying to vfree() nonexistent vm area (00000000c05b4844) [ 3.460534] WARNING: CPU: