Home
last modified time | relevance | path

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

/linux-6.12.1/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-6.12.1/arch/powerpc/kvm/
Dbook3s_64_mmu.c38 if (!vcpu->arch.slb[i].valid) in kvmppc_mmu_book3s_64_find_slbe()
41 if (vcpu->arch.slb[i].tb) in kvmppc_mmu_book3s_64_find_slbe()
44 if (vcpu->arch.slb[i].esid == cmp_esid) in kvmppc_mmu_book3s_64_find_slbe()
45 return &vcpu->arch.slb[i]; in kvmppc_mmu_book3s_64_find_slbe()
51 if (vcpu->arch.slb[i].vsid) in kvmppc_mmu_book3s_64_find_slbe()
53 vcpu->arch.slb[i].valid ? 'v' : ' ', in kvmppc_mmu_book3s_64_find_slbe()
54 vcpu->arch.slb[i].large ? 'l' : ' ', in kvmppc_mmu_book3s_64_find_slbe()
55 vcpu->arch.slb[i].tb ? 't' : ' ', in kvmppc_mmu_book3s_64_find_slbe()
56 vcpu->arch.slb[i].esid, in kvmppc_mmu_book3s_64_find_slbe()
57 vcpu->arch.slb[i].vsid); in kvmppc_mmu_book3s_64_find_slbe()
[all …]
Dbook3s_hv_ras.c39 struct slb_shadow *slb; in reload_slb() local
46 slb = vcpu->arch.slb_shadow.pinned_addr; in reload_slb()
47 if (!slb) in reload_slb()
51 n = min_t(u32, be32_to_cpu(slb->persistent), SLB_MIN_SIZE); in reload_slb()
52 if ((void *) &slb->save_area[n] > vcpu->arch.slb_shadow.pinned_end) in reload_slb()
57 unsigned long rb = be64_to_cpu(slb->save_area[i].esid); in reload_slb()
58 unsigned long rs = be64_to_cpu(slb->save_area[i].vsid); in reload_slb()
Dbook3s_64_mmu_host.c281 if (!(svcpu->slb[i].esid & SLB_ESID_V)) in kvmppc_mmu_next_segment()
283 else if ((svcpu->slb[i].esid & ESID_MASK) == esid) { in kvmppc_mmu_next_segment()
327 svcpu->slb[slb_index].esid = 0; in kvmppc_mmu_map_segment()
348 svcpu->slb[slb_index].esid = slb_esid; in kvmppc_mmu_map_segment()
349 svcpu->slb[slb_index].vsid = slb_vsid; in kvmppc_mmu_map_segment()
365 if ((svcpu->slb[i].esid & SLB_ESID_V) && in kvmppc_mmu_flush_segment()
366 (svcpu->slb[i].esid & seg_mask) == ea) { in kvmppc_mmu_flush_segment()
368 svcpu->slb[i].esid = 0; in kvmppc_mmu_flush_segment()
379 svcpu->slb[0].esid = 0; in kvmppc_mmu_flush_segments()
Dbook3s_pr.c136 memcpy(svcpu->slb, to_book3s(vcpu)->slb_shadow, sizeof(svcpu->slb)); in kvmppc_core_vcpu_load_pr()
168 memcpy(to_book3s(vcpu)->slb_shadow, svcpu->slb, sizeof(svcpu->slb)); in kvmppc_core_vcpu_put_pr()
1468 sregs->u.s.ppc64.slb[i].slbe = vcpu->arch.slb[i].orige | i; in kvm_arch_vcpu_ioctl_get_sregs_pr()
1469 sregs->u.s.ppc64.slb[i].slbv = vcpu->arch.slb[i].origv; in kvm_arch_vcpu_ioctl_get_sregs_pr()
1500 u64 rb = sregs->u.s.ppc64.slb[i].slbe; in kvm_arch_vcpu_ioctl_set_sregs_pr()
1501 u64 rs = sregs->u.s.ppc64.slb[i].slbv; in kvm_arch_vcpu_ioctl_set_sregs_pr()
Dbook3s_hv_p9_entry.c347 mtslb(vcpu->arch.slb[i].orige, vcpu->arch.slb[i].origv); in switch_mmu_to_guest_hpt()
409 vcpu->arch.slb[nr].orige = slbee | i; in save_clear_guest_mmu()
410 vcpu->arch.slb[nr].origv = slbev; in save_clear_guest_mmu()
Dbook3s_hv.c510 vcpu->arch.slb[r].orige, vcpu->arch.slb[r].origv); in kvmppc_dump_regs()
2133 sregs->u.s.ppc64.slb[i].slbe = vcpu->arch.slb[i].orige; in kvm_arch_vcpu_ioctl_get_sregs_hv()
2134 sregs->u.s.ppc64.slb[i].slbv = vcpu->arch.slb[i].origv; in kvm_arch_vcpu_ioctl_get_sregs_hv()
2151 if (sregs->u.s.ppc64.slb[i].slbe & SLB_ESID_V) { in kvm_arch_vcpu_ioctl_set_sregs_hv()
2152 vcpu->arch.slb[j].orige = sregs->u.s.ppc64.slb[i].slbe; in kvm_arch_vcpu_ioctl_set_sregs_hv()
2153 vcpu->arch.slb[j].origv = sregs->u.s.ppc64.slb[i].slbv; in kvm_arch_vcpu_ioctl_set_sregs_hv()
Dbook3s_64_mmu_hv.c318 if (!(vcpu->arch.slb[i].orige & SLB_ESID_V)) in kvmppc_mmu_book3s_hv_find_slbe()
321 if (vcpu->arch.slb[i].origv & SLB_VSID_B_1T) in kvmppc_mmu_book3s_hv_find_slbe()
326 if (((vcpu->arch.slb[i].orige ^ eaddr) & mask) == 0) in kvmppc_mmu_book3s_hv_find_slbe()
327 return &vcpu->arch.slb[i]; in kvmppc_mmu_book3s_hv_find_slbe()
/linux-6.12.1/arch/powerpc/platforms/cell/
Dspu_base.c134 static inline void spu_load_slb(struct spu *spu, int slbe, struct copro_slb *slb) in spu_load_slb() argument
139 __func__, slbe, slb->vsid, slb->esid); in spu_load_slb()
145 out_be64(&priv2->slb_vsid_RW, slb->vsid); in spu_load_slb()
147 out_be64(&priv2->slb_esid_RW, slb->esid); in spu_load_slb()
152 struct copro_slb slb; in __spu_trap_data_seg() local
155 ret = copro_calculate_slb(spu->mm, ea, &slb); in __spu_trap_data_seg()
159 spu_load_slb(spu, spu->slb_replace, &slb); in __spu_trap_data_seg()
208 static void __spu_kernel_slb(void *addr, struct copro_slb *slb) in __spu_kernel_slb() argument
218 slb->vsid = (get_kernel_vsid(ea, MMU_SEGSIZE_256M) << SLB_VSID_SHIFT) | in __spu_kernel_slb()
220 slb->esid = (ea & ESID_MASK) | SLB_ESID_V; in __spu_kernel_slb()
/linux-6.12.1/arch/powerpc/mm/
Dcopro_fault.c83 int copro_calculate_slb(struct mm_struct *mm, u64 ea, struct copro_slb *slb) in copro_calculate_slb() argument
132 slb->esid = (ea & (ssize == MMU_SEGSIZE_1T ? ESID_MASK_1T : ESID_MASK)) | SLB_ESID_V; in copro_calculate_slb()
133 slb->vsid = vsid; in copro_calculate_slb()
/linux-6.12.1/arch/powerpc/include/asm/
Dcopro.h19 int copro_calculate_slb(struct mm_struct *mm, u64 ea, struct copro_slb *slb);
Dkvm_book3s_asm.h148 } slb[64]; /* guest SLB */ member
Dkvm_host.h532 struct kvmppc_slb slb[64]; member
/linux-6.12.1/arch/powerpc/mm/book3s64/
DMakefile6 obj-y += hash_pgtable.o hash_utils.o hash_tlb.o slb.o slice.o
/linux-6.12.1/arch/x86/kvm/
Dtrace.h761 TP_PROTO(__u64 rip, __u32 slb),
762 TP_ARGS(rip, slb),
766 __field( __u32, slb )
771 __entry->slb = slb;
775 __entry->rip, __entry->slb)
/linux-6.12.1/arch/powerpc/kernel/
Dasm-offsets.c464 OFFSET(VCPU_SLB, kvm_vcpu, arch.slb); in main()
557 SVCPU_FIELD(SVCPU_SLB, slb); in main()
/linux-6.12.1/tools/arch/powerpc/include/uapi/asm/
Dkvm.h184 } slb[64]; member
/linux-6.12.1/arch/powerpc/include/uapi/asm/
Dkvm.h184 } slb[64]; member
/linux-6.12.1/arch/s390/tools/
Dopcodes.txt844 e399 slb RXY_RRRD