/Linux-v5.4/crypto/ |
D | testmgr.h | 41 unsigned int psize; member 1175 .psize = 1, 1180 .psize = 3, 1185 .psize = 14, 1190 .psize = 26, 1195 .psize = 62, 1201 .psize = 80, 1216 .psize = 1, 1224 .psize = 56, 1358 .psize = 1023, [all …]
|
/Linux-v5.4/arch/powerpc/mm/book3s64/ |
D | hash_native.c | 143 static inline unsigned long ___tlbie(unsigned long vpn, int psize, in ___tlbie() argument 166 switch (psize) { in ___tlbie() 179 penc = mmu_psize_defs[psize].penc[apsize]; in ___tlbie() 200 static inline void fixup_tlbie_vpn(unsigned long vpn, int psize, in fixup_tlbie_vpn() argument 228 ___tlbie(vpn, psize, apsize, ssize); in fixup_tlbie_vpn() 232 static inline void __tlbie(unsigned long vpn, int psize, int apsize, int ssize) in __tlbie() argument 236 rb = ___tlbie(vpn, psize, apsize, ssize); in __tlbie() 240 static inline void __tlbiel(unsigned long vpn, int psize, int apsize, int ssize) in __tlbiel() argument 256 switch (psize) { in __tlbiel() 269 penc = mmu_psize_defs[psize].penc[apsize]; in __tlbiel() [all …]
|
D | radix_tlb.c | 417 unsigned long psize) in __tlbiel_va_range() argument 420 unsigned long ap = mmu_get_ap(psize); in __tlbiel_va_range() 427 unsigned long psize, unsigned long ric) in _tlbiel_va() argument 429 unsigned long ap = mmu_get_ap(psize); in _tlbiel_va() 438 unsigned long psize, bool also_pwc) in _tlbiel_va_range() argument 443 __tlbiel_va_range(start, end, pid, page_size, psize); in _tlbiel_va_range() 449 unsigned long psize) in __tlbie_va_range() argument 452 unsigned long ap = mmu_get_ap(psize); in __tlbie_va_range() 461 unsigned long psize, unsigned long ric) in _tlbie_va() argument 463 unsigned long ap = mmu_get_ap(psize); in _tlbie_va() [all …]
|
D | hash_tlb.c | 47 unsigned int psize; in hpte_need_flush() local 64 psize = get_slice_psize(mm, addr); in hpte_need_flush() 66 addr &= ~((1UL << mmu_psize_defs[psize].shift) - 1); in hpte_need_flush() 67 if (unlikely(psize == MMU_PAGE_16G)) in hpte_need_flush() 73 psize = pte_pagesize_index(mm, addr, pte); /* shutup gcc */ in hpte_need_flush() 76 psize = pte_pagesize_index(mm, addr, pte); in hpte_need_flush() 105 flush_hash_page(vpn, rpte, psize, ssize, mm_is_thread_local(mm)); in hpte_need_flush() 120 if (i != 0 && (mm != batch->mm || batch->psize != psize || in hpte_need_flush() 127 batch->psize = psize; in hpte_need_flush() 153 batch->psize, batch->ssize, local); in __flush_tlb_pending()
|
D | radix_hugetlbpage.c | 14 int psize; in radix__flush_hugetlb_page() local 17 psize = hstate_get_psize(hstate); in radix__flush_hugetlb_page() 18 radix__flush_tlb_page_psize(vma->vm_mm, vmaddr, psize); in radix__flush_hugetlb_page() 23 int psize; in radix__local_flush_hugetlb_page() local 26 psize = hstate_get_psize(hstate); in radix__local_flush_hugetlb_page() 27 radix__local_flush_tlb_page_psize(vma->vm_mm, vmaddr, psize); in radix__local_flush_hugetlb_page() 33 int psize; in radix__flush_hugetlb_tlb_range() local 36 psize = hstate_get_psize(hstate); in radix__flush_hugetlb_tlb_range() 37 radix__flush_tlb_range_psize(vma->vm_mm, start, end, psize); in radix__flush_hugetlb_tlb_range()
|
D | hash_utils.c | 246 int psize, int ssize) in htab_bolt_mapping() argument 252 shift = mmu_psize_defs[psize].shift; in htab_bolt_mapping() 258 vstart, vend, pstart, prot, psize, ssize); in htab_bolt_mapping() 295 HPTE_V_BOLTED, psize, psize, in htab_bolt_mapping() 311 int psize, int ssize) in htab_remove_mapping() argument 318 shift = mmu_psize_defs[psize].shift; in htab_remove_mapping() 325 rc = mmu_hash_ops.hpte_removebolted(vaddr, psize, ssize); in htab_remove_mapping() 1202 int ssize, int psize, int lpsize, unsigned long pte) in hash_failure_debug() argument 1209 trap, vsid, ssize, psize, lpsize, pte); in hash_failure_debug() 1213 int psize, bool user_region) in check_paca_psize() argument [all …]
|
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()
|
D | hash_pgtable.c | 315 unsigned int psize; in hpte_do_hugepage_flush() local 321 psize = get_slice_psize(mm, addr); in hpte_do_hugepage_flush() 322 BUG_ON(psize == MMU_PAGE_16M); in hpte_do_hugepage_flush() 325 psize = MMU_PAGE_4K; in hpte_do_hugepage_flush() 327 psize = MMU_PAGE_64K; in hpte_do_hugepage_flush() 341 return flush_hash_hugepage(vsid, addr, pmdp, psize, ssize, flags); in hpte_do_hugepage_flush()
|
/Linux-v5.4/arch/powerpc/mm/ |
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() 327 int psize, unsigned long high_limit) in slice_find_area_topdown() argument 329 int pshift = max_t(int, mmu_psize_defs[psize].shift, PAGE_SHIFT); in slice_find_area_topdown() 380 return slice_find_area_bottomup(mm, len, available, psize, high_limit); in slice_find_area_topdown() [all …]
|
D | copro_fault.c | 93 int psize, ssize; in copro_calculate_slb() local 100 psize = get_slice_psize(mm, ea); in copro_calculate_slb() 107 psize = mmu_vmalloc_psize; in copro_calculate_slb() 114 psize = mmu_io_psize; in copro_calculate_slb() 121 psize = mmu_linear_psize; in copro_calculate_slb() 136 vsid |= mmu_psize_defs[psize].sllp | in copro_calculate_slb()
|
/Linux-v5.4/arch/powerpc/mm/nohash/ |
D | tlb.c | 138 static inline int mmu_get_tsize(int psize) in mmu_get_tsize() argument 140 return mmu_psize_defs[psize].enc; in mmu_get_tsize() 143 static inline int mmu_get_tsize(int psize) in mmu_get_tsize() argument 442 int i, psize; in setup_page_sizes() local 455 for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) { in setup_page_sizes() 459 def = &mmu_psize_defs[psize]; in setup_page_sizes() 494 for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) { in setup_page_sizes() 495 struct mmu_psize_def *def = &mmu_psize_defs[psize]; in setup_page_sizes() 503 if (book3e_htw_mode && psize == MMU_PAGE_2M) in setup_page_sizes() 517 for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) { in setup_page_sizes() [all …]
|
/Linux-v5.4/arch/powerpc/include/asm/book3s/64/ |
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 …]
|
D | tlbflush-radix.h | 9 static inline int mmu_get_ap(int psize) in mmu_get_ap() argument 11 return mmu_psize_defs[psize].ap; in mmu_get_ap() 47 unsigned long end, int psize); 58 int psize); 65 int psize);
|
D | mmu.h | 172 static inline struct slice_mask *slice_mask_for_size(mm_context_t *ctx, int psize) in slice_mask_for_size() argument 175 if (psize == MMU_PAGE_64K) in slice_mask_for_size() 179 if (psize == MMU_PAGE_16M) in slice_mask_for_size() 181 if (psize == MMU_PAGE_16G) in slice_mask_for_size() 184 BUG_ON(psize != MMU_PAGE_4K); in slice_mask_for_size()
|
D | tlbflush-hash.h | 20 unsigned int psize; member 56 extern void flush_hash_page(unsigned long vpn, real_pte_t pte, int psize, 60 pmd_t *pmdp, unsigned int psize, int ssize,
|
/Linux-v5.4/arch/powerpc/include/asm/nohash/32/ |
D | mmu-8xx.h | 256 static inline struct slice_mask *slice_mask_for_size(mm_context_t *ctx, int psize) in slice_mask_for_size() argument 258 if (psize == MMU_PAGE_512K) in slice_mask_for_size() 260 if (psize == MMU_PAGE_8M) in slice_mask_for_size() 263 BUG_ON(psize != mmu_virtual_psize); in slice_mask_for_size() 291 int psize; in shift_to_mmu_psize() local 293 for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) in shift_to_mmu_psize() 294 if (mmu_psize_defs[psize].shift == shift) in shift_to_mmu_psize() 295 return psize; in shift_to_mmu_psize()
|
/Linux-v5.4/arch/powerpc/platforms/pseries/ |
D | lpar.c | 708 int psize, int apsize, int ssize) in pSeries_lpar_hpte_insert() argument 718 hpte_group, vpn, pa, rflags, vflags, psize); in pSeries_lpar_hpte_insert() 720 hpte_v = hpte_encode_v(vpn, psize, apsize, ssize) | vflags | HPTE_V_VALID; in pSeries_lpar_hpte_insert() 721 hpte_r = hpte_encode_r(pa, psize, apsize) | rflags; in pSeries_lpar_hpte_insert() 872 int psize, int apsize, in pSeries_lpar_hpte_updatepp() argument 879 want_v = hpte_encode_avpn(vpn, psize, ssize); in pSeries_lpar_hpte_updatepp() 887 want_v, slot, flags, psize); in pSeries_lpar_hpte_updatepp() 931 static long pSeries_lpar_hpte_find(unsigned long vpn, int psize, int ssize) in pSeries_lpar_hpte_find() argument 938 hash = hpt_hash(vpn, mmu_psize_defs[psize].shift, ssize); in pSeries_lpar_hpte_find() 939 want_v = hpte_encode_avpn(vpn, psize, ssize); in pSeries_lpar_hpte_find() [all …]
|
/Linux-v5.4/arch/powerpc/platforms/ps3/ |
D | htab.c | 37 int psize, int apsize, int ssize) in ps3_hpte_insert() argument 53 hpte_v = hpte_encode_v(vpn, psize, apsize, ssize) | vflags | HPTE_V_VALID; in ps3_hpte_insert() 54 hpte_r = hpte_encode_r(ps3_mm_phys_to_lpar(pa), psize, apsize) | rflags; in ps3_hpte_insert() 100 unsigned long vpn, int psize, int apsize, in ps3_hpte_updatepp() argument 109 want_v = hpte_encode_avpn(vpn, psize, ssize); in ps3_hpte_updatepp() 120 __func__, ps3_result(result), vpn, slot, psize); in ps3_hpte_updatepp() 148 int psize, int ssize) in ps3_hpte_updateboltedpp() argument 154 int psize, int apsize, int ssize, int local) in ps3_hpte_invalidate() argument 165 __func__, ps3_result(result), vpn, slot, psize); in ps3_hpte_invalidate()
|
/Linux-v5.4/arch/powerpc/mm/ptdump/ |
D | hashpagetable.c | 207 static int native_find(unsigned long ea, int psize, bool primary, u64 *v, u64 in native_find() argument 213 unsigned long shift = mmu_psize_defs[psize].shift; in native_find() 219 want_v = hpte_encode_avpn(vpn, psize, ssize); in native_find() 240 static int pseries_find(unsigned long ea, int psize, bool primary, u64 *v, u64 *r) in pseries_find() argument 246 unsigned long shift = mmu_psize_defs[psize].shift; in pseries_find() 252 want_v = hpte_encode_avpn(vpn, psize, ssize); in pseries_find() 314 static int base_hpte_find(unsigned long ea, int psize, bool primary, u64 *v, in base_hpte_find() argument 318 return pseries_find(ea, psize, primary, v, r); in base_hpte_find() 320 return native_find(ea, psize, primary, v, r); in base_hpte_find() 323 static unsigned long hpte_find(struct pg_state *st, unsigned long ea, int psize) in hpte_find() argument [all …]
|
/Linux-v5.4/drivers/dma/bestcomm/ |
D | sram.c | 46 unsigned int psize; in bcom_sram_init() local 102 reg_addr_p = of_get_property(sram_node, "available", &psize); in bcom_sram_init() 105 psize = 0; in bcom_sram_init() 108 if (!regaddr_p || !psize) { in bcom_sram_init() 113 while (psize >= 2 * sizeof(u32)) { in bcom_sram_init() 117 psize -= 2 * sizeof(u32); in bcom_sram_init()
|
/Linux-v5.4/arch/powerpc/include/asm/nohash/ |
D | mmu-book3e.h | 254 int psize; in shift_to_mmu_psize() local 256 for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) in shift_to_mmu_psize() 257 if (mmu_psize_defs[psize].shift == shift) in shift_to_mmu_psize() 258 return psize; in shift_to_mmu_psize()
|
/Linux-v5.4/drivers/dma/ |
D | ste_dma40_ll.c | 53 l3 |= cfg->dst_info.psize << D40_MEM_LCSP3_DCFG_PSIZE_POS; in d40_log_cfg() 58 l1 |= cfg->src_info.psize << D40_MEM_LCSP1_SCFG_PSIZE_POS; in d40_log_cfg() 102 if (cfg->src_info.psize != STEDMA40_PSIZE_PHY_1) { in d40_phy_cfg() 104 src |= cfg->src_info.psize << D40_SREG_CFG_PSIZE_POS; in d40_phy_cfg() 106 if (cfg->dst_info.psize != STEDMA40_PSIZE_PHY_1) { in d40_phy_cfg() 108 dst |= cfg->dst_info.psize << D40_SREG_CFG_PSIZE_POS; in d40_phy_cfg() 143 int psize = info->psize; in d40_phy_fill_lli() local 146 if (psize == STEDMA40_PSIZE_PHY_1) in d40_phy_fill_lli() 149 num_elems = 2 << psize; in d40_phy_fill_lli()
|
/Linux-v5.4/arch/sh/boards/mach-lboxre2/ |
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()
|
/Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/engine/dma/ |
D | user.c | 69 const struct nvkm_oclass *oclass, void **pdata, u32 *psize, in nvkm_dmaobj_ctor() argument 81 u32 size = *psize; in nvkm_dmaobj_ctor() 88 nvif_ioctl(parent, "create dma size %d\n", *psize); in nvkm_dmaobj_ctor() 102 *psize = size; in nvkm_dmaobj_ctor()
|
/Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | changv100.c | 30 gv100_disp_chan_user(struct nv50_disp_chan *chan, u64 *psize) in gv100_disp_chan_user() argument 32 *psize = 0x1000; in gv100_disp_chan_user()
|