Home
last modified time | relevance | path

Searched refs:pstate (Results 1 – 25 of 59) sorted by relevance

123

/arch/arm64/include/asm/
Dptrace.h151 unsigned long pstate; in compat_psr_to_pstate() local
153 pstate = psr & ~COMPAT_PSR_DIT_BIT; in compat_psr_to_pstate()
156 pstate |= PSR_AA32_DIT_BIT; in compat_psr_to_pstate()
158 return pstate; in compat_psr_to_pstate()
161 static inline unsigned long pstate_to_compat_psr(const unsigned long pstate) in pstate_to_compat_psr() argument
165 psr = pstate & ~PSR_AA32_DIT_BIT; in pstate_to_compat_psr()
167 if (pstate & PSR_AA32_DIT_BIT) in pstate_to_compat_psr()
185 u64 pstate; member
217 #define MAX_REG_OFFSET offsetof(struct pt_regs, pstate)
223 (((regs)->pstate & PSR_AA32_T_BIT))
[all …]
Dsdei.h27 unsigned long pc, unsigned long pstate);
33 unsigned long pstate);
Dprocessor.h223 regs->pstate = PSR_MODE_EL0t; in start_thread()
233 regs->pstate = PSR_AA32_MODE_USR; in compat_start_thread()
235 regs->pstate |= PSR_AA32_T_BIT; in compat_start_thread()
238 regs->pstate |= PSR_AA32_E_BIT; in compat_start_thread()
/arch/arm64/kernel/
Dprocess.c221 u64 pstate = regs->pstate; in print_pstate() local
225 pstate, in print_pstate()
226 pstate & PSR_AA32_N_BIT ? 'N' : 'n', in print_pstate()
227 pstate & PSR_AA32_Z_BIT ? 'Z' : 'z', in print_pstate()
228 pstate & PSR_AA32_C_BIT ? 'C' : 'c', in print_pstate()
229 pstate & PSR_AA32_V_BIT ? 'V' : 'v', in print_pstate()
230 pstate & PSR_AA32_Q_BIT ? 'Q' : 'q', in print_pstate()
231 pstate & PSR_AA32_T_BIT ? "T32" : "A32", in print_pstate()
232 pstate & PSR_AA32_E_BIT ? "BE" : "LE", in print_pstate()
233 pstate & PSR_AA32_A_BIT ? 'A' : 'a', in print_pstate()
[all …]
Dinsn.c1435 static bool __kprobes __check_eq(unsigned long pstate) in __check_eq() argument
1437 return (pstate & PSR_Z_BIT) != 0; in __check_eq()
1440 static bool __kprobes __check_ne(unsigned long pstate) in __check_ne() argument
1442 return (pstate & PSR_Z_BIT) == 0; in __check_ne()
1445 static bool __kprobes __check_cs(unsigned long pstate) in __check_cs() argument
1447 return (pstate & PSR_C_BIT) != 0; in __check_cs()
1450 static bool __kprobes __check_cc(unsigned long pstate) in __check_cc() argument
1452 return (pstate & PSR_C_BIT) == 0; in __check_cc()
1455 static bool __kprobes __check_mi(unsigned long pstate) in __check_mi() argument
1457 return (pstate & PSR_N_BIT) != 0; in __check_mi()
[all …]
Dtraps.c223 u32 it, pstate = regs->pstate; in compat_get_it_state() local
225 it = (pstate & PSTATE_IT_1_0_MASK) >> PSTATE_IT_1_0_SHIFT; in compat_get_it_state()
226 it |= ((pstate & PSTATE_IT_7_2_MASK) >> PSTATE_IT_7_2_SHIFT) << 2; in compat_get_it_state()
238 regs->pstate &= ~PSR_AA32_IT_MASK; in compat_set_it_state()
239 regs->pstate |= pstate_it; in compat_set_it_state()
247 if (!(regs->pstate & PSR_AA32_T_BIT) || in advance_itstate()
248 !(regs->pstate & PSR_AA32_IT_MASK)) in advance_itstate()
284 regs->pstate &= ~PSR_BTYPE_MASK; in arm64_skip_faulting_instruction()
346 (regs->pstate & hook->pstate_mask) == hook->pstate_val) in call_undef_hook()
608 return aarch32_opcode_cond_checks[cond](regs->pstate); in cp15_cond_valid()
Dptrace.c92 REG_OFFSET_NAME(pstate),
1253 return pstate_to_compat_psr(regs->pstate); in compat_get_user_reg()
1315 newregs.pstate = reg; in compat_gpr_set()
1537 newregs.pstate = compat_psr_to_pstate(val); in compat_ptrace_write_user()
1890 regs->pstate &= ~SPSR_EL1_AARCH32_RES0_BITS; in valid_compat_regs()
1894 regs->pstate |= PSR_AA32_E_BIT; in valid_compat_regs()
1896 regs->pstate &= ~PSR_AA32_E_BIT; in valid_compat_regs()
1899 if (user_mode(regs) && (regs->pstate & PSR_MODE32_BIT) && in valid_compat_regs()
1900 (regs->pstate & PSR_AA32_A_BIT) == 0 && in valid_compat_regs()
1901 (regs->pstate & PSR_AA32_I_BIT) == 0 && in valid_compat_regs()
[all …]
/arch/sparc/kernel/
Drtrap_64.S28 661: wrpr %g0, RTRAP_PSTATE, %pstate
36 wrpr %g0, RTRAP_PSTATE|PSTATE_MCDE, %pstate
39 wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate
44 661: wrpr %g0, RTRAP_PSTATE, %pstate
52 wrpr %g0, RTRAP_PSTATE|PSTATE_MCDE, %pstate
55 wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate
70 661: wrpr %g0, RTRAP_PSTATE, %pstate
78 wrpr %g0, RTRAP_PSTATE|PSTATE_MCDE, %pstate
80 wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate
159 to_user: wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate
[all …]
Dspiterrs.S159 rdpr %pstate, %g4
160 wrpr %g4, PSTATE_MG|PSTATE_AG, %pstate
187 rdpr %pstate, %g4
188 wrpr %g4, PSTATE_MG|PSTATE_AG, %pstate
207 rdpr %pstate, %g4
208 wrpr %g4, PSTATE_MG|PSTATE_AG, %pstate
226 rdpr %pstate, %g4
227 wrpr %g4, PSTATE_MG|PSTATE_AG, %pstate
Dhelpers.S29 rdpr %pstate, %o0
30 wrpr %o0, PSTATE_IE, %pstate
45 wrpr %o0, %pstate
Ddtlb_prot.S21 rdpr %pstate, %g5 ! Move into alt-globals
22 wrpr %g5, PSTATE_AG|PSTATE_MG, %pstate
Dtsb.S147 661: rdpr %pstate, %g5
148 wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate
254 661: rdpr %pstate, %g5
255 wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate
320 rdpr %pstate, %o5
321 wrpr %o5, PSTATE_IE, %pstate
324 wrpr %o5, %pstate
374 rdpr %pstate, %g1
375 wrpr %g1, PSTATE_IE, %pstate
457 wrpr %g1, %pstate
Dktlb.S86 661: rdpr %pstate, %g5
87 wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate
244 661: rdpr %pstate, %g5
245 wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate
Dsmp_64.c396 static void spitfire_xcall_helper(u64 data0, u64 data1, u64 data2, u64 pstate, unsigned long cpu) in spitfire_xcall_helper() argument
431 : "r" (pstate), "i" (PSTATE_IE), "i" (ASI_INTR_W), in spitfire_xcall_helper()
444 : : "r" (pstate)); in spitfire_xcall_helper()
452 : : "r" (pstate)); in spitfire_xcall_helper()
466 u64 pstate; in spitfire_xcall_deliver() local
469 __asm__ __volatile__("rdpr %%pstate, %0" : "=r" (pstate)); in spitfire_xcall_deliver()
476 spitfire_xcall_helper(data0, data1, data2, pstate, cpu_list[i]); in spitfire_xcall_deliver()
486 u64 *mondo, pstate, ver, busy_mask; in cheetah_xcall_deliver() local
500 __asm__ __volatile__("rdpr %%pstate, %0" : "=r" (pstate)); in cheetah_xcall_deliver()
505 : : "r" (pstate), "i" (PSTATE_IE)); in cheetah_xcall_deliver()
[all …]
Durtt_fill.S53 661: wrpr %g0, RTRAP_PSTATE, %pstate
57 wrpr %g0, RTRAP_PSTATE|PSTATE_MCDE, %pstate
Dhvtramp.S82 wrpr %g0, (PSTATE_PRIV | PSTATE_PEF), %pstate
125 wrpr %g0, (PSTATE_PRIV | PSTATE_PEF | PSTATE_IE), %pstate
/arch/arm64/kvm/hyp/include/hyp/
Dsysreg-sr.h62 ctxt->regs.pstate = read_sysreg_el2(SYS_SPSR); in __sysreg_save_el2_return_state()
140 u64 pstate = ctxt->regs.pstate; in __sysreg_restore_el2_return_state() local
141 u64 mode = pstate & PSR_AA32_MODE_MASK; in __sysreg_restore_el2_return_state()
155 pstate = PSR_MODE_EL2h | PSR_IL_BIT; in __sysreg_restore_el2_return_state()
158 write_sysreg_el2(pstate, SYS_SPSR); in __sysreg_restore_el2_return_state()
Dadjust_pc.h38 vcpu_gp_regs(vcpu)->pstate = read_sysreg_el2(SYS_SPSR); in __kvm_skip_instr()
42 write_sysreg_el2(vcpu_gp_regs(vcpu)->pstate, SYS_SPSR); in __kvm_skip_instr()
/arch/arm64/kvm/
Dreset.c212 u32 pstate; in kvm_reset_vcpu() local
253 pstate = VCPU_RESET_PSTATE_SVC; in kvm_reset_vcpu()
255 pstate = VCPU_RESET_PSTATE_EL1; in kvm_reset_vcpu()
272 vcpu_gp_regs(vcpu)->pstate = pstate; in kvm_reset_vcpu()
/arch/sparc/lib/
Dclear_page.S66 rdpr %pstate, %o4
67 wrpr %o4, PSTATE_IE, %pstate
72 wrpr %o4, 0x0, %pstate
/arch/x86/kernel/cpu/mce/
Dtherm_throt.c318 struct thermal_state *pstate = &per_cpu(thermal_state, this_cpu); in therm_throt_process() local
323 state = &pstate->core_throttle; in therm_throt_process()
325 state = &pstate->core_power_limit; in therm_throt_process()
330 state = &pstate->package_throttle; in therm_throt_process()
332 state = &pstate->package_power_limit; in therm_throt_process()
378 struct thermal_state *pstate = &per_cpu(thermal_state, this_cpu); in thresh_event_valid() local
382 state = (event == 0) ? &pstate->pkg_thresh0 : in thresh_event_valid()
383 &pstate->pkg_thresh1; in thresh_event_valid()
385 state = (event == 0) ? &pstate->core_thresh0 : in thresh_event_valid()
386 &pstate->core_thresh1; in thresh_event_valid()
/arch/sparc/mm/
Dultra.S60 rdpr %pstate, %g7
62 wrpr %g2, %pstate
77 wrpr %g7, 0x0, %pstate
87 rdpr %pstate, %g7
90 wrpr %g2, %pstate
109 wrpr %g7, 0x0, %pstate
174 rdpr %pstate, %g1
175 wrpr %g1, PSTATE_IE, %pstate
184 wrpr %g1, 0, %pstate
251 rdpr %pstate, %g7
[all …]
/arch/sparc/include/asm/
Dhibernate.h17 unsigned long pstate; member
/arch/arm64/kernel/probes/
Dkprobes.c169 kcb->saved_irqflag = regs->pstate & DAIF_MASK; in kprobes_save_local_irqflag()
170 regs->pstate |= DAIF_MASK; in kprobes_save_local_irqflag()
176 regs->pstate &= ~DAIF_MASK; in kprobes_restore_local_irqflag()
177 regs->pstate |= kcb->saved_irqflag; in kprobes_restore_local_irqflag()
/arch/sparc/power/
Dhibernate_asm.S31 rdpr %pstate, %g2
111 wrpr %g2, %pstate

123