Lines Matching refs:protsel
15634 static inline void rtw_enter_protsel(struct protsel *protsel, u32 sel) in rtw_enter_protsel() argument
15638 _enter_critical_mutex(&protsel->mutex, NULL); in rtw_enter_protsel()
15640 refcnt = ATOMIC_INC_RETURN(&protsel->refcnt); in rtw_enter_protsel()
15642 WARN_ON(refcnt > 1 && protsel->sel != sel); in rtw_enter_protsel()
15644 protsel->sel = sel; in rtw_enter_protsel()
15646 _exit_critical_mutex(&protsel->mutex, NULL); in rtw_enter_protsel()
15649 static inline void rtw_leave_protsel(struct protsel *protsel) in rtw_leave_protsel() argument
15653 _enter_critical_mutex(&protsel->mutex, NULL); in rtw_leave_protsel()
15655 refcnt = ATOMIC_DEC_RETURN(&protsel->refcnt); in rtw_leave_protsel()
15657 _exit_critical_mutex(&protsel->mutex, NULL); in rtw_leave_protsel()
15662 static inline bool rtw_assert_protsel(struct protsel *protsel) in rtw_assert_protsel() argument
15664 int refcnt = ATOMIC_READ(&protsel->refcnt); in rtw_assert_protsel()