Home
last modified time | relevance | path

Searched refs:IOMMU_PAGE_MASK (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.4/arch/powerpc/kernel/
Diommu.c314 IOMMU_PAGE_MASK(tbl), direction, attrs); in iommu_alloc()
480 dma_addr |= (s->offset & ~IOMMU_PAGE_MASK(tbl)); in ppc_iommu_map_sg()
487 vaddr & IOMMU_PAGE_MASK(tbl), in ppc_iommu_map_sg()
549 vaddr = s->dma_address & IOMMU_PAGE_MASK(tbl); in ppc_iommu_map_sg()
827 dma_handle |= (uaddr & ~IOMMU_PAGE_MASK(tbl)); in iommu_map_page()
/Linux-v5.4/drivers/vfio/
Dvfio_iommu_spapr_tce.c509 unsigned long offset = tce & IOMMU_PAGE_MASK(tbl) & ~PAGE_MASK; in tce_iommu_build()
572 hpa |= tce & IOMMU_PAGE_MASK(tbl) & ~PAGE_MASK; in tce_iommu_build_v2()
884 if ((param.size & ~IOMMU_PAGE_MASK(tbl)) || in tce_iommu_ioctl()
885 (param.vaddr & ~IOMMU_PAGE_MASK(tbl))) in tce_iommu_ioctl()
951 if (param.size & ~IOMMU_PAGE_MASK(tbl)) in tce_iommu_ioctl()
/Linux-v5.4/drivers/iommu/
Damd_iommu_types.h363 #define IOMMU_PAGE_MASK (((1ULL << 52) - 1) & ~0xfffULL) macro
365 #define IOMMU_PTE_PAGE(pte) (iommu_phys_to_virt((pte) & IOMMU_PAGE_MASK))
/Linux-v5.4/arch/powerpc/include/asm/
Diommu.h28 #define IOMMU_PAGE_MASK(tblptr) (~((1 << (tblptr)->it_page_shift) - 1)) macro
/Linux-v5.4/arch/powerpc/platforms/powernv/
Dpci-ioda-tce.c128 BUG_ON(*hpa & ~IOMMU_PAGE_MASK(tbl)); in pnv_tce_xchg()