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 ppc_md.tce_free(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()
661 sz = BITS_TO_LONGS(tbl->it_size) * sizeof(unsigned long); in iommu_init_table()
678 if ((tbl->it_size << tbl->it_page_shift) >= (1UL * 1024 * 1024 * 1024)) in iommu_init_table()
684 tbl->poolsize = (tbl->it_size * 3 / 4) / tbl->nr_pools; in iommu_init_table()
698 p->end = tbl->it_size; in iommu_init_table()
737 if (!bitmap_empty(tbl->it_map, tbl->it_size)) in iommu_free_table()
741 bitmap_sz = BITS_TO_LONGS(tbl->it_size) * sizeof(unsigned long); in iommu_free_table()
945 if ((ioba + npages) > (tbl->it_offset + tbl->it_size)) in iommu_tce_clear_param_check()
968 if ((ioba + 1) > (tbl->it_offset + tbl->it_size)) in iommu_tce_put_param_check()
1078 unsigned long sz = (tbl->it_size + 7) >> 3; in iommu_take_ownership()
1083 if (!bitmap_empty(tbl->it_map, tbl->it_size)) { in iommu_take_ownership()
1089 iommu_clear_tces_and_put_pages(tbl, tbl->it_offset, tbl->it_size); in iommu_take_ownership()
1105 unsigned long sz = (tbl->it_size + 7) >> 3; in iommu_release_ownership()
1107 iommu_clear_tces_and_put_pages(tbl, tbl->it_offset, tbl->it_size); in iommu_release_ownership()