Lines Matching refs:psz

82 	u32		psz;  member
2324 u32 alloc_pages, psz; in its_setup_baser() local
2328 psz = baser->psz; in its_setup_baser()
2329 alloc_pages = (PAGE_ORDER_TO_SIZE(order) / psz); in its_setup_baser()
2335 order = get_order(GITS_BASER_PAGES_MAX * psz); in its_setup_baser()
2349 if (psz != SZ_64K) { in its_setup_baser()
2350 pr_err("ITS: no 52bit PA support when psz=%d\n", psz); in its_setup_baser()
2370 switch (psz) { in its_setup_baser()
2414 baser->psz = psz; in its_setup_baser()
2422 psz / SZ_1K, (int)shr >> GITS_BASER_SHAREABILITY_SHIFT); in its_setup_baser()
2436 u32 psz = baser->psz; in its_parse_indirect_baser() local
2440 if ((esz << ids) > (psz * 2)) { in its_parse_indirect_baser()
2456 ids -= ilog2(psz / (int)esz); in its_parse_indirect_baser()
2556 u64 psz = SZ_64K; in its_probe_baser_psz() local
2558 while (psz) { in its_probe_baser_psz()
2564 switch (psz) { in its_probe_baser_psz()
2585 switch (psz) { in its_probe_baser_psz()
2587 psz = SZ_16K; in its_probe_baser_psz()
2590 psz = SZ_4K; in its_probe_baser_psz()
2598 baser->psz = psz; in its_probe_baser_psz()
2627 order = get_order(baser->psz); in its_alloc_tables()
2761 unsigned int psz, esz, idx, npg, gpsz; in allocate_vpe_l2_table() local
2784 psz = SZ_4K; in allocate_vpe_l2_table()
2787 psz = SZ_16K; in allocate_vpe_l2_table()
2790 psz = SZ_64K; in allocate_vpe_l2_table()
2796 return (id < (npg * psz / (esz * SZ_8))); in allocate_vpe_l2_table()
2799 idx = id >> ilog2(psz / (esz * SZ_8)); in allocate_vpe_l2_table()
2800 if (idx >= (npg * psz / GITS_LVL1_ENTRY_SIZE)) in allocate_vpe_l2_table()
2807 page = alloc_pages(GFP_KERNEL | __GFP_ZERO, get_order(psz)); in allocate_vpe_l2_table()
2813 gic_flush_dcache_to_poc(page_address(page), psz); in allocate_vpe_l2_table()
2832 unsigned int psz = SZ_64K; in allocate_vpe_l1_table() local
2879 psz = SZ_4K; in allocate_vpe_l1_table()
2882 psz = SZ_16K; in allocate_vpe_l1_table()
2885 psz = SZ_64K; in allocate_vpe_l1_table()
2899 epp = psz / (esz * SZ_8); in allocate_vpe_l1_table()
2914 npg = DIV_ROUND_UP(nl2 * SZ_8, psz); in allocate_vpe_l1_table()
2922 np = DIV_ROUND_UP(npg * psz, PAGE_SIZE); in allocate_vpe_l1_table()
2925 np, npg, psz, epp, esz); in allocate_vpe_l1_table()
2932 WARN_ON(!IS_ALIGNED(pa, psz)); in allocate_vpe_l1_table()
3310 idx = id >> ilog2(baser->psz / esz); in its_alloc_table_entry()
3319 get_order(baser->psz)); in its_alloc_table_entry()
3325 gic_flush_dcache_to_poc(page_address(page), baser->psz); in its_alloc_table_entry()