Lines Matching refs:txwi
313 void mt76x02_mac_write_txwi(struct mt76x02_dev *dev, struct mt76x02_txwi *txwi, in mt76x02_mac_write_txwi() argument
328 memset(txwi, 0, sizeof(*txwi)); in mt76x02_mac_write_txwi()
338 txwi->wcid = wcid->idx; in mt76x02_mac_write_txwi()
340 txwi->wcid = 0xff; in mt76x02_mac_write_txwi()
353 txwi->iv = *((__le32 *)&ccmp_pn[0]); in mt76x02_mac_write_txwi()
354 txwi->eiv = *((__le32 *)&ccmp_pn[4]); in mt76x02_mac_write_txwi()
359 txwi->rate = FIELD_GET(MT_WCID_TX_INFO_RATE, wcid_tx_info); in mt76x02_mac_write_txwi()
364 txwi->rate = mt76x02_mac_tx_rate_val(dev, rate, &nss); in mt76x02_mac_write_txwi()
370 txwi->ctl2 = FIELD_PREP(MT_TX_PWR_ADJ, txpwr_adj); in mt76x02_mac_write_txwi()
373 txwi->txstream = 0x13; in mt76x02_mac_write_txwi()
375 !(txwi->rate & cpu_to_le16(rate_ht_mask))) in mt76x02_mac_write_txwi()
376 txwi->txstream = 0x93; in mt76x02_mac_write_txwi()
379 txwi->rate |= cpu_to_le16(MT_RXWI_RATE_LDPC); in mt76x02_mac_write_txwi()
381 txwi->rate |= cpu_to_le16(MT_RXWI_RATE_STBC); in mt76x02_mac_write_txwi()
385 txwi->ack_ctl |= MT_TXWI_ACK_CTL_REQ; in mt76x02_mac_write_txwi()
387 txwi->ack_ctl |= MT_TXWI_ACK_CTL_NSEQ; in mt76x02_mac_write_txwi()
395 txwi->ack_ctl |= FIELD_PREP(MT_TXWI_ACK_CTL_BA_WINDOW, ba_size); in mt76x02_mac_write_txwi()
406 txwi->flags |= cpu_to_le16(txwi_flags); in mt76x02_mac_write_txwi()
407 txwi->len_ctl = cpu_to_le16(len); in mt76x02_mac_write_txwi()
830 struct mt76x02_txwi *txwi; in mt76x02_tx_complete_skb() local
833 if (!e->txwi) { in mt76x02_tx_complete_skb()
840 txwi_ptr = mt76_get_txwi_ptr(mdev, e->txwi); in mt76x02_tx_complete_skb()
841 txwi = (struct mt76x02_txwi *)txwi_ptr; in mt76x02_tx_complete_skb()
842 trace_mac_txdone_add(dev, txwi->wcid, txwi->pktid); in mt76x02_tx_complete_skb()