Lines Matching refs:KUAP_NONE
65 #define KUAP_NONE (~0UL) macro
123 if (unlikely(kuap == KUAP_NONE)) in kuap_save_and_lock()
126 current->thread.kuap = KUAP_NONE; in kuap_save_and_lock()
139 if (unlikely(kuap != KUAP_NONE)) { in kuap_kernel_restore()
140 current->thread.kuap = KUAP_NONE; in kuap_kernel_restore()
144 if (likely(regs->kuap == KUAP_NONE)) in kuap_kernel_restore()
157 return KUAP_NONE; in kuap_get_and_assert_locked()
159 WARN_ON_ONCE(IS_ENABLED(CONFIG_PPC_KUAP_DEBUG) && kuap != KUAP_NONE); in kuap_get_and_assert_locked()
196 current->thread.kuap = KUAP_NONE; in prevent_user_access()
205 return KUAP_NONE; in prevent_user_access_return()
207 if (flags != KUAP_NONE) { in prevent_user_access_return()
208 current->thread.kuap = KUAP_NONE; in prevent_user_access_return()
220 if (flags != KUAP_NONE) { in restore_user_access()
236 if (kuap == KUAP_NONE) in bad_kuap_fault()