Home
last modified time | relevance | path

Searched refs:dma_mask (Results 1 – 25 of 136) sorted by relevance

123456

/drivers/xen/
Dswiotlb-xen.c60 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/
Ddev.c72 .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/
Dcore.c154 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/
Dbuffer.c66 (!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()
Dusb.c455 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/
Ddevice.c104 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/
Dvphb.c15 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/
Dpci_eisa.c57 pci_eisa_root.dma_mask = pdev->dma_mask; in pci_eisa_init()
Deisa-bus.c207 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()
Dvirtual_root.c42 .dma_mask = 0xffffffff,
/drivers/uwb/
Dumc-dev.c39 umc->dev.dma_mask = parent->dma_mask; in umc_device_create()
/drivers/platform/goldfish/
Dpdev_bus.c122 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/
Dacpi_platform.c116 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/
Dbdc_pci.c93 bdc->dev.dma_mask = pci->dev.dma_mask; in bdc_pci_probe()
/drivers/mtd/nand/
Ddenali_dt.c83 denali->dev->dma_mask = &denali_dma_mask; in denali_dt_probe()
85 denali->dev->dma_mask = NULL; in denali_dt_probe()
/drivers/usb/dwc3/
Dhost.c79 xhci->dev.dma_mask = dwc->dev->dma_mask; in dwc3_host_init()
/drivers/base/
Dplatform.c507 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/
Dmcp-core.c184 mcp->attached_device.dma_mask = parent->dma_mask; in mcp_host_alloc()
/drivers/ide/
Dide-lib.c27 if (dev && dev->dma_mask) in ide_toggle_bounce()
28 addr = *dev->dma_mask; in ide_toggle_bounce()
/drivers/staging/greybus/
Dmodule.c111 module->dev.dma_mask = hd->dev.dma_mask; in gb_module_create()
Dbundle.c214 bundle->dev.dma_mask = intf->dev.dma_mask; in gb_bundle_create()
Dhd.c184 hd->dev.dma_mask = hd->dev.parent->dma_mask; in gb_hd_create()
Dgbphy.c248 gbphy_dev->dev.dma_mask = bundle->dev.dma_mask; in gb_gbphy_create_dev()
/drivers/iommu/
Damd_iommu.c415 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/
Dfsl-mph-dr-of.c101 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()

123456