Lines Matching refs:mac

215 	struct rtl_mac *mac = rtl_mac(rtl_priv(hw));  in rtl_ips_nic_off_wq_callback()  local
219 if (mac->opmode != NL80211_IFTYPE_STATION) { in rtl_ips_nic_off_wq_callback()
225 if (mac->p2p_in_use) in rtl_ips_nic_off_wq_callback()
228 if (mac->link_state > MAC80211_NOLINK) in rtl_ips_nic_off_wq_callback()
255 (mac->link_state == MAC80211_NOLINK) && in rtl_ips_nic_off_wq_callback()
256 !mac->act_scanning) { in rtl_ips_nic_off_wq_callback()
328 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_get_fwlps_doze() local
341 if (mac->link_state != MAC80211_LINKED) in rtl_get_fwlps_doze()
344 if (mac->opmode == NL80211_IFTYPE_ADHOC) in rtl_get_fwlps_doze()
354 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_lps_set_psmode() local
358 if (mac->opmode == NL80211_IFTYPE_ADHOC) in rtl_lps_set_psmode()
361 if (mac->link_state != MAC80211_LINKED) in rtl_lps_set_psmode()
420 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_lps_enter() local
435 if (mac->cnt_after_linked < 5) in rtl_lps_enter()
438 if (mac->opmode == NL80211_IFTYPE_ADHOC) in rtl_lps_enter()
441 if (mac->link_state != MAC80211_LINKED) in rtl_lps_enter()
447 if (mac->cnt_after_linked >= 2) { in rtl_lps_enter()
497 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_swlps_beacon() local
505 if (mac->opmode != NL80211_IFTYPE_STATION) in rtl_swlps_beacon()
579 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_swlps_rf_awake() local
584 if (mac->link_state != MAC80211_LINKED) in rtl_swlps_rf_awake()
610 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_swlps_rf_sleep() local
619 (mac->opmode == NL80211_IFTYPE_ADHOC)) in rtl_swlps_rf_sleep()
623 if ((mac->link_state != MAC80211_LINKED) || (mac->cnt_after_linked < 5)) in rtl_swlps_rf_sleep()
673 MSECS(sleep_intv * mac->vif->bss_conf.beacon_int - 40)); in rtl_swlps_rf_sleep()
978 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_p2p_info() local
981 if (!mac->p2p) in rtl_p2p_info()
983 if (mac->link_state != MAC80211_LINKED) in rtl_p2p_info()