Home
last modified time | relevance | path

Searched refs:dev_is_dma_coherent (Results 1 – 9 of 9) sorted by relevance

/linux/kernel/dma/
H A Ddirect.c233 if (!dev_is_dma_coherent(dev)) { in dma_direct_alloc()
385 !dev_is_dma_coherent(dev) && in dma_direct_free()
392 !dev_is_dma_coherent(dev)) { in dma_direct_free()
517 if (!dev_is_dma_coherent(dev)) in dma_direct_sync_sg_for_device()
521 if (!dev_is_dma_coherent(dev)) in dma_direct_sync_sg_for_device()
538 if (!dev_is_dma_coherent(dev)) in dma_direct_sync_sg_for_cpu()
544 if (!dev_is_dma_coherent(dev)) { in dma_direct_sync_sg_for_cpu()
570 if (need_sync && !dev_is_dma_coherent(dev)) in dma_direct_unmap_sg()
613 if (need_sync && !dev_is_dma_coherent(dev)) in dma_direct_map_sg()
637 return dev_is_dma_coherent(dev) || in dma_direct_can_mmap()
[all …]
H A Ddirect.h66 if (!dev_is_dma_coherent(dev)) { in dma_direct_sync_single_for_device()
78 if (!dev_is_dma_coherent(dev)) { in dma_direct_sync_single_for_cpu()
H A Dmapping.c166 if (!dev_is_dma_coherent(dev) && (attrs & DMA_ATTR_REQUIRE_COHERENT)) in dma_map_phys()
248 if (!dev_is_dma_coherent(dev) && (attrs & DMA_ATTR_REQUIRE_COHERENT)) in __dma_map_sg_attrs()
489 dev_assign_dma_skip_sync(dev, dev_is_dma_coherent(dev)); in dma_setup_need_sync()
542 if (dev_is_dma_coherent(dev)) in dma_pgprot()
H A Dswiotlb.c1029 if (dir == DMA_FROM_DEVICE && !dev_is_dma_coherent(dev)) in swiotlb_bounce()
1788 if (!dev_is_dma_coherent(dev) && !(attrs & DMA_ATTR_SKIP_CPU_SYNC)) { in swiotlb_map()
/linux/drivers/iommu/
H A Ddma-iommu.c946 bool coherent = dev_is_dma_coherent(dev); in __iommu_dma_alloc_noncontiguous()
1105 if (dev_is_dma_coherent(dev) && !dev_use_swiotlb(dev, size, dir)) in iommu_dma_sync_single_for_cpu()
1109 if (!dev_is_dma_coherent(dev)) { in iommu_dma_sync_single_for_cpu()
1122 if (dev_is_dma_coherent(dev) && !dev_use_swiotlb(dev, size, dir)) in iommu_dma_sync_single_for_device()
1128 if (!dev_is_dma_coherent(dev)) { in iommu_dma_sync_single_for_device()
1144 } else if (!dev_is_dma_coherent(dev)) { in iommu_dma_sync_sg_for_cpu()
1162 } else if (!dev_is_dma_coherent(dev)) { in iommu_dma_sync_sg_for_device()
1220 bool coherent = dev_is_dma_coherent(dev); in iommu_dma_map_phys()
1267 if (!(attrs & DMA_ATTR_SKIP_CPU_SYNC) && !dev_is_dma_coherent(dev)) { in iommu_dma_unmap_phys()
1419 int prot = dma_info_to_prot(dir, dev_is_dma_coherent(dev), attrs); in iommu_dma_map_sg()
[all …]
/linux/drivers/xen/
H A Dswiotlb-xen.c264 if (!dev_is_dma_coherent(dev) && !(attrs & DMA_ATTR_SKIP_CPU_SYNC)) { in xen_swiotlb_map_phys()
291 if (!dev_is_dma_coherent(hwdev) && !(attrs & DMA_ATTR_SKIP_CPU_SYNC)) { in xen_swiotlb_unmap_phys()
314 if (!dev_is_dma_coherent(dev)) { in xen_swiotlb_sync_single_for_cpu()
339 if (!dev_is_dma_coherent(dev)) { in xen_swiotlb_sync_single_for_device()
/linux/include/linux/
H A Ddma-map-ops.h227 static inline bool dev_is_dma_coherent(struct device *dev) in dev_is_dma_coherent() function
234 static inline bool dev_is_dma_coherent(struct device *dev) in dev_is_dma_coherent() function
267 if (dev_is_dma_coherent(dev) || dir == DMA_TO_DEVICE) in dma_kmalloc_safe()
/linux/arch/arm/xen/
H A Dmm.c116 !dev_is_dma_coherent(dev)); in xen_arch_need_swiotlb()
/linux/sound/usb/qcom/
H A Dqc_audio_offload.c1055 dma_coherent = dev_is_dma_coherent(subs->dev->bus->sysdev); in uaudio_transfer_buffer_setup()
1132 dma_coherent = dev_is_dma_coherent(subs->dev->bus->sysdev); in uaudio_endpoint_setup()
1206 dma_coherent = dev_is_dma_coherent(subs->dev->bus->sysdev); in uaudio_event_ring_setup()