Lines Matching defs:dev
45 static void dma_cache_maint(struct device *dev, dma_addr_t handle,
55 cflush.a.dev_bus_addr = dma_to_phys(dev, handle);
77 void xen_dma_sync_for_cpu(struct device *dev, dma_addr_t handle,
81 dma_cache_maint(dev, handle, size, GNTTAB_CACHE_INVAL);
84 void xen_dma_sync_for_device(struct device *dev, dma_addr_t handle,
88 dma_cache_maint(dev, handle, size, GNTTAB_CACHE_INVAL);
90 dma_cache_maint(dev, handle, size, GNTTAB_CACHE_CLEAN);
93 bool xen_arch_need_swiotlb(struct device *dev,
98 unsigned int bfn = XEN_PFN_DOWN(dma_to_phys(dev, dev_addr));
116 !dev_is_dma_coherent(dev));