Lines Matching defs:dma_map_ops
14 struct dma_map_ops { struct
15 void *(*alloc)(struct device *dev, size_t size,
18 void (*free)(struct device *dev, size_t size, void *vaddr,
20 struct page *(*alloc_pages)(struct device *dev, size_t size,
23 void (*free_pages)(struct device *dev, size_t size, struct page *vaddr,
25 void *(*alloc_noncoherent)(struct device *dev, size_t size,
28 void (*free_noncoherent)(struct device *dev, size_t size, void *vaddr,
30 int (*mmap)(struct device *, struct vm_area_struct *,
33 int (*get_sgtable)(struct device *dev, struct sg_table *sgt,
37 dma_addr_t (*map_page)(struct device *dev, struct page *page,
40 void (*unmap_page)(struct device *dev, dma_addr_t dma_handle,
47 int (*map_sg)(struct device *dev, struct scatterlist *sg, int nents,
49 void (*unmap_sg)(struct device *dev, struct scatterlist *sg, int nents,
51 dma_addr_t (*map_resource)(struct device *dev, phys_addr_t phys_addr,
77 static inline const struct dma_map_ops *get_dma_ops(struct device *dev) in get_dma_ops() argument