/Linux-v5.4/drivers/misc/habanalabs/ |
D | pci.c | 313 int hl_pci_set_dma_mask(struct hl_device *hdev, u8 dma_mask) in hl_pci_set_dma_mask() argument 319 rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(dma_mask)); in hl_pci_set_dma_mask() 323 dma_mask, rc); in hl_pci_set_dma_mask() 325 dma_mask = hdev->dma_mask; in hl_pci_set_dma_mask() 327 rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(dma_mask)); in hl_pci_set_dma_mask() 331 dma_mask, rc); in hl_pci_set_dma_mask() 341 hdev->dma_mask = dma_mask; in hl_pci_set_dma_mask() 343 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(dma_mask)); in hl_pci_set_dma_mask() 347 dma_mask, rc); in hl_pci_set_dma_mask() 363 int hl_pci_init(struct hl_device *hdev, u8 dma_mask) in hl_pci_init() argument [all …]
|
/Linux-v5.4/include/trace/events/ |
D | swiotlb.h | 21 __field( u64, dma_mask ) 29 __entry->dma_mask = (dev->dma_mask ? *dev->dma_mask : 0); 38 __entry->dma_mask,
|
/Linux-v5.4/arch/arm/mach-pxa/ |
D | devices.c | 72 .dma_mask = &pxamci_dmamask, 116 .dma_mask = &udc_dma_mask, 127 .dma_mask = &udc_dma_mask, 177 .dma_mask = &fb_dma_mask, 409 .dma_mask = &pxaficp_dmamask, 472 .dma_mask = &pxa_ac97_dmamask, 547 .dma_mask = &pxa25x_ssp_dma_mask, 573 .dma_mask = &pxa25x_nssp_dma_mask, 600 .dma_mask = &pxa25x_assp_dma_mask, 628 .dma_mask = &pxa27x_dma_mask_camera, [all …]
|
/Linux-v5.4/arch/arm/mach-imx/devices/ |
D | platform-ipu-core.c | 79 pdev->dev.dma_mask = kmalloc(sizeof(*pdev->dev.dma_mask), GFP_KERNEL); in imx_alloc_mx3_camera() 80 if (!pdev->dev.dma_mask) in imx_alloc_mx3_camera() 83 *pdev->dev.dma_mask = DMA_BIT_MASK(32); in imx_alloc_mx3_camera() 96 kfree(pdev->dev.dma_mask); in imx_alloc_mx3_camera()
|
/Linux-v5.4/include/linux/ |
D | iommu-helper.h | 10 u64 dma_mask) in iommu_device_max_index() argument 12 if (size + offset > dma_mask) in iommu_device_max_index() 13 return dma_mask - offset + 1; in iommu_device_max_index()
|
D | eisa.h | 41 u64 dma_mask; member 99 u64 dma_mask; /* from bridge device */ member
|
/Linux-v5.4/arch/arm/plat-samsung/ |
D | devs.c | 80 .dma_mask = &samsung_device_dma_mask, 133 .dma_mask = &samsung_device_dma_mask, 155 .dma_mask = &samsung_device_dma_mask, 203 .dma_mask = &samsung_device_dma_mask, 233 .dma_mask = &samsung_device_dma_mask, 265 .dma_mask = &samsung_device_dma_mask, 295 .dma_mask = &samsung_device_dma_mask, 559 .dma_mask = &samsung_device_dma_mask, 626 .dma_mask = &samsung_device_dma_mask, 869 .dma_mask = &samsung_device_dma_mask, [all …]
|
/Linux-v5.4/arch/powerpc/kernel/ |
D | dma-mask.c | 7 void arch_dma_set_mask(struct device *dev, u64 dma_mask) in arch_dma_set_mask() argument 10 ppc_md.dma_set_mask(dev, dma_mask); in arch_dma_set_mask()
|
/Linux-v5.4/kernel/dma/ |
D | direct.c | 28 if (!dev->dma_mask) { in report_addr() 30 } else if (*dev->dma_mask >= DMA_BIT_MASK(32) || dev->bus_dma_mask) { in report_addr() 33 &dma_addr, size, *dev->dma_mask, dev->bus_dma_mask); in report_addr() 53 static gfp_t __dma_direct_optimal_gfp_mask(struct device *dev, u64 dma_mask, in __dma_direct_optimal_gfp_mask() argument 56 if (dev->bus_dma_mask && dev->bus_dma_mask < dma_mask) in __dma_direct_optimal_gfp_mask() 57 dma_mask = dev->bus_dma_mask; in __dma_direct_optimal_gfp_mask() 60 *phys_mask = __dma_to_phys(dev, dma_mask); in __dma_direct_optimal_gfp_mask() 62 *phys_mask = dma_to_phys(dev, dma_mask); in __dma_direct_optimal_gfp_mask()
|
/Linux-v5.4/arch/mips/include/asm/ |
D | dma-direct.h | 7 if (!dev->dma_mask) in dma_capable() 10 return addr + size - 1 <= *dev->dma_mask; in dma_capable()
|
/Linux-v5.4/drivers/gpu/host1x/ |
D | dev.c | 79 .dma_mask = DMA_BIT_MASK(32), 89 .dma_mask = DMA_BIT_MASK(32), 99 .dma_mask = DMA_BIT_MASK(34), 109 .dma_mask = DMA_BIT_MASK(34), 128 .dma_mask = DMA_BIT_MASK(40), 150 .dma_mask = DMA_BIT_MASK(40), 240 dma_set_mask_and_coherent(host->dev, host->info->dma_mask); in host1x_probe()
|
/Linux-v5.4/drivers/crypto/ccree/ |
D | cc_driver.c | 270 u64 dma_mask; in init_cc_resources() local 346 if (!plat_dev->dev.dma_mask) in init_cc_resources() 347 plat_dev->dev.dma_mask = &plat_dev->dev.coherent_dma_mask; in init_cc_resources() 349 dma_mask = DMA_BIT_MASK(DMA_BIT_MASK_LEN); in init_cc_resources() 350 while (dma_mask > 0x7fffffffUL) { in init_cc_resources() 351 if (dma_supported(&plat_dev->dev, dma_mask)) { in init_cc_resources() 352 rc = dma_set_coherent_mask(&plat_dev->dev, dma_mask); in init_cc_resources() 356 dma_mask >>= 1; in init_cc_resources() 360 dev_err(dev, "Failed in dma_set_mask, mask=%llx\n", dma_mask); in init_cc_resources()
|
/Linux-v5.4/arch/powerpc/include/asm/ |
D | dma-direct.h | 7 if (!dev->dma_mask) in dma_capable() 11 min_not_zero(*dev->dma_mask, dev->bus_dma_mask); in dma_capable()
|
/Linux-v5.4/drivers/pnp/ |
D | core.c | 155 dev->dma_mask = DMA_BIT_MASK(24); in pnp_alloc_dev() 159 dev->dev.dma_mask = &dev->dma_mask; in pnp_alloc_dev() 160 dev->dev.coherent_dma_mask = dev->dma_mask; in pnp_alloc_dev()
|
/Linux-v5.4/arch/arm/mach-iop32x/ |
D | adma.c | 119 .dma_mask = &iop3xx_adma_dmamask, 131 .dma_mask = &iop3xx_adma_dmamask, 143 .dma_mask = &iop3xx_adma_dmamask,
|
/Linux-v5.4/arch/arm/include/asm/ |
D | dma-direct.h | 21 if (!dev->dma_mask) in dma_capable() 24 mask = *dev->dma_mask; in dma_capable()
|
/Linux-v5.4/drivers/xen/ |
D | swiotlb-xen.c | 282 u64 dma_mask = DMA_BIT_MASK(32); in xen_swiotlb_alloc_coherent() local 308 dma_mask = hwdev->coherent_dma_mask; in xen_swiotlb_alloc_coherent() 316 if (((dev_addr + size - 1 <= dma_mask)) && in xen_swiotlb_alloc_coherent() 321 fls64(dma_mask), dma_handle) != 0) { in xen_swiotlb_alloc_coherent() 337 u64 dma_mask = DMA_BIT_MASK(32); in xen_swiotlb_free_coherent() local 340 dma_mask = hwdev->coherent_dma_mask; in xen_swiotlb_free_coherent() 349 if (!WARN_ON((dev_addr + size - 1 > dma_mask) || in xen_swiotlb_free_coherent()
|
/Linux-v5.4/arch/arm/mach-davinci/ |
D | dm355.c | 75 .dma_mask = &dm355_spi0_dma_mask, 293 .dma_mask = DMA_BIT_MASK(32), 390 .dma_mask = &vpfe_capture_dma_mask, 402 .dma_mask = &vpfe_capture_dma_mask, 421 .dma_mask = &vpfe_capture_dma_mask, 515 .dma_mask = &vpfe_capture_dma_mask, 531 .dma_mask = &vpfe_capture_dma_mask, 541 .dma_mask = &vpfe_capture_dma_mask,
|
D | dm644x.c | 280 .dma_mask = DMA_BIT_MASK(32), 363 .dma_mask = &dm644x_video_dma_mask, 374 .dma_mask = &dm644x_video_dma_mask, 395 .dma_mask = &dm644x_video_dma_mask, 460 .dma_mask = &dm644x_video_dma_mask, 475 .dma_mask = &dm644x_video_dma_mask, 485 .dma_mask = &dm644x_video_dma_mask,
|
/Linux-v5.4/drivers/eisa/ |
D | pci_eisa.c | 56 pci_eisa_root.dma_mask = pdev->dma_mask; in pci_eisa_init()
|
/Linux-v5.4/drivers/base/ |
D | platform.c | 337 if (!pdev->dma_mask) in setup_pdev_dma_masks() 338 pdev->dma_mask = DMA_BIT_MASK(32); in setup_pdev_dma_masks() 339 if (!pdev->dev.dma_mask) in setup_pdev_dma_masks() 340 pdev->dev.dma_mask = &pdev->dma_mask; in setup_pdev_dma_masks() 634 if (pdevinfo->dma_mask) { in platform_device_register_full() 641 pdev->dev.dma_mask = in platform_device_register_full() 642 kmalloc(sizeof(*pdev->dev.dma_mask), GFP_KERNEL); in platform_device_register_full() 643 if (!pdev->dev.dma_mask) in platform_device_register_full() 646 kmemleak_ignore(pdev->dev.dma_mask); in platform_device_register_full() 648 *pdev->dev.dma_mask = pdevinfo->dma_mask; in platform_device_register_full() [all …]
|
/Linux-v5.4/arch/sparc/kernel/ |
D | pci_sabre.c | 463 u32 upa_portid, dma_mask; in sabre_probe() local 542 dma_mask = vdma[0]; in sabre_probe() 545 dma_mask |= 0x1fffffff; in sabre_probe() 549 dma_mask |= 0x3fffffff; in sabre_probe() 554 dma_mask |= 0x7fffffff; in sabre_probe() 562 err = psycho_iommu_init(pbm, tsbsize, vdma[0], dma_mask, SABRE_WRSYNC); in sabre_probe()
|
/Linux-v5.4/arch/mips/pnx833x/common/ |
D | platform.c | 84 .dma_mask = &uart_dmamask, 111 .dma_mask = &ehci_dmamask, 139 .dma_mask = ðernet_dmamask,
|
/Linux-v5.4/arch/arm/mach-ep93xx/ |
D | dma.c | 72 .dma_mask = &ep93xx_dma_m2p_mask, 103 .dma_mask = &ep93xx_dma_m2m_mask,
|
/Linux-v5.4/drivers/staging/uwb/ |
D | umc-dev.c | 38 umc->dev.dma_mask = parent->dma_mask; in umc_device_create()
|