Lines Matching refs:protsel
16572 static inline void rtw_enter_protsel(struct protsel *protsel, u32 sel) in rtw_enter_protsel() argument
16576 _enter_critical_mutex(&protsel->mutex, NULL); in rtw_enter_protsel()
16578 refcnt = ATOMIC_INC_RETURN(&protsel->refcnt); in rtw_enter_protsel()
16580 WARN_ON(refcnt > 1 && protsel->sel != sel); in rtw_enter_protsel()
16582 protsel->sel = sel; in rtw_enter_protsel()
16584 _exit_critical_mutex(&protsel->mutex, NULL); in rtw_enter_protsel()
16587 static inline void rtw_leave_protsel(struct protsel *protsel) in rtw_leave_protsel() argument
16591 _enter_critical_mutex(&protsel->mutex, NULL); in rtw_leave_protsel()
16593 refcnt = ATOMIC_DEC_RETURN(&protsel->refcnt); in rtw_leave_protsel()
16595 _exit_critical_mutex(&protsel->mutex, NULL); in rtw_leave_protsel()
16600 static inline bool rtw_assert_protsel(struct protsel *protsel) in rtw_assert_protsel() argument
16602 int refcnt = ATOMIC_READ(&protsel->refcnt); in rtw_assert_protsel()