/linux-6.6.21/drivers/net/wireless/realtek/rtw89/ |
D | core.c | 443 struct rtw89_sta *rtwsta; in rtw89_core_tx_update_ampdu_info() local 461 rtwsta = (struct rtw89_sta *)sta->drv_priv; in rtw89_core_tx_update_ampdu_info() 463 ampdu_num = (u8)((rtwsta->ampdu_params[tid].agg_num ? in rtw89_core_tx_update_ampdu_info() 464 rtwsta->ampdu_params[tid].agg_num : in rtw89_core_tx_update_ampdu_info() 482 struct rtw89_sta *rtwsta = sta_to_rtwsta_safe(sta); in rtw89_core_tx_update_sec_key() local 496 addr_cam = rtw89_get_addr_cam_of(rtwvif, rtwsta); in rtw89_core_tx_update_sec_key() 580 struct rtw89_sta *rtwsta; in rtw89_core_tx_get_mac_id() local 585 rtwsta = (struct rtw89_sta *)sta->drv_priv; in rtw89_core_tx_get_mac_id() 586 return rtwsta->mac_id; in rtw89_core_tx_get_mac_id() 671 struct rtw89_sta *rtwsta = sta_to_rtwsta_safe(sta); in __rtw89_core_tx_check_he_qos_htc() local [all …]
|
D | cam.c | 222 struct rtw89_sta *rtwsta = sta_to_rtwsta_safe(sta); in rtw89_cam_attach_sec_cam() local 234 addr_cam = rtw89_get_addr_cam_of(rtwvif, rtwsta); in rtw89_cam_attach_sec_cam() 247 ret = rtw89_chip_h2c_dctl_sec_cam(rtwdev, rtwvif, rtwsta); in rtw89_cam_attach_sec_cam() 253 ret = rtw89_fw_h2c_cam(rtwdev, rtwvif, rtwsta, NULL); in rtw89_cam_attach_sec_cam() 383 struct rtw89_sta *rtwsta = sta_to_rtwsta_safe(sta); in rtw89_cam_sec_key_del() local 398 addr_cam = rtw89_get_addr_cam_of(rtwvif, rtwsta); in rtw89_cam_sec_key_del() 407 ret = rtw89_chip_h2c_dctl_sec_cam(rtwdev, rtwvif, rtwsta); in rtw89_cam_sec_key_del() 410 ret = rtw89_fw_h2c_cam(rtwdev, rtwvif, rtwsta, NULL); in rtw89_cam_sec_key_del() 609 struct rtw89_sta *rtwsta, u8 *cmd) in rtw89_cam_fill_bssid_cam_info() argument 612 struct rtw89_bssid_cam_entry *bssid_cam = rtw89_get_bssid_cam_of(rtwvif, rtwsta); in rtw89_cam_fill_bssid_cam_info() [all …]
|
D | mac80211.c | 32 struct rtw89_sta *rtwsta = (struct rtw89_sta *)sta->drv_priv; in rtw89_ops_tx() local 35 skb_queue_tail(&rtwsta->roc_queue, skb); in rtw89_ops_tx() 511 struct rtw89_sta *rtwsta = (struct rtw89_sta *)sta->drv_priv; in rtw89_ops_set_tim() local 512 struct rtw89_vif *rtwvif = rtwsta->rtwvif; in rtw89_ops_set_tim() 631 struct rtw89_sta *rtwsta = (struct rtw89_sta *)sta->drv_priv; in rtw89_ops_ampdu_action() local 650 rtwsta->ampdu_params[tid].agg_num = params->buf_size; in rtw89_ops_ampdu_action() 651 rtwsta->ampdu_params[tid].amsdu = params->amsdu; in rtw89_ops_ampdu_action() 657 rtw89_fw_h2c_ba_cam(rtwdev, rtwsta, true, params); in rtw89_ops_ampdu_action() 662 rtw89_fw_h2c_ba_cam(rtwdev, rtwsta, false, params); in rtw89_ops_ampdu_action() 691 struct rtw89_sta *rtwsta = (struct rtw89_sta *)sta->drv_priv; in rtw89_ops_sta_statistics() local [all …]
|
D | wow.c | 423 struct rtw89_sta *rtwsta = NULL; in rtw89_wow_cfg_wake() local 428 rtwsta = (struct rtw89_sta *)wow_sta->drv_priv; in rtw89_wow_cfg_wake() 447 ret = rtw89_chip_h2c_dctl_sec_cam(rtwdev, rtwvif, rtwsta); in rtw89_wow_cfg_wake() 455 ret = rtw89_fw_h2c_cam(rtwdev, rtwvif, rtwsta, NULL); in rtw89_wow_cfg_wake() 492 struct rtw89_sta *rtwsta = NULL; in rtw89_wow_swap_fw() local 500 rtwsta = (struct rtw89_sta *)wow_sta->drv_priv; in rtw89_wow_swap_fw() 512 ret = rtw89_fw_h2c_role_maintain(rtwdev, rtwvif, rtwsta, in rtw89_wow_swap_fw() 528 ret = rtw89_fw_h2c_join_info(rtwdev, rtwvif, rtwsta, !is_conn); in rtw89_wow_swap_fw() 534 ret = rtw89_fw_h2c_cam(rtwdev, rtwvif, rtwsta, NULL); in rtw89_wow_swap_fw() 541 ret = rtw89_fw_h2c_general_pkt(rtwdev, rtwvif, rtwsta->mac_id); in rtw89_wow_swap_fw()
|
D | phy.c | 136 static u64 rtw89_phy_ra_mask_cfg(struct rtw89_dev *rtwdev, struct rtw89_sta *rtwsta, in rtw89_phy_ra_mask_cfg() argument 139 struct ieee80211_sta *sta = rtwsta_to_sta(rtwsta); in rtw89_phy_ra_mask_cfg() 140 struct cfg80211_bitrate_mask *mask = &rtwsta->mask; in rtw89_phy_ra_mask_cfg() 144 if (!rtwsta->use_cfg_mask) in rtw89_phy_ra_mask_cfg() 199 struct rtw89_sta *rtwsta, in rtw89_phy_ra_gi_ltf() argument 203 struct cfg80211_bitrate_mask *mask = &rtwsta->mask; in rtw89_phy_ra_gi_ltf() 209 if (!rtwsta->use_cfg_mask) in rtw89_phy_ra_gi_ltf() 235 struct rtw89_sta *rtwsta = (struct rtw89_sta *)sta->drv_priv; in rtw89_phy_ra_sta_update() local 236 struct rtw89_vif *rtwvif = rtwsta->rtwvif; in rtw89_phy_ra_sta_update() 238 struct rtw89_ra_info *ra = &rtwsta->ra; in rtw89_phy_ra_sta_update() [all …]
|
D | debug.c | 3244 struct rtw89_sta *rtwsta = (struct rtw89_sta *)sta->drv_priv; in rtw89_sta_info_get_iter() local 3245 struct rate_info *rate = &rtwsta->ra_report.txrate; in rtw89_sta_info_get_iter() 3246 struct ieee80211_rx_status *status = &rtwsta->rx_status; in rtw89_sta_info_get_iter() 3248 struct rtw89_dev *rtwdev = rtwsta->rtwdev; in rtw89_sta_info_get_iter() 3257 seq_printf(m, "TX rate [%d]: ", rtwsta->mac_id); in rtw89_sta_info_get_iter() 3271 seq_printf(m, "%s", rtwsta->ra_report.might_fallback_legacy ? " FB_G" : ""); in rtw89_sta_info_get_iter() 3273 seq_printf(m, "\t(hw_rate=0x%x)", rtwsta->ra_report.hw_rate); in rtw89_sta_info_get_iter() 3274 seq_printf(m, "\t==> agg_wait=%d (%d)\n", rtwsta->max_agg_wait, in rtw89_sta_info_get_iter() 3277 seq_printf(m, "RX rate [%d]: ", rtwsta->mac_id); in rtw89_sta_info_get_iter() 3299 seq_printf(m, "\t(hw_rate=0x%x)\n", rtwsta->rx_hw_rate); in rtw89_sta_info_get_iter() [all …]
|
D | fw.c | 1175 struct rtw89_sta *rtwsta, const u8 *scan_mac_addr) in rtw89_fw_h2c_cam() argument 1186 rtw89_cam_fill_addr_cam_info(rtwdev, rtwvif, rtwsta, scan_mac_addr, skb->data); in rtw89_fw_h2c_cam() 1187 rtw89_cam_fill_bssid_cam_info(rtwdev, rtwvif, rtwsta, skb->data); in rtw89_fw_h2c_cam() 1211 struct rtw89_sta *rtwsta) in rtw89_fw_h2c_dctl_sec_cam_v1() argument 1223 rtw89_cam_fill_dctl_sec_cam_info_v1(rtwdev, rtwvif, rtwsta, skb->data); in rtw89_fw_h2c_dctl_sec_cam_v1() 1246 int rtw89_fw_h2c_ba_cam(struct rtw89_dev *rtwdev, struct rtw89_sta *rtwsta, in rtw89_fw_h2c_ba_cam() argument 1250 struct rtw89_vif *rtwvif = rtwsta->rtwvif; in rtw89_fw_h2c_ba_cam() 1251 u8 macid = rtwsta->mac_id; in rtw89_fw_h2c_ba_cam() 1257 rtw89_core_acquire_sta_ba_entry(rtwdev, rtwsta, params->tid, &entry_idx) : in rtw89_fw_h2c_ba_cam() 1258 rtw89_core_release_sta_ba_entry(rtwdev, rtwsta, params->tid, &entry_idx); in rtw89_fw_h2c_ba_cam() [all …]
|
D | cam.h | 370 struct rtw89_sta *rtwsta, 374 struct rtw89_sta *rtwsta, 378 struct rtw89_sta *rtwsta, u8 *cmd);
|
D | mac.c | 5462 __rtw89_mac_set_tx_time(struct rtw89_dev *rtwdev, struct rtw89_sta *rtwsta, in __rtw89_mac_set_tx_time() argument 5466 u8 mac_idx = rtwsta->rtwvif->mac_idx; in __rtw89_mac_set_tx_time() 5471 if (rtwsta->cctl_tx_time) { in __rtw89_mac_set_tx_time() 5472 rtwsta->ampdu_max_time = (max_tx_time - 512) >> 9; in __rtw89_mac_set_tx_time() 5473 ret = rtw89_fw_h2c_txtime_cmac_tbl(rtwdev, rtwsta); in __rtw89_mac_set_tx_time() 5489 int rtw89_mac_set_tx_time(struct rtw89_dev *rtwdev, struct rtw89_sta *rtwsta, in rtw89_mac_set_tx_time() argument 5495 rtwsta->cctl_tx_time = true; in rtw89_mac_set_tx_time() 5496 ret = __rtw89_mac_set_tx_time(rtwdev, rtwsta, tx_time); in rtw89_mac_set_tx_time() 5498 ret = __rtw89_mac_set_tx_time(rtwdev, rtwsta, tx_time); in rtw89_mac_set_tx_time() 5499 rtwsta->cctl_tx_time = false; in rtw89_mac_set_tx_time() [all …]
|
D | ser.c | 313 struct rtw89_sta *rtwsta = (struct rtw89_sta *)sta->drv_priv; in ser_sta_deinit_cam_iter() local 316 rtw89_cam_deinit_addr_cam(rtwdev, &rtwsta->addr_cam); in ser_sta_deinit_cam_iter() 318 rtw89_cam_deinit_bssid_cam(rtwdev, &rtwsta->bssid_cam); in ser_sta_deinit_cam_iter() 320 INIT_LIST_HEAD(&rtwsta->ba_cam_list); in ser_sta_deinit_cam_iter()
|
D | core.h | 3090 struct rtw89_sta *rtwsta); 4831 static inline struct ieee80211_sta *rtwsta_to_sta(struct rtw89_sta *rtwsta) in rtwsta_to_sta() argument 4833 void *p = rtwsta; in rtwsta_to_sta() 4838 static inline struct ieee80211_sta *rtwsta_to_sta_safe(struct rtw89_sta *rtwsta) in rtwsta_to_sta_safe() argument 4840 return rtwsta ? rtwsta_to_sta(rtwsta) : NULL; in rtwsta_to_sta_safe() 4909 struct rtw89_sta *rtwsta) in rtw89_get_addr_cam_of() argument 4911 if (rtwsta) { in rtw89_get_addr_cam_of() 4912 struct ieee80211_sta *sta = rtwsta_to_sta(rtwsta); in rtw89_get_addr_cam_of() 4915 return &rtwsta->addr_cam; in rtw89_get_addr_cam_of() 4922 struct rtw89_sta *rtwsta) in rtw89_get_bssid_cam_of() argument [all …]
|
D | mac.h | 1143 int rtw89_mac_set_tx_time(struct rtw89_dev *rtwdev, struct rtw89_sta *rtwsta, 1145 int rtw89_mac_get_tx_time(struct rtw89_dev *rtwdev, struct rtw89_sta *rtwsta, 1148 struct rtw89_sta *rtwsta, 1151 struct rtw89_sta *rtwsta, u8 *tx_retry);
|
D | coex.h | 158 struct rtw89_sta *rtwsta, enum btc_role_state state);
|
D | coex.c | 3857 struct rtw89_sta *rtwsta = (struct rtw89_sta *)sta->drv_priv; in rtw89_tx_time_iter() local 3861 struct rtw89_vif *rtwvif = rtwsta->rtwvif; in rtw89_tx_time_iter() 3886 rtw89_mac_get_tx_time(rtwdev, rtwsta, &plink->tx_time); in rtw89_tx_time_iter() 3887 rtw89_mac_get_tx_retry_limit(rtwdev, rtwsta, &plink->tx_retry); in rtw89_tx_time_iter() 3895 rtw89_mac_set_tx_time(rtwdev, rtwsta, true, plink->tx_time); in rtw89_tx_time_iter() 3896 rtw89_mac_set_tx_retry_limit(rtwdev, rtwsta, true, in rtw89_tx_time_iter() 3903 rtw89_mac_set_tx_time(rtwdev, rtwsta, false, tx_time); in rtw89_tx_time_iter() 3904 rtw89_mac_set_tx_retry_limit(rtwdev, rtwsta, false, tx_retry); in rtw89_tx_time_iter() 5667 struct rtw89_sta *rtwsta, enum btc_role_state state) in rtw89_btc_ntfy_role_info() argument 5672 struct ieee80211_sta *sta = rtwsta_to_sta(rtwsta); in rtw89_btc_ntfy_role_info() [all …]
|
D | fw.h | 3644 struct rtw89_sta *rtwsta); 3646 struct rtw89_sta *rtwsta); 3650 struct rtw89_sta *rtwsta, const u8 *scan_mac_addr); 3653 struct rtw89_sta *rtwsta); 3658 struct rtw89_sta *rtwsta, 3661 struct rtw89_sta *rtwsta, bool dis_conn); 3704 int rtw89_fw_h2c_ba_cam(struct rtw89_dev *rtwdev, struct rtw89_sta *rtwsta,
|