Lines Matching refs:pstate
49 static bool __kprobes __check_eq(unsigned long pstate) in __check_eq() argument
51 return (pstate & PSR_Z_BIT) != 0; in __check_eq()
54 static bool __kprobes __check_ne(unsigned long pstate) in __check_ne() argument
56 return (pstate & PSR_Z_BIT) == 0; in __check_ne()
59 static bool __kprobes __check_cs(unsigned long pstate) in __check_cs() argument
61 return (pstate & PSR_C_BIT) != 0; in __check_cs()
64 static bool __kprobes __check_cc(unsigned long pstate) in __check_cc() argument
66 return (pstate & PSR_C_BIT) == 0; in __check_cc()
69 static bool __kprobes __check_mi(unsigned long pstate) in __check_mi() argument
71 return (pstate & PSR_N_BIT) != 0; in __check_mi()
74 static bool __kprobes __check_pl(unsigned long pstate) in __check_pl() argument
76 return (pstate & PSR_N_BIT) == 0; in __check_pl()
79 static bool __kprobes __check_vs(unsigned long pstate) in __check_vs() argument
81 return (pstate & PSR_V_BIT) != 0; in __check_vs()
84 static bool __kprobes __check_vc(unsigned long pstate) in __check_vc() argument
86 return (pstate & PSR_V_BIT) == 0; in __check_vc()
89 static bool __kprobes __check_hi(unsigned long pstate) in __check_hi() argument
91 pstate &= ~(pstate >> 1); /* PSR_C_BIT &= ~PSR_Z_BIT */ in __check_hi()
92 return (pstate & PSR_C_BIT) != 0; in __check_hi()
95 static bool __kprobes __check_ls(unsigned long pstate) in __check_ls() argument
97 pstate &= ~(pstate >> 1); /* PSR_C_BIT &= ~PSR_Z_BIT */ in __check_ls()
98 return (pstate & PSR_C_BIT) == 0; in __check_ls()
101 static bool __kprobes __check_ge(unsigned long pstate) in __check_ge() argument
103 pstate ^= (pstate << 3); /* PSR_N_BIT ^= PSR_V_BIT */ in __check_ge()
104 return (pstate & PSR_N_BIT) == 0; in __check_ge()
107 static bool __kprobes __check_lt(unsigned long pstate) in __check_lt() argument
109 pstate ^= (pstate << 3); /* PSR_N_BIT ^= PSR_V_BIT */ in __check_lt()
110 return (pstate & PSR_N_BIT) != 0; in __check_lt()
113 static bool __kprobes __check_gt(unsigned long pstate) in __check_gt() argument
116 unsigned long temp = pstate ^ (pstate << 3); in __check_gt()
118 temp |= (pstate << 1); /*PSR_N_BIT |= PSR_Z_BIT */ in __check_gt()
122 static bool __kprobes __check_le(unsigned long pstate) in __check_le() argument
125 unsigned long temp = pstate ^ (pstate << 3); in __check_le()
127 temp |= (pstate << 1); /*PSR_N_BIT |= PSR_Z_BIT */ in __check_le()
131 static bool __kprobes __check_al(unsigned long pstate) in __check_al() argument
312 u32 it, pstate = regs->pstate; in compat_get_it_state() local
314 it = (pstate & PSTATE_IT_1_0_MASK) >> PSTATE_IT_1_0_SHIFT; in compat_get_it_state()
315 it |= ((pstate & PSTATE_IT_7_2_MASK) >> PSTATE_IT_7_2_SHIFT) << 2; in compat_get_it_state()
327 regs->pstate &= ~PSR_AA32_IT_MASK; in compat_set_it_state()
328 regs->pstate |= pstate_it; in compat_set_it_state()
336 if (!(regs->pstate & PSR_AA32_T_BIT) || in advance_itstate()
337 !(regs->pstate & PSR_AA32_IT_MASK)) in advance_itstate()
373 regs->pstate &= ~PSR_BTYPE_MASK; in arm64_skip_faulting_instruction()
435 (regs->pstate & hook->pstate_mask) == hook->pstate_val) in call_undef_hook()
696 return aarch32_opcode_cond_checks[cond](regs->pstate); in cp15_cond_valid()