Home
last modified time | relevance | path

Searched refs:mempool (Results 1 - 25 of 63) sorted by relevance

123

/third_party/eudev/src/shared/
H A Dmempool.h29 struct mempool { struct
36 void* mempool_alloc_tile(struct mempool *mp);
37 void* mempool_alloc0_tile(struct mempool *mp);
38 void mempool_free_tile(struct mempool *mp, void *p);
41 struct mempool pool_name = { \
48 void mempool_drop(struct mempool *mp);
H A Dmempool.c23 #include "mempool.h"
33 void* mempool_alloc_tile(struct mempool *mp) { in mempool_alloc_tile()
77 void* mempool_alloc0_tile(struct mempool *mp) { in mempool_alloc0_tile()
86 void mempool_free_tile(struct mempool *mp, void *p) { in mempool_free_tile()
93 void mempool_drop(struct mempool *mp) { in mempool_drop()
H A Dhashmap.c35 #include "mempool.h"
223 bool from_pool:1; /* whether was allocated from mempool */
251 struct mempool *mempool; member
259 .mempool = &hashmap_pool,
265 .mempool = &ordered_hashmap_pool,
271 .mempool = &hashmap_pool,
782 h = use_pool ? mempool_alloc0_tile(hi->mempool) : malloc0(hi->head_size); in hashmap_base_new()
863 mempool_free_tile(hashmap_type_info[h->type].mempool, h); in hashmap_free_no_clear()
/third_party/mesa3d/src/util/
H A 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 in slab_create()
[all...]
H A 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/
H A 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()
H A Dcrashdec.h88 void dump_cp_mem_pool(uint32_t *mempool);
/third_party/libunwind/libunwind/include/
H A Dmempool.h59 /* The mempool structure should be treated as an opaque object. It's
61 struct mempool struct
82 tight memory situations. If it is zero, mempool attempts to pick a
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);
H A Ddwarf.h223 extern struct mempool dwarf_reg_state_pool;
224 extern struct mempool dwarf_cie_info_pool;
/third_party/libunwind/libunwind/src/mi/
H A Dmempool.c66 /* Must be called while holding the mempool lock. */
69 free_object (struct mempool *pool, void *object) in free_object()
79 add_memory (struct mempool *pool, char *mem, size_t size, size_t obj_size) in add_memory()
88 expand (struct mempool *pool) in expand()
110 mempool_init (struct mempool *pool, size_t obj_size, size_t reserve) in mempool_init()
137 mempool_alloc (struct mempool *pool) in mempool_alloc()
158 mempool_free (struct mempool *pool, void *object) in mempool_free()
/third_party/pulseaudio/src/modules/raop/
H A 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()
H A Draop-packet-buffer.h32 pa_raop_packet_buffer *pa_raop_packet_buffer_new(pa_mempool *mempool, const size_t size);
/third_party/libunwind/libunwind/src/dwarf/
H A Dglobal.c28 HIDDEN struct mempool dwarf_reg_state_pool;
29 HIDDEN struct mempool dwarf_cie_info_pool;
/third_party/pulseaudio/src/modules/dbus/
H A 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/pulseaudio/src/pulsecore/resampler/
H A 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/libunwind/libunwind/include/tdep-ia64/
H A Dlibunwind_i.h33 #include "mempool.h"
208 struct mempool reg_state_pool;
209 struct mempool labeled_state_pool;
/third_party/pulseaudio/src/pulsecore/
H A 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()
496 bsm = pa_mempool_block_size_max(p->mempool); in pa_pstream_send_memblock()
663 if (p->mempool == current_pool) in prepare_next_write_item()
1004 re->memblock = pa_memblock_new(p->mempool, length); in do_read()
1241 p->export = pa_memexport_new(p->mempool, memexport_revoke_cb, p); in pa_pstream_enable_shm()
H A Dplay-memchunk.c50 pa_silence_memchunk_get(&sink->core->silence_cache, sink->core->mempool, &silence, ss, 0); in pa_play_memchunk()
H A Dcore.c176 c->mempool = pool; in pa_core_new()
271 pa_mempool_unref(c->mempool); in core_free()
555 pa_mempool_vacuum(c->mempool); in pa_core_maybe_vacuum()
H A Dresampler.h89 pa_mempool *mempool; member
145 /* Returns the maximum size of input blocks we can process without needing bounce buffers larger than the mempool tile size. */
H A Dcore.h203 /* The mempool is used for data we write to, it's readonly for the client. */
204 pa_mempool *mempool; member
H A Dcore-scache.c228 if (pa_sound_file_load(c->mempool, filename, &ss, &map, &chunk, p) < 0) { in pa_scache_add_file()
325 if (pa_sound_file_load(c->mempool, e->filename, &e->sample_spec, &e->channel_map, &e->memchunk, merged) < 0) in pa_scache_play_item()
/third_party/pulseaudio/src/pulse/
H A Dcontext.c201 if (!(c->mempool = pa_mempool_new(type, c->conf->shm_size, true))) { in pa_context_new_with_proplist()
205 c->mempool = pa_mempool_new(PA_MEM_TYPE_PRIVATE, c->conf->shm_size, true); in pa_context_new_with_proplist()
208 if (!c->mempool) { in pa_context_new_with_proplist()
281 if (c->mempool) in context_free()
282 pa_mempool_unref(c->mempool); in context_free()
569 if (pa_mempool_is_memfd_backed(c->mempool)) in setup_complete_callback()
570 if (pa_pstream_register_memfd_mempool(c->pstream, c->mempool, &reason)) in setup_complete_callback()
571 pa_log("Failed to regester memfd mempool. Reason: %s", reason); in setup_complete_callback()
629 c->pstream = pa_pstream_new(c->mainloop, io, c->mempool); in setup_context()
644 pa_mempool_is_shared(c->mempool) in setup_context()
[all...]
/third_party/pulseaudio/src/modules/
H A Dmodule-null-source.c149 max_block_size = pa_frame_align(pa_mempool_block_size_max(u->core->mempool), &u->source->sample_spec); in thread_func()
166 chunk.memblock = pa_memblock_new(u->core->mempool, chunk.length); in thread_func()
H A Dmodule-sine.c156 pa_memchunk_sine(&u->memchunk, m->core->mempool, ss.rate, frequency); in pa__init()

Completed in 16 milliseconds

123