Lines Matching defs:dma_map_ops
22 struct dma_map_ops { struct
23 unsigned int flags;
25 void *(*alloc)(struct device *dev, size_t size,
28 void (*free)(struct device *dev, size_t size, void *vaddr,
30 struct page *(*alloc_pages)(struct device *dev, size_t size,
33 void (*free_pages)(struct device *dev, size_t size, struct page *vaddr,
35 struct sg_table *(*alloc_noncontiguous)(struct device *dev, size_t size,
38 void (*free_noncontiguous)(struct device *dev, size_t size,
40 int (*mmap)(struct device *, struct vm_area_struct *,
43 int (*get_sgtable)(struct device *dev, struct sg_table *sgt,
47 dma_addr_t (*map_page)(struct device *dev, struct page *page,
50 void (*unmap_page)(struct device *dev, dma_addr_t dma_handle,
58 int (*map_sg)(struct device *dev, struct scatterlist *sg, int nents,
60 void (*unmap_sg)(struct device *dev, struct scatterlist *sg, int nents,
62 dma_addr_t (*map_resource)(struct device *dev, phys_addr_t phys_addr,
65 void (*unmap_resource)(struct device *dev, dma_addr_t dma_handle,
89 static inline const struct dma_map_ops *get_dma_ops(struct device *dev) in get_dma_ops() argument