Home
last modified time | relevance | path

Searched refs:slb (Results 1 – 18 of 18) sorted by relevance

/Linux-v5.4/drivers/misc/cxl/
Dfault.c22 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/
Dbook3s_64_mmu.c52 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 …]
Dbook3s_hv_ras.c38 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()
Dbook3s_64_mmu_host.c279 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()
Dbook3s_pr.c99 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()
Dbook3s_hv.c441 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()
Dbook3s_64_mmu_hv.c317 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/
Dspu_base.c135 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/
Dcopro_fault.c90 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/
Dcopro.h19 int copro_calculate_slb(struct mm_struct *mm, u64 ea, struct copro_slb *slb);
Dkvm_book3s_asm.h162 } slb[64]; /* guest SLB */
Dkvm_host.h518 struct kvmppc_slb slb[64]; member
/Linux-v5.4/arch/powerpc/mm/book3s64/
DMakefile7 obj-y += hash_pgtable.o hash_utils.o slb.o \
/Linux-v5.4/arch/x86/kvm/
Dtrace.h677 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/
Dkvm.h185 } slb[64]; member
/Linux-v5.4/tools/arch/powerpc/include/uapi/asm/
Dkvm.h185 } slb[64]; member
/Linux-v5.4/arch/powerpc/kernel/
Dasm-offsets.c547 OFFSET(VCPU_SLB, kvm_vcpu, arch.slb); in main()
643 SVCPU_FIELD(SVCPU_SLB, slb); in main()
/Linux-v5.4/arch/s390/tools/
Dopcodes.txt825 e399 slb RXY_RRRD