Home
last modified time | relevance | path

Searched refs:esid (Results 1 – 25 of 27) sorted by relevance

12

/openbmc/linux/arch/powerpc/kvm/
H A Dbook3s_64_mmu.c32 u64 esid = GET_ESID(eaddr); in kvmppc_mmu_book3s_64_find_slbe() local
36 u64 cmp_esid = esid; in kvmppc_mmu_book3s_64_find_slbe()
49 eaddr, esid, esid_1t); in kvmppc_mmu_book3s_64_find_slbe()
56 vcpu->arch.slb[i].esid, in kvmppc_mmu_book3s_64_find_slbe()
365 u64 esid, esid_1t; in kvmppc_mmu_book3s_64_slbmte() local
371 esid = GET_ESID(rb); in kvmppc_mmu_book3s_64_slbmte()
382 slbe->esid = slbe->tb ? esid_1t : esid; in kvmppc_mmu_book3s_64_slbmte()
575 ulong ea = esid << SID_SHIFT; in kvmppc_mmu_book3s_64_esid_to_vsid()
577 u64 gvsid = esid; in kvmppc_mmu_book3s_64_esid_to_vsid()
597 gvsid = VSID_REAL | esid; in kvmppc_mmu_book3s_64_esid_to_vsid()
[all …]
H A 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()
315 u64 esid = eaddr >> SID_SHIFT; in kvmppc_mmu_map_segment() local
325 if (vcpu->arch.mmu.esid_to_vsid(vcpu, esid, &gvsid)) { in kvmppc_mmu_map_segment()
327 svcpu->slb[slb_index].esid = 0; in kvmppc_mmu_map_segment()
336 map->guest_esid = esid; in kvmppc_mmu_map_segment()
348 svcpu->slb[slb_index].esid = slb_esid; 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()
[all …]
H A Dbook3s_32_mmu_host.c304 u32 esid = eaddr >> SID_SHIFT; in kvmppc_mmu_map_segment() local
311 if (vcpu->arch.mmu.esid_to_vsid(vcpu, esid, &gvsid)) { in kvmppc_mmu_map_segment()
313 svcpu->sr[esid] = SR_INVALID; in kvmppc_mmu_map_segment()
322 map->guest_esid = esid; in kvmppc_mmu_map_segment()
324 svcpu->sr[esid] = sr; in kvmppc_mmu_map_segment()
326 dprintk_sr("MMU: mtsr %d, 0x%x\n", esid, sr); in kvmppc_mmu_map_segment()
H A Dbook3s_32_mmu.c72 static int kvmppc_mmu_book3s_32_esid_to_vsid(struct kvm_vcpu *vcpu, ulong esid,
348 static int kvmppc_mmu_book3s_32_esid_to_vsid(struct kvm_vcpu *vcpu, ulong esid, in kvmppc_mmu_book3s_32_esid_to_vsid() argument
351 ulong ea = esid << SID_SHIFT; in kvmppc_mmu_book3s_32_esid_to_vsid()
353 u64 gvsid = esid; in kvmppc_mmu_book3s_32_esid_to_vsid()
367 *vsid = VSID_REAL | esid; in kvmppc_mmu_book3s_32_esid_to_vsid()
H A Dbook3s_hv_ras.c57 unsigned long rb = be64_to_cpu(slb->save_area[i].esid); in reload_slb()
/openbmc/linux/drivers/misc/lkdtm/
H A Dpowerpc.c73 unsigned long esid, vsid; in insert_dup_slb_entry_0() local
79 asm volatile("slbmfee %0,%1" : "=r" (esid) : "r" (i)); in insert_dup_slb_entry_0()
85 "r" (esid | SLB_NUM_BOLTED) in insert_dup_slb_entry_0()
88 asm volatile("slbmfee %0,%1" : "=r" (esid) : "r" (i)); in insert_dup_slb_entry_0()
94 "r" (esid | (SLB_NUM_BOLTED + 1)) in insert_dup_slb_entry_0()
/openbmc/linux/drivers/misc/cxl/
H A Dfault.c25 (sste->esid_data == cpu_to_be64(slb->esid))); in sste_matches()
41 hash = (slb->esid >> SID_SHIFT_1T) & mask; in find_free_sste()
43 hash = (slb->esid >> SID_SHIFT) & mask; in find_free_sste()
75 sste - ctx->sstp, slb->vsid, slb->esid); in cxl_load_segment()
76 trace_cxl_ste_write(ctx, sste - ctx->sstp, slb->esid, slb->vsid); in cxl_load_segment()
79 sste->esid_data = cpu_to_be64(slb->esid); in cxl_load_segment()
309 if (last_esid == slb.esid) in cxl_prefault_vma()
313 last_esid = slb.esid; in cxl_prefault_vma()
/openbmc/linux/arch/powerpc/mm/book3s64/
H A Dslb.c77 WRITE_ONCE(p->save_area[index].esid, 0); in slb_shadow_update()
118 "r" (be64_to_cpu(p->save_area[index].esid))); in __slb_restore_bolted_realmode()
163 ksp_esid_data = be64_to_cpu(p->save_area[KSTACK_INDEX].esid); in __slb_flush_and_restore_bolted()
216 slb_ptr->esid = e; in slb_save_contents()
234 e = slb_ptr->esid; in slb_dump_contents()
283 static bool preload_hit(struct thread_info *ti, unsigned long esid) in preload_hit() argument
291 if (esid == ti->slb_preload_esid[idx]) in preload_hit()
300 unsigned long esid; in preload_add() local
308 esid = ea >> SID_SHIFT; in preload_add()
310 if (preload_hit(ti, esid)) in preload_add()
[all …]
/openbmc/qemu/target/ppc/
H A Dmmu-hash64.c74 if (((slb->esid == esid_256M) && in slb_lookup()
76 || ((slb->esid == esid_1T) && in slb_lookup()
95 slbe = env->slb[i].esid; in dump_slb()
174 slb->esid &= ~SLB_ESID_V; in helper_SLBIA()
200 slb->esid &= ~SLB_ESID_V; in helper_SLBIAG()
216 if (slb->esid & SLB_ESID_V) { in __helper_slbie()
217 slb->esid &= ~SLB_ESID_V; in __helper_slbie()
281 slb->esid = esid; in ppc_store_slb()
287 slb->esid, slb->vsid); in ppc_store_slb()
304 *rt = slb->esid; in ppc_load_slb_esid()
[all …]
H A Dmachine.c433 v->esid = qemu_get_be64(f); in get_slbe()
444 qemu_put_be64(f, v->esid); in put_slbe()
480 if (ppc_store_slb(cpu, i, env->slb[i].esid, env->slb[i].vsid) < 0) { in slb_post_load()
H A Dmmu-hash64.h9 target_ulong esid, target_ulong vsid);
H A Dmmu_helper.c349 uint64_t esid, vsid; in helper_store_sr() local
352 esid = ((uint64_t)(srnum & 0xf) << 28) | SLB_ESID_V; in helper_store_sr()
359 ppc_store_slb(cpu, srnum, esid, vsid); in helper_store_sr()
/openbmc/linux/arch/powerpc/include/asm/
H A Dcopro.h13 u64 esid, vsid; member
H A Dlppaca.h136 __be64 esid; member
H A Dkvm_book3s_asm.h146 u64 esid; member
H A Dkvm_host.h404 int (*esid_to_vsid)(struct kvm_vcpu *vcpu, ulong esid, u64 *vsid);
410 u64 esid; member
H A Dkvm_book3s.h102 u64 esid; member
/openbmc/linux/drivers/s390/cio/
H A Ddevice_id.c136 cdev->private->flags.esid = 0; in snsid_init()
161 cdev->private->flags.esid = 1; in snsid_check()
H A Dio_sch.h157 unsigned int esid:1; /* Ext. SenseID supported by HW */ member
H A Ddevice_ops.c440 if (cdev->private->flags.esid == 0) in ccw_device_get_ciw()
/openbmc/linux/arch/powerpc/platforms/cell/
H A Dspu_base.c139 __func__, slbe, slb->vsid, slb->esid); in spu_load_slb()
147 out_be64(&priv2->slb_esid_RW, slb->esid); in spu_load_slb()
220 slb->esid = (ea & ESID_MASK) | SLB_ESID_V; in __spu_kernel_slb()
234 if (!((slbs[i].esid ^ ea) & ESID_MASK)) in __slb_present()
/openbmc/linux/arch/powerpc/mm/
H A Dcopro_fault.c132 slb->esid = (ea & (ssize == MMU_SEGSIZE_1T ? ESID_MASK_1T : ESID_MASK)) | SLB_ESID_V; in copro_calculate_slb()
/openbmc/linux/arch/powerpc/xmon/
H A Dxmon.c2659 u64 esid, vsid; in dump_one_paca() local
2664 esid = be64_to_cpu(p->slb_shadow_ptr->save_area[i].esid); in dump_one_paca()
2667 if (esid || vsid) { in dump_one_paca()
2669 22, "slb_shadow", i, esid, vsid); in dump_one_paca()
3755 unsigned long esid,vsid; in dump_segments() local
3761 asm volatile("slbmfee %0,%1" : "=r" (esid) : "r" (i)); in dump_segments()
3764 if (!esid && !vsid) in dump_segments()
3767 printf("%02d %016lx %016lx", i, esid, vsid); in dump_segments()
3769 if (!(esid & SLB_ESID_V)) { in dump_segments()
3777 GET_ESID_1T(esid), in dump_segments()
[all …]
/openbmc/linux/arch/powerpc/include/asm/book3s/64/
H A Dmmu-hash.h514 u64 esid; member
/openbmc/linux/arch/powerpc/kernel/
H A Dasm-offsets.c226 OFFSET(SLBSHADOW_STACKESID, slb_shadow, save_area[SLB_NUM_BOLTED - 1].esid); in main()

12