/drivers/xen/ |
D | swiotlb-xen.c | 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 [all …]
|
/drivers/gpu/host1x/ |
D | dev.c | 72 .dma_mask = DMA_BIT_MASK(32), 82 .dma_mask = DMA_BIT_MASK(32), 92 .dma_mask = DMA_BIT_MASK(34), 102 .dma_mask = DMA_BIT_MASK(34), 156 dma_set_mask_and_coherent(host->dev, host->info->dma_mask); in host1x_probe()
|
/drivers/pnp/ |
D | core.c | 154 dev->dma_mask = DMA_BIT_MASK(24); in pnp_alloc_dev() 158 dev->dev.dma_mask = &dev->dma_mask; in pnp_alloc_dev() 159 dev->dev.coherent_dma_mask = dev->dma_mask; in pnp_alloc_dev()
|
/drivers/usb/core/ |
D | buffer.c | 66 (!hcd->self.controller->dma_mask && in hcd_buffer_create() 130 (!bus->controller->dma_mask && in hcd_buffer_alloc() 157 (!bus->controller->dma_mask && in hcd_buffer_free()
|
D | usb.c | 455 dev->dev.dma_mask = bus->controller->dma_mask; in usb_alloc_dev() 808 if (controller->dma_mask) { 846 if (controller->dma_mask) { 880 if (controller->dma_mask) { 928 || !controller->dma_mask) 964 || !controller->dma_mask) 992 || !controller->dma_mask)
|
/drivers/of/ |
D | device.c | 104 if (!dev->dma_mask) in of_dma_configure() 105 dev->dma_mask = &dev->coherent_dma_mask; in of_dma_configure() 139 *dev->dma_mask = min((*dev->dma_mask), in of_dma_configure()
|
/drivers/misc/cxl/ |
D | vphb.c | 15 static int cxl_dma_set_mask(struct pci_dev *pdev, u64 dma_mask) in cxl_dma_set_mask() argument 17 if (dma_mask < DMA_BIT_MASK(64)) { in cxl_dma_set_mask() 22 *(pdev->dev.dma_mask) = dma_mask; in cxl_dma_set_mask()
|
/drivers/eisa/ |
D | pci_eisa.c | 57 pci_eisa_root.dma_mask = pdev->dma_mask; in pci_eisa_init()
|
D | eisa-bus.c | 207 edev->dma_mask = root->dma_mask; /* Default DMA mask */ in eisa_init_device() 211 edev->dev.dma_mask = &edev->dma_mask; in eisa_init_device() 212 edev->dev.coherent_dma_mask = edev->dma_mask; in eisa_init_device()
|
D | virtual_root.c | 42 .dma_mask = 0xffffffff,
|
/drivers/uwb/ |
D | umc-dev.c | 39 umc->dev.dma_mask = parent->dma_mask; in umc_device_create()
|
/drivers/platform/goldfish/ |
D | pdev_bus.c | 122 name_len + 1 + sizeof(*dev->pdev.dev.dma_mask), GFP_ATOMIC); in goldfish_new_pdev() 130 dev->pdev.dev.dma_mask = (void *)(dev->pdev.name + name_len + 1); in goldfish_new_pdev() 131 *dev->pdev.dev.dma_mask = ~0; in goldfish_new_pdev()
|
/drivers/acpi/ |
D | acpi_platform.c | 116 pdevinfo.dma_mask = DMA_BIT_MASK(32); in acpi_create_platform_device() 118 pdevinfo.dma_mask = 0; in acpi_create_platform_device()
|
/drivers/usb/gadget/udc/bdc/ |
D | bdc_pci.c | 93 bdc->dev.dma_mask = pci->dev.dma_mask; in bdc_pci_probe()
|
/drivers/mtd/nand/ |
D | denali_dt.c | 83 denali->dev->dma_mask = &denali_dma_mask; in denali_dt_probe() 85 denali->dev->dma_mask = NULL; in denali_dt_probe()
|
/drivers/usb/dwc3/ |
D | host.c | 79 xhci->dev.dma_mask = dwc->dev->dma_mask; in dwc3_host_init()
|
/drivers/base/ |
D | platform.c | 507 if (pdevinfo->dma_mask) { in platform_device_register_full() 514 pdev->dev.dma_mask = in platform_device_register_full() 515 kmalloc(sizeof(*pdev->dev.dma_mask), GFP_KERNEL); in platform_device_register_full() 516 if (!pdev->dev.dma_mask) in platform_device_register_full() 519 *pdev->dev.dma_mask = pdevinfo->dma_mask; in platform_device_register_full() 520 pdev->dev.coherent_dma_mask = pdevinfo->dma_mask; in platform_device_register_full() 544 kfree(pdev->dev.dma_mask); in platform_device_register_full()
|
/drivers/mfd/ |
D | mcp-core.c | 184 mcp->attached_device.dma_mask = parent->dma_mask; in mcp_host_alloc()
|
/drivers/ide/ |
D | ide-lib.c | 27 if (dev && dev->dma_mask) in ide_toggle_bounce() 28 addr = *dev->dma_mask; in ide_toggle_bounce()
|
/drivers/staging/greybus/ |
D | module.c | 111 module->dev.dma_mask = hd->dev.dma_mask; in gb_module_create()
|
D | bundle.c | 214 bundle->dev.dma_mask = intf->dev.dma_mask; in gb_bundle_create()
|
D | hd.c | 184 hd->dev.dma_mask = hd->dev.parent->dma_mask; in gb_hd_create()
|
D | gbphy.c | 248 gbphy_dev->dev.dma_mask = bundle->dev.dma_mask; in gb_gbphy_create_dev()
|
/drivers/iommu/ |
D | amd_iommu.c | 415 if (!dev || !dev->dma_mask) in check_device() 1539 unsigned int pages, u64 dma_mask) in dma_ops_alloc_iova() argument 1545 if (dma_mask > DMA_BIT_MASK(32)) in dma_ops_alloc_iova() 1550 pfn = alloc_iova_fast(&dma_dom->iovad, pages, IOVA_PFN(dma_mask)); in dma_ops_alloc_iova() 2379 u64 dma_mask) in __map_single() argument 2390 address = dma_ops_alloc_iova(dev, dma_dom, pages, dma_mask); in __map_single() 2474 u64 dma_mask; in map_page() local 2482 dma_mask = *dev->dma_mask; in map_page() 2485 return __map_single(dev, dma_dom, paddr, size, dir, dma_mask); in map_page() 2545 u64 dma_mask; in map_sg() local [all …]
|
/drivers/usb/host/ |
D | fsl-mph-dr-of.c | 101 if (!pdev->dev.dma_mask) in fsl_usb2_device_register() 102 pdev->dev.dma_mask = &ofdev->dev.coherent_dma_mask; in fsl_usb2_device_register()
|