Lines Matching refs:mask
112 static bool dma_go_direct(struct device *dev, dma_addr_t mask, in dma_go_direct() argument
119 return min_not_zero(mask, dev->bus_dma_limit) >= in dma_go_direct()
717 static int dma_supported(struct device *dev, u64 mask) in dma_supported() argument
726 return dma_direct_supported(dev, mask); in dma_supported()
729 return ops->dma_supported(dev, mask); in dma_supported()
751 void arch_dma_set_mask(struct device *dev, u64 mask);
753 #define arch_dma_set_mask(dev, mask) do { } while (0) argument
756 int dma_set_mask(struct device *dev, u64 mask) in dma_set_mask() argument
762 mask = (dma_addr_t)mask; in dma_set_mask()
764 if (!dev->dma_mask || !dma_supported(dev, mask)) in dma_set_mask()
767 arch_dma_set_mask(dev, mask); in dma_set_mask()
768 *dev->dma_mask = mask; in dma_set_mask()
773 int dma_set_coherent_mask(struct device *dev, u64 mask) in dma_set_coherent_mask() argument
779 mask = (dma_addr_t)mask; in dma_set_coherent_mask()
781 if (!dma_supported(dev, mask)) in dma_set_coherent_mask()
784 dev->coherent_dma_mask = mask; in dma_set_coherent_mask()