Lines Matching refs:psz
80 u32 psz; member
2320 u32 alloc_pages, psz; in its_setup_baser() local
2324 psz = baser->psz; in its_setup_baser()
2325 alloc_pages = (PAGE_ORDER_TO_SIZE(order) / psz); in its_setup_baser()
2331 order = get_order(GITS_BASER_PAGES_MAX * psz); in its_setup_baser()
2345 if (psz != SZ_64K) { in its_setup_baser()
2346 pr_err("ITS: no 52bit PA support when psz=%d\n", psz); in its_setup_baser()
2366 switch (psz) { in its_setup_baser()
2407 baser->psz = psz; in its_setup_baser()
2415 psz / SZ_1K, (int)shr >> GITS_BASER_SHAREABILITY_SHIFT); in its_setup_baser()
2429 u32 psz = baser->psz; in its_parse_indirect_baser() local
2433 if ((esz << ids) > (psz * 2)) { in its_parse_indirect_baser()
2449 ids -= ilog2(psz / (int)esz); in its_parse_indirect_baser()
2549 u64 psz = SZ_64K; in its_probe_baser_psz() local
2551 while (psz) { in its_probe_baser_psz()
2557 switch (psz) { in its_probe_baser_psz()
2578 switch (psz) { in its_probe_baser_psz()
2580 psz = SZ_16K; in its_probe_baser_psz()
2583 psz = SZ_4K; in its_probe_baser_psz()
2591 baser->psz = psz; in its_probe_baser_psz()
2620 order = get_order(baser->psz); in its_alloc_tables()
2754 unsigned int psz, esz, idx, npg, gpsz; in allocate_vpe_l2_table() local
2777 psz = SZ_4K; in allocate_vpe_l2_table()
2780 psz = SZ_16K; in allocate_vpe_l2_table()
2783 psz = SZ_64K; in allocate_vpe_l2_table()
2789 return (id < (npg * psz / (esz * SZ_8))); in allocate_vpe_l2_table()
2792 idx = id >> ilog2(psz / (esz * SZ_8)); in allocate_vpe_l2_table()
2793 if (idx >= (npg * psz / GITS_LVL1_ENTRY_SIZE)) in allocate_vpe_l2_table()
2800 page = alloc_pages(GFP_KERNEL | __GFP_ZERO, get_order(psz)); in allocate_vpe_l2_table()
2806 gic_flush_dcache_to_poc(page_address(page), psz); in allocate_vpe_l2_table()
2825 unsigned int psz = SZ_64K; in allocate_vpe_l1_table() local
2872 psz = SZ_4K; in allocate_vpe_l1_table()
2875 psz = SZ_16K; in allocate_vpe_l1_table()
2878 psz = SZ_64K; in allocate_vpe_l1_table()
2892 epp = psz / (esz * SZ_8); in allocate_vpe_l1_table()
2907 npg = DIV_ROUND_UP(nl2 * SZ_8, psz); in allocate_vpe_l1_table()
2915 np = DIV_ROUND_UP(npg * psz, PAGE_SIZE); in allocate_vpe_l1_table()
2918 np, npg, psz, epp, esz); in allocate_vpe_l1_table()
2925 WARN_ON(!IS_ALIGNED(pa, psz)); in allocate_vpe_l1_table()
3298 idx = id >> ilog2(baser->psz / esz); in its_alloc_table_entry()
3307 get_order(baser->psz)); in its_alloc_table_entry()
3313 gic_flush_dcache_to_poc(page_address(page), baser->psz); in its_alloc_table_entry()