Lines Matching refs:protsel
15627 static inline void rtw_enter_protsel(struct protsel *protsel, u32 sel) in rtw_enter_protsel() argument
15631 _enter_critical_mutex(&protsel->mutex, NULL); in rtw_enter_protsel()
15633 refcnt = ATOMIC_INC_RETURN(&protsel->refcnt); in rtw_enter_protsel()
15635 WARN_ON(refcnt > 1 && protsel->sel != sel); in rtw_enter_protsel()
15637 protsel->sel = sel; in rtw_enter_protsel()
15639 _exit_critical_mutex(&protsel->mutex, NULL); in rtw_enter_protsel()
15642 static inline void rtw_leave_protsel(struct protsel *protsel) in rtw_leave_protsel() argument
15646 _enter_critical_mutex(&protsel->mutex, NULL); in rtw_leave_protsel()
15648 refcnt = ATOMIC_DEC_RETURN(&protsel->refcnt); in rtw_leave_protsel()
15650 _exit_critical_mutex(&protsel->mutex, NULL); in rtw_leave_protsel()
15655 static inline bool rtw_assert_protsel(struct protsel *protsel) in rtw_assert_protsel() argument
15657 int refcnt = ATOMIC_READ(&protsel->refcnt); in rtw_assert_protsel()