Home
last modified time | relevance | path

Searched refs:pool_nr (Results 1 – 3 of 3) sorted by relevance

/Linux-v4.19/arch/sparc/kernel/
Diommu-common.c108 unsigned int pool_nr; in iommu_tbl_range_alloc() local
127 pool_nr = 0; /* to keep compiler happy */ in iommu_tbl_range_alloc()
130 pool_nr = pool_hash & (npools - 1); in iommu_tbl_range_alloc()
131 pool = &(iommu->pools[pool_nr]); in iommu_tbl_range_alloc()
196 pool_nr = (pool_nr + 1) & (iommu->nr_pools - 1); in iommu_tbl_range_alloc()
197 pool = &(iommu->pools[pool_nr]); in iommu_tbl_range_alloc()
238 unsigned int pool_nr = entry / tbl->poolsize; in get_pool() local
240 BUG_ON(pool_nr >= tbl->nr_pools); in get_pool()
241 p = &tbl->pools[pool_nr]; in get_pool()
Dpci_sun4v.c724 unsigned long i, pool_nr, cnt = 0; in probe_existing_entries() local
728 for (pool_nr = 0; pool_nr < iommu->nr_pools; pool_nr++) { in probe_existing_entries()
729 pool = &(iommu->pools[pool_nr]); in probe_existing_entries()
/Linux-v4.19/arch/powerpc/kernel/
Diommu.c189 unsigned int pool_nr; in iommu_range_alloc() local
210 pool_nr = raw_cpu_read(iommu_pool_hash) & (tbl->nr_pools - 1); in iommu_range_alloc()
215 pool = &(tbl->pools[pool_nr]); in iommu_range_alloc()
270 pool_nr = (pool_nr + 1) & (tbl->nr_pools - 1); in iommu_range_alloc()
271 pool = &tbl->pools[pool_nr]; in iommu_range_alloc()
386 unsigned int pool_nr = entry / tbl->poolsize; in get_pool() local
388 BUG_ON(pool_nr > tbl->nr_pools); in get_pool()
389 p = &tbl->pools[pool_nr]; in get_pool()