Lines Matching refs:mac

189 	struct rtl_mac *mac = rtl_mac(rtl_priv(hw));  in rtl_ips_nic_off_wq_callback()  local
193 if (mac->opmode != NL80211_IFTYPE_STATION) { in rtl_ips_nic_off_wq_callback()
199 if (mac->p2p_in_use) in rtl_ips_nic_off_wq_callback()
202 if (mac->link_state > MAC80211_NOLINK) in rtl_ips_nic_off_wq_callback()
229 (mac->link_state == MAC80211_NOLINK) && in rtl_ips_nic_off_wq_callback()
230 !mac->act_scanning) { in rtl_ips_nic_off_wq_callback()
302 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_get_fwlps_doze() local
315 if (mac->link_state != MAC80211_LINKED) in rtl_get_fwlps_doze()
318 if (mac->opmode == NL80211_IFTYPE_ADHOC) in rtl_get_fwlps_doze()
328 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_lps_set_psmode() local
332 if (mac->opmode == NL80211_IFTYPE_ADHOC) in rtl_lps_set_psmode()
335 if (mac->link_state != MAC80211_LINKED) in rtl_lps_set_psmode()
394 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_lps_enter_core() local
408 if (mac->cnt_after_linked < 5) in rtl_lps_enter_core()
411 if (mac->opmode == NL80211_IFTYPE_ADHOC) in rtl_lps_enter_core()
414 if (mac->link_state != MAC80211_LINKED) in rtl_lps_enter_core()
465 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_swlps_beacon() local
473 if (mac->opmode != NL80211_IFTYPE_STATION) in rtl_swlps_beacon()
547 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_swlps_rf_awake() local
551 if (mac->link_state != MAC80211_LINKED) in rtl_swlps_rf_awake()
577 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_swlps_rf_sleep() local
585 (mac->opmode == NL80211_IFTYPE_ADHOC)) in rtl_swlps_rf_sleep()
589 if ((mac->link_state != MAC80211_LINKED) || (mac->cnt_after_linked < 5)) in rtl_swlps_rf_sleep()
639 MSECS(sleep_intv * mac->vif->bss_conf.beacon_int - 40)); in rtl_swlps_rf_sleep()
972 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_p2p_info() local
975 if (!mac->p2p) in rtl_p2p_info()
977 if (mac->link_state != MAC80211_LINKED) in rtl_p2p_info()