Lines Matching refs:dma_mask
60 unsigned long dma_mask = 0; in dma_alloc_coherent_mask() local
62 dma_mask = dev->coherent_dma_mask; in dma_alloc_coherent_mask()
63 if (!dma_mask) in dma_alloc_coherent_mask()
64 dma_mask = (gfp & GFP_DMA) ? DMA_BIT_MASK(24) : DMA_BIT_MASK(32); in dma_alloc_coherent_mask()
66 return dma_mask; in dma_alloc_coherent_mask()
301 u64 dma_mask = DMA_BIT_MASK(32); in xen_swiotlb_alloc_coherent() local
324 dma_mask = dma_alloc_coherent_mask(hwdev, flags); in xen_swiotlb_alloc_coherent()
332 if (((dev_addr + size - 1 <= dma_mask)) && in xen_swiotlb_alloc_coherent()
337 fls64(dma_mask), dma_handle) != 0) { in xen_swiotlb_alloc_coherent()
353 u64 dma_mask = DMA_BIT_MASK(32); in xen_swiotlb_free_coherent() local
356 dma_mask = hwdev->coherent_dma_mask; in xen_swiotlb_free_coherent()
362 if (((dev_addr + size - 1 > dma_mask)) || in xen_swiotlb_free_coherent()
673 xen_swiotlb_set_dma_mask(struct device *dev, u64 dma_mask) in xen_swiotlb_set_dma_mask() argument
675 if (!dev->dma_mask || !xen_swiotlb_dma_supported(dev, dma_mask)) in xen_swiotlb_set_dma_mask()
678 *dev->dma_mask = dma_mask; in xen_swiotlb_set_dma_mask()