Home
last modified time | relevance | path

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

/linux-6.1.9/arch/powerpc/kernel/
Diommu.c356 IOMMU_PAGE_MASK(tbl), direction, attrs); in iommu_alloc()
522 dma_addr |= (s->offset & ~IOMMU_PAGE_MASK(tbl)); in ppc_iommu_map_sg()
529 vaddr & IOMMU_PAGE_MASK(tbl), in ppc_iommu_map_sg()
590 vaddr = s->dma_address & IOMMU_PAGE_MASK(tbl); in ppc_iommu_map_sg()
875 dma_handle |= (uaddr & ~IOMMU_PAGE_MASK(tbl)); in iommu_map_page()
/linux-6.1.9/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-6.1.9/drivers/iommu/amd/
Damd_iommu_types.h403 #define IOMMU_PAGE_MASK (((1ULL << 52) - 1) & ~0xfffULL) macro
405 #define IOMMU_PTE_PAGE(pte) (iommu_phys_to_virt((pte) & IOMMU_PAGE_MASK))
/linux-6.1.9/arch/powerpc/include/asm/
Diommu.h28 #define IOMMU_PAGE_MASK(tblptr) (~((1 << (tblptr)->it_page_shift) - 1)) macro
/linux-6.1.9/arch/powerpc/platforms/powernv/
Dpci-ioda-tce.c155 BUG_ON(*hpa & ~IOMMU_PAGE_MASK(tbl)); in pnv_tce_xchg()