Home
last modified time | relevance | path

Searched refs:sprn (Results 1 – 11 of 11) sorted by relevance

/linux/arch/powerpc/kvm/
A Demulate.c75 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 Dbook3s_emulate.c658 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 Dbooke.h75 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 De500_emulate.c204 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 Dbook3s.h22 int sprn, ulong spr_val);
24 int sprn, ulong *spr_val);
A Dbooke_emulate.c120 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 Dbook3s_hv.c5381 static int kvmppc_core_emulate_mtspr_hv(struct kvm_vcpu *vcpu, int sprn, in kvmppc_core_emulate_mtspr_hv() argument
5387 static int kvmppc_core_emulate_mfspr_hv(struct kvm_vcpu *vcpu, int sprn, in kvmppc_core_emulate_mfspr_hv() argument
/linux/arch/powerpc/kernel/
A Dkvm.c47 #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/drivers/cpufreq/
A Dpowernv-cpufreq.c437 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/arch/powerpc/include/asm/
A Dkvm_ppc.h295 int (*emulate_mtspr)(struct kvm_vcpu *vcpu, int sprn, ulong spr_val);
296 int (*emulate_mfspr)(struct kvm_vcpu *vcpu, int sprn, ulong *spr_val);
A Dopal.h203 int64_t opal_slw_set_reg(uint64_t cpu_pir, uint64_t sprn, uint64_t val);

Completed in 24 milliseconds