Lines Matching refs:wcid
86 struct mt76_wcid *wcid) in mt76_connac_free_pending_tx_skbs() argument
92 if (wcid && pm->tx_q[i].wcid != wcid) in mt76_connac_free_pending_tx_skbs()
104 struct mt76_wcid *wcid, in mt76_connac_pm_queue_skb() argument
113 pm->tx_q[qid].wcid = wcid; in mt76_connac_pm_queue_skb()
130 struct mt76_wcid *wcid = pm->tx_q[i].wcid; in mt76_connac_pm_dequeue_skbs() local
136 if (wcid && wcid->sta) in mt76_connac_pm_dequeue_skbs()
137 sta = container_of((void *)wcid, struct ieee80211_sta, in mt76_connac_pm_dequeue_skbs()
140 mt76_tx(phy, sta, wcid, pm->tx_q[i].skb); in mt76_connac_pm_dequeue_skbs()
158 mt76_tx_complete_skb(mdev, e->wcid, e->skb); in mt76_connac_tx_complete_skb()
360 struct mt76_wcid *wcid) in mt76_connac2_mac_write_txwi_8023() argument
368 if (wcid->sta) { in mt76_connac2_mac_write_txwi_8023()
371 sta = container_of((void *)wcid, struct ieee80211_sta, drv_priv); in mt76_connac2_mac_write_txwi_8023()
493 struct sk_buff *skb, struct mt76_wcid *wcid, in mt76_connac2_mac_write_txwi() argument
508 bool amsdu_en = wcid->amsdu; in mt76_connac2_mac_write_txwi()
537 wcid->stats.tx_packets++; in mt76_connac2_mac_write_txwi()
546 FIELD_PREP(MT_TXD1_WLAN_IDX, wcid->idx) | in mt76_connac2_mac_write_txwi()
578 mt76_connac2_mac_write_txwi_8023(txwi, skb, wcid); in mt76_connac2_mac_write_txwi()
611 bool mt76_connac2_mac_fill_txs(struct mt76_dev *dev, struct mt76_wcid *wcid, in mt76_connac2_mac_fill_txs() argument
614 struct mt76_sta_stats *stats = &wcid->stats; in mt76_connac2_mac_fill_txs()
634 if (wcid->sta) { in mt76_connac2_mac_fill_txs()
638 sta = container_of((void *)wcid, struct ieee80211_sta, in mt76_connac2_mac_fill_txs()
667 if (wcid->phy_idx == MT_BAND1 && dev->phys[MT_BAND1]) in mt76_connac2_mac_fill_txs()
686 if (wcid->rate.flags & RATE_INFO_FLAGS_SHORT_GI) in mt76_connac2_mac_fill_txs()
702 rate.he_gi = wcid->rate.he_gi; in mt76_connac2_mac_fill_txs()
730 wcid->rate = rate; in mt76_connac2_mac_fill_txs()
736 bool mt76_connac2_mac_add_txs_skb(struct mt76_dev *dev, struct mt76_wcid *wcid, in mt76_connac2_mac_add_txs_skb() argument
746 skb = mt76_tx_status_skb_get(dev, wcid, pid, &list); in mt76_connac2_mac_add_txs_skb()
758 mt76_connac2_mac_fill_txs(dev, wcid, txs_data); in mt76_connac2_mac_add_txs_skb()
968 sta = container_of((void *)status->wcid, struct ieee80211_sta, drv_priv); in mt76_connac2_reverse_frag0_hdr_trans()
1133 struct mt76_wcid *wcid; in mt76_connac2_tx_check_aggr() local
1151 wcid = (struct mt76_wcid *)sta->drv_priv; in mt76_connac2_tx_check_aggr()
1152 if (!test_and_set_bit(tid, &wcid->ampdu_state)) in mt76_connac2_tx_check_aggr()
1161 struct mt76_wcid *wcid; in mt76_connac2_txwi_free() local
1171 wcid = (struct mt76_wcid *)sta->drv_priv; in mt76_connac2_txwi_free()
1172 wcid_idx = wcid->idx; in mt76_connac2_txwi_free()
1175 wcid = rcu_dereference(dev->wcid[wcid_idx]); in mt76_connac2_txwi_free()
1177 if (wcid && wcid->sta) { in mt76_connac2_txwi_free()
1178 sta = container_of((void *)wcid, struct ieee80211_sta, in mt76_connac2_txwi_free()
1180 mt76_wcid_add_poll(dev, wcid); in mt76_connac2_txwi_free()