Lines Matching refs:protsel
16725 static inline void rtw_enter_protsel(struct protsel *protsel, u32 sel) in rtw_enter_protsel() argument
16729 _enter_critical_mutex(&protsel->mutex, NULL); in rtw_enter_protsel()
16731 refcnt = ATOMIC_INC_RETURN(&protsel->refcnt); in rtw_enter_protsel()
16733 WARN_ON(refcnt > 1 && protsel->sel != sel); in rtw_enter_protsel()
16735 protsel->sel = sel; in rtw_enter_protsel()
16737 _exit_critical_mutex(&protsel->mutex, NULL); in rtw_enter_protsel()
16740 static inline void rtw_leave_protsel(struct protsel *protsel) in rtw_leave_protsel() argument
16744 _enter_critical_mutex(&protsel->mutex, NULL); in rtw_leave_protsel()
16746 refcnt = ATOMIC_DEC_RETURN(&protsel->refcnt); in rtw_leave_protsel()
16748 _exit_critical_mutex(&protsel->mutex, NULL); in rtw_leave_protsel()
16753 static inline bool rtw_assert_protsel(struct protsel *protsel) in rtw_assert_protsel() argument
16755 int refcnt = ATOMIC_READ(&protsel->refcnt); in rtw_assert_protsel()