Lines Matching defs:dev
33 extern dma_addr_t dma_map_single(struct device *dev, void *ptr, size_t size,
35 extern void dma_unmap_single(struct device *dev, dma_addr_t dma_addr,
37 extern int dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
39 extern void dma_unmap_sg(struct device *dev, struct scatterlist *sg,
41 extern dma_addr_t dma_map_page(struct device *dev, struct page *page,
44 extern void dma_unmap_page(struct device *dev, dma_addr_t dma_address,
46 extern void dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg,
48 extern void dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg,
52 void *dma_alloc_coherent(struct device *dev, size_t size,
55 void dma_free_coherent(struct device *dev, size_t size,
71 dma_mapping_error(struct device *dev, dma_addr_t dma_addr)
77 dma_supported(struct device *dev, u64 mask)
83 dma_set_mask(struct device *dev, u64 mask)
85 if (!dev->dma_mask || !dma_supported(dev, mask))
88 *dev->dma_mask = mask;