Home
last modified time | relevance | path

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

/linux-6.15/arch/powerpc/kernel/
H A Diommu.c367 IOMMU_PAGE_MASK(tbl), direction, attrs); in iommu_alloc()
533 dma_addr |= (vaddr & ~IOMMU_PAGE_MASK(tbl)); in ppc_iommu_map_sg()
540 vaddr & IOMMU_PAGE_MASK(tbl), in ppc_iommu_map_sg()
601 vaddr = s->dma_address & IOMMU_PAGE_MASK(tbl); in ppc_iommu_map_sg()
886 dma_handle |= (uaddr & ~IOMMU_PAGE_MASK(tbl)); in iommu_map_page()
/linux-6.15/drivers/vfio/
H A 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()
934 if ((param.size & ~IOMMU_PAGE_MASK(tbl)) || in tce_iommu_ioctl()
935 (param.vaddr & ~IOMMU_PAGE_MASK(tbl))) in tce_iommu_ioctl()
1001 if (param.size & ~IOMMU_PAGE_MASK(tbl)) in tce_iommu_ioctl()
/linux-6.15/drivers/iommu/amd/
H A Damd_iommu_types.h438 #define IOMMU_PAGE_MASK (((1ULL << 52) - 1) & ~0xfffULL) macro
441 #define IOMMU_PTE_PAGE(pte) (iommu_phys_to_virt((pte) & IOMMU_PAGE_MASK))
/linux-6.15/arch/powerpc/include/asm/
H A Diommu.h28 #define IOMMU_PAGE_MASK(tblptr) (~((1 << (tblptr)->it_page_shift) - 1)) macro
/linux-6.15/arch/powerpc/platforms/powernv/
H A Dpci-ioda-tce.c155 BUG_ON(*hpa & ~IOMMU_PAGE_MASK(tbl)); in pnv_tce_xchg()