Lines Matching refs:pstate

52 static bool __kprobes __check_eq(unsigned long pstate)  in __check_eq()  argument
54 return (pstate & PSR_Z_BIT) != 0; in __check_eq()
57 static bool __kprobes __check_ne(unsigned long pstate) in __check_ne() argument
59 return (pstate & PSR_Z_BIT) == 0; in __check_ne()
62 static bool __kprobes __check_cs(unsigned long pstate) in __check_cs() argument
64 return (pstate & PSR_C_BIT) != 0; in __check_cs()
67 static bool __kprobes __check_cc(unsigned long pstate) in __check_cc() argument
69 return (pstate & PSR_C_BIT) == 0; in __check_cc()
72 static bool __kprobes __check_mi(unsigned long pstate) in __check_mi() argument
74 return (pstate & PSR_N_BIT) != 0; in __check_mi()
77 static bool __kprobes __check_pl(unsigned long pstate) in __check_pl() argument
79 return (pstate & PSR_N_BIT) == 0; in __check_pl()
82 static bool __kprobes __check_vs(unsigned long pstate) in __check_vs() argument
84 return (pstate & PSR_V_BIT) != 0; in __check_vs()
87 static bool __kprobes __check_vc(unsigned long pstate) in __check_vc() argument
89 return (pstate & PSR_V_BIT) == 0; in __check_vc()
92 static bool __kprobes __check_hi(unsigned long pstate) in __check_hi() argument
94 pstate &= ~(pstate >> 1); /* PSR_C_BIT &= ~PSR_Z_BIT */ in __check_hi()
95 return (pstate & PSR_C_BIT) != 0; in __check_hi()
98 static bool __kprobes __check_ls(unsigned long pstate) in __check_ls() argument
100 pstate &= ~(pstate >> 1); /* PSR_C_BIT &= ~PSR_Z_BIT */ in __check_ls()
101 return (pstate & PSR_C_BIT) == 0; in __check_ls()
104 static bool __kprobes __check_ge(unsigned long pstate) in __check_ge() argument
106 pstate ^= (pstate << 3); /* PSR_N_BIT ^= PSR_V_BIT */ in __check_ge()
107 return (pstate & PSR_N_BIT) == 0; in __check_ge()
110 static bool __kprobes __check_lt(unsigned long pstate) in __check_lt() argument
112 pstate ^= (pstate << 3); /* PSR_N_BIT ^= PSR_V_BIT */ in __check_lt()
113 return (pstate & PSR_N_BIT) != 0; in __check_lt()
116 static bool __kprobes __check_gt(unsigned long pstate) in __check_gt() argument
119 unsigned long temp = pstate ^ (pstate << 3); in __check_gt()
121 temp |= (pstate << 1); /*PSR_N_BIT |= PSR_Z_BIT */ in __check_gt()
125 static bool __kprobes __check_le(unsigned long pstate) in __check_le() argument
128 unsigned long temp = pstate ^ (pstate << 3); in __check_le()
130 temp |= (pstate << 1); /*PSR_N_BIT |= PSR_Z_BIT */ in __check_le()
134 static bool __kprobes __check_al(unsigned long pstate) in __check_al() argument
313 u32 it, pstate = regs->pstate; in compat_get_it_state() local
315 it = (pstate & PSTATE_IT_1_0_MASK) >> PSTATE_IT_1_0_SHIFT; in compat_get_it_state()
316 it |= ((pstate & PSTATE_IT_7_2_MASK) >> PSTATE_IT_7_2_SHIFT) << 2; in compat_get_it_state()
328 regs->pstate &= ~PSR_AA32_IT_MASK; in compat_set_it_state()
329 regs->pstate |= pstate_it; in compat_set_it_state()
337 if (!(regs->pstate & PSR_AA32_T_BIT) || in advance_itstate()
338 !(regs->pstate & PSR_AA32_IT_MASK)) in advance_itstate()
374 regs->pstate &= ~PSR_BTYPE_MASK; in arm64_skip_faulting_instruction()
497 regs->pstate &= ~PSR_BTYPE_MASK; in do_el1_bti()
546 if (regs->pstate & PSR_N_BIT) { in do_el0_mops()
749 return aarch32_opcode_cond_checks[cond](regs->pstate); in cp15_cond_valid()