Lines Matching refs:it_size
357 if (((free_entry + npages) > tbl->it_size) || in iommu_free_check()
365 printk(KERN_INFO "\tsize = 0x%llx\n", (u64)tbl->it_size); in iommu_free_check()
616 tbl->it_ops->clear(tbl, tbl->it_offset, tbl->it_size); in iommu_table_clear()
625 for (index = 0; index < tbl->it_size; index++) { in iommu_table_clear()
636 if ((tbl->it_size - tcecount) < KDUMP_MIN_TCE_ENTRIES) { in iommu_table_clear()
640 for (index = tbl->it_size - KDUMP_MIN_TCE_ENTRIES; in iommu_table_clear()
641 index < tbl->it_size; index++) in iommu_table_clear()
663 sz = BITS_TO_LONGS(tbl->it_size) * sizeof(unsigned long); in iommu_init_table()
680 if ((tbl->it_size << tbl->it_page_shift) >= (1UL * 1024 * 1024 * 1024)) in iommu_init_table()
686 tbl->poolsize = (tbl->it_size * 3 / 4) / tbl->nr_pools; in iommu_init_table()
700 p->end = tbl->it_size; in iommu_init_table()
734 if (!bitmap_empty(tbl->it_map, tbl->it_size)) in iommu_free_table()
738 bitmap_sz = BITS_TO_LONGS(tbl->it_size) * sizeof(unsigned long); in iommu_free_table()
958 if ((ioba + npages) > (tbl->it_offset + tbl->it_size)) in iommu_tce_clear_param_check()
978 if ((ioba + 1) > (tbl->it_offset + tbl->it_size)) in iommu_tce_put_param_check()
1007 unsigned long flags, i, sz = (tbl->it_size + 7) >> 3; in iommu_take_ownership()
1027 if (!bitmap_empty(tbl->it_map, tbl->it_size)) { in iommu_take_ownership()
1047 unsigned long flags, i, sz = (tbl->it_size + 7) >> 3; in iommu_release_ownership()