Home
last modified time | relevance | path

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

/sound/core/seq/
Dseq_memory.c22 static inline int snd_seq_pool_available(struct snd_seq_pool *pool) in snd_seq_pool_available() argument
24 return pool->total_elements - atomic_read(&pool->counter); in snd_seq_pool_available()
27 static inline int snd_seq_output_ok(struct snd_seq_pool *pool) in snd_seq_output_ok() argument
29 return snd_seq_pool_available(pool) >= pool->room; in snd_seq_output_ok()
168 static inline void free_cell(struct snd_seq_pool *pool, in free_cell() argument
171 cell->next = pool->free; in free_cell()
172 pool->free = cell; in free_cell()
173 atomic_dec(&pool->counter); in free_cell()
179 struct snd_seq_pool *pool; in snd_seq_cell_free() local
183 pool = cell->pool; in snd_seq_cell_free()
[all …]
Dseq_memory.h17 struct snd_seq_pool *pool; /* used pool */ member
53 int snd_seq_event_dup(struct snd_seq_pool *pool, struct snd_seq_event *event,
58 static inline int snd_seq_unused_cells(struct snd_seq_pool *pool) in snd_seq_unused_cells() argument
60 return pool ? pool->total_elements - atomic_read(&pool->counter) : 0; in snd_seq_unused_cells()
64 static inline int snd_seq_total_cells(struct snd_seq_pool *pool) in snd_seq_total_cells() argument
66 return pool ? pool->total_elements : 0; in snd_seq_total_cells()
70 int snd_seq_pool_init(struct snd_seq_pool *pool);
73 void snd_seq_pool_mark_closing(struct snd_seq_pool *pool);
74 int snd_seq_pool_done(struct snd_seq_pool *pool);
80 int snd_seq_pool_delete(struct snd_seq_pool **pool);
[all …]
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()
61 snd_seq_pool_mark_closing(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()
112 err = snd_seq_event_dup(f->pool, event, &cell, 1, NULL, NULL); /* always non-blocking */ in snd_seq_fifo_event_in()
[all …]
Dseq_clientmgr.c89 return snd_seq_total_cells(client->pool) > 0; in snd_seq_write_pool_allocated()
231 client->pool = snd_seq_pool_new(poolsize); in seq_create_client1()
232 if (client->pool == NULL) { in seq_create_client1()
263 snd_seq_pool_delete(&client->pool); in seq_create_client1()
280 if (client->pool) in seq_free_client1()
281 snd_seq_pool_delete(&client->pool); in seq_free_client1()
968 err = snd_seq_event_dup(client->pool, event, &cell, !blocking || atomic, in snd_seq_client_enqueue_event()
1035 if (!client->accept_output || client->pool == NULL) in snd_seq_write()
1042 if (client->pool->size > 0 && !snd_seq_write_pool_allocated(client)) { in snd_seq_write()
1043 err = snd_seq_pool_init(client->pool); in snd_seq_write()
[all …]
Dseq_fifo.h16 struct snd_seq_pool *pool; /* FIFO pool */ member
Dseq_clientmgr.h53 struct snd_seq_pool *pool; /* memory pool for this client */ member
/sound/core/seq/oss/
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()
45 snd_seq_oss_control(dp, SNDRV_SEQ_IOCTL_SET_CLIENT_POOL, &pool); 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()
143 snd_seq_oss_control(q->dp, SNDRV_SEQ_IOCTL_GET_CLIENT_POOL, &pool); in snd_seq_oss_writeq_get_free_size()
144 return pool.output_free; in snd_seq_oss_writeq_get_free_size()
[all …]
/sound/core/
Dmemalloc.c351 struct gen_pool *pool; in snd_dma_iram_alloc() local
355 pool = of_gen_pool_get(dev->of_node, "iram", 0); in snd_dma_iram_alloc()
357 dmab->private_data = pool; in snd_dma_iram_alloc()
359 p = gen_pool_dma_alloc_align(pool, size, &dmab->addr, PAGE_SIZE); in snd_dma_iram_alloc()
373 struct gen_pool *pool = dmab->private_data; in snd_dma_iram_free() local
375 if (pool && dmab->area) in snd_dma_iram_free()
376 gen_pool_free(pool, (unsigned long)dmab->area, dmab->bytes); in snd_dma_iram_free()