Home
last modified time | relevance | path

Searched refs:mempool (Results 1 – 25 of 81) sorted by relevance

1234

/third_party/gstreamer/gstplugins_bad/gst/dvbsubenc/libimagequant/
Dmempool.c9 #define MEMPOOL_RESERVED ((sizeof(struct mempool)+ALIGN_MASK) & ~ALIGN_MASK)
11 struct mempool struct
16 struct mempool *next; argument
19 mempool_create (mempool * mptr, const unsigned int size, unsigned int max_size, in mempool_create()
22 mempool old; in mempool_create()
39 **mptr = (struct mempool) { in mempool_create()
41 sizeof (struct mempool),.next = old,}; in mempool_create()
50 mempool_alloc (mempool * mptr, unsigned int size, unsigned int max_size) in mempool_alloc()
62 mempool_destroy (mempool m) in mempool_destroy()
65 mempool next = m->next; in mempool_destroy()
Dmempool.h6 struct mempool;
7 typedef struct mempool *mempool; typedef
9 LIQ_PRIVATE void* mempool_create(mempool *mptr, unsigned int size, unsigned int capacity, void* (*m…
10 LIQ_PRIVATE void* mempool_alloc(mempool *mptr, unsigned int size, unsigned int capacity);
11 LIQ_PRIVATE void mempool_destroy(mempool m);
Dnearest.c28 mempool mempool; member
60 mempool * m, float error_margin, bool skip_index[], unsigned int *skipped) in build_head()
140 mempool m = NULL; in nearest_init()
149 centroids->mempool = m; in nearest_init()
173 &centroids->mempool, error_margin, skip_index, &skipped); in nearest_init()
189 , map, map->colors, &centroids->mempool, error_margin, in nearest_init()
260 mempool_destroy (centroids->mempool); in nearest_free()
Dpam.c127 mempool_alloc (&acht->mempool, in pam_computeacolorhash()
146 mempool_alloc (&acht->mempool, in pam_computeacolorhash()
195 mempool m = NULL; in pam_allocacolorhash()
207 .mempool = m,.hash_size = hash_size,.maxcolors = maxcolors,.ignorebits = in pam_allocacolorhash()
267 mempool_destroy (acht->mempool); in pam_freeacolorhash()
Dpam.h279 struct mempool *mempool; member
/third_party/mesa3d/src/util/
Dslab.c299 slab_alloc_st(struct slab_mempool *mempool) in slab_alloc_st() argument
301 return slab_alloc(&mempool->child); in slab_alloc_st()
308 slab_free_st(struct slab_mempool *mempool, void *ptr) in slab_free_st() argument
310 slab_free(&mempool->child, ptr); in slab_free_st()
314 slab_destroy(struct slab_mempool *mempool) in slab_destroy() argument
316 slab_destroy_child(&mempool->child); in slab_destroy()
317 slab_destroy_parent(&mempool->parent); in slab_destroy()
327 slab_create(struct slab_mempool *mempool, in slab_create() argument
331 slab_create_parent(&mempool->parent, item_size, num_items); in slab_create()
332 slab_create_child(&mempool->child, &mempool->parent); in slab_create()
Dslab.h93 void slab_create(struct slab_mempool *mempool,
96 void slab_destroy(struct slab_mempool *mempool);
97 void *slab_alloc_st(struct slab_mempool *mempool);
98 void slab_free_st(struct slab_mempool *mempool, void *ptr);
/third_party/mesa3d/src/freedreno/decode/
Dcrashdec-mempool.c79 dump_cp_mem_pool(uint32_t *mempool) in dump_cp_mem_pool() argument
121 small_mem_pool ? &mempool[0x800] : &mempool[0x1000]; in dump_cp_mem_pool()
225 small_mem_pool ? &mempool[0xc00] : &mempool[0x1800]; in dump_cp_mem_pool()
232 small_mem_pool ? &mempool[0x1000] : &mempool[0x2000]; in dump_cp_mem_pool()
286 uint32_t *chunk_ptr = &mempool[cur_block * 0x20 + cur_chunk * 4]; in dump_cp_mem_pool()
Dcrashdec.h88 void dump_cp_mem_pool(uint32_t *mempool);
/third_party/libunwind/src/mi/
Dmempool.c75 free_object (struct mempool *pool, void *object) in free_object()
85 add_memory (struct mempool *pool, char *mem, size_t size, size_t obj_size) in add_memory()
94 expand (struct mempool *pool) in expand()
116 mempool_init (struct mempool *pool, size_t obj_size, size_t reserve) in mempool_init()
143 mempool_alloc (struct mempool *pool) in mempool_alloc()
164 mempool_free (struct mempool *pool, void *object) in mempool_free()
/third_party/libunwind/include/
Dmempool.h61 struct mempool struct
84 extern void mempool_init (struct mempool *pool,
86 extern void *mempool_alloc (struct mempool *pool);
87 extern void mempool_free (struct mempool *pool, void *object);
Ddwarf.h227 extern struct mempool dwarf_reg_state_pool;
228 extern struct mempool dwarf_cie_info_pool;
/third_party/pulseaudio/src/modules/raop/
Draop-packet-buffer.c40 pa_mempool *mempool; member
49 pa_raop_packet_buffer *pa_raop_packet_buffer_new(pa_mempool *mempool, const size_t size) { in pa_raop_packet_buffer_new() argument
52 pa_assert(mempool); in pa_raop_packet_buffer_new()
57 pb->mempool = mempool; in pa_raop_packet_buffer_new()
119 pb->packets[i].memblock = pa_memblock_new(pb->mempool, size); in pa_raop_packet_buffer_prepare()
Draop-packet-buffer.h32 pa_raop_packet_buffer *pa_raop_packet_buffer_new(pa_mempool *mempool, const size_t size);
/third_party/pulseaudio/src/modules/dbus/
Diface-memstats.c86 stat = pa_mempool_get_stat(m->core->mempool); in handle_get_current_memblocks()
102 stat = pa_mempool_get_stat(m->core->mempool); in handle_get_current_memblocks_size()
118 stat = pa_mempool_get_stat(m->core->mempool); in handle_get_accumulated_memblocks()
134 stat = pa_mempool_get_stat(m->core->mempool); in handle_get_accumulated_memblocks_size()
170 stat = pa_mempool_get_stat(m->core->mempool); in handle_get_all()
/third_party/libunwind/src/dwarf/
Dglobal.c28 HIDDEN struct mempool dwarf_reg_state_pool;
29 HIDDEN struct mempool dwarf_cie_info_pool;
/third_party/libunwind/scripts/
Dkernel-files.txt19 $udir/src/mi/mempool.c $kdir/unwind/mempool.c
/third_party/pulseaudio/src/pulsecore/resampler/
Dffmpeg.c52 b = pa_memblock_new(r->mempool, in_n_frames * sizeof(int16_t)); in ffmpeg_resample()
66 w = pa_memblock_new(r->mempool, *out_n_frames * sizeof(int16_t)); in ffmpeg_resample()
/third_party/lwip/
D0069-add-error-check-in-hugepage_init-and-sys_mbox_free.patch33 - rte_exit(EXIT_FAILURE, "failed to reserver memory for mempool[%s]\n", name);
34 + LWIP_DEBUGF(SYS_DEBUG, ("sys_hugepage_malloc: failed to reserve memory for mempool\n"));
/third_party/pulseaudio/src/pulsecore/
Dpstream.c181 pa_mempool *mempool; member
347 p->mempool = pool; in pa_pstream_new()
350 p->import = pa_memimport_new(p->mempool, memimport_release_cb, p); in pa_pstream_new()
352 pa_iochannel_socket_set_rcvbuf(io, pa_mempool_block_size_max(p->mempool)); in pa_pstream_new()
353 pa_iochannel_socket_set_sndbuf(io, pa_mempool_block_size_max(p->mempool)); in pa_pstream_new()
493 bsm = pa_mempool_block_size_max(p->mempool); in pa_pstream_send_memblock()
660 if (p->mempool == current_pool) in prepare_next_write_item()
1001 re->memblock = pa_memblock_new(p->mempool, length); in do_read()
1238 p->export = pa_memexport_new(p->mempool, memexport_revoke_cb, p); in pa_pstream_enable_shm()
Dplay-memchunk.c50 pa_silence_memchunk_get(&sink->core->silence_cache, sink->core->mempool, &silence, ss, 0); in pa_play_memchunk()
/third_party/libunwind/include/tdep-ia64/
Dlibunwind_i.h215 struct mempool reg_state_pool;
216 struct mempool labeled_state_pool;
/third_party/pulseaudio/src/pulse/
Dcontext.c198 if (!(c->mempool = pa_mempool_new(type, c->conf->shm_size, true))) { in pa_context_new_with_proplist()
202 c->mempool = pa_mempool_new(PA_MEM_TYPE_PRIVATE, c->conf->shm_size, true); in pa_context_new_with_proplist()
205 if (!c->mempool) { in pa_context_new_with_proplist()
278 if (c->mempool) in context_free()
279 pa_mempool_unref(c->mempool); in context_free()
566 if (pa_mempool_is_memfd_backed(c->mempool)) in setup_complete_callback()
567 if (pa_pstream_register_memfd_mempool(c->pstream, c->mempool, &reason)) in setup_complete_callback()
626 c->pstream = pa_pstream_new(c->mainloop, io, c->mempool); in setup_context()
641 pa_mempool_is_shared(c->mempool) && in setup_context()
1658 mbs = PA_ROUND_DOWN(pa_mempool_block_size_max(c->mempool), fs);
/third_party/gstreamer/gstplugins_bad/gst/dvbsubenc/
Dmeson.build10 'libimagequant/mempool.c',
/third_party/pulseaudio/src/modules/
Dmodule-null-source.c149 …max_block_size = pa_frame_align(pa_mempool_block_size_max(u->core->mempool), &u->source->sample_sp… in thread_func()
166 chunk.memblock = pa_memblock_new(u->core->mempool, chunk.length); in thread_func()

1234