/arch/openrisc/include/asm/ |
D | dma-mapping.h | 90 static inline int dma_supported(struct device *dev, u64 dma_mask) in dma_supported() argument 93 return dma_mask == DMA_BIT_MASK(32); in dma_supported() 101 static inline int dma_set_mask(struct device *dev, u64 dma_mask) in dma_set_mask() argument 103 if (!dev->dma_mask || !dma_supported(dev, dma_mask)) in dma_set_mask() 106 *dev->dma_mask = dma_mask; in dma_set_mask()
|
/arch/x86/include/asm/ |
D | dma-mapping.h | 79 if (!dev->dma_mask) in dma_capable() 82 return addr + size - 1 <= *dev->dma_mask; in dma_capable() 106 unsigned long dma_mask = 0; in dma_alloc_coherent_mask() local 108 dma_mask = dev->coherent_dma_mask; in dma_alloc_coherent_mask() 109 if (!dma_mask) in dma_alloc_coherent_mask() 110 dma_mask = (gfp & GFP_DMA) ? DMA_BIT_MASK(24) : DMA_BIT_MASK(32); in dma_alloc_coherent_mask() 112 return dma_mask; in dma_alloc_coherent_mask() 117 unsigned long dma_mask = dma_alloc_coherent_mask(dev, gfp); in dma_alloc_coherent_gfp_flags() local 119 if (dma_mask <= DMA_BIT_MASK(24)) in dma_alloc_coherent_gfp_flags() 122 if (dma_mask <= DMA_BIT_MASK(32) && !(gfp & GFP_DMA)) in dma_alloc_coherent_gfp_flags()
|
/arch/unicore32/include/asm/ |
D | dma-mapping.h | 57 if (dev && dev->dma_mask) in dma_capable() 58 return addr + size - 1 <= *dev->dma_mask; in dma_capable() 75 static inline int dma_set_mask(struct device *dev, u64 dma_mask) in dma_set_mask() argument 77 if (!dev->dma_mask || !dma_supported(dev, dma_mask)) in dma_set_mask() 80 *dev->dma_mask = dma_mask; in dma_set_mask()
|
/arch/x86/kernel/ |
D | pci-dma.c | 54 .dma_mask = &x86_dma_fallback_dev.coherent_dma_mask, 63 if (!dev->dma_mask || !dma_supported(dev, mask)) in dma_set_mask() 66 *dev->dma_mask = mask; in dma_set_mask() 93 unsigned long dma_mask; in dma_generic_alloc_coherent() local 98 dma_mask = dma_alloc_coherent_mask(dev, flag); in dma_generic_alloc_coherent() 106 if (page && page_to_phys(page) + size > dma_mask) { in dma_generic_alloc_coherent() 118 if (addr + size > dma_mask) { in dma_generic_alloc_coherent() 121 if (dma_mask < DMA_BIT_MASK(32) && !(flag & GFP_DMA)) { in dma_generic_alloc_coherent()
|
/arch/microblaze/include/asm/ |
D | dma-mapping.h | 59 static inline int dma_set_mask(struct device *dev, u64 dma_mask) in dma_set_mask() argument 66 return ops->set_dma_mask(dev, dma_mask); in dma_set_mask() 67 if (!dev->dma_mask || !dma_supported(dev, dma_mask)) in dma_set_mask() 69 *dev->dma_mask = dma_mask; in dma_set_mask()
|
/arch/powerpc/kernel/ |
D | dma.c | 235 int __dma_set_mask(struct device *dev, u64 dma_mask) in __dma_set_mask() argument 240 return dma_ops->set_dma_mask(dev, dma_mask); in __dma_set_mask() 241 if (!dev->dma_mask || !dma_supported(dev, dma_mask)) in __dma_set_mask() 243 *dev->dma_mask = dma_mask; in __dma_set_mask() 247 int dma_set_mask(struct device *dev, u64 dma_mask) in dma_set_mask() argument 250 return ppc_md.dma_set_mask(dev, dma_mask); in dma_set_mask() 251 return __dma_set_mask(dev, dma_mask); in dma_set_mask()
|
/arch/arm/mach-imx/devices/ |
D | platform-ipu-core.c | 82 pdev->dev.dma_mask = kmalloc(sizeof(*pdev->dev.dma_mask), GFP_KERNEL); in imx_alloc_mx3_camera() 83 if (!pdev->dev.dma_mask) in imx_alloc_mx3_camera() 86 *pdev->dev.dma_mask = DMA_BIT_MASK(32); in imx_alloc_mx3_camera() 99 kfree(pdev->dev.dma_mask); in imx_alloc_mx3_camera()
|
/arch/arm/mach-pxa/ |
D | devices.c | 78 .dma_mask = &pxamci_dmamask, 122 .dma_mask = &udc_dma_mask, 133 .dma_mask = &udc_dma_mask, 183 .dma_mask = &fb_dma_mask, 405 .dma_mask = &pxaficp_dmamask, 482 .dma_mask = &pxa_ac97_dmamask, 557 .dma_mask = &pxa25x_ssp_dma_mask, 595 .dma_mask = &pxa25x_nssp_dma_mask, 634 .dma_mask = &pxa25x_assp_dma_mask, 662 .dma_mask = &pxa27x_dma_mask_camera, [all …]
|
/arch/c6x/include/asm/ |
D | dma-mapping.h | 20 static inline int dma_set_mask(struct device *dev, u64 dma_mask) in dma_set_mask() argument 22 if (!dev->dma_mask || !dma_supported(dev, dma_mask)) in dma_set_mask() 25 *dev->dma_mask = dma_mask; in dma_set_mask()
|
/arch/arc/include/asm/ |
D | dma-mapping.h | 200 static inline int dma_supported(struct device *dev, u64 dma_mask) in dma_supported() argument 203 return dma_mask == DMA_BIT_MASK(32); in dma_supported() 211 static inline int dma_set_mask(struct device *dev, u64 dma_mask) in dma_set_mask() argument 213 if (!dev->dma_mask || !dma_supported(dev, dma_mask)) in dma_set_mask() 216 *dev->dma_mask = dma_mask; in dma_set_mask()
|
/arch/powerpc/include/asm/ |
D | dma-mapping.h | 66 if (dev->dma_mask && *dev->dma_mask) in device_to_mask() 67 return *dev->dma_mask; in device_to_mask() 136 extern int dma_set_mask(struct device *dev, u64 dma_mask); 137 extern int __dma_set_mask(struct device *dev, u64 dma_mask); 197 if (!dev->dma_mask) in dma_capable() 200 return addr + size - 1 <= *dev->dma_mask; in dma_capable()
|
/arch/powerpc/platforms/powernv/ |
D | powernv.h | 15 extern int pnv_pci_dma_set_mask(struct pci_dev *pdev, u64 dma_mask); 21 static inline int pnv_pci_dma_set_mask(struct pci_dev *pdev, u64 dma_mask) in pnv_pci_dma_set_mask() argument
|
/arch/ia64/hp/common/ |
D | hwsw_iommu.c | 33 return dev && dev->dma_mask && in use_swiotlb() 34 !sba_dma_ops.dma_supported(dev, *dev->dma_mask); in use_swiotlb()
|
/arch/ia64/include/asm/ |
D | dma-mapping.h | 74 if (!dev->dma_mask || !dma_supported(dev, mask)) in dma_set_mask() 76 *dev->dma_mask = mask; in dma_set_mask() 82 if (!dev->dma_mask) in dma_capable() 85 return addr + size - 1 <= *dev->dma_mask; in dma_capable()
|
/arch/mips/include/asm/ |
D | dma-mapping.h | 25 if (!dev->dma_mask) in dma_capable() 28 return addr + size <= *dev->dma_mask; in dma_capable() 54 if(!dev->dma_mask || !dma_supported(dev, mask)) in dma_set_mask() 60 *dev->dma_mask = mask; in dma_set_mask()
|
/arch/hexagon/kernel/ |
D | dma.c | 49 if (!dev->dma_mask || !dma_supported(dev, mask)) in dma_set_mask() 52 *dev->dma_mask = mask; in dma_set_mask() 106 if (hwdev && hwdev->dma_mask && !dma_capable(hwdev, bus, size)) { in check_addr() 107 if (*hwdev->dma_mask >= DMA_BIT_MASK(32)) in check_addr() 111 (long long)*hwdev->dma_mask); in check_addr()
|
/arch/arm/plat-samsung/ |
D | devs.c | 92 .dma_mask = &samsung_device_dma_mask, 146 .dma_mask = &samsung_device_dma_mask, 168 .dma_mask = &samsung_device_dma_mask, 216 .dma_mask = &samsung_device_dma_mask, 246 .dma_mask = &samsung_device_dma_mask, 278 .dma_mask = &samsung_device_dma_mask, 308 .dma_mask = &samsung_device_dma_mask, 580 .dma_mask = &samsung_device_dma_mask, 648 .dma_mask = &samsung_device_dma_mask, 901 .dma_mask = &samsung_device_dma_mask, [all …]
|
/arch/avr32/include/asm/ |
D | dma-mapping.h | 26 static inline int dma_set_mask(struct device *dev, u64 dma_mask) in dma_set_mask() argument 28 if (!dev->dma_mask || !dma_supported(dev, dma_mask)) in dma_set_mask() 31 *dev->dma_mask = dma_mask; in dma_set_mask()
|
/arch/blackfin/include/asm/ |
D | dma-mapping.h | 26 dma_set_mask(struct device *dev, u64 dma_mask) in dma_set_mask() argument 28 if (!dev->dma_mask || !dma_supported(dev, dma_mask)) in dma_set_mask() 31 *dev->dma_mask = dma_mask; in dma_set_mask()
|
/arch/arm64/include/asm/ |
D | dma-mapping.h | 89 if (!dev->dma_mask || !dma_supported(dev, mask)) in dma_set_mask() 91 *dev->dma_mask = mask; in dma_set_mask() 98 if (!dev->dma_mask) in dma_capable() 101 return addr + size - 1 <= *dev->dma_mask; in dma_capable()
|
/arch/arm/mach-ks8695/ |
D | devices.c | 76 .dma_mask = ð_dmamask, 114 .dma_mask = ð_dmamask, 146 .dma_mask = ð_dmamask,
|
/arch/tile/include/asm/ |
D | dma-mapping.h | 71 if (!dev->dma_mask) in dma_capable() 74 return addr + size - 1 <= *dev->dma_mask; in dma_capable() 111 if (!dev->dma_mask || !dma_supported(dev, mask)) in dma_set_mask() 114 *dev->dma_mask = mask; in dma_set_mask()
|
/arch/powerpc/sysdev/ |
D | dart_iommu.c | 348 static int dart_dma_set_mask(struct device *dev, u64 dma_mask) in dart_dma_set_mask() argument 350 if (!dev->dma_mask || !dma_supported(dev, dma_mask)) in dart_dma_set_mask() 359 if (dart_device_on_pcie(dev) && dma_mask >= DMA_BIT_MASK(40)) { in dart_dma_set_mask() 368 *dev->dma_mask = dma_mask; in dart_dma_set_mask()
|
/arch/arm/mach-iop13xx/ |
D | tpmi.c | 162 .dma_mask = &iop13xx_tpmi_mask, 173 .dma_mask = &iop13xx_tpmi_mask, 184 .dma_mask = &iop13xx_tpmi_mask, 195 .dma_mask = &iop13xx_tpmi_mask,
|
/arch/arm/mach-at91/ |
D | at91sam9261_devices.c | 59 .dma_mask = &ohci_dmamask, 162 .dma_mask = &mmc_dmamask, 374 .dma_mask = &spi_dmamask, 400 .dma_mask = &spi_dmamask, 494 .dma_mask = &lcdc_dmamask, 717 .dma_mask = &ssc0_dmamask, 759 .dma_mask = &ssc1_dmamask, 801 .dma_mask = &ssc2_dmamask, 892 .dma_mask = &dbgu_dmamask, 930 .dma_mask = &uart0_dmamask, [all …]
|