Home
last modified time | relevance | path

Searched refs:pteg (Results 1 – 4 of 4) sorted by relevance

/linux/arch/powerpc/kvm/
H A Dbook3s_pr_papr.c40 __be64 pteg[2 * 8]; in kvmppc_h_pr_enter() local
51 if (copy_from_user(pteg, (void __user *)pteg_addr, sizeof(pteg))) in kvmppc_h_pr_enter()
53 hpte = pteg; in kvmppc_h_pr_enter()
91 unsigned long v = 0, pteg, rb; in kvmppc_h_pr_remove() local
95 pteg = get_pteg_addr(vcpu, pte_index); in kvmppc_h_pr_remove()
98 if (copy_from_user(pte, (void __user *)pteg, sizeof(pte))) in kvmppc_h_pr_remove()
110 if (copy_to_user((void __user *)pteg, &v, sizeof(v))) in kvmppc_h_pr_remove()
155 unsigned long pteg, rb, flags; in kvmppc_h_pr_bulk_remove() local
178 pteg = get_pteg_addr(vcpu, tsh & H_BULK_REMOVE_PTEX); in kvmppc_h_pr_bulk_remove()
179 if (copy_from_user(pte, (void __user *)pteg, sizeof(pte))) { in kvmppc_h_pr_bulk_remove()
[all …]
H A Dbook3s_32_mmu.c98 u32 page, hash, pteg, htabmask; in kvmppc_mmu_book3s_32_get_pteg() local
109 pteg = (vcpu_book3s->sdr1 & 0xffff0000) | hash; in kvmppc_mmu_book3s_32_get_pteg()
112 kvmppc_get_pc(vcpu), eaddr, vcpu_book3s->sdr1, pteg, in kvmppc_mmu_book3s_32_get_pteg()
115 r = gfn_to_hva(vcpu->kvm, pteg >> PAGE_SHIFT); in kvmppc_mmu_book3s_32_get_pteg()
118 return r | (pteg & ~PAGE_MASK); in kvmppc_mmu_book3s_32_get_pteg()
188 u32 pteg[16]; in kvmppc_mmu_book3s_32_xlate_pte() local
209 if(copy_from_user(pteg, (void __user *)ptegp, sizeof(pteg))) { in kvmppc_mmu_book3s_32_xlate_pte()
216 pte0 = be32_to_cpu(pteg[i]); in kvmppc_mmu_book3s_32_xlate_pte()
217 pte1 = be32_to_cpu(pteg[i + 1]); in kvmppc_mmu_book3s_32_xlate_pte()
282 i, be32_to_cpu(pteg[i]), in kvmppc_mmu_book3s_32_xlate_pte()
[all …]
H A Dbook3s_64_mmu.c121 u64 hash, pteg, htabsize; in kvmppc_mmu_book3s_64_get_pteg() local
137 pteg = vcpu_book3s->sdr1 & 0xfffffffffffc0000ULL; in kvmppc_mmu_book3s_64_get_pteg()
138 pteg |= hash; in kvmppc_mmu_book3s_64_get_pteg()
141 page, vcpu_book3s->sdr1, pteg, slbe->vsid); in kvmppc_mmu_book3s_64_get_pteg()
146 r = pteg; in kvmppc_mmu_book3s_64_get_pteg()
148 r = gfn_to_hva(vcpu->kvm, pteg >> PAGE_SHIFT); in kvmppc_mmu_book3s_64_get_pteg()
152 return r | (pteg & ~PAGE_MASK); in kvmppc_mmu_book3s_64_get_pteg()
197 u64 pteg[16]; in kvmppc_mmu_book3s_64_xlate() local
251 if(copy_from_user(pteg, (void __user *)ptegp, sizeof(pteg))) { in kvmppc_mmu_book3s_64_xlate()
263 u64 pte0 = be64_to_cpu(pteg[i]); in kvmppc_mmu_book3s_64_xlate()
[all …]
/linux/arch/powerpc/mm/book3s64/
H A Dhash_native.c667 unsigned long avpn, pteg, vpi; in hpte_decode() local
691 pteg = slot / HPTES_PER_GROUP; in hpte_decode()
693 pteg = ~pteg; in hpte_decode()
702 vpi = (vsid ^ pteg) & htab_hash_mask; in hpte_decode()
712 vpi = (vsid ^ (vsid << 25) ^ pteg) & htab_hash_mask; in hpte_decode()