Lines Matching refs:it_offset

262 	if (limit + tbl->it_offset > mask) {  in iommu_range_alloc()
263 limit = mask - tbl->it_offset + 1; in iommu_range_alloc()
278 n = iommu_area_alloc(tbl->it_map, limit, start, npages, tbl->it_offset, in iommu_range_alloc()
350 entry += tbl->it_offset; /* Offset into real TCE table */ in iommu_alloc()
384 free_entry = entry - tbl->it_offset; in iommu_free_check()
387 (entry < tbl->it_offset)) { in iommu_free_check()
395 printk(KERN_INFO "\tstartOff = 0x%llx\n", (u64)tbl->it_offset); in iommu_free_check()
433 free_entry = entry - tbl->it_offset; in __iommu_free()
520 entry += tbl->it_offset; in ppc_iommu_map_sg()
644 tbl->it_ops->clear(tbl, tbl->it_offset, tbl->it_size); in iommu_table_clear()
654 tceval = tbl->it_ops->get(tbl, index + tbl->it_offset); in iommu_table_clear()
687 if (tbl->it_offset == 0) in iommu_table_reserve_pages()
690 if (res_start < tbl->it_offset) in iommu_table_reserve_pages()
691 res_start = tbl->it_offset; in iommu_table_reserve_pages()
693 if (res_end > (tbl->it_offset + tbl->it_size)) in iommu_table_reserve_pages()
694 res_end = tbl->it_offset + tbl->it_size; in iommu_table_reserve_pages()
698 tbl->it_reserved_start = tbl->it_offset; in iommu_table_reserve_pages()
699 tbl->it_reserved_end = tbl->it_offset; in iommu_table_reserve_pages()
707 set_bit(i - tbl->it_offset, tbl->it_map); in iommu_table_reserve_pages()
776 if (tbl->it_offset == 0) in iommu_table_in_use()
783 end = tbl->it_reserved_start - tbl->it_offset; in iommu_table_in_use()
787 start = tbl->it_reserved_end - tbl->it_offset; in iommu_table_in_use()