Lines Matching refs:snd_dma_buffer

22 	void *(*alloc)(struct snd_dma_buffer *dmab, size_t size);
23 void (*free)(struct snd_dma_buffer *dmab);
24 dma_addr_t (*get_addr)(struct snd_dma_buffer *dmab, size_t offset);
25 struct page *(*get_page)(struct snd_dma_buffer *dmab, size_t offset);
26 unsigned int (*get_chunk_size)(struct snd_dma_buffer *dmab,
28 int (*mmap)(struct snd_dma_buffer *dmab, struct vm_area_struct *area);
29 void (*sync)(struct snd_dma_buffer *dmab, enum snd_dma_sync_mode mode);
37 static const struct snd_malloc_ops *snd_dma_get_ops(struct snd_dma_buffer *dmab);
39 static void *__snd_dma_alloc_pages(struct snd_dma_buffer *dmab, size_t size) in __snd_dma_alloc_pages()
65 struct snd_dma_buffer *dmab) in snd_dma_alloc_dir_pages()
103 struct snd_dma_buffer *dmab) in snd_dma_alloc_pages_fallback()
127 void snd_dma_free_pages(struct snd_dma_buffer *dmab) in snd_dma_free_pages()
158 struct snd_dma_buffer *
162 struct snd_dma_buffer *dmab; in snd_devm_alloc_dir_pages()
191 int snd_dma_buffer_mmap(struct snd_dma_buffer *dmab, in snd_dma_buffer_mmap()
212 void snd_dma_buffer_sync(struct snd_dma_buffer *dmab, in snd_dma_buffer_sync()
233 dma_addr_t snd_sgbuf_get_addr(struct snd_dma_buffer *dmab, size_t offset) in snd_sgbuf_get_addr()
251 struct page *snd_sgbuf_get_page(struct snd_dma_buffer *dmab, size_t offset) in snd_sgbuf_get_page()
271 unsigned int snd_sgbuf_get_chunk_size(struct snd_dma_buffer *dmab, in snd_sgbuf_get_chunk_size()
326 static void *snd_dma_continuous_alloc(struct snd_dma_buffer *dmab, size_t size) in snd_dma_continuous_alloc()
331 static void snd_dma_continuous_free(struct snd_dma_buffer *dmab) in snd_dma_continuous_free()
336 static int snd_dma_continuous_mmap(struct snd_dma_buffer *dmab, in snd_dma_continuous_mmap()
354 static void *snd_dma_vmalloc_alloc(struct snd_dma_buffer *dmab, size_t size) in snd_dma_vmalloc_alloc()
359 static void snd_dma_vmalloc_free(struct snd_dma_buffer *dmab) in snd_dma_vmalloc_free()
364 static int snd_dma_vmalloc_mmap(struct snd_dma_buffer *dmab, in snd_dma_vmalloc_mmap()
373 static dma_addr_t snd_dma_vmalloc_get_addr(struct snd_dma_buffer *dmab, in snd_dma_vmalloc_get_addr()
379 static struct page *snd_dma_vmalloc_get_page(struct snd_dma_buffer *dmab, in snd_dma_vmalloc_get_page()
386 snd_dma_vmalloc_get_chunk_size(struct snd_dma_buffer *dmab, in snd_dma_vmalloc_get_chunk_size()
422 static void *snd_dma_iram_alloc(struct snd_dma_buffer *dmab, size_t size) in snd_dma_iram_alloc()
445 static void snd_dma_iram_free(struct snd_dma_buffer *dmab) in snd_dma_iram_free()
453 static int snd_dma_iram_mmap(struct snd_dma_buffer *dmab, in snd_dma_iram_mmap()
473 static void *snd_dma_dev_alloc(struct snd_dma_buffer *dmab, size_t size) in snd_dma_dev_alloc()
478 static void snd_dma_dev_free(struct snd_dma_buffer *dmab) in snd_dma_dev_free()
483 static int snd_dma_dev_mmap(struct snd_dma_buffer *dmab, in snd_dma_dev_mmap()
501 static void *snd_dma_wc_alloc(struct snd_dma_buffer *dmab, size_t size) in snd_dma_wc_alloc()
515 static void snd_dma_wc_free(struct snd_dma_buffer *dmab) in snd_dma_wc_free()
522 static int snd_dma_wc_mmap(struct snd_dma_buffer *dmab, in snd_dma_wc_mmap()
530 static void *snd_dma_wc_alloc(struct snd_dma_buffer *dmab, size_t size) in snd_dma_wc_alloc()
535 static void snd_dma_wc_free(struct snd_dma_buffer *dmab) in snd_dma_wc_free()
540 static int snd_dma_wc_mmap(struct snd_dma_buffer *dmab, in snd_dma_wc_mmap()
557 static void *snd_dma_noncontig_alloc(struct snd_dma_buffer *dmab, size_t size) in snd_dma_noncontig_alloc()
580 static void snd_dma_noncontig_free(struct snd_dma_buffer *dmab) in snd_dma_noncontig_free()
587 static int snd_dma_noncontig_mmap(struct snd_dma_buffer *dmab, in snd_dma_noncontig_mmap()
594 static void snd_dma_noncontig_sync(struct snd_dma_buffer *dmab, in snd_dma_noncontig_sync()
612 static inline void snd_dma_noncontig_iter_set(struct snd_dma_buffer *dmab, in snd_dma_noncontig_iter_set()
622 static dma_addr_t snd_dma_noncontig_get_addr(struct snd_dma_buffer *dmab, in snd_dma_noncontig_get_addr()
632 static struct page *snd_dma_noncontig_get_page(struct snd_dma_buffer *dmab, in snd_dma_noncontig_get_page()
643 snd_dma_noncontig_get_chunk_size(struct snd_dma_buffer *dmab, in snd_dma_noncontig_get_chunk_size()
689 static void __snd_dma_sg_fallback_free(struct snd_dma_buffer *dmab, in __snd_dma_sg_fallback_free()
712 static void *snd_dma_sg_fallback_alloc(struct snd_dma_buffer *dmab, size_t size) in snd_dma_sg_fallback_alloc()
781 static void snd_dma_sg_fallback_free(struct snd_dma_buffer *dmab) in snd_dma_sg_fallback_free()
791 static int snd_dma_sg_fallback_mmap(struct snd_dma_buffer *dmab, in snd_dma_sg_fallback_mmap()
801 static void *snd_dma_sg_alloc(struct snd_dma_buffer *dmab, size_t size) in snd_dma_sg_alloc()
834 static void *snd_dma_noncoherent_alloc(struct snd_dma_buffer *dmab, size_t size) in snd_dma_noncoherent_alloc()
845 static void snd_dma_noncoherent_free(struct snd_dma_buffer *dmab) in snd_dma_noncoherent_free()
851 static int snd_dma_noncoherent_mmap(struct snd_dma_buffer *dmab, in snd_dma_noncoherent_mmap()
860 static void snd_dma_noncoherent_sync(struct snd_dma_buffer *dmab, in snd_dma_noncoherent_sync()
904 static const struct snd_malloc_ops *snd_dma_get_ops(struct snd_dma_buffer *dmab) in snd_dma_get_ops()