Lines Matching refs:txwi
335 void mt76x02_mac_write_txwi(struct mt76x02_dev *dev, struct mt76x02_txwi *txwi, in mt76x02_mac_write_txwi() argument
350 memset(txwi, 0, sizeof(*txwi)); in mt76x02_mac_write_txwi()
362 txwi->wcid = wcid->idx; in mt76x02_mac_write_txwi()
364 txwi->wcid = 0xff; in mt76x02_mac_write_txwi()
377 txwi->iv = *((__le32 *)&ccmp_pn[0]); in mt76x02_mac_write_txwi()
378 txwi->eiv = *((__le32 *)&ccmp_pn[4]); in mt76x02_mac_write_txwi()
391 txwi->rate = cpu_to_le16(rateval); in mt76x02_mac_write_txwi()
395 txwi->ctl2 = FIELD_PREP(MT_TX_PWR_ADJ, txpwr_adj); in mt76x02_mac_write_txwi()
398 txwi->txstream = 0x13; in mt76x02_mac_write_txwi()
400 !(txwi->rate & cpu_to_le16(rate_ht_mask))) in mt76x02_mac_write_txwi()
401 txwi->txstream = 0x93; in mt76x02_mac_write_txwi()
404 txwi->rate |= cpu_to_le16(MT_RXWI_RATE_LDPC); in mt76x02_mac_write_txwi()
406 txwi->rate |= cpu_to_le16(MT_RXWI_RATE_STBC); in mt76x02_mac_write_txwi()
410 txwi->ack_ctl |= MT_TXWI_ACK_CTL_REQ; in mt76x02_mac_write_txwi()
412 txwi->ack_ctl |= MT_TXWI_ACK_CTL_NSEQ; in mt76x02_mac_write_txwi()
421 txwi->ack_ctl |= FIELD_PREP(MT_TXWI_ACK_CTL_BA_WINDOW, ba_size); in mt76x02_mac_write_txwi()
434 txwi->flags |= cpu_to_le16(txwi_flags); in mt76x02_mac_write_txwi()
435 txwi->len_ctl = cpu_to_le16(len); in mt76x02_mac_write_txwi()
907 struct mt76x02_txwi *txwi; in mt76x02_tx_complete_skb() local
910 if (!e->txwi) { in mt76x02_tx_complete_skb()
917 txwi_ptr = mt76_get_txwi_ptr(mdev, e->txwi); in mt76x02_tx_complete_skb()
918 txwi = (struct mt76x02_txwi *)txwi_ptr; in mt76x02_tx_complete_skb()
919 trace_mac_txdone(mdev, txwi->wcid, txwi->pktid); in mt76x02_tx_complete_skb()