Searched refs:pteg (Results 1 – 5 of 5) sorted by relevance
/arch/powerpc/kvm/ |
D | book3s_32_mmu_host.c | 62 volatile u32 *pteg; in kvmppc_mmu_invalidate_pte() local 65 pteg = (u32*)pte->slot; in kvmppc_mmu_invalidate_pte() 66 pteg[0] = 0; in kvmppc_mmu_invalidate_pte() 121 ulong pteg = htab; in kvmppc_mmu_get_pteg() local 131 pteg |= hash; in kvmppc_mmu_get_pteg() 134 htab, hash, htabmask, pteg); in kvmppc_mmu_get_pteg() 136 return (u32*)pteg; in kvmppc_mmu_get_pteg() 148 volatile u32 *pteg; in kvmppc_mmu_map_page() local 187 pteg = kvmppc_mmu_get_pteg(vcpu, vsid, eaddr, primary); in kvmppc_mmu_map_page() 190 if (!evict && (pteg[rr] & PTE_V)) { in kvmppc_mmu_map_page() [all …]
|
D | book3s_pr_papr.c | 43 __be64 pteg[2 * 8]; in kvmppc_h_pr_enter() local 53 copy_from_user(pteg, (void __user *)pteg_addr, sizeof(pteg)); in kvmppc_h_pr_enter() 54 hpte = pteg; in kvmppc_h_pr_enter() 90 unsigned long v = 0, pteg, rb; in kvmppc_h_pr_remove() local 94 pteg = get_pteg_addr(vcpu, pte_index); in kvmppc_h_pr_remove() 96 copy_from_user(pte, (void __user *)pteg, sizeof(pte)); in kvmppc_h_pr_remove() 106 copy_to_user((void __user *)pteg, &v, sizeof(v)); in kvmppc_h_pr_remove() 150 unsigned long pteg, rb, flags; in kvmppc_h_pr_bulk_remove() local 173 pteg = get_pteg_addr(vcpu, tsh & H_BULK_REMOVE_PTEX); in kvmppc_h_pr_bulk_remove() 174 copy_from_user(pte, (void __user *)pteg, sizeof(pte)); in kvmppc_h_pr_bulk_remove() [all …]
|
D | book3s_32_mmu.c | 120 u32 page, hash, pteg, htabmask; in kvmppc_mmu_book3s_32_get_pteg() local 131 pteg = (vcpu_book3s->sdr1 & 0xffff0000) | hash; in kvmppc_mmu_book3s_32_get_pteg() 134 kvmppc_get_pc(vcpu), eaddr, vcpu_book3s->sdr1, pteg, in kvmppc_mmu_book3s_32_get_pteg() 137 r = gfn_to_hva(vcpu->kvm, pteg >> PAGE_SHIFT); in kvmppc_mmu_book3s_32_get_pteg() 140 return r | (pteg & ~PAGE_MASK); in kvmppc_mmu_book3s_32_get_pteg() 210 u32 pteg[16]; in kvmppc_mmu_book3s_32_xlate_pte() local 231 if(copy_from_user(pteg, (void __user *)ptegp, sizeof(pteg))) { in kvmppc_mmu_book3s_32_xlate_pte() 237 pte0 = be32_to_cpu(pteg[i]); in kvmppc_mmu_book3s_32_xlate_pte() 238 pte1 = be32_to_cpu(pteg[i + 1]); in kvmppc_mmu_book3s_32_xlate_pte() 302 i, be32_to_cpu(pteg[i]), in kvmppc_mmu_book3s_32_xlate_pte() [all …]
|
D | book3s_64_mmu.c | 138 u64 hash, pteg, htabsize; in kvmppc_mmu_book3s_64_get_pteg() local 154 pteg = vcpu_book3s->sdr1 & 0xfffffffffffc0000ULL; in kvmppc_mmu_book3s_64_get_pteg() 155 pteg |= hash; in kvmppc_mmu_book3s_64_get_pteg() 158 page, vcpu_book3s->sdr1, pteg, slbe->vsid); in kvmppc_mmu_book3s_64_get_pteg() 163 r = pteg; in kvmppc_mmu_book3s_64_get_pteg() 165 r = gfn_to_hva(vcpu->kvm, pteg >> PAGE_SHIFT); in kvmppc_mmu_book3s_64_get_pteg() 169 return r | (pteg & ~PAGE_MASK); in kvmppc_mmu_book3s_64_get_pteg() 214 u64 pteg[16]; in kvmppc_mmu_book3s_64_xlate() local 267 if(copy_from_user(pteg, (void __user *)ptegp, sizeof(pteg))) { in kvmppc_mmu_book3s_64_xlate() 278 u64 pte0 = be64_to_cpu(pteg[i]); in kvmppc_mmu_book3s_64_xlate() [all …]
|
/arch/powerpc/mm/ |
D | hash_native_64.c | 506 unsigned long avpn, pteg, vpi; in hpte_decode() local 534 pteg = slot / HPTES_PER_GROUP; in hpte_decode() 536 pteg = ~pteg; in hpte_decode() 545 vpi = (vsid ^ pteg) & htab_hash_mask; in hpte_decode() 555 vpi = (vsid ^ (vsid << 25) ^ pteg) & htab_hash_mask; in hpte_decode()
|