Home
last modified time | relevance | path

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

1234567

/drivers/gpu/host1x/
Ddev.c79 .dma_mask = DMA_BIT_MASK(32),
93 .dma_mask = DMA_BIT_MASK(32),
107 .dma_mask = DMA_BIT_MASK(34),
121 .dma_mask = DMA_BIT_MASK(34),
144 .dma_mask = DMA_BIT_MASK(40),
167 .dma_mask = DMA_BIT_MASK(40),
230 if (host1x->info->dma_mask <= DMA_BIT_MASK(32)) { in host1x_wants_iommu()
290 start = geometry->aperture_start & host->info->dma_mask; in host1x_iommu_attach()
291 end = geometry->aperture_end & host->info->dma_mask; in host1x_iommu_attach()
316 u64 mask = host->info->dma_mask; in host1x_iommu_init()
[all …]
/drivers/crypto/ccree/
Dcc_driver.c272 u64 dma_mask; in init_cc_resources() local
331 if (!dev->dma_mask) in init_cc_resources()
332 dev->dma_mask = &dev->coherent_dma_mask; in init_cc_resources()
334 dma_mask = DMA_BIT_MASK(DMA_BIT_MASK_LEN); in init_cc_resources()
335 while (dma_mask > 0x7fffffffUL) { in init_cc_resources()
336 if (dma_supported(dev, dma_mask)) { in init_cc_resources()
337 rc = dma_set_coherent_mask(dev, dma_mask); in init_cc_resources()
341 dma_mask >>= 1; in init_cc_resources()
345 dev_err(dev, "Failed in dma_set_mask, mask=%llx\n", dma_mask); in init_cc_resources()
/drivers/pnp/
Dcore.c155 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()
/drivers/xen/
Dswiotlb-xen.c283 u64 dma_mask = DMA_BIT_MASK(32); in xen_swiotlb_alloc_coherent() local
309 dma_mask = hwdev->coherent_dma_mask; in xen_swiotlb_alloc_coherent()
317 if (((dev_addr + size - 1 <= dma_mask)) && in xen_swiotlb_alloc_coherent()
322 fls64(dma_mask), dma_handle) != 0) { in xen_swiotlb_alloc_coherent()
339 u64 dma_mask = DMA_BIT_MASK(32); in xen_swiotlb_free_coherent() local
343 dma_mask = hwdev->coherent_dma_mask; in xen_swiotlb_free_coherent()
357 if (!WARN_ON((dev_addr + size - 1 > dma_mask) || in xen_swiotlb_free_coherent()
/drivers/misc/habanalabs/common/
Dpci.c289 if ((hdev->power9_64bit_dma_enable) && (hdev->dma_mask == 64)) in hl_pci_set_outbound_region()
325 rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(hdev->dma_mask)); in hl_pci_set_dma_mask()
329 hdev->dma_mask, rc); in hl_pci_set_dma_mask()
333 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(hdev->dma_mask)); in hl_pci_set_dma_mask()
337 hdev->dma_mask, rc); in hl_pci_set_dma_mask()
/drivers/eisa/
Dpci_eisa.c56 pci_eisa_root.dma_mask = pdev->dma_mask; in pci_eisa_init()
Deisa-bus.c206 edev->dma_mask = root->dma_mask; /* Default DMA mask */ in eisa_init_device()
210 edev->dev.dma_mask = &edev->dma_mask; in eisa_init_device()
211 edev->dev.coherent_dma_mask = edev->dma_mask; in eisa_init_device()
/drivers/hwtracing/coresight/
Dcoresight-tmc-core.c387 u32 dma_mask = 0; in tmc_etr_setup_caps() local
401 dma_mask = ((devid >> TMC_DEVID_AXIAW_SHIFT) & in tmc_etr_setup_caps()
408 switch (dma_mask) { in tmc_etr_setup_caps()
414 dev_info(parent, "Detected dma mask %dbits\n", dma_mask); in tmc_etr_setup_caps()
417 dma_mask = 40; in tmc_etr_setup_caps()
420 rc = dma_set_mask_and_coherent(parent, DMA_BIT_MASK(dma_mask)); in tmc_etr_setup_caps()
Dcoresight-catu.c506 u32 dma_mask; in catu_probe() local
531 dma_mask = readl_relaxed(base + CORESIGHT_DEVID) & 0x3f; in catu_probe()
532 switch (dma_mask) { in catu_probe()
543 dma_mask = 40; in catu_probe()
545 ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(dma_mask)); in catu_probe()
/drivers/media/platform/qcom/venus/
Dcore.c269 ret = dma_set_mask_and_coherent(dev, core->res->dma_mask); in venus_probe()
485 .dma_mask = 0xddc00000 - 1,
518 .dma_mask = 0xddc00000 - 1,
575 .dma_mask = 0xe0000000 - 1,
602 .dma_mask = 0xe0000000 - 1,
651 .dma_mask = 0xe0000000 - 1,
/drivers/tc/
Dtc.c97 tdev->dma_mask = DMA_BIT_MASK(34); in tc_bus_add_devices()
98 tdev->dev.dma_mask = &tdev->dma_mask; in tc_bus_add_devices()
/drivers/usb/gadget/udc/bdc/
Dbdc_pci.c88 bdc->dev.dma_mask = pci->dev.dma_mask; in bdc_pci_probe()
/drivers/net/ethernet/cadence/
Dmacb_pci.c86 plat_info.dma_mask = pdev->dma_mask; in macb_probe()
/drivers/of/
Ddevice.c147 if (!dev->dma_mask) { in of_dma_configure_id()
149 dev->dma_mask = &dev->coherent_dma_mask; in of_dma_configure_id()
164 *dev->dma_mask &= mask; in of_dma_configure_id()
/drivers/bus/mhi/host/
Dpci_generic.c170 unsigned int bar_num, u64 dma_mask) in mhi_pci_claim() argument
192 err = pci_set_dma_mask(pdev, dma_mask); in mhi_pci_claim()
198 err = pci_set_consistent_dma_mask(pdev, dma_mask); in mhi_pci_claim()
/drivers/acpi/
Dacpi_platform.c150 pdevinfo.dma_mask = DMA_BIT_MASK(32); in acpi_create_platform_device()
152 pdevinfo.dma_mask = 0; in acpi_create_platform_device()
/drivers/media/platform/davinci/
Dvpif.c473 pdev_capture->dev.dma_mask = pdev->dev.dma_mask; in vpif_probe()
488 pdev_display->dev.dma_mask = pdev->dev.dma_mask; in vpif_probe()
/drivers/soundwire/
Dmaster.c146 md->dev.dma_mask = parent->dma_mask; in sdw_master_device_add()
/drivers/mfd/
Dmcp-core.c181 mcp->attached_device.dma_mask = parent->dma_mask; in mcp_host_alloc()
/drivers/mmc/host/
Dsdhci-tegra.c129 u64 dma_mask; member
1341 if (soc->dma_mask) in tegra_sdhci_set_dma_mask()
1342 return dma_set_mask_and_coherent(dev, soc->dma_mask); in tegra_sdhci_set_dma_mask()
1372 .dma_mask = DMA_BIT_MASK(32),
1399 .dma_mask = DMA_BIT_MASK(32),
1434 .dma_mask = DMA_BIT_MASK(32),
1450 .dma_mask = DMA_BIT_MASK(34),
1480 .dma_mask = DMA_BIT_MASK(34),
1518 .dma_mask = DMA_BIT_MASK(40),
1532 .dma_mask = DMA_BIT_MASK(39),
/drivers/base/
Dplatform.c413 if (!pdev->dev.dma_mask) { in setup_pdev_dma_masks()
415 pdev->dev.dma_mask = &pdev->platform_dma_mask; in setup_pdev_dma_masks()
711 if (pdevinfo->dma_mask) { in platform_device_register_full()
712 pdev->platform_dma_mask = pdevinfo->dma_mask; in platform_device_register_full()
713 pdev->dev.dma_mask = &pdev->platform_dma_mask; in platform_device_register_full()
714 pdev->dev.coherent_dma_mask = pdevinfo->dma_mask; in platform_device_register_full()
/drivers/greybus/
Dbundle.c213 bundle->dev.dma_mask = intf->dev.dma_mask; in gb_bundle_create()
Dmodule.c109 module->dev.dma_mask = hd->dev.dma_mask; in gb_module_create()
Dhd.c183 hd->dev.dma_mask = hd->dev.parent->dma_mask; in gb_hd_create()
/drivers/usb/cdns3/
Dcdns3-pci-wrap.c162 plat_info.dma_mask = pdev->dma_mask; in cdns3_pci_probe()

1234567