/Linux-v4.19/arch/powerpc/kvm/ |
D | book3s_32_mmu.c | 80 static int kvmppc_mmu_book3s_32_xlate_bat(struct kvm_vcpu *vcpu, gva_t eaddr, 86 static u32 find_sr(struct kvm_vcpu *vcpu, gva_t eaddr) in find_sr() argument 88 return kvmppc_get_sr(vcpu, (eaddr >> 28) & 0xf); in find_sr() 91 static u64 kvmppc_mmu_book3s_32_ea_to_vp(struct kvm_vcpu *vcpu, gva_t eaddr, in kvmppc_mmu_book3s_32_ea_to_vp() argument 97 if (!kvmppc_mmu_book3s_32_xlate_bat(vcpu, eaddr, &pte, data, false)) in kvmppc_mmu_book3s_32_ea_to_vp() 100 kvmppc_mmu_book3s_32_esid_to_vsid(vcpu, eaddr >> SID_SHIFT, &vsid); in kvmppc_mmu_book3s_32_ea_to_vp() 101 return (((u64)eaddr >> 12) & 0xffff) | (vsid << 16); in kvmppc_mmu_book3s_32_ea_to_vp() 110 u32 sre, gva_t eaddr, in kvmppc_mmu_book3s_32_get_pteg() argument 117 page = (eaddr & 0x0FFFFFFF) >> 12; in kvmppc_mmu_book3s_32_get_pteg() 128 kvmppc_get_pc(vcpu), eaddr, vcpu_book3s->sdr1, pteg, in kvmppc_mmu_book3s_32_get_pteg() [all …]
|
D | book3s_64_mmu.c | 54 gva_t eaddr) in kvmppc_mmu_book3s_64_find_slbe() argument 57 u64 esid = GET_ESID(eaddr); in kvmppc_mmu_book3s_64_find_slbe() 58 u64 esid_1t = GET_ESID_1T(eaddr); in kvmppc_mmu_book3s_64_find_slbe() 74 eaddr, esid, esid_1t); in kvmppc_mmu_book3s_64_find_slbe() 98 static u64 kvmppc_slb_calc_vpn(struct kvmppc_slb *slb, gva_t eaddr) in kvmppc_slb_calc_vpn() argument 100 eaddr &= kvmppc_slb_offset_mask(slb); in kvmppc_slb_calc_vpn() 102 return (eaddr >> VPN_SHIFT) | in kvmppc_slb_calc_vpn() 106 static u64 kvmppc_mmu_book3s_64_ea_to_vp(struct kvm_vcpu *vcpu, gva_t eaddr, in kvmppc_mmu_book3s_64_ea_to_vp() argument 111 slb = kvmppc_mmu_book3s_64_find_slbe(vcpu, eaddr); in kvmppc_mmu_book3s_64_ea_to_vp() 115 return kvmppc_slb_calc_vpn(slb, eaddr); in kvmppc_mmu_book3s_64_ea_to_vp() [all …]
|
D | trace_pr.h | 41 __field( unsigned long, eaddr ) 51 __entry->eaddr = orig_pte->eaddr; 59 __entry->flag_w, __entry->flag_x, __entry->eaddr, 72 __field( ulong, eaddr ) 81 __entry->eaddr = pte->pte.eaddr; 90 __entry->host_vpn, __entry->pfn, __entry->eaddr, 101 __field( ulong, eaddr ) 110 __entry->eaddr = pte->pte.eaddr; 119 __entry->host_vpn, __entry->pfn, __entry->eaddr,
|
D | book3s_32_mmu_host.c | 71 asm volatile ("tlbie %0" : : "r" (pte->pte.eaddr) : "memory"); in kvmppc_mmu_invalidate_pte() 118 static u32 *kvmppc_mmu_get_pteg(struct kvm_vcpu *vcpu, u32 vsid, u32 eaddr, in kvmppc_mmu_get_pteg() argument 124 page = (eaddr & ~ESID_MASK) >> 12; in kvmppc_mmu_get_pteg() 150 u32 eaddr = orig_pte->eaddr; in kvmppc_mmu_map_page() local 170 vcpu->arch.mmu.esid_to_vsid(vcpu, orig_pte->eaddr >> SID_SHIFT, &vsid); in kvmppc_mmu_map_page() 173 kvmppc_mmu_map_segment(vcpu, eaddr); in kvmppc_mmu_map_page() 180 ((eaddr & ~ESID_MASK) >> VPN_SHIFT); in kvmppc_mmu_map_page() 188 pteg = kvmppc_mmu_get_pteg(vcpu, vsid, eaddr, primary); in kvmppc_mmu_map_page() 206 pteg0 = ((eaddr & 0x0fffffff) >> 22) | (vsid << 7) | PTE_V | in kvmppc_mmu_map_page() 255 orig_pte->eaddr, (ulong)pteg, vpn, in kvmppc_mmu_map_page() [all …]
|
D | e500_mmu.c | 84 gva_t eaddr, int tlbsel, unsigned int pid, int as) in kvmppc_e500_tlb_index() argument 91 set_base = gtlb0_set_base(vcpu_e500, eaddr); in kvmppc_e500_tlb_index() 94 if (eaddr < vcpu_e500->tlb1_min_eaddr || in kvmppc_e500_tlb_index() 95 eaddr > vcpu_e500->tlb1_max_eaddr) in kvmppc_e500_tlb_index() 107 if (eaddr < get_tlb_eaddr(tlbe)) in kvmppc_e500_tlb_index() 110 if (eaddr > get_tlb_end(tlbe)) in kvmppc_e500_tlb_index() 130 gva_t eaddr, int as) in kvmppc_e500_deliver_tlb_miss() argument 146 vcpu->arch.shared->mas2 = (eaddr & MAS2_EPN) in kvmppc_e500_deliver_tlb_miss() 158 gva_t eaddr; in kvmppc_recalc_tlb1map_range() local 172 eaddr = get_tlb_eaddr(tlbe); in kvmppc_recalc_tlb1map_range() [all …]
|
D | book3s_mmu_hpte.c | 38 static inline u64 kvmppc_mmu_hash_pte(u64 eaddr) in kvmppc_mmu_hash_pte() argument 40 return hash_64(eaddr >> PTE_SIZE, HPTEG_HASH_BITS_PTE); in kvmppc_mmu_hash_pte() 43 static inline u64 kvmppc_mmu_hash_pte_long(u64 eaddr) in kvmppc_mmu_hash_pte_long() argument 45 return hash_64((eaddr & 0x0ffff000) >> PTE_SIZE, in kvmppc_mmu_hash_pte_long() 78 index = kvmppc_mmu_hash_pte(pte->pte.eaddr); in kvmppc_mmu_hpte_cache_map() 82 index = kvmppc_mmu_hash_pte_long(pte->pte.eaddr); in kvmppc_mmu_hpte_cache_map() 175 if ((pte->pte.eaddr & ~0xfffUL) == guest_ea) in kvmppc_mmu_pte_flush_page() 195 if ((pte->pte.eaddr & 0x0ffff000UL) == guest_ea) in kvmppc_mmu_pte_flush_long()
|
D | book3s_64_mmu_host.c | 118 vcpu->arch.mmu.esid_to_vsid(vcpu, orig_pte->eaddr >> SID_SHIFT, &vsid); in kvmppc_mmu_map_page() 121 ret = kvmppc_mmu_map_segment(vcpu, orig_pte->eaddr); in kvmppc_mmu_map_page() 127 vsid, orig_pte->eaddr); in kvmppc_mmu_map_page() 133 vpn = hpt_vpn(orig_pte->eaddr, map->host_vsid, MMU_SEGSIZE_256M); in kvmppc_mmu_map_page() 229 vcpu->arch.mmu.esid_to_vsid(vcpu, pte->eaddr >> SID_SHIFT, &vsid); in kvmppc_mmu_unmap_page() 322 int kvmppc_mmu_map_segment(struct kvm_vcpu *vcpu, ulong eaddr) in kvmppc_mmu_map_segment() argument 325 u64 esid = eaddr >> SID_SHIFT; in kvmppc_mmu_map_segment() 326 u64 slb_esid = (eaddr & ESID_MASK) | SLB_ESID_V; in kvmppc_mmu_map_segment() 333 slb_index = kvmppc_mmu_next_segment(vcpu, eaddr & ESID_MASK); in kvmppc_mmu_map_segment()
|
D | e500_mmu_host.c | 108 static u32 get_host_mas0(unsigned long eaddr) in get_host_mas0() argument 118 asm volatile("tlbsx 0, %0" : : "b" (eaddr & ~CONFIG_PAGE_OFFSET)); in get_host_mas0() 589 void kvmppc_mmu_map(struct kvm_vcpu *vcpu, u64 eaddr, gpa_t gpaddr, in kvmppc_mmu_map() argument 609 &priv->ref, eaddr, &stlbe); in kvmppc_mmu_map() 616 kvmppc_e500_tlb1_map(vcpu_e500, eaddr, gfn, gtlbe, &stlbe, in kvmppc_mmu_map() 634 hva_t eaddr; in kvmppc_load_last_inst() local 711 eaddr = (unsigned long)kmap_atomic(page); in kvmppc_load_last_inst() 712 *instr = *(u32 *)(eaddr | (unsigned long)(addr & ~PAGE_MASK)); in kvmppc_load_last_inst() 713 kunmap_atomic((u32 *)eaddr); in kvmppc_load_last_inst()
|
D | booke.c | 1247 unsigned long eaddr = vcpu->arch.fault_dear; in kvmppc_handle_exit() local 1254 (eaddr & PAGE_MASK) == vcpu->arch.magic_page_ea) { in kvmppc_handle_exit() 1264 gtlb_index = kvmppc_mmu_dtlb_index(vcpu, eaddr); in kvmppc_handle_exit() 1278 gpaddr = kvmppc_mmu_xlate(vcpu, gtlb_index, eaddr); in kvmppc_handle_exit() 1288 kvmppc_mmu_map(vcpu, eaddr, gpaddr, gtlb_index); in kvmppc_handle_exit() 1295 vcpu->arch.vaddr_accessed = eaddr; in kvmppc_handle_exit() 1305 unsigned long eaddr = vcpu->arch.regs.nip; in kvmppc_handle_exit() local 1313 gtlb_index = kvmppc_mmu_itlb_index(vcpu, eaddr); in kvmppc_handle_exit() 1326 gpaddr = kvmppc_mmu_xlate(vcpu, gtlb_index, eaddr); in kvmppc_handle_exit() 1336 kvmppc_mmu_map(vcpu, eaddr, gpaddr, gtlb_index); in kvmppc_handle_exit() [all …]
|
D | e500mc.c | 62 gva_t eaddr; in kvmppc_e500_tlbil_one() local 71 eaddr = get_tlb_eaddr(gtlbe); in kvmppc_e500_tlbil_one() 78 asm volatile("tlbsx 0, %[eaddr]\n" : : [eaddr] "r" (eaddr)); in kvmppc_e500_tlbil_one()
|
D | e500.c | 241 u32 val, eaddr; in kvmppc_e500_tlbil_one() local 273 eaddr = get_tlb_eaddr(gtlbe); in kvmppc_e500_tlbil_one() 278 asm volatile("tlbsx 0, %[eaddr]" : : [eaddr] "r" (eaddr)); in kvmppc_e500_tlbil_one()
|
D | book3s_64_mmu_radix.c | 29 int kvmppc_mmu_radix_xlate(struct kvm_vcpu *vcpu, gva_t eaddr, in kvmppc_mmu_radix_xlate() argument 43 switch (eaddr >> 62) { in kvmppc_mmu_radix_xlate() 81 index = (eaddr >> offset) & ((1UL << bits) - 1); in kvmppc_mmu_radix_xlate() 105 gpa += eaddr & ((1ul << offset) - 1); in kvmppc_mmu_radix_xlate() 111 gpte->eaddr = eaddr; in kvmppc_mmu_radix_xlate()
|
D | book3s.c | 419 int kvmppc_xlate(struct kvm_vcpu *vcpu, ulong eaddr, enum xlate_instdata xlid, in kvmppc_xlate() argument 428 r = vcpu->arch.mmu.xlate(vcpu, eaddr, pte, data, iswrite); in kvmppc_xlate() 430 pte->eaddr = eaddr; in kvmppc_xlate() 431 pte->raddr = eaddr & KVM_PAM; in kvmppc_xlate() 432 pte->vpage = VSID_REAL | eaddr >> 12; in kvmppc_xlate() 441 ((eaddr & SPLIT_HACK_MASK) == SPLIT_HACK_OFFS)) in kvmppc_xlate()
|
/Linux-v4.19/arch/sh/mm/ |
D | cache-sh5.c | 34 sh64_setup_dtlb_cache_slot(unsigned long eaddr, unsigned long asid, in sh64_setup_dtlb_cache_slot() argument 38 sh64_setup_tlb_slot(dtlb_cache_slot, eaddr, asid, paddr); in sh64_setup_dtlb_cache_slot() 87 static void sh64_icache_inv_user_page(struct vm_area_struct *vma, unsigned long eaddr) in sh64_icache_inv_user_page() argument 95 addr = eaddr; in sh64_icache_inv_user_page() 159 unsigned long eaddr; in sh64_icache_inv_user_page_range() local 188 eaddr = aligned_start; in sh64_icache_inv_user_page_range() 189 while (eaddr < vma_end) { in sh64_icache_inv_user_page_range() 190 sh64_icache_inv_user_page(vma, eaddr); in sh64_icache_inv_user_page_range() 191 eaddr += PAGE_SIZE; in sh64_icache_inv_user_page_range() 244 unsigned long long eaddr, eaddr0, eaddr1; in sh64_dcache_purge_sets() local [all …]
|
D | tlb-sh5.c | 120 void sh64_setup_tlb_slot(unsigned long long config_addr, unsigned long eaddr, in sh64_setup_tlb_slot() argument 125 pteh = neff_sign_extend(eaddr); in sh64_setup_tlb_slot()
|
/Linux-v4.19/arch/unicore32/mm/ |
D | alignment.c | 293 unsigned long eaddr, newaddr; in do_alignment_ldmstm() local 304 newaddr = eaddr = regs->uregs[rn]; in do_alignment_ldmstm() 310 eaddr = newaddr; in do_alignment_ldmstm() 313 eaddr += 4; in do_alignment_ldmstm() 319 if (addr != eaddr) { in do_alignment_ldmstm() 322 instruction_pointer(regs), instr, addr, eaddr); in do_alignment_ldmstm() 336 uregs[rd + reg_correction], eaddr); in do_alignment_ldmstm() 339 uregs[rd + reg_correction], eaddr); in do_alignment_ldmstm() 340 eaddr += 4; in do_alignment_ldmstm()
|
/Linux-v4.19/arch/arm/mm/ |
D | alignment.c | 507 unsigned long eaddr, newaddr; in do_alignment_ldmstm() local 521 newaddr = eaddr = regs->uregs[rn]; in do_alignment_ldmstm() 527 eaddr = newaddr; in do_alignment_ldmstm() 530 eaddr += 4; in do_alignment_ldmstm() 544 if (addr != eaddr) { in do_alignment_ldmstm() 547 instruction_pointer(regs), instr, addr, eaddr); in do_alignment_ldmstm() 559 get32t_unaligned_check(val, eaddr); in do_alignment_ldmstm() 562 put32t_unaligned_check(regs->uregs[rd], eaddr); in do_alignment_ldmstm() 563 eaddr += 4; in do_alignment_ldmstm() 572 get32_unaligned_check(val, eaddr); in do_alignment_ldmstm() [all …]
|
/Linux-v4.19/fs/freevxfs/ |
D | vxfs_olt.c | 82 char *oaddr, *eaddr; in vxfs_read_olt() local 105 eaddr = bp->b_data + (infp->vsi_oltsize * sbp->s_blocksize); in vxfs_read_olt() 107 while (oaddr < eaddr) { in vxfs_read_olt()
|
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_vm.c | 469 uint64_t saddr, uint64_t eaddr, in amdgpu_vm_alloc_levels() argument 489 to = eaddr >> shift; in amdgpu_vm_alloc_levels() 496 eaddr = eaddr & ((1 << shift) - 1); in amdgpu_vm_alloc_levels() 552 uint64_t sub_eaddr = (pt_idx == to) ? eaddr : in amdgpu_vm_alloc_levels() 581 uint64_t eaddr; in amdgpu_vm_alloc_pts() local 588 eaddr = saddr + size - 1; in amdgpu_vm_alloc_pts() 594 eaddr /= AMDGPU_GPU_PAGE_SIZE; in amdgpu_vm_alloc_pts() 596 if (eaddr >= adev->vm_manager.max_pfn) { in amdgpu_vm_alloc_pts() 598 eaddr, adev->vm_manager.max_pfn); in amdgpu_vm_alloc_pts() 602 return amdgpu_vm_alloc_levels(adev, vm, &vm->root, saddr, eaddr, in amdgpu_vm_alloc_pts() [all …]
|
/Linux-v4.19/arch/powerpc/include/asm/ |
D | kvm_book3s.h | 166 extern int kvmppc_mmu_map_segment(struct kvm_vcpu *vcpu, ulong eaddr); 167 extern void kvmppc_mmu_flush_segment(struct kvm_vcpu *vcpu, ulong eaddr, ulong seg_size); 172 extern long kvmppc_hv_find_lock_hpte(struct kvm *kvm, gva_t eaddr, 191 extern int kvmppc_mmu_radix_xlate(struct kvm_vcpu *vcpu, gva_t eaddr, 208 extern int kvmppc_ld(struct kvm_vcpu *vcpu, ulong *eaddr, int size, void *ptr, bool data);
|
D | kvm_host.h | 356 ulong eaddr; member 376 int (*xlate)(struct kvm_vcpu *vcpu, gva_t eaddr, 381 u64 (*ea_to_vp)(struct kvm_vcpu *vcpu, gva_t eaddr, bool data); 448 unsigned long eaddr; member
|
D | kvm_ppc.h | 98 extern int kvmppc_ld(struct kvm_vcpu *vcpu, ulong *eaddr, int size, void *ptr, 100 extern int kvmppc_st(struct kvm_vcpu *vcpu, ulong *eaddr, int size, void *ptr, 121 extern int kvmppc_mmu_dtlb_index(struct kvm_vcpu *vcpu, gva_t eaddr); 122 extern int kvmppc_mmu_itlb_index(struct kvm_vcpu *vcpu, gva_t eaddr); 124 gva_t eaddr); 127 extern int kvmppc_xlate(struct kvm_vcpu *vcpu, ulong eaddr,
|
/Linux-v4.19/drivers/slimbus/ |
D | core.c | 133 struct slim_eaddr *eaddr, in slim_alloc_device() argument 143 sbdev->e_addr = *eaddr; in slim_alloc_device() 322 struct slim_eaddr *eaddr) in find_slim_device() argument 327 dev = device_find_child(ctrl->dev, eaddr, slim_match_dev); in find_slim_device()
|
/Linux-v4.19/arch/sh/include/asm/ |
D | tlb_64.h | 59 void sh64_setup_tlb_slot(unsigned long long config_addr, unsigned long eaddr,
|
/Linux-v4.19/drivers/net/ethernet/amd/ |
D | ni65.h | 91 unsigned char eaddr[6]; member
|