/linux/crypto/ |
A D | testmgr.h | 2885 .psize = 1, 2890 .psize = 3, 2926 .psize = 1, 3085 .psize = 1, 3247 .psize = 1, 3417 .psize = 1, 3589 .psize = 1, 3594 .psize = 3, 3631 .psize = 1, 3636 .psize = 3, [all …]
|
/linux/arch/powerpc/mm/book3s64/ |
A D | hash_native.c | 173 switch (psize) { in ___tlbie() 263 switch (psize) { in __tlbiel() 546 int psize, int ssize) in native_hpte_updateboltedpp() argument 569 tlbie(vpn, psize, psize, ssize, 0); in native_hpte_updateboltedpp() 599 tlbie(vpn, psize, psize, ssize, 0); in native_hpte_removebolted() 770 *psize = size; in hpte_decode() 797 int psize, apsize, ssize; in native_hpte_clear() local 839 unsigned long psize = batch->psize; in native_flush_hash_range() local 886 __tlbiel(vpn, psize, psize, ssize); in native_flush_hash_range() 903 __tlbie(vpn, psize, psize, ssize); in native_flush_hash_range() [all …]
|
A D | radix_tlb.c | 597 unsigned long psize; member 618 struct tlbiel_va t = { .va = va, .pid = pid, .psize = psize, .ric = ric }; in _tlbiel_va_multicast() 629 unsigned long psize; member 683 .psize = psize, .also_pwc = also_pwc }; in _tlbiel_va_range_multicast() 733 int psize) in radix__local_flush_tlb_page_psize() argument 1013 int psize) in radix__flush_tlb_page_psize() argument 1230 int psize; in radix_get_mmu_psize() local 1235 psize = MMU_PAGE_2M; in radix_get_mmu_psize() 1240 return psize; in radix_get_mmu_psize() 1284 int psize = 0; in radix__tlb_flush() local [all …]
|
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()
|
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()
|
A D | hash_utils.c | 251 int psize, int ssize) in htab_bolt_mapping() argument 306 HPTE_V_BOLTED, psize, psize, in htab_bolt_mapping() 316 HPTE_V_BOLTED, psize, psize, in htab_bolt_mapping() 1308 int psize, ssize; in hash_page_mm() local 1336 psize = mmu_io_psize; in hash_page_mm() 1376 if (psize != MMU_PAGE_4K) in hash_page_mm() 1443 psize = MMU_PAGE_4K; in hash_page_mm() 1453 psize = MMU_PAGE_4K; in hash_page_mm() 1831 mmu_hash_ops.hpte_invalidate(gslot, vpn, psize, psize, in flush_hash_page() 1923 psize, psize, ssize); in hpte_insert_repeating() [all …]
|
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()
|
/linux/arch/powerpc/mm/ |
A D | slice.c | 188 const struct slice_mask *mask, int psize) in slice_convert() argument 547 psize, topdown, high_limit); in slice_get_unmapped_area() 583 psize, topdown, high_limit); in slice_get_unmapped_area() 594 psize, topdown, high_limit); in slice_get_unmapped_area() 597 psize == MMU_PAGE_64K) { in slice_get_unmapped_area() 601 psize, topdown, high_limit); in slice_get_unmapped_area() 628 if (psize > MMU_PAGE_BASE) in slice_get_unmapped_area() 685 unsigned int psize = mmu_virtual_psize; in slice_init_new_context_exec() local 701 memset(lpsizes, (psize << 4) | psize, SLICE_NUM_LOW >> 1); in slice_init_new_context_exec() 704 memset(hpsizes, (psize << 4) | psize, SLICE_NUM_HIGH >> 1); in slice_init_new_context_exec() [all …]
|
A D | copro_fault.c | 88 int psize, ssize; in copro_calculate_slb() local 95 psize = get_slice_psize(mm, ea); in copro_calculate_slb() 102 psize = mmu_vmalloc_psize; in copro_calculate_slb() 109 psize = mmu_io_psize; in copro_calculate_slb() 116 psize = mmu_linear_psize; in copro_calculate_slb() 131 vsid |= mmu_psize_defs[psize].sllp | in copro_calculate_slb()
|
/linux/arch/powerpc/include/asm/book3s/64/ |
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); 79 int psize); [all …]
|
A D | mmu-hash.h | 146 int psize, int ssize); 152 int psize, int apsize, 156 int psize, int ssize); 186 int psize; in shift_to_mmu_psize() local 188 for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) in shift_to_mmu_psize() 190 return psize; in shift_to_mmu_psize() 203 int psize; in ap_to_shift() local 205 for (psize = 0; psize < MMU_PAGE_COUNT; psize++) { in ap_to_shift() 206 if (mmu_psize_defs[psize].ap == ap) in ap_to_shift() 496 int psize, int ssize); [all …]
|
A D | mmu.h | 166 static inline struct slice_mask *slice_mask_for_size(mm_context_t *ctx, int psize) in slice_mask_for_size() argument 169 if (psize == MMU_PAGE_64K) in slice_mask_for_size() 173 if (psize == MMU_PAGE_16M) in slice_mask_for_size() 175 if (psize == MMU_PAGE_16G) in slice_mask_for_size() 178 BUG_ON(psize != MMU_PAGE_4K); in slice_mask_for_size()
|
/linux/arch/powerpc/mm/nohash/ |
A D | tlb.c | 135 static inline int mmu_get_tsize(int psize) in mmu_get_tsize() argument 137 return mmu_psize_defs[psize].enc; in mmu_get_tsize() 140 static inline int mmu_get_tsize(int psize) in mmu_get_tsize() argument 441 int i, psize; in setup_page_sizes() local 454 for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) { in setup_page_sizes() 458 def = &mmu_psize_defs[psize]; in setup_page_sizes() 493 for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) { in setup_page_sizes() 502 if (book3e_htw_mode && psize == MMU_PAGE_2M) in setup_page_sizes() 516 for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) { in setup_page_sizes() 544 for (psize = 0; psize < MMU_PAGE_COUNT; psize++) { in setup_page_sizes() [all …]
|
A D | 8xx.c | 74 pgprot_t prot, int psize, bool new) in __early_map_kernel_hugepage() argument 79 if (WARN_ON(psize != MMU_PAGE_512K && psize != MMU_PAGE_8M)) in __early_map_kernel_hugepage() 86 if (psize == MMU_PAGE_512K) in __early_map_kernel_hugepage() 91 if (psize == MMU_PAGE_512K) in __early_map_kernel_hugepage()
|
/linux/arch/powerpc/platforms/pseries/ |
A D | lpar.c | 997 int psize, int apsize, in pSeries_lpar_hpte_invalidate() argument 1005 slot, vpn, psize, local); in pSeries_lpar_hpte_invalidate() 1247 psize, ssize); in pSeries_lpar_hugepage_invalidate() 1267 int psize, int ssize) in pSeries_lpar_hpte_removebolted() argument 1315 int psize, ssize; in do_block_remove() local 1317 psize = batch->psize; in do_block_remove() 1410 unsigned int bpsize, psize; in check_lp_set_hblkrm() local 1422 for (psize = 0; psize < MMU_PAGE_COUNT; psize++) { in check_lp_set_hblkrm() 1514 int psize, ssize; in pSeries_lpar_flush_hash_range() local 1519 if (is_supported_hlbkrm(batch->psize, batch->psize)) { in pSeries_lpar_flush_hash_range() [all …]
|
/linux/arch/powerpc/mm/ptdump/ |
A D | hashpagetable.c | 218 want_v = hpte_encode_avpn(vpn, psize, ssize); in native_find() 251 want_v = hpte_encode_avpn(vpn, psize, ssize); in pseries_find() 317 return pseries_find(ea, psize, primary, v, r); in base_hpte_find() 319 return native_find(ea, psize, primary, v, r); in base_hpte_find() 349 base_psize = mmu_psize_to_shift(psize); in hpte_find() 374 unsigned long addr, pteval, psize; in walk_pte() local 382 psize = mmu_vmalloc_psize; in walk_pte() 384 psize = mmu_io_psize; in walk_pte() 390 psize = mmu_io_psize; in walk_pte() 393 status = hpte_find(st, addr, psize); in walk_pte() [all …]
|
/linux/arch/powerpc/platforms/ps3/ |
A 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/arch/powerpc/include/asm/nohash/32/ |
A D | mmu-8xx.h | 214 int psize; in shift_to_mmu_psize() local 216 for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) in shift_to_mmu_psize() 217 if (mmu_psize_defs[psize].shift == shift) in shift_to_mmu_psize() 218 return psize; in shift_to_mmu_psize()
|
/linux/drivers/dma/bestcomm/ |
A 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/arch/x86/mm/ |
A D | mem_encrypt.c | 268 int psize, pmask, level; in notify_range_enc_status_changed() local 282 psize = page_level_size(level); in notify_range_enc_status_changed() 285 notify_page_enc_status_changed(pfn, psize >> PAGE_SHIFT, enc); in notify_range_enc_status_changed() 287 vaddr = (vaddr & pmask) + psize; in notify_range_enc_status_changed() 337 unsigned long psize, pmask; in early_set_memory_enc_dec() local 359 psize = page_level_size(level); in early_set_memory_enc_dec() 369 ((vaddr_end - vaddr) >= psize)) { in early_set_memory_enc_dec() 371 vaddr_next = (vaddr & pmask) + psize; in early_set_memory_enc_dec() 391 __pa((vaddr_end & pmask) + psize), in early_set_memory_enc_dec()
|
/linux/arch/powerpc/include/asm/nohash/ |
A D | mmu-book3e.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()
|
/linux/drivers/dma/ |
A 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/drivers/gpu/drm/nouveau/nvkm/engine/dma/ |
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/sound/pci/trident/ |
A D | trident_memory.c | 111 int page, psize; in search_empty() local 114 psize = get_aligned_page(size + ALIGN_PAGE_SIZE -1); in search_empty() 118 if (page + psize <= firstpg(blk)) in search_empty() 122 if (page + psize > MAX_ALIGN_PAGES) in search_empty() 127 blk = __snd_util_memblk_new(hdr, psize * ALIGN_PAGE_SIZE, p->prev); in search_empty() 132 lastpg(blk) = page + psize - 1; in search_empty()
|
/linux/arch/sh/boards/mach-lboxre2/ |
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()
|