Lines Matching refs:it_size
45 *val = bitmap_weight(tbl->it_map, tbl->it_size); in iommu_debugfs_weight_get()
59 debugfs_create_ulong("it_size", 0400, liobn_entry, &tbl->it_size); in iommu_debugfs_add()
386 if (((free_entry + npages) > tbl->it_size) || in iommu_free_check()
394 printk(KERN_INFO "\tsize = 0x%llx\n", (u64)tbl->it_size); in iommu_free_check()
644 tbl->it_ops->clear(tbl, tbl->it_offset, tbl->it_size); in iommu_table_clear()
653 for (index = 0; index < tbl->it_size; index++) { in iommu_table_clear()
664 if ((tbl->it_size - tcecount) < KDUMP_MIN_TCE_ENTRIES) { in iommu_table_clear()
668 for (index = tbl->it_size - KDUMP_MIN_TCE_ENTRIES; in iommu_table_clear()
669 index < tbl->it_size; index++) in iommu_table_clear()
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()
725 sz = BITS_TO_LONGS(tbl->it_size) * sizeof(unsigned long); in iommu_init_table()
736 if ((tbl->it_size << tbl->it_page_shift) >= (1UL * 1024 * 1024 * 1024)) in iommu_init_table()
742 tbl->poolsize = (tbl->it_size * 3 / 4) / tbl->nr_pools; in iommu_init_table()
756 p->end = tbl->it_size; in iommu_init_table()
781 return find_next_bit(tbl->it_map, tbl->it_size, start) != tbl->it_size; in iommu_table_in_use()
788 end = tbl->it_size; in iommu_table_in_use()
1093 unsigned long flags, i, sz = (tbl->it_size + 7) >> 3; in iommu_take_ownership()
1127 unsigned long flags, i, sz = (tbl->it_size + 7) >> 3; in iommu_release_ownership()