Lines Matching refs:nr_pools
210 pool_nr = raw_cpu_read(iommu_pool_hash) & (tbl->nr_pools - 1); in iommu_range_alloc()
267 } else if (pass <= tbl->nr_pools) { in iommu_range_alloc()
270 pool_nr = (pool_nr + 1) & (tbl->nr_pools - 1); in iommu_range_alloc()
388 BUG_ON(pool_nr > tbl->nr_pools); in get_pool()
681 tbl->nr_pools = IOMMU_NR_POOLS; in iommu_init_table()
683 tbl->nr_pools = 1; in iommu_init_table()
686 tbl->poolsize = (tbl->it_size * 3 / 4) / tbl->nr_pools; in iommu_init_table()
688 for (i = 0; i < tbl->nr_pools; i++) { in iommu_init_table()
1032 for (i = 0; i < tbl->nr_pools; i++) in iommu_take_ownership()
1048 for (i = 0; i < tbl->nr_pools; i++) in iommu_take_ownership()
1061 for (i = 0; i < tbl->nr_pools; i++) in iommu_release_ownership()
1070 for (i = 0; i < tbl->nr_pools; i++) in iommu_release_ownership()