Lines Matching refs:dma_coherent_mem

12 struct dma_coherent_mem {  struct
23 static struct dma_coherent_mem *dma_coherent_default_memory __ro_after_init; argument
25 static inline struct dma_coherent_mem *dev_get_coherent_memory(struct device *dev) in dev_get_coherent_memory()
33 struct dma_coherent_mem * mem) in dma_get_device_base()
43 struct dma_coherent_mem **mem) in dma_init_coherent_memory()
45 struct dma_coherent_mem *dma_mem = NULL; in dma_init_coherent_memory()
61 dma_mem = kzalloc(sizeof(struct dma_coherent_mem), GFP_KERNEL); in dma_init_coherent_memory()
89 static void dma_release_coherent_memory(struct dma_coherent_mem *mem) in dma_release_coherent_memory()
100 struct dma_coherent_mem *mem) in dma_assign_coherent_memory()
115 struct dma_coherent_mem *mem; in dma_declare_coherent_memory()
131 struct dma_coherent_mem *mem = dev->dma_mem; in dma_release_declared_memory()
143 struct dma_coherent_mem *mem = dev->dma_mem; in dma_mark_declared_memory_occupied()
163 static void *__dma_alloc_from_coherent(struct dma_coherent_mem *mem, in __dma_alloc_from_coherent()
210 struct dma_coherent_mem *mem = dev_get_coherent_memory(dev); in dma_alloc_from_dev_coherent()
237 static int __dma_release_from_coherent(struct dma_coherent_mem *mem, in __dma_release_from_coherent()
267 struct dma_coherent_mem *mem = dev_get_coherent_memory(dev); in dma_release_from_dev_coherent()
282 static int __dma_mmap_from_coherent(struct dma_coherent_mem *mem, in __dma_mmap_from_coherent()
322 struct dma_coherent_mem *mem = dev_get_coherent_memory(dev); in dma_mmap_from_dev_coherent()
350 struct dma_coherent_mem *mem = rmem->priv; in rmem_dma_device_init()