Home
last modified time | relevance | path

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

123

/arch/arm64/kernel/
Dprocess.c212 u64 pstate = regs->pstate; in print_pstate() local
216 pstate, in print_pstate()
217 pstate & PSR_AA32_N_BIT ? 'N' : 'n', in print_pstate()
218 pstate & PSR_AA32_Z_BIT ? 'Z' : 'z', in print_pstate()
219 pstate & PSR_AA32_C_BIT ? 'C' : 'c', in print_pstate()
220 pstate & PSR_AA32_V_BIT ? 'V' : 'v', in print_pstate()
221 pstate & PSR_AA32_Q_BIT ? 'Q' : 'q', in print_pstate()
222 pstate & PSR_AA32_T_BIT ? "T32" : "A32", in print_pstate()
223 pstate & PSR_AA32_E_BIT ? "BE" : "LE", in print_pstate()
224 pstate & PSR_AA32_A_BIT ? 'A' : 'a', in print_pstate()
[all …]
Dinsn.c1413 static bool __kprobes __check_eq(unsigned long pstate) in __check_eq() argument
1415 return (pstate & PSR_Z_BIT) != 0; in __check_eq()
1418 static bool __kprobes __check_ne(unsigned long pstate) in __check_ne() argument
1420 return (pstate & PSR_Z_BIT) == 0; in __check_ne()
1423 static bool __kprobes __check_cs(unsigned long pstate) in __check_cs() argument
1425 return (pstate & PSR_C_BIT) != 0; in __check_cs()
1428 static bool __kprobes __check_cc(unsigned long pstate) in __check_cc() argument
1430 return (pstate & PSR_C_BIT) == 0; in __check_cc()
1433 static bool __kprobes __check_mi(unsigned long pstate) in __check_mi() argument
1435 return (pstate & PSR_N_BIT) != 0; in __check_mi()
[all …]
Dssbd.c20 task_pt_regs(task)->pstate |= val; in ssbd_ssbs_enable()
28 task_pt_regs(task)->pstate &= ~val; in ssbd_ssbs_disable()
Dtraps.c342 (regs->pstate & hook->pstate_mask) == hook->pstate_val) in call_undef_hook()
573 u32 it, pstate = regs->pstate; in compat_get_it_state() local
575 it = (pstate & PSTATE_IT_1_0_MASK) >> PSTATE_IT_1_0_SHIFT; in compat_get_it_state()
576 it |= ((pstate & PSTATE_IT_7_2_MASK) >> PSTATE_IT_7_2_SHIFT) << 2; in compat_get_it_state()
588 regs->pstate &= ~PSR_AA32_IT_MASK; in compat_set_it_state()
589 regs->pstate |= pstate_it; in compat_set_it_state()
609 return aarch32_opcode_cond_checks[cond](regs->pstate); in cp15_cond_valid()
617 if (!(regs->pstate & PSR_AA32_T_BIT) || in advance_itstate()
618 !(regs->pstate & PSR_AA32_IT_MASK)) in advance_itstate()
Dptrace.c92 REG_OFFSET_NAME(pstate),
1267 reg = task_pt_regs(target)->pstate; in compat_gpr_get()
1337 newregs.pstate = reg; in compat_gpr_set()
1897 regs->pstate &= ~SPSR_EL1_AARCH32_RES0_BITS; in valid_compat_regs()
1901 regs->pstate |= PSR_AA32_E_BIT; in valid_compat_regs()
1903 regs->pstate &= ~PSR_AA32_E_BIT; in valid_compat_regs()
1906 if (user_mode(regs) && (regs->pstate & PSR_MODE32_BIT) && in valid_compat_regs()
1907 (regs->pstate & PSR_AA32_A_BIT) == 0 && in valid_compat_regs()
1908 (regs->pstate & PSR_AA32_I_BIT) == 0 && in valid_compat_regs()
1909 (regs->pstate & PSR_AA32_F_BIT) == 0) { in valid_compat_regs()
[all …]
/arch/arm64/include/asm/
Dptrace.h133 unsigned long pstate; in compat_psr_to_pstate() local
135 pstate = psr & ~COMPAT_PSR_DIT_BIT; in compat_psr_to_pstate()
138 pstate |= PSR_AA32_DIT_BIT; in compat_psr_to_pstate()
140 return pstate; in compat_psr_to_pstate()
143 static inline unsigned long pstate_to_compat_psr(const unsigned long pstate) in pstate_to_compat_psr() argument
147 psr = pstate & ~PSR_AA32_DIT_BIT; in pstate_to_compat_psr()
149 if (pstate & PSR_AA32_DIT_BIT) in pstate_to_compat_psr()
167 u64 pstate; member
195 #define MAX_REG_OFFSET offsetof(struct pt_regs, pstate)
201 (((regs)->pstate & PSR_AA32_T_BIT))
[all …]
Dprocessor.h203 regs->pstate |= PSR_SSBS_BIT; in set_ssbs_bit()
208 regs->pstate |= PSR_AA32_SSBS_BIT; in set_compat_ssbs_bit()
215 regs->pstate = PSR_MODE_EL0t; in start_thread()
228 regs->pstate = PSR_AA32_MODE_USR; in compat_start_thread()
230 regs->pstate |= PSR_AA32_T_BIT; in compat_start_thread()
233 regs->pstate |= PSR_AA32_E_BIT; in compat_start_thread()
Dsdei.h24 unsigned long pc, unsigned long pstate);
30 unsigned long pstate);
/arch/x86/kernel/cpu/mce/
Dtherm_throt.c155 struct thermal_state *pstate = &per_cpu(thermal_state, this_cpu); in therm_throt_process() local
160 state = &pstate->core_throttle; in therm_throt_process()
162 state = &pstate->core_power_limit; in therm_throt_process()
167 state = &pstate->package_throttle; in therm_throt_process()
169 state = &pstate->package_power_limit; in therm_throt_process()
209 struct thermal_state *pstate = &per_cpu(thermal_state, this_cpu); in thresh_event_valid() local
213 state = (event == 0) ? &pstate->pkg_thresh0 : in thresh_event_valid()
214 &pstate->pkg_thresh1; in thresh_event_valid()
216 state = (event == 0) ? &pstate->core_thresh0 : in thresh_event_valid()
217 &pstate->core_thresh1; in thresh_event_valid()
/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.c399 static void spitfire_xcall_helper(u64 data0, u64 data1, u64 data2, u64 pstate, unsigned long cpu) in spitfire_xcall_helper() argument
434 : "r" (pstate), "i" (PSTATE_IE), "i" (ASI_INTR_W), in spitfire_xcall_helper()
447 : : "r" (pstate)); in spitfire_xcall_helper()
455 : : "r" (pstate)); in spitfire_xcall_helper()
469 u64 pstate; in spitfire_xcall_deliver() local
472 __asm__ __volatile__("rdpr %%pstate, %0" : "=r" (pstate)); in spitfire_xcall_deliver()
479 spitfire_xcall_helper(data0, data1, data2, pstate, cpu_list[i]); in spitfire_xcall_deliver()
489 u64 *mondo, pstate, ver, busy_mask; in cheetah_xcall_deliver() local
503 __asm__ __volatile__("rdpr %%pstate, %0" : "=r" (pstate)); in cheetah_xcall_deliver()
508 : : "r" (pstate), "i" (PSTATE_IE)); in cheetah_xcall_deliver()
[all …]
Dhvtramp.S82 wrpr %g0, (PSTATE_PRIV | PSTATE_PEF), %pstate
125 wrpr %g0, (PSTATE_PRIV | PSTATE_PEF | PSTATE_IE), %pstate
Durtt_fill.S53 661: wrpr %g0, RTRAP_PSTATE, %pstate
57 wrpr %g0, RTRAP_PSTATE|PSTATE_MCDE, %pstate
Dasm-offsets.c38 OFFSET(SC_REG_PSTATE, saved_context, pstate); in sparc64_foo()
/arch/sparc/lib/
Dclear_page.S66 rdpr %pstate, %o4
67 wrpr %o4, PSTATE_IE, %pstate
72 wrpr %o4, 0x0, %pstate
/arch/arm64/kvm/hyp/
Dsysreg-sr.c72 ctxt->gp_regs.regs.pstate = read_sysreg_el2(SYS_SPSR); in __sysreg_save_el2_return_state()
146 u64 pstate = ctxt->gp_regs.regs.pstate; in __sysreg_restore_el2_return_state() local
147 u64 mode = pstate & PSR_AA32_MODE_MASK; in __sysreg_restore_el2_return_state()
161 pstate = PSR_MODE_EL2h | PSR_IL_BIT; in __sysreg_restore_el2_return_state()
164 write_sysreg_el2(pstate, SYS_SPSR); in __sysreg_restore_el2_return_state()
/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/sparc/power/
Dhibernate_asm.S31 rdpr %pstate, %g2
111 wrpr %g2, %pstate
/arch/arm64/kernel/probes/
Dkprobes.c175 kcb->saved_irqflag = regs->pstate & DAIF_MASK; in kprobes_save_local_irqflag()
176 regs->pstate |= DAIF_MASK; in kprobes_save_local_irqflag()
182 regs->pstate &= ~DAIF_MASK; in kprobes_restore_local_irqflag()
183 regs->pstate |= kcb->saved_irqflag; in kprobes_restore_local_irqflag()

123