it_page_shift 27 arch/powerpc/include/asm/iommu.h #define IOMMU_PAGE_SIZE(tblptr) (ASM_CONST(1) << (tblptr)->it_page_shift) it_page_shift 28 arch/powerpc/include/asm/iommu.h #define IOMMU_PAGE_MASK(tblptr) (~((1 << (tblptr)->it_page_shift) - 1)) it_page_shift 109 arch/powerpc/include/asm/iommu.h unsigned long it_page_shift;/* table iommu page size */ it_page_shift 128 arch/powerpc/include/asm/iommu.h return __ilog2((size - 1) >> tbl->it_page_shift) + 1; it_page_shift 303 arch/powerpc/include/asm/iommu.h (iommu_tce_check_ioba((tbl)->it_page_shift, \ it_page_shift 307 arch/powerpc/include/asm/iommu.h (iommu_tce_check_ioba((tbl)->it_page_shift, \ it_page_shift 310 arch/powerpc/include/asm/iommu.h iommu_tce_check_gpa((tbl)->it_page_shift, (gpa))) it_page_shift 136 arch/powerpc/kernel/dma-iommu.c if (tbl->it_offset > (mask >> tbl->it_page_shift)) { it_page_shift 139 arch/powerpc/kernel/dma-iommu.c mask, tbl->it_offset << tbl->it_page_shift); it_page_shift 241 arch/powerpc/kernel/iommu.c 1 << tbl->it_page_shift); it_page_shift 243 arch/powerpc/kernel/iommu.c boundary_size = ALIGN(1UL << 32, 1 << tbl->it_page_shift); it_page_shift 247 arch/powerpc/kernel/iommu.c boundary_size >> tbl->it_page_shift, align_mask); it_page_shift 309 arch/powerpc/kernel/iommu.c ret = entry << tbl->it_page_shift; /* Set the return dma address */ it_page_shift 341 arch/powerpc/kernel/iommu.c entry = dma_addr >> tbl->it_page_shift; it_page_shift 390 arch/powerpc/kernel/iommu.c entry = dma_addr >> tbl->it_page_shift; it_page_shift 459 arch/powerpc/kernel/iommu.c if (tbl->it_page_shift < PAGE_SHIFT && slen >= PAGE_SIZE && it_page_shift 461 arch/powerpc/kernel/iommu.c align = PAGE_SHIFT - tbl->it_page_shift; it_page_shift 463 arch/powerpc/kernel/iommu.c mask >> tbl->it_page_shift, align); it_page_shift 479 arch/powerpc/kernel/iommu.c dma_addr = entry << tbl->it_page_shift; it_page_shift 705 arch/powerpc/kernel/iommu.c if ((tbl->it_size << tbl->it_page_shift) >= (1UL * 1024 * 1024 * 1024)) it_page_shift 812 arch/powerpc/kernel/iommu.c if (tbl->it_page_shift < PAGE_SHIFT && size >= PAGE_SIZE && it_page_shift 814 arch/powerpc/kernel/iommu.c align = PAGE_SHIFT - tbl->it_page_shift; it_page_shift 817 arch/powerpc/kernel/iommu.c mask >> tbl->it_page_shift, align, it_page_shift 887 arch/powerpc/kernel/iommu.c nio_pages = size >> tbl->it_page_shift; it_page_shift 890 arch/powerpc/kernel/iommu.c mask >> tbl->it_page_shift, io_order, 0); it_page_shift 906 arch/powerpc/kernel/iommu.c nio_pages = size >> tbl->it_page_shift; it_page_shift 1027 arch/powerpc/kernel/iommu.c !mm_iommu_is_devmem(mm, *hpa, tbl->it_page_shift, it_page_shift 131 arch/powerpc/kvm/book3s_64_vio.c if ((tbltmp->it_page_shift <= stt->page_shift) && it_page_shift 132 arch/powerpc/kvm/book3s_64_vio.c (tbltmp->it_offset << tbltmp->it_page_shift == it_page_shift 134 arch/powerpc/kvm/book3s_64_vio.c (tbltmp->it_size << tbltmp->it_page_shift >= it_page_shift 370 arch/powerpc/kvm/book3s_64_vio.c long shift = stit->tbl->it_page_shift; it_page_shift 426 arch/powerpc/kvm/book3s_64_vio.c const unsigned long pgsize = 1ULL << tbl->it_page_shift; it_page_shift 469 arch/powerpc/kvm/book3s_64_vio.c unsigned long subpages = 1ULL << (stt->page_shift - tbl->it_page_shift); it_page_shift 494 arch/powerpc/kvm/book3s_64_vio.c mem = mm_iommu_lookup(kvm->mm, ua, 1ULL << tbl->it_page_shift); it_page_shift 499 arch/powerpc/kvm/book3s_64_vio.c if (WARN_ON_ONCE(mm_iommu_ua_to_hpa(mem, ua, tbl->it_page_shift, &hpa))) it_page_shift 525 arch/powerpc/kvm/book3s_64_vio.c unsigned long subpages = 1ULL << (stt->page_shift - tbl->it_page_shift); it_page_shift 126 arch/powerpc/kvm/book3s_64_vio_hv.c long shift = stit->tbl->it_page_shift; it_page_shift 264 arch/powerpc/kvm/book3s_64_vio_hv.c const unsigned long pgsize = 1ULL << tbl->it_page_shift; it_page_shift 311 arch/powerpc/kvm/book3s_64_vio_hv.c unsigned long subpages = 1ULL << (stt->page_shift - tbl->it_page_shift); it_page_shift 336 arch/powerpc/kvm/book3s_64_vio_hv.c mem = mm_iommu_lookup_rm(kvm->mm, ua, 1ULL << tbl->it_page_shift); it_page_shift 340 arch/powerpc/kvm/book3s_64_vio_hv.c if (WARN_ON_ONCE_RM(mm_iommu_ua_to_hpa_rm(mem, ua, tbl->it_page_shift, it_page_shift 371 arch/powerpc/kvm/book3s_64_vio_hv.c unsigned long subpages = 1ULL << (stt->page_shift - tbl->it_page_shift); it_page_shift 188 arch/powerpc/platforms/cell/iommu.c for (i = 0; i < npages; i++, uaddr += (1 << tbl->it_page_shift)) it_page_shift 483 arch/powerpc/platforms/cell/iommu.c window->table.it_page_shift = IOMMU_PAGE_SHIFT_4K; it_page_shift 485 arch/powerpc/platforms/cell/iommu.c (offset >> window->table.it_page_shift) + pte_offset; it_page_shift 486 arch/powerpc/platforms/cell/iommu.c window->table.it_size = size >> window->table.it_page_shift; it_page_shift 135 arch/powerpc/platforms/pasemi/iommu.c iommu_table_iobmap.it_page_shift = IOBMAP_PAGE_SHIFT; it_page_shift 139 arch/powerpc/platforms/pasemi/iommu.c 0x80000000 >> iommu_table_iobmap.it_page_shift; it_page_shift 136 arch/powerpc/platforms/powernv/npu-dma.c const __u64 start_addr = tbl->it_offset << tbl->it_page_shift; it_page_shift 137 arch/powerpc/platforms/powernv/npu-dma.c const __u64 win_size = tbl->it_size << tbl->it_page_shift; it_page_shift 26 arch/powerpc/platforms/powernv/pci-ioda-tce.c tbl->it_page_shift = page_shift; it_page_shift 27 arch/powerpc/platforms/powernv/pci-ioda-tce.c tbl->it_offset = dma_offset >> tbl->it_page_shift; it_page_shift 101 arch/powerpc/platforms/powernv/pci-ioda-tce.c u64 rpn = __pa(uaddr) >> tbl->it_page_shift; it_page_shift 109 arch/powerpc/platforms/powernv/pci-ioda-tce.c ((rpn + i) << tbl->it_page_shift); it_page_shift 2054 arch/powerpc/platforms/powernv/pci-ioda.c unsigned int shift = tbl->it_page_shift; it_page_shift 2277 arch/powerpc/platforms/powernv/pci-ioda.c pe->table_group.tce32_start = tbl->it_offset << tbl->it_page_shift; it_page_shift 2278 arch/powerpc/platforms/powernv/pci-ioda.c pe->table_group.tce32_size = tbl->it_size << tbl->it_page_shift; it_page_shift 2304 arch/powerpc/platforms/powernv/pci-ioda.c const __u64 start_addr = tbl->it_offset << tbl->it_page_shift; it_page_shift 2305 arch/powerpc/platforms/powernv/pci-ioda.c const __u64 win_size = tbl->it_size << tbl->it_page_shift; it_page_shift 2446 arch/powerpc/platforms/powernv/pci-ioda.c res_start = pe->phb->ioda.m32_pci_base >> tbl->it_page_shift; it_page_shift 2447 arch/powerpc/platforms/powernv/pci-ioda.c res_end = min(window_size, SZ_4G) >> tbl->it_page_shift; it_page_shift 197 arch/powerpc/platforms/pseries/iommu.c tbl->it_page_shift, npages, uaddr, it_page_shift 214 arch/powerpc/platforms/pseries/iommu.c tbl->it_page_shift, it_page_shift 504 arch/powerpc/platforms/pseries/iommu.c tbl->it_page_shift = IOMMU_PAGE_SHIFT_4K; it_page_shift 507 arch/powerpc/platforms/pseries/iommu.c tbl->it_offset = phb->dma_window_base_cur >> tbl->it_page_shift; it_page_shift 518 arch/powerpc/platforms/pseries/iommu.c tbl->it_size = phb->dma_window_size >> tbl->it_page_shift; it_page_shift 541 arch/powerpc/platforms/pseries/iommu.c tbl->it_page_shift = IOMMU_PAGE_SHIFT_4K; it_page_shift 545 arch/powerpc/platforms/pseries/iommu.c tbl->it_offset = offset >> tbl->it_page_shift; it_page_shift 546 arch/powerpc/platforms/pseries/iommu.c tbl->it_size = size >> tbl->it_page_shift; it_page_shift 643 arch/powerpc/platforms/pseries/iommu.c unsigned long ioba = (unsigned long) index << tbl->it_page_shift; it_page_shift 1185 arch/powerpc/platforms/pseries/vio.c tbl->it_page_shift = IOMMU_PAGE_SHIFT_4K; it_page_shift 1186 arch/powerpc/platforms/pseries/vio.c tbl->it_size = size >> tbl->it_page_shift; it_page_shift 1188 arch/powerpc/platforms/pseries/vio.c tbl->it_offset = offset >> tbl->it_page_shift; it_page_shift 340 arch/powerpc/sysdev/dart_iommu.c iommu_table_dart.it_page_shift = IOMMU_PAGE_SHIFT_4K; it_page_shift 179 drivers/vfio/vfio_iommu_spapr_tce.c unsigned int it_page_shift) it_page_shift 184 drivers/vfio/vfio_iommu_spapr_tce.c if (mm_iommu_is_devmem(mm, hpa, it_page_shift, &size)) it_page_shift 185 drivers/vfio/vfio_iommu_spapr_tce.c return size == (1UL << it_page_shift); it_page_shift 193 drivers/vfio/vfio_iommu_spapr_tce.c return page_shift(compound_head(page)) >= it_page_shift; it_page_shift 210 drivers/vfio/vfio_iommu_spapr_tce.c unsigned long entry = ioba >> tbl->it_page_shift; it_page_shift 421 drivers/vfio/vfio_iommu_spapr_tce.c tbl->it_page_shift, &hpa, &mem); it_page_shift 516 drivers/vfio/vfio_iommu_spapr_tce.c tbl->it_page_shift)) { it_page_shift 528 drivers/vfio/vfio_iommu_spapr_tce.c __func__, entry << tbl->it_page_shift, it_page_shift 561 drivers/vfio/vfio_iommu_spapr_tce.c tce, tbl->it_page_shift, &hpa, &mem); it_page_shift 566 drivers/vfio/vfio_iommu_spapr_tce.c tbl->it_page_shift)) { it_page_shift 585 drivers/vfio/vfio_iommu_spapr_tce.c __func__, entry << tbl->it_page_shift, it_page_shift 694 drivers/vfio/vfio_iommu_spapr_tce.c *start_addr = tbl->it_offset << tbl->it_page_shift; it_page_shift 907 drivers/vfio/vfio_iommu_spapr_tce.c param.iova >> tbl->it_page_shift, it_page_shift 909 drivers/vfio/vfio_iommu_spapr_tce.c param.size >> tbl->it_page_shift, it_page_shift 913 drivers/vfio/vfio_iommu_spapr_tce.c param.iova >> tbl->it_page_shift, it_page_shift 915 drivers/vfio/vfio_iommu_spapr_tce.c param.size >> tbl->it_page_shift, it_page_shift 955 drivers/vfio/vfio_iommu_spapr_tce.c param.size >> tbl->it_page_shift); it_page_shift 960 drivers/vfio/vfio_iommu_spapr_tce.c param.iova >> tbl->it_page_shift, it_page_shift 961 drivers/vfio/vfio_iommu_spapr_tce.c param.size >> tbl->it_page_shift);