Lines Matching refs:dev
16 #define dev_to_baddr(dev, addr) \
17 pdev_to_baddr(to_pci_dev(dev), (addr))
21 static inline dma_addr_t plat_map_dma_mem(struct device *dev, void *addr,
24 dma_addr_t pa = dev_to_baddr(dev, virt_to_phys(addr));
29 static inline dma_addr_t plat_map_dma_mem_page(struct device *dev,
32 dma_addr_t pa = dev_to_baddr(dev, page_to_phys(page));
37 static inline unsigned long plat_dma_addr_to_phys(struct device *dev,
43 static inline void plat_unmap_dma_mem(struct device *dev, dma_addr_t dma_addr,
48 static inline int plat_dma_supported(struct device *dev, u64 mask)
61 static inline int plat_device_is_coherent(struct device *dev)