Home
last modified time | relevance | path

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

12

/arch/powerpc/mm/
Dcopro_fault.c87 u64 vsid, vsidkey; in copro_calculate_slb() local
97 vsid = get_user_vsid(&mm->context, ea, ssize); in copro_calculate_slb()
104 vsid = get_kernel_vsid(ea, mmu_kernel_ssize); in copro_calculate_slb()
111 vsid = get_kernel_vsid(ea, mmu_kernel_ssize); in copro_calculate_slb()
118 vsid = get_kernel_vsid(ea, mmu_kernel_ssize); in copro_calculate_slb()
126 if (!vsid) in copro_calculate_slb()
129 vsid = (vsid << slb_vsid_shift(ssize)) | vsidkey; in copro_calculate_slb()
131 vsid |= mmu_psize_defs[psize].sllp | in copro_calculate_slb()
135 slb->vsid = vsid; in copro_calculate_slb()
/arch/powerpc/include/asm/book3s/64/
Dmmu-hash.h159 void (*hugepage_invalidate)(unsigned long vsid,
421 unsigned long vsid, int ssize) in hpt_vpn() argument
427 return (vsid << (s_shift - VPN_SHIFT)) | ((ea >> VPN_SHIFT) & mask); in hpt_vpn()
437 unsigned long hash, vsid; in hpt_hash() local
446 vsid = vpn >> (SID_SHIFT_1T - VPN_SHIFT); in hpt_hash()
447 hash = vsid ^ (vsid << 25) ^ in hpt_hash()
457 unsigned long vsid, pte_t *ptep, unsigned long trap,
460 unsigned long vsid, pte_t *ptep, unsigned long trap,
469 int __hash_page_huge(unsigned long ea, unsigned long access, unsigned long vsid,
474 unsigned long vsid, pmd_t *pmdp, unsigned long trap,
[all …]
Dtlbflush-hash.h59 extern void flush_hash_hugepage(unsigned long vsid, unsigned long addr,
/arch/powerpc/kvm/
Dbook3s_32_mmu.c73 u64 *vsid);
83 u64 vsid; in kvmppc_mmu_book3s_32_ea_to_vp() local
89 kvmppc_mmu_book3s_32_esid_to_vsid(vcpu, eaddr >> SID_SHIFT, &vsid); in kvmppc_mmu_book3s_32_ea_to_vp()
90 return (((u64)eaddr >> 12) & 0xffff) | (vsid << 16); in kvmppc_mmu_book3s_32_ea_to_vp()
156 u64 vsid; in kvmppc_mmu_book3s_32_xlate_bat() local
158 eaddr >> SID_SHIFT, &vsid); in kvmppc_mmu_book3s_32_xlate_bat()
159 vsid <<= 16; in kvmppc_mmu_book3s_32_xlate_bat()
160 pte->vpage = (((u64)eaddr >> 12) & 0xffff) | vsid; in kvmppc_mmu_book3s_32_xlate_bat()
349 u64 *vsid) in kvmppc_mmu_book3s_32_esid_to_vsid() argument
367 *vsid = VSID_REAL | esid; in kvmppc_mmu_book3s_32_esid_to_vsid()
[all …]
Dbook3s_32_mmu_host.c106 static u32 *kvmppc_mmu_get_pteg(struct kvm_vcpu *vcpu, u32 vsid, u32 eaddr, in kvmppc_mmu_get_pteg() argument
114 hash = ((vsid ^ page) << 6); in kvmppc_mmu_get_pteg()
135 u64 vsid; in kvmppc_mmu_map_page() local
158 vcpu->arch.mmu.esid_to_vsid(vcpu, orig_pte->eaddr >> SID_SHIFT, &vsid); in kvmppc_mmu_map_page()
159 map = find_sid_vsid(vcpu, vsid); in kvmppc_mmu_map_page()
162 map = find_sid_vsid(vcpu, vsid); in kvmppc_mmu_map_page()
166 vsid = map->host_vsid; in kvmppc_mmu_map_page()
167 vpn = (vsid << (SID_SHIFT - VPN_SHIFT)) | in kvmppc_mmu_map_page()
176 pteg = kvmppc_mmu_get_pteg(vcpu, vsid, eaddr, primary); in kvmppc_mmu_map_page()
194 pteg0 = ((eaddr & 0x0fffffff) >> 22) | (vsid << 7) | PTE_V | in kvmppc_mmu_map_page()
Dbook3s_64_mmu_host.c76 u64 vsid; in kvmppc_mmu_map_page() local
106 vcpu->arch.mmu.esid_to_vsid(vcpu, orig_pte->eaddr >> SID_SHIFT, &vsid); in kvmppc_mmu_map_page()
107 map = find_sid_vsid(vcpu, vsid); in kvmppc_mmu_map_page()
111 map = find_sid_vsid(vcpu, vsid); in kvmppc_mmu_map_page()
115 vsid, orig_pte->eaddr); in kvmppc_mmu_map_page()
142 if (vsid & VSID_64K) in kvmppc_mmu_map_page()
215 u64 vsid; in kvmppc_mmu_unmap_page() local
217 vcpu->arch.mmu.esid_to_vsid(vcpu, pte->eaddr >> SID_SHIFT, &vsid); in kvmppc_mmu_unmap_page()
218 if (vsid & VSID_64K) in kvmppc_mmu_unmap_page()
347 svcpu->slb[slb_index].vsid = slb_vsid; in kvmppc_mmu_map_segment()
Dbook3s_64_mmu.c51 if (vcpu->arch.slb[i].vsid) in kvmppc_mmu_book3s_64_find_slbe()
57 vcpu->arch.slb[i].vsid); in kvmppc_mmu_book3s_64_find_slbe()
78 ((slb->vsid) << (kvmppc_slb_sid_shift(slb) - VPN_SHIFT)); in kvmppc_slb_calc_vpn()
141 page, vcpu_book3s->sdr1, pteg, slbe->vsid); in kvmppc_mmu_book3s_64_get_pteg()
161 avpn |= slbe->vsid << (kvmppc_slb_sid_shift(slbe) - p); in kvmppc_mmu_book3s_64_get_avpn()
384 slbe->vsid = (rs & ~SLB_VSID_B) >> (kvmppc_slb_sid_shift(slbe) - 16); in kvmppc_mmu_book3s_64_slbmte()
574 u64 *vsid) in kvmppc_mmu_book3s_64_esid_to_vsid() argument
586 gvsid = slb->vsid; in kvmppc_mmu_book3s_64_esid_to_vsid()
632 *vsid = gvsid; in kvmppc_mmu_book3s_64_esid_to_vsid()
640 *vsid = VSID_REAL | esid; in kvmppc_mmu_book3s_64_esid_to_vsid()
Dbook3s_hv_ras.c58 unsigned long rs = be64_to_cpu(slb->save_area[i].vsid); in reload_slb()
Dbook3s_64_mmu_hv.c1318 unsigned long offset, vsid; in resize_hpt_rehash_hpte() local
1322 vsid = avpn >> 5; in resize_hpt_rehash_hpte()
1325 offset |= ((vsid ^ pteg) & old_hash_mask) << pshift; in resize_hpt_rehash_hpte()
1327 hash = vsid ^ (offset >> pshift); in resize_hpt_rehash_hpte()
1329 unsigned long offset, vsid; in resize_hpt_rehash_hpte() local
1333 vsid = avpn >> 17; in resize_hpt_rehash_hpte()
1335 offset |= ((vsid ^ (vsid << 25) ^ pteg) & old_hash_mask) << pshift; in resize_hpt_rehash_hpte()
1337 hash = vsid ^ (vsid << 25) ^ (offset >> pshift); in resize_hpt_rehash_hpte()
/arch/powerpc/mm/book3s64/
Dhash_native.c549 unsigned long vsid; in native_hpte_updateboltedpp() local
553 vsid = get_kernel_vsid(ea, ssize); in native_hpte_updateboltedpp()
554 vpn = hpt_vpn(ea, vsid, ssize); in native_hpte_updateboltedpp()
580 unsigned long vsid; in native_hpte_removebolted() local
584 vsid = get_kernel_vsid(ea, ssize); in native_hpte_removebolted()
585 vpn = hpt_vpn(ea, vsid, ssize); in native_hpte_removebolted()
643 static void native_hugepage_invalidate(unsigned long vsid, in native_hugepage_invalidate() argument
668 vpn = hpt_vpn(addr, vsid, ssize); in native_hugepage_invalidate()
705 static void native_hugepage_invalidate(unsigned long vsid, in native_hugepage_invalidate() argument
720 unsigned long vsid, seg_off; in hpte_decode() local
[all …]
Dhash_tlb.c45 unsigned long vsid; in hpte_need_flush() local
90 vsid = get_user_vsid(&mm->context, addr, ssize); in hpte_need_flush()
92 vsid = get_kernel_vsid(addr, mmu_kernel_ssize); in hpte_need_flush()
95 WARN_ON(vsid == 0); in hpte_need_flush()
96 vpn = hpt_vpn(addr, vsid, ssize); in hpte_need_flush()
Dhash_utils.c270 unsigned long vsid = get_kernel_vsid(vaddr, ssize); in htab_bolt_mapping() local
271 unsigned long vpn = hpt_vpn(vaddr, vsid, ssize); in htab_bolt_mapping()
278 if (!vsid) in htab_bolt_mapping()
1263 unsigned long vsid, unsigned long trap, in hash_failure_debug() argument
1271 trap, vsid, ssize, psize, lpsize, pte); in hash_failure_debug()
1304 unsigned long vsid; in hash_page_mm() local
1325 vsid = get_user_vsid(&mm->context, ea, ssize); in hash_page_mm()
1328 vsid = get_kernel_vsid(ea, mmu_kernel_ssize); in hash_page_mm()
1334 vsid = get_kernel_vsid(ea, mmu_kernel_ssize); in hash_page_mm()
1346 DBG_LOW(" mm=%p, mm->pgdir=%p, vsid=%016lx\n", mm, mm->pgd, vsid); in hash_page_mm()
[all …]
Dhash_hugepage.c21 int __hash_page_thp(unsigned long ea, unsigned long access, unsigned long vsid, in __hash_page_thp() argument
79 vpn = hpt_vpn(ea, vsid, ssize); in __hash_page_thp()
88 flush_hash_hugepage(vsid, ea, pmdp, MMU_PAGE_64K, in __hash_page_thp()
166 hash_failure_debug(ea, access, vsid, trap, ssize, in __hash_page_thp()
Dhash_64k.c36 int __hash_page_4K(unsigned long ea, unsigned long access, unsigned long vsid, in __hash_page_4K() argument
88 vpn = hpt_vpn(ea, vsid, ssize); in __hash_page_4K()
211 hash_failure_debug(ea, access, vsid, trap, ssize, in __hash_page_4K()
224 unsigned long vsid, pte_t *ptep, unsigned long trap, in __hash_page_64K() argument
270 vpn = hpt_vpn(ea, vsid, ssize); in __hash_page_64K()
323 hash_failure_debug(ea, access, vsid, trap, ssize, in __hash_page_64K()
Dhash_4k.c19 int __hash_page_4K(unsigned long ea, unsigned long access, unsigned long vsid, in __hash_page_4K() argument
64 vpn = hpt_vpn(ea, vsid, ssize); in __hash_page_4K()
115 hash_failure_debug(ea, access, vsid, trap, ssize, in __hash_page_4K()
Dslb.c48 static inline unsigned long __mk_vsid_data(unsigned long vsid, int ssize, in __mk_vsid_data() argument
51 return (vsid << slb_vsid_shift(ssize)) | flags | in __mk_vsid_data()
105 WRITE_ONCE(p->save_area[index].vsid, cpu_to_be64(mk_vsid_data(ea, ssize, flags))); in slb_shadow_update()
144 : "r" (be64_to_cpu(p->save_area[index].vsid)), in __slb_restore_bolted_realmode()
191 ksp_vsid_data = be64_to_cpu(p->save_area[KSTACK_INDEX].vsid); in __slb_flush_and_restore_bolted()
244 slb_ptr->vsid = v; in slb_save_contents()
263 v = slb_ptr->vsid; in slb_dump_contents()
698 unsigned long vsid; in slb_insert_entry() local
702 vsid = get_vsid(context, ea, ssize); in slb_insert_entry()
703 if (!vsid) in slb_insert_entry()
[all …]
Dhash_pgtable.c316 unsigned long vsid; in hpte_do_hugepage_flush() local
331 vsid = get_user_vsid(&mm->context, addr, ssize); in hpte_do_hugepage_flush()
332 WARN_ON(vsid == 0); in hpte_do_hugepage_flush()
334 vsid = get_kernel_vsid(addr, mmu_kernel_ssize); in hpte_do_hugepage_flush()
341 return flush_hash_hugepage(vsid, addr, pmdp, psize, ssize, flags); in hpte_do_hugepage_flush()
Dhash_hugetlbpage.c23 int __hash_page_huge(unsigned long ea, unsigned long access, unsigned long vsid, in __hash_page_huge() argument
36 vpn = hpt_vpn(ea, vsid, ssize); in __hash_page_huge()
115 hash_failure_debug(ea, access, vsid, trap, ssize, in __hash_page_huge()
/arch/microblaze/include/asm/
Dmmu.h23 unsigned long vsid:24; /* Virtual segment identifier */ member
51 unsigned long vsid:24; /* Virtual Segment Identifier */ member
/arch/powerpc/include/asm/
Dcopro.h13 u64 esid, vsid; member
Dlppaca.h155 __be64 vsid; member
Dkvm_book3s_asm.h161 u64 vsid; member
/arch/powerpc/mm/ptdump/
Dhashpagetable.c210 unsigned long hash, vsid, vpn, hpte_group, want_v, hpte_v; in native_find() local
215 vsid = get_kernel_vsid(ea, ssize); in native_find()
216 vpn = hpt_vpn(ea, vsid, ssize); in native_find()
242 unsigned long vsid, vpn, hash, hpte_group, want_v; in pseries_find() local
248 vsid = get_kernel_vsid(ea, ssize); in pseries_find()
249 vpn = hpt_vpn(ea, vsid, ssize); in pseries_find()
/arch/powerpc/platforms/pseries/
Dlpar.c965 unsigned long lpar_rc, slot, vsid, flags; in pSeries_lpar_hpte_updateboltedpp() local
967 vsid = get_kernel_vsid(ea, ssize); in pSeries_lpar_hpte_updateboltedpp()
968 vpn = hpt_vpn(ea, vsid, ssize); in pSeries_lpar_hpte_updateboltedpp()
1194 static void pSeries_lpar_hugepage_invalidate(unsigned long vsid, in pSeries_lpar_hugepage_invalidate() argument
1217 vpn = hpt_vpn(addr, vsid, ssize); in pSeries_lpar_hugepage_invalidate()
1244 static void pSeries_lpar_hugepage_invalidate(unsigned long vsid, in pSeries_lpar_hugepage_invalidate() argument
1257 unsigned long slot, vsid; in pSeries_lpar_hpte_removebolted() local
1259 vsid = get_kernel_vsid(ea, ssize); in pSeries_lpar_hpte_removebolted()
1260 vpn = hpt_vpn(ea, vsid, ssize); in pSeries_lpar_hpte_removebolted()
1926 static unsigned long vsid_unscramble(unsigned long vsid, int ssize) in vsid_unscramble() argument
[all …]
/arch/powerpc/include/asm/book3s/32/
Dmmu-hash.h76 unsigned long vsid:24; /* Virtual segment identifier */ member

12