Home
last modified time | relevance | path

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

/openbmc/linux/arch/sparc/kernel/
H A 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()
192 pool_nr = (pool_nr + 1) & (iommu->nr_pools - 1); in iommu_tbl_range_alloc()
193 pool = &(iommu->pools[pool_nr]); in iommu_tbl_range_alloc()
234 unsigned int pool_nr = entry / tbl->poolsize; in get_pool() local
236 BUG_ON(pool_nr >= tbl->nr_pools); in get_pool()
237 p = &tbl->pools[pool_nr]; in get_pool()
H A Dpci_sun4v.c713 unsigned long i, pool_nr, cnt = 0; in probe_existing_entries() local
717 for (pool_nr = 0; pool_nr < iommu->nr_pools; pool_nr++) { in probe_existing_entries()
718 pool = &(iommu->pools[pool_nr]); in probe_existing_entries()
/openbmc/linux/arch/powerpc/kernel/
H A Diommu.c226 unsigned int pool_nr; in iommu_range_alloc() local
247 pool_nr = raw_cpu_read(iommu_pool_hash) & (tbl->nr_pools - 1); in iommu_range_alloc()
252 pool = &(tbl->pools[pool_nr]); in iommu_range_alloc()
301 pool_nr = (pool_nr + 1) & (tbl->nr_pools - 1); in iommu_range_alloc()
302 pool = &tbl->pools[pool_nr]; in iommu_range_alloc()
426 unsigned int pool_nr = entry / tbl->poolsize; in get_pool() local
428 BUG_ON(pool_nr > tbl->nr_pools); in get_pool()
429 p = &tbl->pools[pool_nr]; in get_pool()