• Home
  • Raw
  • Download

Lines Matching refs:hdr

140 search_empty(struct snd_util_memhdr *hdr, int size)  in search_empty()  argument
149 list_for_each(p, &hdr->block) { in search_empty()
160 blk = __snd_util_memblk_new(hdr, psize * ALIGN_PAGE_SIZE, p->prev); in search_empty()
193 struct snd_util_memhdr *hdr; in snd_trident_alloc_sg_pages() local
202 hdr = trident->tlb.memhdr; in snd_trident_alloc_sg_pages()
203 if (snd_BUG_ON(!hdr)) in snd_trident_alloc_sg_pages()
208 mutex_lock(&hdr->block_mutex); in snd_trident_alloc_sg_pages()
209 blk = search_empty(hdr, runtime->dma_bytes); in snd_trident_alloc_sg_pages()
211 mutex_unlock(&hdr->block_mutex); in snd_trident_alloc_sg_pages()
223 __snd_util_mem_free(hdr, blk); in snd_trident_alloc_sg_pages()
224 mutex_unlock(&hdr->block_mutex); in snd_trident_alloc_sg_pages()
229 mutex_unlock(&hdr->block_mutex); in snd_trident_alloc_sg_pages()
240 struct snd_util_memhdr *hdr; in snd_trident_alloc_cont_pages() local
251 hdr = trident->tlb.memhdr; in snd_trident_alloc_cont_pages()
252 if (snd_BUG_ON(!hdr)) in snd_trident_alloc_cont_pages()
255 mutex_lock(&hdr->block_mutex); in snd_trident_alloc_cont_pages()
256 blk = search_empty(hdr, runtime->dma_bytes); in snd_trident_alloc_cont_pages()
258 mutex_unlock(&hdr->block_mutex); in snd_trident_alloc_cont_pages()
268 __snd_util_mem_free(hdr, blk); in snd_trident_alloc_cont_pages()
269 mutex_unlock(&hdr->block_mutex); in snd_trident_alloc_cont_pages()
274 mutex_unlock(&hdr->block_mutex); in snd_trident_alloc_cont_pages()
300 struct snd_util_memhdr *hdr; in snd_trident_free_pages() local
306 hdr = trident->tlb.memhdr; in snd_trident_free_pages()
307 mutex_lock(&hdr->block_mutex); in snd_trident_free_pages()
312 __snd_util_mem_free(hdr, blk); in snd_trident_free_pages()
313 mutex_unlock(&hdr->block_mutex); in snd_trident_free_pages()