Lines Matching refs:ops
34 const struct snd_malloc_ops *ops = snd_dma_get_ops(dmab); in __snd_dma_alloc_pages() local
36 if (WARN_ON_ONCE(!ops || !ops->alloc)) in __snd_dma_alloc_pages()
38 return ops->alloc(dmab, size); in __snd_dma_alloc_pages()
118 const struct snd_malloc_ops *ops = snd_dma_get_ops(dmab); in snd_dma_free_pages() local
120 if (ops && ops->free) in snd_dma_free_pages()
121 ops->free(dmab); in snd_dma_free_pages()
179 const struct snd_malloc_ops *ops; in snd_dma_buffer_mmap() local
183 ops = snd_dma_get_ops(dmab); in snd_dma_buffer_mmap()
184 if (ops && ops->mmap) in snd_dma_buffer_mmap()
185 return ops->mmap(dmab, area); in snd_dma_buffer_mmap()
198 const struct snd_malloc_ops *ops = snd_dma_get_ops(dmab); in snd_sgbuf_get_addr() local
200 if (ops && ops->get_addr) in snd_sgbuf_get_addr()
201 return ops->get_addr(dmab, offset); in snd_sgbuf_get_addr()
214 const struct snd_malloc_ops *ops = snd_dma_get_ops(dmab); in snd_sgbuf_get_page() local
216 if (ops && ops->get_page) in snd_sgbuf_get_page()
217 return ops->get_page(dmab, offset); in snd_sgbuf_get_page()
233 const struct snd_malloc_ops *ops = snd_dma_get_ops(dmab); in snd_sgbuf_get_chunk_size() local
235 if (ops && ops->get_chunk_size) in snd_sgbuf_get_chunk_size()
236 return ops->get_chunk_size(dmab, ofs, size); in snd_sgbuf_get_chunk_size()