Lines Matching refs:wcid
71 stat->wcid = FIELD_GET(MT_TX_STAT_FIFO_WCID, stat1); in mt76x2_mac_load_tx_status()
185 struct mt76_wcid *wcid = NULL; in mt76x2_send_tx_status() local
189 if (stat->wcid < ARRAY_SIZE(dev->wcid)) in mt76x2_send_tx_status()
190 wcid = rcu_dereference(dev->wcid[stat->wcid]); in mt76x2_send_tx_status()
192 if (wcid) { in mt76x2_send_tx_status()
195 priv = msta = container_of(wcid, struct mt76x2_sta, wcid); in mt76x2_send_tx_status()
209 stat->wcid == msta->status.wcid && msta->n_frames < 32) { in mt76x2_send_tx_status()
361 void mt76x2_mac_wcid_set_rate(struct mt76x2_dev *dev, struct mt76_wcid *wcid, in mt76x2_mac_wcid_set_rate() argument
365 wcid->tx_rate = mt76x2_mac_tx_rate_val(dev, rate, &wcid->tx_rate_nss); in mt76x2_mac_wcid_set_rate()
366 wcid->tx_rate_set = true; in mt76x2_mac_wcid_set_rate()
372 struct sk_buff *skb, struct mt76_wcid *wcid, in mt76x2_mac_write_txwi() argument
387 if (wcid) in mt76x2_mac_write_txwi()
388 txwi->wcid = wcid->idx; in mt76x2_mac_write_txwi()
390 txwi->wcid = 0xff; in mt76x2_mac_write_txwi()
394 if (wcid && wcid->sw_iv && key) { in mt76x2_mac_write_txwi()
409 if (wcid && (rate->idx < 0 || !rate->count)) { in mt76x2_mac_write_txwi()
410 txwi->rate = wcid->tx_rate; in mt76x2_mac_write_txwi()
411 max_txpwr_adj = wcid->max_txpwr_adj; in mt76x2_mac_write_txwi()
412 nss = wcid->tx_rate_nss; in mt76x2_mac_write_txwi()
590 struct mt76_wcid *wcid; in mt76x2_rx_get_sta() local
592 if (idx >= ARRAY_SIZE(dev->wcid)) in mt76x2_rx_get_sta()
595 wcid = rcu_dereference(dev->wcid[idx]); in mt76x2_rx_get_sta()
596 if (!wcid) in mt76x2_rx_get_sta()
599 return container_of(wcid, struct mt76x2_sta, wcid); in mt76x2_rx_get_sta()
610 return &sta->wcid; in mt76x2_rx_get_sta_wcid()
628 u8 wcid; in mt76x2_mac_process_rx() local
644 wcid = FIELD_GET(MT_RXWI_CTL_WCID, ctl); in mt76x2_mac_process_rx()
645 sta = mt76x2_rx_get_sta(dev, wcid); in mt76x2_mac_process_rx()
646 status->wcid = mt76x2_rx_get_sta_wcid(dev, sta, unicast); in mt76x2_mac_process_rx()