Lines Matching defs:dev
8 void *dma_alloc_noncoherent(struct device *dev, size_t size,
11 void dma_free_noncoherent(struct device *dev, size_t size,
14 void *dma_alloc_coherent(struct device *dev, size_t size,
17 void dma_free_coherent(struct device *dev, size_t size,
20 extern dma_addr_t dma_map_single(struct device *dev, void *ptr, size_t size,
22 extern void dma_unmap_single(struct device *dev, dma_addr_t dma_addr,
24 extern int dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
26 extern dma_addr_t dma_map_page(struct device *dev, struct page *page,
29 static inline void dma_unmap_page(struct device *dev, dma_addr_t dma_address,
32 dma_unmap_single(dev, dma_address, size, direction);
35 extern void dma_unmap_sg(struct device *dev, struct scatterlist *sg,
37 extern void dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle,
39 extern void dma_sync_single_for_device(struct device *dev,
41 extern void dma_sync_single_range_for_cpu(struct device *dev,
44 extern void dma_sync_single_range_for_device(struct device *dev,
47 extern void dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg,
49 extern void dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg,
51 extern int dma_mapping_error(struct device *dev, dma_addr_t dma_addr);
52 extern int dma_supported(struct device *dev, u64 mask);
55 dma_set_mask(struct device *dev, u64 mask)
57 if(!dev->dma_mask || !dma_supported(dev, mask))
60 *dev->dma_mask = mask;
65 extern void dma_cache_sync(struct device *dev, void *vaddr, size_t size,