Lines Matching refs:psz

84 	u32		psz;  member
2299 u32 alloc_pages, psz; in its_setup_baser() local
2303 psz = baser->psz; in its_setup_baser()
2304 alloc_pages = (PAGE_ORDER_TO_SIZE(order) / psz); in its_setup_baser()
2310 order = get_order(GITS_BASER_PAGES_MAX * psz); in its_setup_baser()
2324 if (psz != SZ_64K) { in its_setup_baser()
2325 pr_err("ITS: no 52bit PA support when psz=%d\n", psz); in its_setup_baser()
2345 switch (psz) { in its_setup_baser()
2386 baser->psz = psz; in its_setup_baser()
2394 psz / SZ_1K, (int)shr >> GITS_BASER_SHAREABILITY_SHIFT); in its_setup_baser()
2408 u32 psz = baser->psz; in its_parse_indirect_baser() local
2412 if ((esz << ids) > (psz * 2)) { in its_parse_indirect_baser()
2428 ids -= ilog2(psz / (int)esz); in its_parse_indirect_baser()
2528 u64 psz = SZ_64K; in its_probe_baser_psz() local
2530 while (psz) { in its_probe_baser_psz()
2536 switch (psz) { in its_probe_baser_psz()
2557 switch (psz) { in its_probe_baser_psz()
2559 psz = SZ_16K; in its_probe_baser_psz()
2562 psz = SZ_4K; in its_probe_baser_psz()
2570 baser->psz = psz; in its_probe_baser_psz()
2599 order = get_order(baser->psz); in its_alloc_tables()
2733 unsigned int psz, esz, idx, npg, gpsz; in allocate_vpe_l2_table() local
2756 psz = SZ_4K; in allocate_vpe_l2_table()
2759 psz = SZ_16K; in allocate_vpe_l2_table()
2762 psz = SZ_64K; in allocate_vpe_l2_table()
2768 return (id < (npg * psz / (esz * SZ_8))); in allocate_vpe_l2_table()
2771 idx = id >> ilog2(psz / (esz * SZ_8)); in allocate_vpe_l2_table()
2772 if (idx >= (npg * psz / GITS_LVL1_ENTRY_SIZE)) in allocate_vpe_l2_table()
2779 page = alloc_pages(GFP_KERNEL | __GFP_ZERO, get_order(psz)); in allocate_vpe_l2_table()
2785 gic_flush_dcache_to_poc(page_address(page), psz); in allocate_vpe_l2_table()
2804 unsigned int psz = SZ_64K; in allocate_vpe_l1_table() local
2851 psz = SZ_4K; in allocate_vpe_l1_table()
2854 psz = SZ_16K; in allocate_vpe_l1_table()
2857 psz = SZ_64K; in allocate_vpe_l1_table()
2871 epp = psz / (esz * SZ_8); in allocate_vpe_l1_table()
2886 npg = DIV_ROUND_UP(nl2 * SZ_8, psz); in allocate_vpe_l1_table()
2894 np = DIV_ROUND_UP(npg * psz, PAGE_SIZE); in allocate_vpe_l1_table()
2897 np, npg, psz, epp, esz); in allocate_vpe_l1_table()
2904 WARN_ON(!IS_ALIGNED(pa, psz)); in allocate_vpe_l1_table()
3276 idx = id >> ilog2(baser->psz / esz); in its_alloc_table_entry()
3285 get_order(baser->psz)); in its_alloc_table_entry()
3291 gic_flush_dcache_to_poc(page_address(page), baser->psz); in its_alloc_table_entry()