| /linux/crypto/ |
| H A D | testmgr.h | 43 unsigned int psize; member 3986 .psize = 1, 3991 .psize = 3, 3996 .psize = 14, 4001 .psize = 26, 4006 .psize = 62, 4012 .psize = 80, 4027 .psize = 1, 4035 .psize = 56, 4169 .psize = 1023, [all …]
|
| /linux/arch/powerpc/mm/book3s64/ |
| 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 | 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 | 623 int psize, int ssize) in htab_bolt_mapping() argument 629 shift = mmu_psize_defs[psize].shift; in htab_bolt_mapping() 635 vstart, vend, pstart, prot, psize, ssize); in htab_bolt_mapping() 678 HPTE_V_BOLTED, psize, psize, in htab_bolt_mapping() 688 HPTE_V_BOLTED, psize, psize, in htab_bolt_mapping() 708 int psize, int ssize) in htab_remove_mapping() argument 715 shift = mmu_psize_defs[psize].shift; in htab_remove_mapping() 726 rc = mmu_hash_ops.hpte_removebolted(vaddr, psize, ssize); in htab_remove_mapping() 1687 int ssize, int psize, int lpsize, unsigned long pte) in hash_failure_debug() argument 1694 trap, vsid, ssize, psize, lpsize, pte); in hash_failure_debug() [all …]
|
| /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 …]
|
| 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()
|
| H A D | tlbflush-hash.h | 20 unsigned int psize; member 62 extern void flush_hash_page(unsigned long vpn, real_pte_t pte, int psize, 66 pmd_t *pmdp, unsigned int psize, int ssize,
|
| H A D | hash-64k.h | 158 #define pte_iterate_hashed_subpages(rpte, psize, vpn, index, shift) \ argument 161 unsigned __split = (psize == MMU_PAGE_4K || \ 162 psize == MMU_PAGE_64K_AP); \ 163 shift = mmu_psize_defs[psize].shift; \
|
| H A D | slice.h | 29 unsigned long flags, unsigned int psize, 35 unsigned long len, unsigned int psize);
|
| /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() 245 static int pseries_find(unsigned long ea, int psize, bool primary, u64 *v, u64 *r) in pseries_find() argument 254 unsigned long shift = mmu_psize_defs[psize].shift; in pseries_find() 260 want_v = hpte_encode_avpn(vpn, psize, ssize); in pseries_find() 322 static int base_hpte_find(unsigned long ea, int psize, bool primary, u64 *v, in base_hpte_find() argument 326 return pseries_find(ea, psize, primary, v, r); in base_hpte_find() 328 return native_find(ea, psize, primary, v, r); in base_hpte_find() 331 static unsigned long hpte_find(struct pg_state *st, unsigned long ea, int psize) in hpte_find() argument [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/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() 396 unsigned long psize, pmask; in early_set_memory_enc_dec() local 418 psize = page_level_size(level); in early_set_memory_enc_dec() 428 ((vaddr_end - vaddr) >= psize)) { in early_set_memory_enc_dec() 430 vaddr_next = (vaddr & pmask) + psize; in early_set_memory_enc_dec() 450 __pa((vaddr_end & pmask) + psize), in early_set_memory_enc_dec()
|
| /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/drivers/gpu/drm/nouveau/nvkm/engine/dma/ |
| H A D | user.c | 68 const struct nvkm_oclass *oclass, void **pdata, u32 *psize, in nvkm_dmaobj_ctor() argument 76 u32 size = *psize; in nvkm_dmaobj_ctor() 83 nvif_ioctl(parent, "create dma size %d\n", *psize); in nvkm_dmaobj_ctor() 97 *psize = size; in nvkm_dmaobj_ctor()
|
| /linux/tools/testing/selftests/mm/ |
| H A D | mrelease_test.c | 27 buf = (char *)mmap(NULL, nr_pages * psize(), PROT_READ | PROT_WRITE, in alloc_noexit() 33 *((unsigned long *)(buf + (i * psize()))) = i; in alloc_noexit() 45 munmap(buf, nr_pages * psize()); in alloc_noexit() 72 res = alloc_noexit(MB(size) / psize(), pipefd[1]); in child_main()
|
| H A D | transhuge-stress.c | 41 if (ram > SIZE_MAX / psize() / 4) in main() 44 ram *= psize(); in main() 122 if (madvise(p, HPAGE_SIZE - psize(), MADV_DONTNEED)) in main()
|
| /linux/drivers/dpll/zl3073x/ |
| H A D | fw.c | 200 const char **psrc, size_t *psize, in zl3073x_fw_component_load() argument 212 strscpy(buf, *psrc, min(sizeof(buf), *psize)); in zl3073x_fw_component_load() 222 *psize -= pos; in zl3073x_fw_component_load() 255 strscpy(buf, *psrc, min(sizeof(buf), *psize)); in zl3073x_fw_component_load() 261 *psize -= pos; in zl3073x_fw_component_load()
|
| /linux/drivers/usb/musb/ |
| H A D | tusb6010_omap.c | 194 u32 psize; in tusb_omap_dma_program() local 346 psize = musb_readl(ep_conf, TUSB_EP_MAX_PACKET_SIZE_OFFSET); in tusb_omap_dma_program() 347 psize &= ~0x7ff; in tusb_omap_dma_program() 348 psize |= chdat->transfer_packet_sz; in tusb_omap_dma_program() 349 musb_writel(ep_conf, TUSB_EP_MAX_PACKET_SIZE_OFFSET, psize); in tusb_omap_dma_program() 355 psize = musb_readl(ep_conf, TUSB_EP_MAX_PACKET_SIZE_OFFSET); in tusb_omap_dma_program() 356 psize &= ~(0x7ff << 16); in tusb_omap_dma_program() 357 psize |= (chdat->transfer_packet_sz << 16); in tusb_omap_dma_program() 358 musb_writel(ep_conf, TUSB_EP_MAX_PACKET_SIZE_OFFSET, psize); in tusb_omap_dma_program()
|
| /linux/arch/powerpc/kvm/ |
| H A D | book3s_hv_rm_mmu.c | 97 unsigned long gfn, unsigned long psize) in kvmppc_update_dirty_map() argument 101 if (!psize || !memslot->dirty_bitmap) in kvmppc_update_dirty_map() 103 npages = (psize + PAGE_SIZE - 1) / PAGE_SIZE; in kvmppc_update_dirty_map() 114 unsigned long psize; in kvmppc_set_dirty_from_hpte() local 116 psize = kvmppc_actual_pgsz(hpte_v, hpte_gr); in kvmppc_set_dirty_from_hpte() 117 gfn = hpte_rpn(hpte_gr, psize); in kvmppc_set_dirty_from_hpte() 120 kvmppc_update_dirty_map(memslot, gfn, psize); in kvmppc_set_dirty_from_hpte() 188 unsigned long i, pa, gpa, gfn, psize; in kvmppc_do_h_enter() local 213 psize = kvmppc_actual_pgsz(pteh, ptel); in kvmppc_do_h_enter() 214 if (!psize) in kvmppc_do_h_enter() [all …]
|
| /linux/arch/powerpc/mm/nohash/ |
| H A D | e500_hugetlbpage.c | 123 unsigned long psize, tsize, shift; in book3e_hugetlb_preload() local 133 psize = vma_mmu_pagesize(vma); in book3e_hugetlb_preload() 134 shift = __ilog2(psize); in book3e_hugetlb_preload()
|