Home
last modified time | relevance | path

Searched refs:pool (Results 1 – 8 of 8) sorted by relevance

/sound/core/seq/
A Dseq_memory.c24 return pool->total_elements - atomic_read(&pool->counter); in snd_seq_pool_available()
29 return snd_seq_pool_available(pool) >= pool->room; in snd_seq_output_ok()
239 pool = cell->pool; in snd_seq_cell_free()
289 while (pool->free == NULL && ! nonblock && ! pool->closing) { in snd_seq_cell_alloc()
462 cellptr->pool = pool; in snd_seq_pool_init()
466 pool->room = (pool->size + 1) / 2; in snd_seq_pool_init()
470 pool->total_elements = pool->size; in snd_seq_pool_init()
521 pool = kzalloc(sizeof(*pool), GFP_KERNEL); in snd_seq_pool_new()
522 if (!pool) in snd_seq_pool_new()
536 return pool; in snd_seq_pool_new()
[all …]
A Dseq_memory.h34 struct snd_seq_pool *pool; /* used pool */ member
70 int snd_seq_event_dup(struct snd_seq_pool *pool, struct snd_seq_event *event,
75 static inline int snd_seq_unused_cells(struct snd_seq_pool *pool) in snd_seq_unused_cells() argument
77 return pool ? pool->total_elements - atomic_read(&pool->counter) : 0; in snd_seq_unused_cells()
81 static inline int snd_seq_total_cells(struct snd_seq_pool *pool) in snd_seq_total_cells() argument
83 return pool ? pool->total_elements : 0; in snd_seq_total_cells()
87 int snd_seq_pool_init(struct snd_seq_pool *pool);
90 void snd_seq_pool_mark_closing(struct snd_seq_pool *pool);
91 int snd_seq_pool_done(struct snd_seq_pool *pool);
97 int snd_seq_pool_delete(struct snd_seq_pool **pool);
[all …]
A Dseq_fifo.c26 f->pool = snd_seq_pool_new(poolsize); in snd_seq_fifo_new()
27 if (f->pool == NULL) { in snd_seq_fifo_new()
31 if (snd_seq_pool_init(f->pool) < 0) { in snd_seq_fifo_new()
32 snd_seq_pool_delete(&f->pool); in snd_seq_fifo_new()
60 if (f->pool) in snd_seq_fifo_delete()
72 if (f->pool) { in snd_seq_fifo_delete()
73 snd_seq_pool_done(f->pool); in snd_seq_fifo_delete()
74 snd_seq_pool_delete(&f->pool); in snd_seq_fifo_delete()
225 if (snd_BUG_ON(!f || !f->pool)) in snd_seq_fifo_resize()
239 oldpool = f->pool; in snd_seq_fifo_resize()
[all …]
A Dseq_clientmgr.c251 client->pool = snd_seq_pool_new(poolsize); in seq_create_client1()
252 if (client->pool == NULL) { in seq_create_client1()
284 snd_seq_pool_delete(&client->pool); in seq_create_client1()
301 if (client->pool) in seq_free_client1()
302 snd_seq_pool_delete(&client->pool); in seq_free_client1()
1050 err = snd_seq_pool_init(client->pool); in snd_seq_write()
1906 info->output_pool = cptr->pool->size; in snd_seq_ioctl_get_client_pool()
1907 info->output_room = cptr->pool->room; in snd_seq_ioctl_get_client_pool()
1942 snd_seq_pool_done(client->pool); in snd_seq_ioctl_set_client_pool()
1945 rc = snd_seq_pool_init(client->pool); in snd_seq_ioctl_set_client_pool()
[all …]
A Dseq_fifo.h16 struct snd_seq_pool *pool; /* FIFO pool */ member
A Dseq_clientmgr.h56 struct snd_seq_pool *pool; /* memory pool for this client */ member
/sound/core/seq/oss/
A Dseq_oss_writeq.c28 struct snd_seq_client_pool pool; in snd_seq_oss_writeq_new() local
40 memset(&pool, 0, sizeof(pool)); in snd_seq_oss_writeq_new()
41 pool.client = dp->cseq; in snd_seq_oss_writeq_new()
42 pool.output_pool = maxlen; in snd_seq_oss_writeq_new()
43 pool.output_room = maxlen / 2; in snd_seq_oss_writeq_new()
141 struct snd_seq_client_pool pool; in snd_seq_oss_writeq_get_free_size() local
142 pool.client = q->dp->cseq; in snd_seq_oss_writeq_get_free_size()
144 return pool.output_free; in snd_seq_oss_writeq_get_free_size()
154 struct snd_seq_client_pool pool; in snd_seq_oss_writeq_set_output() local
155 pool.client = q->dp->cseq; in snd_seq_oss_writeq_set_output()
[all …]
/sound/core/
A Dmemalloc.c425 struct gen_pool *pool; in snd_dma_iram_alloc() local
429 pool = of_gen_pool_get(dev->of_node, "iram", 0); in snd_dma_iram_alloc()
431 dmab->private_data = pool; in snd_dma_iram_alloc()
433 p = gen_pool_dma_alloc_align(pool, size, &dmab->addr, PAGE_SIZE); in snd_dma_iram_alloc()
447 struct gen_pool *pool = dmab->private_data; in snd_dma_iram_free() local
449 if (pool && dmab->area) in snd_dma_iram_free()
450 gen_pool_free(pool, (unsigned long)dmab->area, dmab->bytes); in snd_dma_iram_free()

Completed in 24 milliseconds