Lines Matching refs:psz

83 	u32		psz;  member
2304 u32 alloc_pages, psz; in its_setup_baser() local
2308 psz = baser->psz; in its_setup_baser()
2309 alloc_pages = (PAGE_ORDER_TO_SIZE(order) / psz); in its_setup_baser()
2315 order = get_order(GITS_BASER_PAGES_MAX * psz); in its_setup_baser()
2329 if (psz != SZ_64K) { in its_setup_baser()
2330 pr_err("ITS: no 52bit PA support when psz=%d\n", psz); in its_setup_baser()
2350 switch (psz) { in its_setup_baser()
2393 baser->psz = psz; in its_setup_baser()
2401 psz / SZ_1K, (int)shr >> GITS_BASER_SHAREABILITY_SHIFT); in its_setup_baser()
2415 u32 psz = baser->psz; in its_parse_indirect_baser() local
2419 if ((esz << ids) > (psz * 2)) { in its_parse_indirect_baser()
2435 ids -= ilog2(psz / (int)esz); in its_parse_indirect_baser()
2535 u64 psz = SZ_64K; in its_probe_baser_psz() local
2537 while (psz) { in its_probe_baser_psz()
2543 switch (psz) { in its_probe_baser_psz()
2564 switch (psz) { in its_probe_baser_psz()
2566 psz = SZ_16K; in its_probe_baser_psz()
2569 psz = SZ_4K; in its_probe_baser_psz()
2577 baser->psz = psz; in its_probe_baser_psz()
2611 order = get_order(baser->psz); in its_alloc_tables()
2747 unsigned int psz, esz, idx, npg, gpsz; in allocate_vpe_l2_table() local
2770 psz = SZ_4K; in allocate_vpe_l2_table()
2773 psz = SZ_16K; in allocate_vpe_l2_table()
2776 psz = SZ_64K; in allocate_vpe_l2_table()
2782 return (id < (npg * psz / (esz * SZ_8))); in allocate_vpe_l2_table()
2785 idx = id >> ilog2(psz / (esz * SZ_8)); in allocate_vpe_l2_table()
2786 if (idx >= (npg * psz / GITS_LVL1_ENTRY_SIZE)) in allocate_vpe_l2_table()
2793 page = alloc_pages(GFP_KERNEL | __GFP_ZERO, get_order(psz)); in allocate_vpe_l2_table()
2799 gic_flush_dcache_to_poc(page_address(page), psz); in allocate_vpe_l2_table()
2818 unsigned int psz = SZ_64K; in allocate_vpe_l1_table() local
2865 psz = SZ_4K; in allocate_vpe_l1_table()
2868 psz = SZ_16K; in allocate_vpe_l1_table()
2871 psz = SZ_64K; in allocate_vpe_l1_table()
2885 epp = psz / (esz * SZ_8); in allocate_vpe_l1_table()
2900 npg = DIV_ROUND_UP(nl2 * SZ_8, psz); in allocate_vpe_l1_table()
2908 np = DIV_ROUND_UP(npg * psz, PAGE_SIZE); in allocate_vpe_l1_table()
2911 np, npg, psz, epp, esz); in allocate_vpe_l1_table()
2918 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()