Lines Matching defs:dma_map_ops
15 struct dma_map_ops { struct
16 void *(*alloc)(struct device *dev, size_t size,
19 void (*free)(struct device *dev, size_t size, void *vaddr,
21 struct page *(*alloc_pages)(struct device *dev, size_t size,
24 void (*free_pages)(struct device *dev, size_t size, struct page *vaddr,
26 void *(*alloc_noncoherent)(struct device *dev, size_t size,
29 void (*free_noncoherent)(struct device *dev, size_t size, void *vaddr,
31 int (*mmap)(struct device *, struct vm_area_struct *,
34 int (*get_sgtable)(struct device *dev, struct sg_table *sgt,
38 dma_addr_t (*map_page)(struct device *dev, struct page *page,
41 void (*unmap_page)(struct device *dev, dma_addr_t dma_handle,
48 int (*map_sg)(struct device *dev, struct scatterlist *sg, int nents,
50 void (*unmap_sg)(struct device *dev, struct scatterlist *sg, int nents,
52 dma_addr_t (*map_resource)(struct device *dev, phys_addr_t phys_addr,
55 void (*unmap_resource)(struct device *dev, dma_addr_t dma_handle,
58 void (*sync_single_for_cpu)(struct device *dev, dma_addr_t dma_handle,
83 static inline const struct dma_map_ops *get_dma_ops(struct device *dev) in get_dma_ops() argument