/linux/crypto/ |
H A D | testmgr.h | 42 unsigned int psize; member 4561 .psize = 1, 4566 .psize = 3, 4602 .psize = 1, 4761 .psize = 1, 4923 .psize = 1, 5093 .psize = 1, 5265 .psize = 1, 5270 .psize = 3, 5307 .psize = 1, [all …]
|
/linux/arch/powerpc/mm/book3s64/ |
H A D | hash_native.c | 92 switch (psize) { in ___tlbie() 182 switch (psize) { in __tlbiel() 486 int psize, int ssize) in native_hpte_updateboltedpp() argument 512 tlbie(vpn, psize, psize, ssize, 0); in native_hpte_updateboltedpp() 547 tlbie(vpn, psize, psize, ssize, 0); in native_hpte_removebolted() 720 *psize = size; in hpte_decode() 747 int psize, apsize, ssize; in native_hpte_clear() local 789 unsigned long psize = batch->psize; in native_flush_hash_range() local 838 __tlbiel(vpn, psize, psize, ssize); in native_flush_hash_range() 855 __tlbie(vpn, psize, psize, ssize); in native_flush_hash_range() [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() 41 radix__flush_tlb_range_psize(vma->vm_mm, start, end, psize); in radix__flush_hugetlb_tlb_range() 50 unsigned long psize = huge_page_size(hstate_vma(vma)); in radix__huge_ptep_modify_prot_commit() local [all …]
|
H A D | radix_tlb.c | 490 unsigned long psize; member 511 struct tlbiel_va t = { .va = va, .pid = pid, .psize = psize, .ric = ric }; in _tlbiel_va_multicast() 522 unsigned long psize; member 564 .psize = psize, .also_pwc = also_pwc }; in _tlbiel_va_range_multicast() 616 int psize) in radix__local_flush_tlb_page_psize() argument 915 int psize) in radix__flush_tlb_page_psize() argument 1132 int psize; in radix_get_mmu_psize() local 1137 psize = MMU_PAGE_2M; in radix_get_mmu_psize() 1142 return psize; in radix_get_mmu_psize() 1186 int psize = 0; in radix__tlb_flush() local [all …]
|
H A D | slice.c | 188 const struct slice_mask *mask, int psize) in slice_convert() argument 541 psize, topdown, high_limit); in slice_get_unmapped_area() 577 psize, topdown, high_limit); in slice_get_unmapped_area() 588 psize, topdown, high_limit); in slice_get_unmapped_area() 591 psize == MMU_PAGE_64K) { in slice_get_unmapped_area() 595 psize, topdown, high_limit); in slice_get_unmapped_area() 622 if (psize > MMU_PAGE_BASE) in slice_get_unmapped_area() 687 unsigned int psize = mmu_virtual_psize; in slice_init_new_context_exec() local 703 memset(lpsizes, (psize << 4) | psize, SLICE_NUM_LOW >> 1); in slice_init_new_context_exec() 706 memset(hpsizes, (psize << 4) | psize, SLICE_NUM_HIGH >> 1); in slice_init_new_context_exec() [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_utils.c | 356 int psize, int ssize) in htab_bolt_mapping() argument 411 HPTE_V_BOLTED, psize, psize, in htab_bolt_mapping() 421 HPTE_V_BOLTED, psize, psize, in htab_bolt_mapping() 1465 int psize, ssize; in hash_page_mm() local 1493 psize = mmu_io_psize; in hash_page_mm() 1533 if (psize != MMU_PAGE_4K) in hash_page_mm() 1607 psize = MMU_PAGE_4K; in hash_page_mm() 1617 psize = MMU_PAGE_4K; in hash_page_mm() 1947 mmu_hash_ops.hpte_invalidate(gslot, vpn, psize, psize, in flush_hash_page() 2039 psize, psize, ssize); in hpte_insert_repeating() [all …]
|
H A D | hash_hugepage.c | 23 int ssize, unsigned int psize) in __hash_page_thp() argument 72 shift = mmu_psize_defs[psize].shift; in __hash_page_thp() 78 if (psize == MMU_PAGE_4K) { in __hash_page_thp() 110 psize, lpsize, ssize, flags); in __hash_page_thp() 138 psize, lpsize, ssize); in __hash_page_thp() 147 psize, lpsize, ssize); in __hash_page_thp() 164 psize, lpsize, old_pmd); in __hash_page_thp() 178 if (psize == MMU_PAGE_4K) in __hash_page_thp()
|
/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); 187 int psize; in shift_to_mmu_psize() local 189 for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) 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() 207 if (mmu_psize_defs[psize].ap == ap) in ap_to_shift() 497 int psize, int ssize); [all …]
|
H A D | mmu.h | 169 static inline struct slice_mask *slice_mask_for_size(mm_context_t *ctx, int psize) in slice_mask_for_size() argument 172 if (psize == MMU_PAGE_64K) in slice_mask_for_size() 176 if (psize == MMU_PAGE_16M) in slice_mask_for_size() 178 if (psize == MMU_PAGE_16G) in slice_mask_for_size() 181 BUG_ON(psize != MMU_PAGE_4K); in slice_mask_for_size()
|
/linux/arch/powerpc/mm/nohash/ |
H A D | tlb_64e.c | 86 int psize; in setup_page_sizes() local 97 for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) { in setup_page_sizes() 101 def = &mmu_psize_defs[psize]; in setup_page_sizes() 136 for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) { in setup_page_sizes() 137 struct mmu_psize_def *def = &mmu_psize_defs[psize]; in setup_page_sizes() 145 if (book3e_htw_mode && psize == MMU_PAGE_2M) in setup_page_sizes() 155 for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) { in setup_page_sizes() 156 struct mmu_psize_def *def = &mmu_psize_defs[psize]; in setup_page_sizes()
|
H A D | 8xx.c | 53 pgprot_t prot, int psize, bool new) in __early_map_kernel_hugepage() argument 58 if (WARN_ON(psize != MMU_PAGE_512K && psize != MMU_PAGE_8M)) in __early_map_kernel_hugepage() 65 if (psize == MMU_PAGE_512K) { in __early_map_kernel_hugepage() 83 if (psize == MMU_PAGE_512K) in __early_map_kernel_hugepage() 94 1UL << mmu_psize_to_shift(psize)); in __early_map_kernel_hugepage()
|
/linux/arch/powerpc/platforms/pseries/ |
H A D | lpar.c | 1038 int psize, int apsize, in pSeries_lpar_hpte_invalidate() argument 1046 slot, vpn, psize, local); in pSeries_lpar_hpte_invalidate() 1288 psize, ssize); in pSeries_lpar_hugepage_invalidate() 1308 int psize, int ssize) in pSeries_lpar_hpte_removebolted() argument 1356 int psize, ssize; in do_block_remove() local 1358 psize = batch->psize; in do_block_remove() 1451 unsigned int bpsize, psize; in check_lp_set_hblkrm() local 1463 for (psize = 0; psize < MMU_PAGE_COUNT; psize++) { in check_lp_set_hblkrm() 1535 int psize, ssize; in pSeries_lpar_flush_hash_range() local 1540 if (is_supported_hlbkrm(batch->psize, batch->psize)) { in pSeries_lpar_flush_hash_range() [all …]
|
/linux/arch/powerpc/mm/ptdump/ |
H A D | hashpagetable.c | 218 want_v = hpte_encode_avpn(vpn, psize, ssize); in native_find() 254 want_v = hpte_encode_avpn(vpn, psize, ssize); in pseries_find() 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() 352 base_psize = mmu_psize_to_shift(psize); in hpte_find() 377 unsigned long addr, pteval, psize; in walk_pte() local 385 psize = mmu_vmalloc_psize; in walk_pte() 387 psize = mmu_io_psize; in walk_pte() 393 psize = mmu_io_psize; in walk_pte() 396 status = hpte_find(st, addr, psize); in walk_pte() [all …]
|
/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()
|
/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()
|
H A D | hugetlbpage.c | 169 int psize; in hugetlbpage_init() local 180 for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) { in hugetlbpage_init() 183 if (!mmu_psize_defs[psize].shift) in hugetlbpage_init() 186 shift = mmu_psize_to_shift(psize); in hugetlbpage_init()
|
/linux/arch/powerpc/include/asm/nohash/32/ |
H A D | mmu-8xx.h | 207 int psize; in shift_to_mmu_psize() local 209 for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) in shift_to_mmu_psize() 210 if (mmu_psize_defs[psize].shift == shift) in shift_to_mmu_psize() 211 return psize; in shift_to_mmu_psize()
|
/linux/drivers/dma/bestcomm/ |
H A D | sram.c | 42 unsigned int psize; in bcom_sram_init() local 94 psize = 0; in bcom_sram_init() 96 if (!regaddr_p || !psize) { in bcom_sram_init() 101 while (psize >= 2 * sizeof(u32)) { in bcom_sram_init() 105 psize -= 2 * sizeof(u32); in bcom_sram_init()
|
/linux/arch/powerpc/include/asm/nohash/ |
H A D | mmu-e500.h | 260 int psize; in shift_to_mmu_psize() local 262 for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) in shift_to_mmu_psize() 263 if (mmu_psize_defs[psize].shift == shift) in shift_to_mmu_psize() 264 return psize; in shift_to_mmu_psize()
|
/linux/arch/x86/mm/ |
H A D | mem_encrypt_amd.c | 262 int psize, pmask, level; in enc_dec_hypercall() local 276 psize = page_level_size(level); in enc_dec_hypercall() 279 notify_page_enc_status_changed(pfn, psize >> PAGE_SHIFT, enc); in enc_dec_hypercall() 281 vaddr = (vaddr & pmask) + psize; in enc_dec_hypercall() 373 unsigned long psize, pmask; in early_set_memory_enc_dec() local 395 psize = page_level_size(level); in early_set_memory_enc_dec() 405 ((vaddr_end - vaddr) >= psize)) { in early_set_memory_enc_dec() 407 vaddr_next = (vaddr & pmask) + psize; in early_set_memory_enc_dec() 427 __pa((vaddr_end & pmask) + psize), in early_set_memory_enc_dec()
|
/linux/drivers/gpu/drm/msm/ |
H A D | msm_io_utils.c | 67 bool quiet, phys_addr_t *psize) in _msm_ioremap() argument 93 if (psize) in _msm_ioremap() 94 *psize = size; in _msm_ioremap() 110 phys_addr_t *psize) in msm_ioremap_size() argument 112 return _msm_ioremap(pdev, name, false, psize); in msm_ioremap_size()
|
/linux/drivers/dma/ |
H A D | ste_dma40_ll.c | 54 l3 |= cfg->dst_info.psize << D40_MEM_LCSP3_DCFG_PSIZE_POS; in d40_log_cfg() 59 l1 |= cfg->src_info.psize << D40_MEM_LCSP1_SCFG_PSIZE_POS; in d40_log_cfg() 103 if (cfg->src_info.psize != STEDMA40_PSIZE_PHY_1) { in d40_phy_cfg() 105 src |= cfg->src_info.psize << D40_SREG_CFG_PSIZE_POS; in d40_phy_cfg() 107 if (cfg->dst_info.psize != STEDMA40_PSIZE_PHY_1) { in d40_phy_cfg() 109 dst |= cfg->dst_info.psize << D40_SREG_CFG_PSIZE_POS; in d40_phy_cfg() 144 int psize = info->psize; in d40_phy_fill_lli() local 147 if (psize == STEDMA40_PSIZE_PHY_1) in d40_phy_fill_lli() 150 num_elems = 2 << psize; in d40_phy_fill_lli()
|
/linux/arch/sh/boards/mach-lboxre2/ |
H A D | setup.c | 50 unsigned long paddrbase, psize; in lboxre2_devices_setup() local 54 psize = PAGE_SIZE; in lboxre2_devices_setup() 56 cf0_io_base = (u32)ioremap_prot(paddrbase, psize, pgprot_val(prot)); in lboxre2_devices_setup()
|