Home
last modified time | relevance | path

Searched refs:vpn (Results 1 – 25 of 25) sorted by relevance

/arch/powerpc/mm/
Dhash_native_64.c48 static inline void __tlbie(unsigned long vpn, int psize, int apsize, int ssize) in __tlbie() argument
61 va = vpn << VPN_SHIFT; in __tlbie()
94 va |= (vpn & 0xfe); /* AVAL */ in __tlbie()
103 static inline void __tlbiel(unsigned long vpn, int psize, int apsize, int ssize) in __tlbiel() argument
110 va = vpn << VPN_SHIFT; in __tlbiel()
142 va |= (vpn & 0xfe); in __tlbiel()
151 static inline void tlbie(unsigned long vpn, int psize, int apsize, in tlbie() argument
165 __tlbiel(vpn, psize, apsize, ssize); in tlbie()
168 __tlbie(vpn, psize, apsize, ssize); in tlbie()
194 static long native_hpte_insert(unsigned long hpte_group, unsigned long vpn, in native_hpte_insert() argument
[all …]
Dhash64_64k.c58 unsigned long vpn, hash, slot; in __hash_page_4K() local
101 vpn = hpt_vpn(ea, vsid, ssize); in __hash_page_4K()
113 flush_hash_page(vpn, rpte, MMU_PAGE_64K, ssize, flags); in __hash_page_4K()
129 hash = hpt_hash(vpn, shift, ssize); in __hash_page_4K()
136 ret = mmu_hash_ops.hpte_updatepp(slot, rflags, vpn, in __hash_page_4K()
164 hash = hpt_hash(vpn, shift, ssize); in __hash_page_4K()
169 slot = mmu_hash_ops.hpte_insert(hpte_group, vpn, pa, rflags, 0, in __hash_page_4K()
176 slot = mmu_hash_ops.hpte_insert(hpte_group, vpn, pa, in __hash_page_4K()
227 unsigned long vpn, hash, slot; in __hash_page_64K() local
265 vpn = hpt_vpn(ea, vsid, ssize); in __hash_page_64K()
[all …]
Dhugetlbpage-hash64.c17 extern long hpte_insert_repeating(unsigned long hash, unsigned long vpn,
25 unsigned long vpn; in __hash_page_huge() local
33 vpn = hpt_vpn(ea, vsid, ssize); in __hash_page_huge()
76 hash = hpt_hash(vpn, shift, ssize); in __hash_page_huge()
82 if (mmu_hash_ops.hpte_updatepp(slot, rflags, vpn, mmu_psize, in __hash_page_huge()
88 unsigned long hash = hpt_hash(vpn, shift, ssize); in __hash_page_huge()
95 slot = hpte_insert_repeating(hash, vpn, pa, rflags, 0, in __hash_page_huge()
Dhash64_4k.c26 unsigned long vpn, hash, slot; in __hash_page_4K() local
62 vpn = hpt_vpn(ea, vsid, ssize); in __hash_page_4K()
67 hash = hpt_hash(vpn, shift, ssize); in __hash_page_4K()
73 if (mmu_hash_ops.hpte_updatepp(slot, rflags, vpn, MMU_PAGE_4K, in __hash_page_4K()
81 hash = hpt_hash(vpn, shift, ssize); in __hash_page_4K()
87 slot = mmu_hash_ops.hpte_insert(hpte_group, vpn, pa, rflags, 0, in __hash_page_4K()
94 slot = mmu_hash_ops.hpte_insert(hpte_group, vpn, pa, in __hash_page_4K()
Dhugepage-hash64.c30 unsigned long vpn, hash, shift, slot; in __hash_page_thp() local
73 vpn = hpt_vpn(ea, vsid, ssize); in __hash_page_thp()
99 hash = hpt_hash(vpn, shift, ssize); in __hash_page_thp()
106 ret = mmu_hash_ops.hpte_updatepp(slot, rflags, vpn, in __hash_page_thp()
125 hash = hpt_hash(vpn, shift, ssize); in __hash_page_thp()
134 slot = mmu_hash_ops.hpte_insert(hpte_group, vpn, pa, rflags, 0, in __hash_page_thp()
142 slot = mmu_hash_ops.hpte_insert(hpte_group, vpn, pa, in __hash_page_thp()
Dtlb_hash64.c46 unsigned long vpn; in hpte_need_flush() local
91 vpn = hpt_vpn(addr, vsid, ssize); in hpte_need_flush()
101 flush_hash_page(vpn, rpte, psize, ssize, 0); in hpte_need_flush()
127 batch->vpn[i] = vpn; in hpte_need_flush()
151 flush_hash_page(batch->vpn[0], batch->pte[0], in __flush_tlb_pending()
Dhash_utils_64.c255 unsigned long vpn = hpt_vpn(vaddr, vsid, ssize); in htab_bolt_mapping() local
285 hash = hpt_hash(vpn, shift, ssize); in htab_bolt_mapping()
289 ret = mmu_hash_ops.hpte_insert(hpteg, vpn, paddr, tprot, in htab_bolt_mapping()
1577 void flush_hash_page(unsigned long vpn, real_pte_t pte, int psize, int ssize, in flush_hash_page() argument
1583 DBG_LOW("flush_hash_page(vpn=%016lx)\n", vpn); in flush_hash_page()
1584 pte_iterate_hashed_subpages(pte, psize, vpn, index, shift) { in flush_hash_page()
1585 hash = hpt_hash(vpn, shift, ssize); in flush_hash_page()
1596 mmu_hash_ops.hpte_invalidate(slot, vpn, psize, psize, in flush_hash_page()
1611 unsigned long hidx, shift, vpn, hash, slot; in flush_hash_hugepage() local
1646 vpn = hpt_vpn(addr, vsid, ssize); in flush_hash_hugepage()
[all …]
/arch/powerpc/platforms/pseries/
Dlpar.c133 unsigned long vpn, unsigned long pa, in pSeries_lpar_hpte_insert() argument
145 hpte_group, vpn, pa, rflags, vflags, psize); in pSeries_lpar_hpte_insert()
147 hpte_v = hpte_encode_v(vpn, psize, apsize, ssize) | vflags | HPTE_V_VALID; in pSeries_lpar_hpte_insert()
277 unsigned long vpn, in pSeries_lpar_hpte_updatepp() argument
285 want_v = hpte_encode_avpn(vpn, psize, ssize); in pSeries_lpar_hpte_updatepp()
334 static long pSeries_lpar_hpte_find(unsigned long vpn, int psize, int ssize) in pSeries_lpar_hpte_find() argument
341 hash = hpt_hash(vpn, mmu_psize_defs[psize].shift, ssize); in pSeries_lpar_hpte_find()
342 want_v = hpte_encode_avpn(vpn, psize, ssize); in pSeries_lpar_hpte_find()
356 unsigned long vpn; in pSeries_lpar_hpte_updateboltedpp() local
360 vpn = hpt_vpn(ea, vsid, ssize); in pSeries_lpar_hpte_updateboltedpp()
[all …]
/arch/powerpc/platforms/ps3/
Dhtab.c47 static long ps3_hpte_insert(unsigned long hpte_group, unsigned long vpn, in ps3_hpte_insert() argument
65 hpte_v = hpte_encode_v(vpn, psize, apsize, ssize) | vflags | HPTE_V_VALID; in ps3_hpte_insert()
80 __func__, ps3_result(result), vpn, pa, hpte_group, in ps3_hpte_insert()
112 unsigned long vpn, int psize, int apsize, in ps3_hpte_updatepp() argument
121 want_v = hpte_encode_avpn(vpn, psize, ssize); in ps3_hpte_updatepp()
132 __func__, ps3_result(result), vpn, slot, psize); in ps3_hpte_updatepp()
165 static void ps3_hpte_invalidate(unsigned long slot, unsigned long vpn, in ps3_hpte_invalidate() argument
177 __func__, ps3_result(result), vpn, slot, psize); in ps3_hpte_invalidate()
/arch/sh/mm/
Dtlb-sh3.c31 unsigned long flags, pteval, vpn; in __update_tlb() local
42 vpn = (address & MMU_VPN_MASK) | get_asid(); in __update_tlb()
43 __raw_writel(vpn, MMU_PTEH); in __update_tlb()
Dpmb.c37 unsigned long vpn; member
132 return (b->vpn == (a->vpn + a->size)) && in pmb_can_merge()
156 if ((vaddr < pmbe->vpn) || (vaddr >= (pmbe->vpn + pmbe->size))) in pmb_mapping_exists()
236 static struct pmb_entry *pmb_alloc(unsigned long vpn, unsigned long ppn, in pmb_alloc() argument
269 pmbe->vpn = vpn; in pmb_alloc()
302 __raw_writel(pmbe->vpn | PMB_V, addr); in __set_pmb_entry()
472 if (pmbe->vpn == vaddr) { in pmb_unmap()
506 flush_cache_vunmap(pmbe->vpn, pmbe->vpn + pmbe->size); in __pmb_unmap_entry()
543 pmbe->vpn >> PAGE_SHIFT, pmbe->ppn >> PAGE_SHIFT, in pmb_notify()
579 unsigned long ppn, vpn, flags; in pmb_synchronize() local
[all …]
Dtlb-pteaex.c20 unsigned long flags, pteval, vpn; in __update_tlb() local
31 vpn = address & MMU_VPN_MASK; in __update_tlb()
32 __raw_writel(vpn, MMU_PTEH); in __update_tlb()
Dtlb-sh4.c19 unsigned long flags, pteval, vpn; in __update_tlb() local
30 vpn = (address & MMU_VPN_MASK) | get_asid(); in __update_tlb()
31 __raw_writel(vpn, MMU_PTEH); in __update_tlb()
Dtlb-debugfs.c94 unsigned long vpn, ppn, asid, size; in tlb_seq_show() local
102 vpn = val & 0xfffffc00; in tlb_seq_show()
126 entry, vpn, ppn, asid, in tlb_seq_show()
/arch/powerpc/include/asm/book3s/64/
Dmmu-hash.h134 unsigned long vpn,
139 unsigned long vpn,
146 unsigned long vpn,
309 static inline unsigned long hpte_encode_avpn(unsigned long vpn, int psize, in hpte_encode_avpn() argument
321 v = (vpn >> (23 - VPN_SHIFT)) & ~(mmu_psize_defs[psize].avpnm); in hpte_encode_avpn()
363 static inline unsigned long hpte_encode_v(unsigned long vpn, int base_psize, in hpte_encode_v() argument
367 v = hpte_encode_avpn(vpn, base_psize, ssize); in hpte_encode_v()
407 static inline unsigned long hpt_hash(unsigned long vpn, in hpt_hash() argument
416 hash = (vpn >> (SID_SHIFT - VPN_SHIFT)) ^ in hpt_hash()
417 ((vpn & mask) >> (shift - VPN_SHIFT)); in hpt_hash()
[all …]
Dhash-64k.h82 #define pte_iterate_hashed_subpages(rpte, psize, vpn, index, shift) \ argument
84 unsigned long __end = vpn + (1UL << (PAGE_SHIFT - VPN_SHIFT)); \
88 for (index = 0; vpn < __end; index++, \
89 vpn += (1L << (shift - VPN_SHIFT))) { \
Dtlbflush-hash.h18 unsigned long vpn[PPC64_TLB_BATCH_NR]; member
54 extern void flush_hash_page(unsigned long vpn, real_pte_t pte, int psize,
/arch/xtensa/mm/
Dtlb.c221 unsigned vpn = (r0 & PAGE_MASK) | (e << PAGE_SHIFT); in check_tlb_entry() local
222 unsigned pte = get_pte_for_vaddr(vpn); in check_tlb_entry()
228 if (tlb_asid > 0 && ((vpn < TASK_SIZE) == kernel)) { in check_tlb_entry()
230 dtlb ? 'D' : 'I', w, e, vpn, in check_tlb_entry()
/arch/powerpc/kvm/
Dbook3s_64_mmu_host.c85 unsigned long vpn; in kvmppc_mmu_map_page() local
133 vpn = hpt_vpn(orig_pte->eaddr, map->host_vsid, MMU_SEGSIZE_256M); in kvmppc_mmu_map_page()
157 hash = hpt_hash(vpn, mmu_psize_defs[hpsize].shift, MMU_SEGSIZE_256M); in kvmppc_mmu_map_page()
177 ret = mmu_hash_ops.hpte_insert(hpteg, vpn, hpaddr, rflags, vflags, in kvmppc_mmu_map_page()
191 vpn, hpaddr, orig_pte); in kvmppc_mmu_map_page()
203 cpte->host_vpn = vpn; in kvmppc_mmu_map_page()
Dbook3s_32_mmu_host.c146 u64 vpn; in kvmppc_mmu_map_page() local
179 vpn = (vsid << (SID_SHIFT - VPN_SHIFT)) | in kvmppc_mmu_map_page()
255 orig_pte->eaddr, (ulong)pteg, vpn, in kvmppc_mmu_map_page()
259 pte->host_vpn = vpn; in kvmppc_mmu_map_page()
Dbook3s_64_mmu.c141 u64 vpn; in kvmppc_mmu_book3s_64_get_pteg() local
145 vpn = kvmppc_slb_calc_vpn(slbe, eaddr); in kvmppc_mmu_book3s_64_get_pteg()
147 hash = hpt_hash(vpn, kvmppc_mmu_book3s_64_get_pagesize(slbe), ssize); in kvmppc_mmu_book3s_64_get_pteg()
/arch/cris/arch-v10/mm/
Dtlb.c49 IO_FIELD(R_TLB_HI, vpn, i & 0xf ) ); in flush_tlb_all()
85 IO_FIELD(R_TLB_HI, vpn, i & 0xf ) ); in flush_tlb_mm()
/arch/cris/arch-v32/mm/
Dtlb.c66 | REG_FIELD(mmu, rw_mm_tlb_hi, vpn, i & 0xf)); in __flush_tlb_all()
108 | REG_FIELD(mmu, rw_mm_tlb_hi, vpn, in __flush_tlb_mm()
/arch/x86/include/asm/uv/
Duv_mmrs.h1216 unsigned long vpn:39; /* RO */ member
1221 unsigned long vpn:39; /* RO */ member
1226 unsigned long vpn:39; /* RO */ member
1231 unsigned long vpn:39; /* RO */ member
1236 unsigned long vpn:39; /* RO */ member
1241 unsigned long vpn:39; /* RO */ member
1720 unsigned long vpn:39; /* RO */ member
1725 unsigned long vpn:39; /* RO */ member
1730 unsigned long vpn:39; /* RO */ member
1735 unsigned long vpn:39; /* RO */ member
[all …]
/arch/ia64/kernel/
Dpalinfo.c722 unsigned long vpn:52; in tr_info() member
788 (gr_reg->ppn & pgm)<< 12, (ifa_reg->vpn & pgm)<< 12); in tr_info()