/Linux-v5.4/drivers/misc/cxl/ |
D | fault.c | 22 static bool sste_matches(struct cxl_sste *sste, struct copro_slb *slb) in sste_matches() argument 24 return ((sste->vsid_data == cpu_to_be64(slb->vsid)) && in sste_matches() 25 (sste->esid_data == cpu_to_be64(slb->esid))); in sste_matches() 33 struct copro_slb *slb) in find_free_sste() argument 40 if (slb->vsid & SLB_VSID_B_1T) in find_free_sste() 41 hash = (slb->esid >> SID_SHIFT_1T) & mask; in find_free_sste() 43 hash = (slb->esid >> SID_SHIFT) & mask; in find_free_sste() 50 if (sste_matches(sste, slb)) in find_free_sste() 63 static void cxl_load_segment(struct cxl_context *ctx, struct copro_slb *slb) in cxl_load_segment() argument 70 sste = find_free_sste(ctx, slb); in cxl_load_segment() [all …]
|
/Linux-v5.4/arch/powerpc/kvm/ |
D | book3s_64_mmu.c | 52 if (!vcpu->arch.slb[i].valid) in kvmppc_mmu_book3s_64_find_slbe() 55 if (vcpu->arch.slb[i].tb) in kvmppc_mmu_book3s_64_find_slbe() 58 if (vcpu->arch.slb[i].esid == cmp_esid) in kvmppc_mmu_book3s_64_find_slbe() 59 return &vcpu->arch.slb[i]; in kvmppc_mmu_book3s_64_find_slbe() 65 if (vcpu->arch.slb[i].vsid) in kvmppc_mmu_book3s_64_find_slbe() 67 vcpu->arch.slb[i].valid ? 'v' : ' ', in kvmppc_mmu_book3s_64_find_slbe() 68 vcpu->arch.slb[i].large ? 'l' : ' ', in kvmppc_mmu_book3s_64_find_slbe() 69 vcpu->arch.slb[i].tb ? 't' : ' ', in kvmppc_mmu_book3s_64_find_slbe() 70 vcpu->arch.slb[i].esid, in kvmppc_mmu_book3s_64_find_slbe() 71 vcpu->arch.slb[i].vsid); in kvmppc_mmu_book3s_64_find_slbe() [all …]
|
D | book3s_hv_ras.c | 38 struct slb_shadow *slb; in reload_slb() local 45 slb = vcpu->arch.slb_shadow.pinned_addr; in reload_slb() 46 if (!slb) in reload_slb() 50 n = min_t(u32, be32_to_cpu(slb->persistent), SLB_MIN_SIZE); in reload_slb() 51 if ((void *) &slb->save_area[n] > vcpu->arch.slb_shadow.pinned_end) in reload_slb() 56 unsigned long rb = be64_to_cpu(slb->save_area[i].esid); in reload_slb() 57 unsigned long rs = be64_to_cpu(slb->save_area[i].vsid); in reload_slb()
|
D | book3s_64_mmu_host.c | 279 if (!(svcpu->slb[i].esid & SLB_ESID_V)) in kvmppc_mmu_next_segment() 281 else if ((svcpu->slb[i].esid & ESID_MASK) == esid) { in kvmppc_mmu_next_segment() 325 svcpu->slb[slb_index].esid = 0; in kvmppc_mmu_map_segment() 346 svcpu->slb[slb_index].esid = slb_esid; in kvmppc_mmu_map_segment() 347 svcpu->slb[slb_index].vsid = slb_vsid; in kvmppc_mmu_map_segment() 363 if ((svcpu->slb[i].esid & SLB_ESID_V) && in kvmppc_mmu_flush_segment() 364 (svcpu->slb[i].esid & seg_mask) == ea) { in kvmppc_mmu_flush_segment() 366 svcpu->slb[i].esid = 0; in kvmppc_mmu_flush_segment() 377 svcpu->slb[0].esid = 0; in kvmppc_mmu_flush_segments()
|
D | book3s_pr.c | 99 memcpy(svcpu->slb, to_book3s(vcpu)->slb_shadow, sizeof(svcpu->slb)); in kvmppc_core_vcpu_load_pr() 128 memcpy(to_book3s(vcpu)->slb_shadow, svcpu->slb, sizeof(svcpu->slb)); in kvmppc_core_vcpu_put_pr() 1450 sregs->u.s.ppc64.slb[i].slbe = vcpu->arch.slb[i].orige | i; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1451 sregs->u.s.ppc64.slb[i].slbv = vcpu->arch.slb[i].origv; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1482 u64 rb = sregs->u.s.ppc64.slb[i].slbe; in kvm_arch_vcpu_ioctl_set_sregs_pr() 1483 u64 rs = sregs->u.s.ppc64.slb[i].slbv; in kvm_arch_vcpu_ioctl_set_sregs_pr()
|
D | book3s_hv.c | 441 vcpu->arch.slb[r].orige, vcpu->arch.slb[r].origv); in kvmppc_dump_regs() 1545 sregs->u.s.ppc64.slb[i].slbe = vcpu->arch.slb[i].orige; in kvm_arch_vcpu_ioctl_get_sregs_hv() 1546 sregs->u.s.ppc64.slb[i].slbv = vcpu->arch.slb[i].origv; in kvm_arch_vcpu_ioctl_get_sregs_hv() 1563 if (sregs->u.s.ppc64.slb[i].slbe & SLB_ESID_V) { in kvm_arch_vcpu_ioctl_set_sregs_hv() 1564 vcpu->arch.slb[j].orige = sregs->u.s.ppc64.slb[i].slbe; in kvm_arch_vcpu_ioctl_set_sregs_hv() 1565 vcpu->arch.slb[j].origv = sregs->u.s.ppc64.slb[i].slbv; in kvm_arch_vcpu_ioctl_set_sregs_hv()
|
D | book3s_64_mmu_hv.c | 317 if (!(vcpu->arch.slb[i].orige & SLB_ESID_V)) in kvmppc_mmu_book3s_hv_find_slbe() 320 if (vcpu->arch.slb[i].origv & SLB_VSID_B_1T) in kvmppc_mmu_book3s_hv_find_slbe() 325 if (((vcpu->arch.slb[i].orige ^ eaddr) & mask) == 0) in kvmppc_mmu_book3s_hv_find_slbe() 326 return &vcpu->arch.slb[i]; in kvmppc_mmu_book3s_hv_find_slbe()
|
/Linux-v5.4/arch/powerpc/platforms/cell/ |
D | spu_base.c | 135 static inline void spu_load_slb(struct spu *spu, int slbe, struct copro_slb *slb) in spu_load_slb() argument 140 __func__, slbe, slb->vsid, slb->esid); in spu_load_slb() 146 out_be64(&priv2->slb_vsid_RW, slb->vsid); in spu_load_slb() 148 out_be64(&priv2->slb_esid_RW, slb->esid); in spu_load_slb() 153 struct copro_slb slb; in __spu_trap_data_seg() local 156 ret = copro_calculate_slb(spu->mm, ea, &slb); in __spu_trap_data_seg() 160 spu_load_slb(spu, spu->slb_replace, &slb); in __spu_trap_data_seg() 209 static void __spu_kernel_slb(void *addr, struct copro_slb *slb) in __spu_kernel_slb() argument 219 slb->vsid = (get_kernel_vsid(ea, MMU_SEGSIZE_256M) << SLB_VSID_SHIFT) | in __spu_kernel_slb() 221 slb->esid = (ea & ESID_MASK) | SLB_ESID_V; in __spu_kernel_slb()
|
/Linux-v5.4/arch/powerpc/mm/ |
D | copro_fault.c | 90 int copro_calculate_slb(struct mm_struct *mm, u64 ea, struct copro_slb *slb) in copro_calculate_slb() argument 139 slb->esid = (ea & (ssize == MMU_SEGSIZE_1T ? ESID_MASK_1T : ESID_MASK)) | SLB_ESID_V; in copro_calculate_slb() 140 slb->vsid = vsid; in copro_calculate_slb()
|
/Linux-v5.4/arch/powerpc/include/asm/ |
D | copro.h | 19 int copro_calculate_slb(struct mm_struct *mm, u64 ea, struct copro_slb *slb);
|
D | kvm_book3s_asm.h | 162 } slb[64]; /* guest SLB */
|
D | kvm_host.h | 518 struct kvmppc_slb slb[64]; member
|
/Linux-v5.4/arch/powerpc/mm/book3s64/ |
D | Makefile | 7 obj-y += hash_pgtable.o hash_utils.o slb.o \
|
/Linux-v5.4/arch/x86/kvm/ |
D | trace.h | 677 TP_PROTO(__u64 rip, __u32 slb), 678 TP_ARGS(rip, slb), 682 __field( __u32, slb ) 687 __entry->slb = slb; 691 __entry->rip, __entry->slb)
|
/Linux-v5.4/arch/powerpc/include/uapi/asm/ |
D | kvm.h | 185 } slb[64]; member
|
/Linux-v5.4/tools/arch/powerpc/include/uapi/asm/ |
D | kvm.h | 185 } slb[64]; member
|
/Linux-v5.4/arch/powerpc/kernel/ |
D | asm-offsets.c | 547 OFFSET(VCPU_SLB, kvm_vcpu, arch.slb); in main() 643 SVCPU_FIELD(SVCPU_SLB, slb); in main()
|
/Linux-v5.4/arch/s390/tools/ |
D | opcodes.txt | 825 e399 slb RXY_RRRD
|