/linux-6.3-rc2/arch/powerpc/kvm/ |
A D | emulate.c | 75 static int kvmppc_emulate_mtspr(struct kvm_vcpu *vcpu, int sprn, int rs) in kvmppc_emulate_mtspr() argument 80 switch (sprn) { in kvmppc_emulate_mtspr() 115 emulated = vcpu->kvm->arch.kvm_ops->emulate_mtspr(vcpu, sprn, in kvmppc_emulate_mtspr() 119 "0x%x\n", sprn); in kvmppc_emulate_mtspr() 133 switch (sprn) { in kvmppc_emulate_mfspr() 176 emulated = vcpu->kvm->arch.kvm_ops->emulate_mfspr(vcpu, sprn, in kvmppc_emulate_mfspr() 180 "0x%x\n", sprn); in kvmppc_emulate_mfspr() 197 int rs, rt, sprn; in kvmppc_emulate_instruction() local 212 sprn = get_sprn(inst); in kvmppc_emulate_instruction() 243 emulated = kvmppc_emulate_mfspr(vcpu, sprn, rt); in kvmppc_emulate_instruction() [all …]
|
A D | book3s_emulate.c | 658 switch (sprn) { in kvmppc_find_bat() 682 switch (sprn) { in kvmppc_core_emulate_mtspr_pr() 793 (sprn == SPRN_TFHAR))) { in kvmppc_core_emulate_mtspr_pr() 804 if (sprn == SPRN_TFHAR) in kvmppc_core_emulate_mtspr_pr() 847 if (sprn & 0x10) { in kvmppc_core_emulate_mtspr_pr() 868 switch (sprn) { in kvmppc_core_emulate_mfspr_pr() 876 if (sprn % 2) in kvmppc_core_emulate_mfspr_pr() 973 if (sprn == SPRN_TFHAR) in kvmppc_core_emulate_mfspr_pr() 977 else if (sprn == SPRN_TFIAR) in kvmppc_core_emulate_mfspr_pr() 1015 if (sprn & 0x10) { in kvmppc_core_emulate_mfspr_pr() [all …]
|
A D | booke.h | 75 int kvmppc_booke_emulate_mfspr(struct kvm_vcpu *vcpu, int sprn, ulong *spr_val); 76 int kvmppc_booke_emulate_mtspr(struct kvm_vcpu *vcpu, int sprn, ulong spr_val); 99 extern int kvmppc_core_emulate_mtspr_e500(struct kvm_vcpu *vcpu, int sprn, 101 extern int kvmppc_core_emulate_mfspr_e500(struct kvm_vcpu *vcpu, int sprn, 103 extern int kvmppc_core_emulate_mtspr_e500(struct kvm_vcpu *vcpu, int sprn, 105 extern int kvmppc_core_emulate_mfspr_e500(struct kvm_vcpu *vcpu, int sprn,
|
A D | e500_emulate.c | 204 int kvmppc_core_emulate_mtspr_e500(struct kvm_vcpu *vcpu, int sprn, ulong spr_val) in kvmppc_core_emulate_mtspr_e500() argument 209 switch (sprn) { in kvmppc_core_emulate_mtspr_e500() 315 emulated = kvmppc_booke_emulate_mtspr(vcpu, sprn, spr_val); in kvmppc_core_emulate_mtspr_e500() 321 int kvmppc_core_emulate_mfspr_e500(struct kvm_vcpu *vcpu, int sprn, ulong *spr_val) in kvmppc_core_emulate_mfspr_e500() argument 326 switch (sprn) { in kvmppc_core_emulate_mfspr_e500() 447 emulated = kvmppc_booke_emulate_mfspr(vcpu, sprn, spr_val); in kvmppc_core_emulate_mfspr_e500()
|
A D | book3s.h | 22 int sprn, ulong spr_val); 24 int sprn, ulong *spr_val);
|
A D | booke_emulate.c | 120 int kvmppc_booke_emulate_mtspr(struct kvm_vcpu *vcpu, int sprn, ulong spr_val) in kvmppc_booke_emulate_mtspr() argument 125 switch (sprn) { in kvmppc_booke_emulate_mtspr() 379 int kvmppc_booke_emulate_mfspr(struct kvm_vcpu *vcpu, int sprn, ulong *spr_val) in kvmppc_booke_emulate_mfspr() argument 383 switch (sprn) { in kvmppc_booke_emulate_mfspr()
|
A D | book3s_hv.c | 5565 static int kvmppc_core_emulate_mtspr_hv(struct kvm_vcpu *vcpu, int sprn, in kvmppc_core_emulate_mtspr_hv() argument 5571 static int kvmppc_core_emulate_mfspr_hv(struct kvm_vcpu *vcpu, int sprn, in kvmppc_core_emulate_mfspr_hv() argument
|
/linux-6.3-rc2/arch/powerpc/kernel/ |
A D | kvm.c | 47 #define KVM_INST_SPR(sprn, moveto) (0x7c0002a6 | \ argument 48 (((sprn) & 0x1f) << 16) | \ 49 (((sprn) & 0x3e0) << 6) | \ 52 #define KVM_INST_MFSPR(sprn) KVM_INST_SPR(sprn, SPR_FROM) argument 53 #define KVM_INST_MTSPR(sprn) KVM_INST_SPR(sprn, SPR_TO) argument
|
/linux-6.3-rc2/drivers/cpufreq/ |
A D | powernv-cpufreq.c | 437 static inline unsigned long get_pmspr(unsigned long sprn) in get_pmspr() argument 439 switch (sprn) { in get_pmspr() 452 static inline void set_pmspr(unsigned long sprn, unsigned long val) in set_pmspr() argument 454 switch (sprn) { in set_pmspr()
|
/linux-6.3-rc2/arch/powerpc/include/asm/ |
A D | kvm_ppc.h | 286 int (*emulate_mtspr)(struct kvm_vcpu *vcpu, int sprn, ulong spr_val); 287 int (*emulate_mfspr)(struct kvm_vcpu *vcpu, int sprn, ulong *spr_val);
|
A D | opal.h | 203 int64_t opal_slw_set_reg(uint64_t cpu_pir, uint64_t sprn, uint64_t val);
|