Home
last modified time | relevance | path

Searched refs:nr_pools (Results 1 – 6 of 6) sorted by relevance

/Linux-v4.19/arch/sparc/kernel/
Diommu-common.c64 iommu->nr_pools = IOMMU_NR_POOLS; in iommu_tbl_pool_init()
66 iommu->nr_pools = npools; in iommu_tbl_pool_init()
78 iommu->poolsize = num_entries/iommu->nr_pools; in iommu_tbl_pool_init()
80 iommu->poolsize = (num_entries * 3 / 4)/iommu->nr_pools; in iommu_tbl_pool_init()
81 for (i = 0; i < iommu->nr_pools; i++) { in iommu_tbl_pool_init()
109 unsigned int npools = iommu->nr_pools; in iommu_tbl_range_alloc()
183 boundary_size = iommu->poolsize * iommu->nr_pools; in iommu_tbl_range_alloc()
194 } else if (!largealloc && pass <= iommu->nr_pools) { in iommu_tbl_range_alloc()
196 pool_nr = (pool_nr + 1) & (iommu->nr_pools - 1); in iommu_tbl_range_alloc()
240 BUG_ON(pool_nr >= tbl->nr_pools); in get_pool()
Dpci_sun4v.c728 for (pool_nr = 0; pool_nr < iommu->nr_pools; pool_nr++) { in probe_existing_entries()
Dldc.c1108 num_tsb_entries = iommu->poolsize * iommu->nr_pools; in ldc_iommu_release()
/Linux-v4.19/arch/powerpc/kernel/
Diommu.c210 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()
[all …]
/Linux-v4.19/arch/sparc/include/asm/
Diommu-common.h23 unsigned long nr_pools; member
/Linux-v4.19/arch/powerpc/include/asm/
Diommu.h117 unsigned long nr_pools; member