Home
last modified time | relevance | path

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

12

/linux-4.19.296/include/trace/events/
Dswiotlb.h21 __field( u64, dma_mask )
29 __entry->dma_mask = (dev->dma_mask ? *dev->dma_mask : 0);
38 __entry->dma_mask,
/linux-4.19.296/include/linux/
Diommu-helper.h10 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()
Deisa.h41 u64 dma_mask; member
99 u64 dma_mask; /* from bridge device */ member
Ddma-direct.h27 if (!dev->dma_mask) in dma_capable()
30 return addr + size - 1 <= *dev->dma_mask; in dma_capable()
Ddma-mapping.h155 return dev->dma_mask != NULL && *dev->dma_mask != DMA_MASK_NONE; in is_device_dma_capable()
602 if (!dev->dma_mask || !dma_supported(dev, mask)) in dma_set_mask()
607 *dev->dma_mask = mask; in dma_set_mask()
614 if (dev && dev->dma_mask && *dev->dma_mask) in dma_get_mask()
615 return *dev->dma_mask; in dma_get_mask()
654 dev->dma_mask = &dev->coherent_dma_mask; in dma_coerce_mask_and_coherent()
705 return (*dev->dma_mask >> PAGE_SHIFT) + dev->dma_pfn_offset; in dma_max_pfn()
Dtc.h87 u64 dma_mask; /* DMA addressable range. */ member
Dplatform_device.h77 u64 dma_mask; member
111 .dma_mask = 0, in platform_device_register_resndata()
/linux-4.19.296/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,
/linux-4.19.296/drivers/uwb/
Dumc-dev.c39 umc->dev.dma_mask = parent->dma_mask; in umc_device_create()
/linux-4.19.296/drivers/misc/cxl/
Dvphb.c14 static int cxl_dma_set_mask(struct pci_dev *pdev, u64 dma_mask) in cxl_dma_set_mask() argument
16 if (dma_mask < DMA_BIT_MASK(64)) { in cxl_dma_set_mask()
21 *(pdev->dev.dma_mask) = dma_mask; in cxl_dma_set_mask()
/linux-4.19.296/drivers/xen/
Dswiotlb-xen.c294 u64 dma_mask = DMA_BIT_MASK(32); in xen_swiotlb_alloc_coherent() local
320 dma_mask = hwdev->coherent_dma_mask; in xen_swiotlb_alloc_coherent()
328 if (((dev_addr + size - 1 <= dma_mask)) && in xen_swiotlb_alloc_coherent()
333 fls64(dma_mask), dma_handle) != 0) { in xen_swiotlb_alloc_coherent()
348 u64 dma_mask = DMA_BIT_MASK(32); in xen_swiotlb_free_coherent() local
351 dma_mask = hwdev->coherent_dma_mask; in xen_swiotlb_free_coherent()
360 if (!WARN_ON((dev_addr + size - 1 > dma_mask) || in xen_swiotlb_free_coherent()
/linux-4.19.296/drivers/of/
Ddevice.c135 if (!dev->dma_mask) { in of_dma_configure()
137 dev->dma_mask = &dev->coherent_dma_mask; in of_dma_configure()
153 *dev->dma_mask &= mask; in of_dma_configure()
Dplatform.c189 if (!dev->dev.dma_mask) in of_platform_device_create_pdata()
190 dev->dev.dma_mask = &dev->dev.coherent_dma_mask; in of_platform_device_create_pdata()
246 dev->dev.dma_mask = &dev->dev.coherent_dma_mask; in of_amba_device_create()
/linux-4.19.296/drivers/base/
Dplatform.c539 if (pdevinfo->dma_mask) { in platform_device_register_full()
546 pdev->dev.dma_mask = in platform_device_register_full()
547 kmalloc(sizeof(*pdev->dev.dma_mask), GFP_KERNEL); in platform_device_register_full()
548 if (!pdev->dev.dma_mask) in platform_device_register_full()
551 kmemleak_ignore(pdev->dev.dma_mask); in platform_device_register_full()
553 *pdev->dev.dma_mask = pdevinfo->dma_mask; in platform_device_register_full()
554 pdev->dev.coherent_dma_mask = pdevinfo->dma_mask; in platform_device_register_full()
578 kfree(pdev->dev.dma_mask); in platform_device_register_full()
Disa.c146 isa_dev->dev.dma_mask = &isa_dev->dev.coherent_dma_mask; in isa_register_driver()
/linux-4.19.296/drivers/nubus/
Dbus.c97 board->dev.dma_mask = &board->dev.coherent_dma_mask; in nubus_device_register()
/linux-4.19.296/drivers/misc/
Dtifm_core.c271 sock->dev.dma_mask = fm->dev.parent->dma_mask; in tifm_alloc_device()
/linux-4.19.296/drivers/amba/
Dbus.c525 void *pdata, unsigned int periphid, u64 dma_mask, in amba_aphb_device_add() argument
535 dev->dev.coherent_dma_mask = dma_mask; in amba_aphb_device_add()
601 dev->dev.dma_mask = &dev->dev.coherent_dma_mask; in amba_device_initialize()
/linux-4.19.296/include/pcmcia/
Dds.h146 u64 dma_mask; member
/linux-4.19.296/drivers/bus/fsl-mc/
Dfsl-mc-bus.c617 mc_dev->dma_mask = FSL_MC_DEFAULT_DMA_MASK; in fsl_mc_device_add()
618 mc_dev->dev.dma_mask = &mc_dev->dma_mask; in fsl_mc_device_add()
/linux-4.19.296/drivers/misc/mic/bus/
Dvop_bus.c160 vdev->dev.dma_mask = &vdev->dev.coherent_dma_mask; in vop_register_device()
Dmic_bus.c162 mbdev->dev.dma_mask = &mbdev->dev.coherent_dma_mask; in mbus_register_device()
Dscif_bus.c168 sdev->dev.dma_mask = &sdev->dev.coherent_dma_mask; in scif_register_device()

12