Searched refs:pteg (Results 1 – 6 of 6) sorted by relevance
/arch/powerpc/kvm/ |
D | book3s_32_mmu_host.c | 63 volatile u32 *pteg; in kvmppc_mmu_invalidate_pte() local 66 pteg = (u32*)pte->slot; in kvmppc_mmu_invalidate_pte() 67 pteg[0] = 0; in kvmppc_mmu_invalidate_pte() 122 ulong pteg = htab; in kvmppc_mmu_get_pteg() local 132 pteg |= hash; in kvmppc_mmu_get_pteg() 135 htab, hash, htabmask, pteg); in kvmppc_mmu_get_pteg() 137 return (u32*)pteg; in kvmppc_mmu_get_pteg() 149 volatile u32 *pteg; in kvmppc_mmu_map_page() local 188 pteg = kvmppc_mmu_get_pteg(vcpu, vsid, eaddr, primary); in kvmppc_mmu_map_page() 191 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 54 if (copy_from_user(pteg, (void __user *)pteg_addr, sizeof(pteg))) in kvmppc_h_pr_enter() 56 hpte = pteg; in kvmppc_h_pr_enter() 94 unsigned long v = 0, pteg, rb; in kvmppc_h_pr_remove() local 98 pteg = get_pteg_addr(vcpu, pte_index); in kvmppc_h_pr_remove() 101 if (copy_from_user(pte, (void __user *)pteg, sizeof(pte))) in kvmppc_h_pr_remove() 113 if (copy_to_user((void __user *)pteg, &v, sizeof(v))) in kvmppc_h_pr_remove() 158 unsigned long pteg, rb, flags; in kvmppc_h_pr_bulk_remove() local 181 pteg = get_pteg_addr(vcpu, tsh & H_BULK_REMOVE_PTEX); in kvmppc_h_pr_bulk_remove() 182 if (copy_from_user(pte, (void __user *)pteg, sizeof(pte))) { in kvmppc_h_pr_bulk_remove() [all …]
|
D | book3s_32_mmu.c | 115 u32 page, hash, pteg, htabmask; in kvmppc_mmu_book3s_32_get_pteg() local 126 pteg = (vcpu_book3s->sdr1 & 0xffff0000) | hash; in kvmppc_mmu_book3s_32_get_pteg() 129 kvmppc_get_pc(vcpu), eaddr, vcpu_book3s->sdr1, pteg, in kvmppc_mmu_book3s_32_get_pteg() 132 r = gfn_to_hva(vcpu->kvm, pteg >> PAGE_SHIFT); in kvmppc_mmu_book3s_32_get_pteg() 135 return r | (pteg & ~PAGE_MASK); in kvmppc_mmu_book3s_32_get_pteg() 205 u32 pteg[16]; in kvmppc_mmu_book3s_32_xlate_pte() local 226 if(copy_from_user(pteg, (void __user *)ptegp, sizeof(pteg))) { in kvmppc_mmu_book3s_32_xlate_pte() 233 pte0 = be32_to_cpu(pteg[i]); in kvmppc_mmu_book3s_32_xlate_pte() 234 pte1 = be32_to_cpu(pteg[i + 1]); in kvmppc_mmu_book3s_32_xlate_pte() 298 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 268 if(copy_from_user(pteg, (void __user *)ptegp, sizeof(pteg))) { in kvmppc_mmu_book3s_64_xlate() 280 u64 pte0 = be64_to_cpu(pteg[i]); in kvmppc_mmu_book3s_64_xlate() [all …]
|
D | book3s_64_mmu_hv.c | 1261 unsigned long apsize, psize, avpn, pteg, hash; in resize_hpt_rehash_hpte() local 1323 pteg = idx / HPTES_PER_GROUP; in resize_hpt_rehash_hpte() 1325 pteg = ~pteg; in resize_hpt_rehash_hpte() 1335 offset |= ((vsid ^ pteg) & old_hash_mask) * psize; in resize_hpt_rehash_hpte() 1345 offset |= ((vsid ^ (vsid << 25) ^ pteg) & old_hash_mask) * psize; in resize_hpt_rehash_hpte()
|
/arch/powerpc/mm/ |
D | hash_native_64.c | 595 unsigned long avpn, pteg, vpi; in hpte_decode() local 619 pteg = slot / HPTES_PER_GROUP; in hpte_decode() 621 pteg = ~pteg; in hpte_decode() 630 vpi = (vsid ^ pteg) & htab_hash_mask; in hpte_decode() 640 vpi = (vsid ^ (vsid << 25) ^ pteg) & htab_hash_mask; in hpte_decode()
|