Lines Matching refs:mac

396 	struct rtl_mac *mac = rtl_mac(rtl_priv(hw));  in rtl8821ae_get_hw_reg()  local
411 *((u8 *)(val)) = mac->slot_time; in rtl8821ae_get_hw_reg()
474 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8821ae_set_hw_reg() local
558 mac->min_space_cfg = ((mac->min_space_cfg & in rtl8821ae_set_hw_reg()
566 mac->min_space_cfg); in rtl8821ae_set_hw_reg()
569 mac->min_space_cfg); in rtl8821ae_set_hw_reg()
576 mac->min_space_cfg |= (density_to_set << 3); in rtl8821ae_set_hw_reg()
580 mac->min_space_cfg); in rtl8821ae_set_hw_reg()
583 mac->min_space_cfg); in rtl8821ae_set_hw_reg()
619 (union aci_aifsn *)(&mac->ac[0].aifs); in rtl8821ae_set_hw_reg()
743 mac->assoc_id)); in rtl8821ae_set_hw_reg()
754 (u32)(mac->tsf & 0xffffffff)); in rtl8821ae_set_hw_reg()
756 (u32)((mac->tsf >> 32) & 0xffffffff)); in rtl8821ae_set_hw_reg()
1850 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8821ae_hw_init() local
1961 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_ETHER_ADDR, mac->mac_addr); in rtl8821ae_hw_init()
2347 struct rtl_mac *mac = rtl_mac(rtlpriv); in rtl8821ae_card_disable() local
2358 if (!(support_remote_wakeup && mac->opmode == NL80211_IFTYPE_STATION) in rtl8821ae_card_disable()
2361 mac->link_state = MAC80211_NOLINK; in rtl8821ae_card_disable()
2388 printk("mac->link_state = %d\n", mac->link_state); in rtl8821ae_card_disable()
2389 if (mac->link_state >= MAC80211_LINKED && in rtl8821ae_card_disable()
2390 mac->opmode == NL80211_IFTYPE_STATION) { in rtl8821ae_card_disable()
2483 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8821ae_set_beacon_related_registers() local
2487 bcn_interval = mac->beacon_interval; in rtl8821ae_set_beacon_related_registers()
2504 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8821ae_set_beacon_interval() local
2505 u16 bcn_interval = mac->beacon_interval; in rtl8821ae_set_beacon_interval()
3298 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8821ae_update_hal_rate_table() local
3302 u8 b_nmode = mac->ht_enable; in rtl8821ae_update_hal_rate_table()
3306 u8 curtxbw_40mhz = mac->bw_40; in rtl8821ae_update_hal_rate_table()
3311 enum wireless_mode wirelessmode = mac->mode; in rtl8821ae_update_hal_rate_table()
3317 if (mac->opmode == NL80211_IFTYPE_ADHOC) in rtl8821ae_update_hal_rate_table()
3514 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8821ae_update_hal_rate_mask() local
3532 if (mac->opmode == NL80211_IFTYPE_STATION || in rtl8821ae_update_hal_rate_mask()
3533 mac->opmode == NL80211_IFTYPE_MESH_POINT) { in rtl8821ae_update_hal_rate_mask()
3534 curtxbw_40mhz = mac->bw_40; in rtl8821ae_update_hal_rate_mask()
3535 } else if (mac->opmode == NL80211_IFTYPE_AP || in rtl8821ae_update_hal_rate_mask()
3536 mac->opmode == NL80211_IFTYPE_ADHOC) in rtl8821ae_update_hal_rate_mask()
3545 if (mac->opmode == NL80211_IFTYPE_ADHOC) in rtl8821ae_update_hal_rate_mask()
3724 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8821ae_update_channel_access_setting() local
3725 u16 wireless_mode = mac->mode; in rtl8821ae_update_channel_access_setting()
3729 (u8 *)&mac->slot_time); in rtl8821ae_update_channel_access_setting()
3739 (mac->vht_ldpc_cap & LDPC_VHT_ENABLE_RX) && in rtl8821ae_update_channel_access_setting()
3740 (mac->vht_stbc_cap & STBC_VHT_ENABLE_RX)) { in rtl8821ae_update_channel_access_setting()
3741 if (mac->vendor == PEER_ATH) in rtl8821ae_update_channel_access_setting()
3826 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8821ae_set_key() local
3888 if (mac->opmode == NL80211_IFTYPE_AP) { in rtl8821ae_set_key()
3907 if (mac->opmode == NL80211_IFTYPE_AP) in rtl8821ae_set_key()
3925 if (mac->opmode == NL80211_IFTYPE_ADHOC) { in rtl8821ae_set_key()