Lines Matching defs:dma_map_ops
23 struct dma_map_ops { struct
24 unsigned int flags;
26 void *(*alloc)(struct device *dev, size_t size,
29 void (*free)(struct device *dev, size_t size, void *vaddr,
31 struct page *(*alloc_pages)(struct device *dev, size_t size,
34 void (*free_pages)(struct device *dev, size_t size, struct page *vaddr,
36 struct sg_table *(*alloc_noncontiguous)(struct device *dev, size_t size,
39 void (*free_noncontiguous)(struct device *dev, size_t size,
41 int (*mmap)(struct device *, struct vm_area_struct *,
44 int (*get_sgtable)(struct device *dev, struct sg_table *sgt,
48 dma_addr_t (*map_page)(struct device *dev, struct page *page,
51 void (*unmap_page)(struct device *dev, dma_addr_t dma_handle,
59 int (*map_sg)(struct device *dev, struct scatterlist *sg, int nents,
61 void (*unmap_sg)(struct device *dev, struct scatterlist *sg, int nents,
63 dma_addr_t (*map_resource)(struct device *dev, phys_addr_t phys_addr,
66 void (*unmap_resource)(struct device *dev, dma_addr_t dma_handle,
90 static inline const struct dma_map_ops *get_dma_ops(struct device *dev) in get_dma_ops() argument