/openbmc/linux/crypto/ |
H A D | testmgr.h | 42 unsigned int psize; member 4415 .psize = 1, 4420 .psize = 3, 4425 .psize = 14, 4430 .psize = 26, 4435 .psize = 62, 4441 .psize = 80, 4456 .psize = 1, 4464 .psize = 56, 4598 .psize = 1023, [all …]
|
/openbmc/linux/arch/powerpc/mm/book3s64/ |
H A D | hash_native.c | 69 static inline unsigned long ___tlbie(unsigned long vpn, int psize, in ___tlbie() argument 92 switch (psize) { in ___tlbie() 105 penc = mmu_psize_defs[psize].penc[apsize]; in ___tlbie() 126 static inline void fixup_tlbie_vpn(unsigned long vpn, int psize, in fixup_tlbie_vpn() argument 154 ___tlbie(vpn, psize, apsize, ssize); in fixup_tlbie_vpn() 158 static inline void __tlbie(unsigned long vpn, int psize, int apsize, int ssize) in __tlbie() argument 162 rb = ___tlbie(vpn, psize, apsize, ssize); in __tlbie() 166 static inline void __tlbiel(unsigned long vpn, int psize, int apsize, int ssize) in __tlbiel() argument 182 switch (psize) { in __tlbiel() 195 penc = mmu_psize_defs[psize].penc[apsize]; in __tlbiel() [all …]
|
H A D | radix_hugetlbpage.c | 12 int psize; in radix__flush_hugetlb_page() local 15 psize = hstate_get_psize(hstate); in radix__flush_hugetlb_page() 16 radix__flush_tlb_page_psize(vma->vm_mm, vmaddr, psize); in radix__flush_hugetlb_page() 21 int psize; in radix__local_flush_hugetlb_page() local 24 psize = hstate_get_psize(hstate); in radix__local_flush_hugetlb_page() 25 radix__local_flush_tlb_page_psize(vma->vm_mm, vmaddr, psize); in radix__local_flush_hugetlb_page() 31 int psize; in radix__flush_hugetlb_tlb_range() local 34 psize = hstate_get_psize(hstate); in radix__flush_hugetlb_tlb_range() 39 radix__flush_tlb_pwc_range_psize(vma->vm_mm, start, end, psize); in radix__flush_hugetlb_tlb_range() 41 radix__flush_tlb_range_psize(vma->vm_mm, start, end, psize); in radix__flush_hugetlb_tlb_range() [all …]
|
H A D | radix_tlb.c | 433 unsigned long psize) in __tlbiel_va_range() argument 436 unsigned long ap = mmu_get_ap(psize); in __tlbiel_va_range() 443 unsigned long psize, unsigned long ric) in _tlbiel_va() argument 445 unsigned long ap = mmu_get_ap(psize); in _tlbiel_va() 454 unsigned long psize, bool also_pwc) in _tlbiel_va_range() argument 459 __tlbiel_va_range(start, end, pid, page_size, psize); in _tlbiel_va_range() 465 unsigned long psize) in __tlbie_va_range() argument 468 unsigned long ap = mmu_get_ap(psize); in __tlbie_va_range() 477 unsigned long psize, unsigned long ric) in _tlbie_va() argument 479 unsigned long ap = mmu_get_ap(psize); in _tlbie_va() [all …]
|
H A D | slice.c | 188 const struct slice_mask *mask, int psize) in slice_convert() argument 197 slice_dbg("slice_convert(mm=%p, psize=%d)\n", mm, psize); in slice_convert() 200 psize_mask = slice_mask_for_size(&mm->context, psize); in slice_convert() 223 (((unsigned long)psize) << (mask_index * 4)); in slice_convert() 242 (((unsigned long)psize) << (mask_index * 4)); in slice_convert() 281 int psize, unsigned long high_limit) in slice_find_area_bottomup() argument 283 int pshift = max_t(int, mmu_psize_defs[psize].shift, PAGE_SHIFT); in slice_find_area_bottomup() 325 int psize, unsigned long high_limit) in slice_find_area_topdown() argument 327 int pshift = max_t(int, mmu_psize_defs[psize].shift, PAGE_SHIFT); in slice_find_area_topdown() 376 return slice_find_area_bottomup(mm, TASK_UNMAPPED_BASE, len, available, psize, high_limit); in slice_find_area_topdown() [all …]
|
H A D | hash_tlb.c | 46 unsigned int psize; in hpte_need_flush() local 63 psize = get_slice_psize(mm, addr); in hpte_need_flush() 65 addr &= ~((1UL << mmu_psize_defs[psize].shift) - 1); in hpte_need_flush() 66 if (unlikely(psize == MMU_PAGE_16G)) in hpte_need_flush() 72 psize = pte_pagesize_index(mm, addr, pte); /* shutup gcc */ in hpte_need_flush() 75 psize = pte_pagesize_index(mm, addr, pte); in hpte_need_flush() 104 flush_hash_page(vpn, rpte, psize, ssize, mm_is_thread_local(mm)); in hpte_need_flush() 119 if (i != 0 && (mm != batch->mm || batch->psize != psize || in hpte_need_flush() 126 batch->psize = psize; in hpte_need_flush() 152 batch->psize, batch->ssize, local); in __flush_tlb_pending()
|
H A D | hash_hugepage.c | 23 int ssize, unsigned int psize) in __hash_page_thp() argument 75 shift = mmu_psize_defs[psize].shift; in __hash_page_thp() 81 if (psize == MMU_PAGE_4K) { in __hash_page_thp() 113 psize, lpsize, ssize, flags); in __hash_page_thp() 141 psize, lpsize, ssize); in __hash_page_thp() 150 psize, lpsize, ssize); in __hash_page_thp() 167 psize, lpsize, old_pmd); in __hash_page_thp() 181 if (psize == MMU_PAGE_4K) in __hash_page_thp()
|
H A D | hash_utils.c | 349 int psize, int ssize) in htab_bolt_mapping() argument 355 shift = mmu_psize_defs[psize].shift; in htab_bolt_mapping() 361 vstart, vend, pstart, prot, psize, ssize); in htab_bolt_mapping() 404 HPTE_V_BOLTED, psize, psize, in htab_bolt_mapping() 414 HPTE_V_BOLTED, psize, psize, in htab_bolt_mapping() 435 int psize, int ssize) in htab_remove_mapping() argument 442 shift = mmu_psize_defs[psize].shift; in htab_remove_mapping() 453 rc = mmu_hash_ops.hpte_removebolted(vaddr, psize, ssize); in htab_remove_mapping() 1419 int ssize, int psize, int lpsize, unsigned long pte) in hash_failure_debug() argument 1426 trap, vsid, ssize, psize, lpsize, pte); in hash_failure_debug() [all …]
|
/openbmc/linux/arch/powerpc/include/asm/book3s/64/ |
H A D | tlbflush-radix.h | 15 static inline u64 psize_to_rpti_pgsize(unsigned long psize) in psize_to_rpti_pgsize() argument 17 if (psize == MMU_PAGE_4K) in psize_to_rpti_pgsize() 19 if (psize == MMU_PAGE_64K) in psize_to_rpti_pgsize() 21 if (psize == MMU_PAGE_2M) in psize_to_rpti_pgsize() 23 if (psize == MMU_PAGE_1G) in psize_to_rpti_pgsize() 28 static inline int mmu_get_ap(int psize) in mmu_get_ap() argument 30 return mmu_psize_defs[psize].ap; in mmu_get_ap() 66 unsigned long end, int psize); 68 unsigned long end, int psize); 81 int psize); [all …]
|
H A D | mmu-hash.h | 147 int psize, int ssize); 153 int psize, int apsize, 157 int psize, int ssize); 162 int psize, int ssize, int local); 187 int psize; in shift_to_mmu_psize() local 189 for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) in shift_to_mmu_psize() 190 if (mmu_psize_defs[psize].shift == shift) in shift_to_mmu_psize() 191 return psize; in shift_to_mmu_psize() 204 int psize; in ap_to_shift() local 206 for (psize = 0; psize < MMU_PAGE_COUNT; psize++) { in ap_to_shift() [all …]
|
/openbmc/linux/arch/powerpc/mm/nohash/ |
H A D | tlb_64e.c | 86 int psize; in setup_page_sizes() local 99 for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) { in setup_page_sizes() 103 def = &mmu_psize_defs[psize]; in setup_page_sizes() 138 for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) { in setup_page_sizes() 139 struct mmu_psize_def *def = &mmu_psize_defs[psize]; in setup_page_sizes() 147 if (book3e_htw_mode && psize == MMU_PAGE_2M) in setup_page_sizes() 158 for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) { in setup_page_sizes() 159 struct mmu_psize_def *def = &mmu_psize_defs[psize]; in setup_page_sizes()
|
H A D | 8xx.c | 64 pgprot_t prot, int psize, bool new) in __early_map_kernel_hugepage() argument 69 if (WARN_ON(psize != MMU_PAGE_512K && psize != MMU_PAGE_8M)) in __early_map_kernel_hugepage() 76 if (psize == MMU_PAGE_512K) in __early_map_kernel_hugepage() 81 if (psize == MMU_PAGE_512K) in __early_map_kernel_hugepage() 96 1UL << mmu_psize_to_shift(psize)); in __early_map_kernel_hugepage()
|
/openbmc/u-boot/fs/jffs2/ |
H A D | mergesort.c | 16 int k, psize, qsize; in sort_list() local 25 for (psize = 0; q && psize < k; psize++) in sort_list() 30 while (psize || (qsize && q)) { in sort_list() 32 if (psize == 0 || in sort_list() 42 psize--; in sort_list()
|
/openbmc/linux/arch/powerpc/platforms/pseries/ |
H A D | lpar.c | 759 int psize, int apsize, int ssize) in pSeries_lpar_hpte_insert() argument 769 hpte_group, vpn, pa, rflags, vflags, psize); in pSeries_lpar_hpte_insert() 771 hpte_v = hpte_encode_v(vpn, psize, apsize, ssize) | vflags | HPTE_V_VALID; in pSeries_lpar_hpte_insert() 772 hpte_r = hpte_encode_r(pa, psize, apsize) | rflags; in pSeries_lpar_hpte_insert() 926 int psize, int apsize, in pSeries_lpar_hpte_updatepp() argument 933 want_v = hpte_encode_avpn(vpn, psize, ssize); in pSeries_lpar_hpte_updatepp() 942 want_v, slot, flags, psize); in pSeries_lpar_hpte_updatepp() 986 static long pSeries_lpar_hpte_find(unsigned long vpn, int psize, int ssize) in pSeries_lpar_hpte_find() argument 993 hash = hpt_hash(vpn, mmu_psize_defs[psize].shift, ssize); in pSeries_lpar_hpte_find() 994 want_v = hpte_encode_avpn(vpn, psize, ssize); in pSeries_lpar_hpte_find() [all …]
|
/openbmc/u-boot/drivers/mtd/onenand/ |
H A D | onenand_spl.c | 134 static int psize; in onenand_spl_read_block() local 136 if (!psize) in onenand_spl_read_block() 137 psize = onenand_spl_get_geometry(); in onenand_spl_read_block() 140 page = offset / psize; in onenand_spl_read_block() 142 offset = offset % psize; in onenand_spl_read_block() 149 if (offset || len < psize) { in onenand_spl_read_block() 151 (uint32_t *)scratch_buf, psize); in onenand_spl_read_block() 152 read = min(len, psize - offset); in onenand_spl_read_block() 156 onenand_spl_read_page(block, page, dst, psize); in onenand_spl_read_block() 157 read = psize; in onenand_spl_read_block()
|
/openbmc/linux/arch/powerpc/mm/ptdump/ |
H A D | hashpagetable.c | 206 static int native_find(unsigned long ea, int psize, bool primary, u64 *v, u64 in native_find() argument 212 unsigned long shift = mmu_psize_defs[psize].shift; in native_find() 218 want_v = hpte_encode_avpn(vpn, psize, ssize); in native_find() 239 static int pseries_find(unsigned long ea, int psize, bool primary, u64 *v, u64 *r) in pseries_find() argument 248 unsigned long shift = mmu_psize_defs[psize].shift; in pseries_find() 254 want_v = hpte_encode_avpn(vpn, psize, ssize); in pseries_find() 316 static int base_hpte_find(unsigned long ea, int psize, bool primary, u64 *v, in base_hpte_find() argument 320 return pseries_find(ea, psize, primary, v, r); in base_hpte_find() 322 return native_find(ea, psize, primary, v, r); in base_hpte_find() 325 static unsigned long hpte_find(struct pg_state *st, unsigned long ea, int psize) in hpte_find() argument [all …]
|
/openbmc/linux/arch/powerpc/platforms/ps3/ |
H A D | htab.c | 36 int psize, int apsize, int ssize) in ps3_hpte_insert() argument 52 hpte_v = hpte_encode_v(vpn, psize, apsize, ssize) | vflags | HPTE_V_VALID; in ps3_hpte_insert() 53 hpte_r = hpte_encode_r(ps3_mm_phys_to_lpar(pa), psize, apsize) | rflags; in ps3_hpte_insert() 99 unsigned long vpn, int psize, int apsize, in ps3_hpte_updatepp() argument 108 want_v = hpte_encode_avpn(vpn, psize, ssize); in ps3_hpte_updatepp() 119 __func__, ps3_result(result), vpn, slot, psize); in ps3_hpte_updatepp() 147 int psize, int ssize) in ps3_hpte_updateboltedpp() argument 153 int psize, int apsize, int ssize, int local) in ps3_hpte_invalidate() argument 164 __func__, ps3_result(result), vpn, slot, psize); in ps3_hpte_invalidate()
|
/openbmc/qemu/tests/tcg/aarch64/ |
H A D | lse2-fault.c | 8 int psize = getpagesize(); in main() local 16 id = shmget(IPC_PRIVATE, 2 * psize, IPC_CREAT | 0600); in main() 28 if (mprotect(p + psize, psize, PROT_NONE) < 0) { in main() 37 return *(int *)(p + psize - 6); in main()
|
/openbmc/linux/arch/powerpc/include/asm/nohash/32/ |
H A D | mmu-8xx.h | 212 int psize; in shift_to_mmu_psize() local 214 for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) in shift_to_mmu_psize() 215 if (mmu_psize_defs[psize].shift == shift) in shift_to_mmu_psize() 216 return psize; in shift_to_mmu_psize()
|
/openbmc/linux/arch/powerpc/mm/ |
H A D | copro_fault.c | 86 int psize, ssize; in copro_calculate_slb() local 93 psize = get_slice_psize(mm, ea); in copro_calculate_slb() 100 psize = mmu_vmalloc_psize; in copro_calculate_slb() 107 psize = mmu_io_psize; in copro_calculate_slb() 114 psize = mmu_linear_psize; in copro_calculate_slb() 129 vsid |= mmu_psize_defs[psize].sllp | in copro_calculate_slb()
|
/openbmc/linux/drivers/dma/bestcomm/ |
H A D | sram.c | 42 unsigned int psize; in bcom_sram_init() local 95 reg_addr_p = of_get_property(sram_node, "available", &psize); in bcom_sram_init() 98 psize = 0; in bcom_sram_init() 101 if (!regaddr_p || !psize) { in bcom_sram_init() 106 while (psize >= 2 * sizeof(u32)) { in bcom_sram_init() 110 psize -= 2 * sizeof(u32); in bcom_sram_init()
|
/openbmc/qemu/target/ppc/ |
H A D | mmu-radix64.c | 293 static bool ppc_radix64_is_valid_level(int level, int psize, uint64_t nls) in ppc_radix64_is_valid_level() argument 308 ret = psize == 52 && nls == 13; in ppc_radix64_is_valid_level() 324 level, psize, nls); in ppc_radix64_is_valid_level() 331 int *psize, uint64_t *pte, int *fault_cause) in ppc_radix64_next_level() argument 343 *psize -= *nls; in ppc_radix64_next_level() 346 index = eaddr >> (*psize - *nls); /* Shift */ in ppc_radix64_next_level() 365 hwaddr *raddr, int *psize, uint64_t *pte, in ppc_radix64_walk_tree() argument 371 index = eaddr >> (*psize - nls); /* Shift */ in ppc_radix64_walk_tree() 387 if (!ppc_radix64_is_valid_level(level++, *psize, nls)) { in ppc_radix64_walk_tree() 392 ret = ppc_radix64_next_level(as, eaddr, pte_addr, &nls, psize, &pde, in ppc_radix64_walk_tree() [all …]
|
/openbmc/linux/arch/powerpc/include/asm/nohash/ |
H A D | mmu-e500.h | 263 int psize; in shift_to_mmu_psize() local 265 for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) in shift_to_mmu_psize() 266 if (mmu_psize_defs[psize].shift == shift) in shift_to_mmu_psize() 267 return psize; in shift_to_mmu_psize()
|
/openbmc/linux/drivers/gpu/drm/msm/ |
H A D | msm_io_utils.c | 54 bool quiet, phys_addr_t *psize) in _msm_ioremap() argument 80 if (psize) in _msm_ioremap() 81 *psize = size; in _msm_ioremap() 97 phys_addr_t *psize) in msm_ioremap_size() argument 99 return _msm_ioremap(pdev, name, false, psize); in msm_ioremap_size()
|
/openbmc/linux/arch/x86/mm/ |
H A D | mem_encrypt_amd.c | 298 int psize, pmask, level; in enc_dec_hypercall() local 312 psize = page_level_size(level); in enc_dec_hypercall() 315 notify_page_enc_status_changed(pfn, psize >> PAGE_SHIFT, enc); in enc_dec_hypercall() 317 vaddr = (vaddr & pmask) + psize; in enc_dec_hypercall() 409 unsigned long psize, pmask; in early_set_memory_enc_dec() local 431 psize = page_level_size(level); in early_set_memory_enc_dec() 441 ((vaddr_end - vaddr) >= psize)) { in early_set_memory_enc_dec() 443 vaddr_next = (vaddr & pmask) + psize; in early_set_memory_enc_dec() 463 __pa((vaddr_end & pmask) + psize), in early_set_memory_enc_dec()
|