Lines Matching refs:it_page_shift
253 1 << tbl->it_page_shift); in iommu_range_alloc()
255 boundary_size = ALIGN(1UL << 32, 1 << tbl->it_page_shift); in iommu_range_alloc()
259 boundary_size >> tbl->it_page_shift, align_mask); in iommu_range_alloc()
321 ret = entry << tbl->it_page_shift; /* Set the return dma address */ in iommu_alloc()
353 entry = dma_addr >> tbl->it_page_shift; in iommu_free_check()
402 entry = dma_addr >> tbl->it_page_shift; in __iommu_free()
471 if (tbl->it_page_shift < PAGE_SHIFT && slen >= PAGE_SIZE && in ppc_iommu_map_sg()
473 align = PAGE_SHIFT - tbl->it_page_shift; in ppc_iommu_map_sg()
475 mask >> tbl->it_page_shift, align); in ppc_iommu_map_sg()
491 dma_addr = entry << tbl->it_page_shift; in ppc_iommu_map_sg()
680 if ((tbl->it_size << tbl->it_page_shift) >= (1UL * 1024 * 1024 * 1024)) in iommu_init_table()
792 if (tbl->it_page_shift < PAGE_SHIFT && size >= PAGE_SIZE && in iommu_map_page()
794 align = PAGE_SHIFT - tbl->it_page_shift; in iommu_map_page()
797 mask >> tbl->it_page_shift, align, in iommu_map_page()
867 nio_pages = size >> tbl->it_page_shift; in iommu_alloc_coherent()
870 mask >> tbl->it_page_shift, io_order, 0); in iommu_alloc_coherent()
886 nio_pages = size >> tbl->it_page_shift; in iommu_free_coherent()