txwi 50 drivers/net/wireless/mediatek/mt76/dma.c struct sk_buff *skb, void *txwi) txwi 56 drivers/net/wireless/mediatek/mt76/dma.c if (txwi) { txwi 57 drivers/net/wireless/mediatek/mt76/dma.c q->entry[q->head].txwi = DMA_DUMMY_DATA; txwi 88 drivers/net/wireless/mediatek/mt76/dma.c q->entry[idx].txwi = txwi; txwi 118 drivers/net/wireless/mediatek/mt76/dma.c if (e->txwi == DMA_DUMMY_DATA) txwi 119 drivers/net/wireless/mediatek/mt76/dma.c e->txwi = NULL; txwi 168 drivers/net/wireless/mediatek/mt76/dma.c if (entry.txwi) { txwi 170 drivers/net/wireless/mediatek/mt76/dma.c mt76_put_txwi(dev, entry.txwi); txwi 294 drivers/net/wireless/mediatek/mt76/dma.c u8 *txwi; txwi 301 drivers/net/wireless/mediatek/mt76/dma.c txwi = mt76_get_txwi_ptr(dev, t); txwi 333 drivers/net/wireless/mediatek/mt76/dma.c ret = dev->drv->tx_prepare_skb(dev, txwi, qid, wcid, sta, &tx_info); txwi 354 drivers/net/wireless/mediatek/mt76/dma.c e.txwi = t; txwi 92 drivers/net/wireless/mediatek/mt76/mt76.h struct mt76_txwi_cache *txwi; txwi 157 drivers/net/wireless/mediatek/mt76/mt76.h struct sk_buff *skb, void *txwi); txwi 778 drivers/net/wireless/mediatek/mt76/mt7603/mac.c mt7603_mac_write_txwi(struct mt7603_dev *dev, __le32 *txwi, txwi 823 drivers/net/wireless/mediatek/mt76/mt7603/mac.c txwi[0] = cpu_to_le32(val); txwi 833 drivers/net/wireless/mediatek/mt76/mt7603/mac.c txwi[1] = cpu_to_le32(val); txwi 836 drivers/net/wireless/mediatek/mt76/mt7603/mac.c txwi[1] |= cpu_to_le32(MT_TXD1_NO_ACK); txwi 842 drivers/net/wireless/mediatek/mt76/mt7603/mac.c txwi[2] = cpu_to_le32(val); txwi 845 drivers/net/wireless/mediatek/mt76/mt7603/mac.c txwi[2] |= cpu_to_le32(MT_TXD2_BA_DISABLE); txwi 847 drivers/net/wireless/mediatek/mt76/mt7603/mac.c txwi[4] = 0; txwi 851 drivers/net/wireless/mediatek/mt76/mt7603/mac.c txwi[5] = cpu_to_le32(val); txwi 853 drivers/net/wireless/mediatek/mt76/mt7603/mac.c txwi[6] = 0; txwi 860 drivers/net/wireless/mediatek/mt76/mt7603/mac.c txwi[2] |= cpu_to_le32(MT_TXD2_FIX_RATE); txwi 865 drivers/net/wireless/mediatek/mt76/mt7603/mac.c txwi[6] |= cpu_to_le32(val); txwi 868 drivers/net/wireless/mediatek/mt76/mt7603/mac.c txwi[6] |= cpu_to_le32(MT_TXD6_SGI); txwi 871 drivers/net/wireless/mediatek/mt76/mt7603/mac.c txwi[2] |= cpu_to_le32(MT_TXD2_BA_DISABLE); txwi 892 drivers/net/wireless/mediatek/mt76/mt7603/mac.c txwi[3] = cpu_to_le32(val); txwi 897 drivers/net/wireless/mediatek/mt76/mt7603/mac.c txwi[3] |= cpu_to_le32(MT_TXD3_PN_VALID); txwi 898 drivers/net/wireless/mediatek/mt76/mt7603/mac.c txwi[4] = cpu_to_le32(pn & GENMASK(31, 0)); txwi 899 drivers/net/wireless/mediatek/mt76/mt7603/mac.c txwi[5] |= cpu_to_le32(FIELD_PREP(MT_TXD5_PN_HIGH, pn >> 32)); txwi 902 drivers/net/wireless/mediatek/mt76/mt7603/mac.c txwi[7] = 0; txwi 1159 drivers/net/wireless/mediatek/mt76/mt7603/mac.c if (!e->txwi) { txwi 306 drivers/net/wireless/mediatek/mt76/mt7615/init.c struct mt76_txwi_cache *txwi; txwi 314 drivers/net/wireless/mediatek/mt76/mt7615/init.c idr_for_each_entry(&dev->token, txwi, id) { txwi 315 drivers/net/wireless/mediatek/mt76/mt7615/init.c mt7615_txp_skb_unmap(&dev->mt76, txwi); txwi 316 drivers/net/wireless/mediatek/mt76/mt7615/init.c if (txwi->skb) txwi 317 drivers/net/wireless/mediatek/mt76/mt7615/init.c dev_kfree_skb_any(txwi->skb); txwi 318 drivers/net/wireless/mediatek/mt76/mt7615/init.c mt76_put_txwi(&dev->mt76, txwi); txwi 225 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (!e->txwi) { txwi 237 drivers/net/wireless/mediatek/mt76/mt7615/mac.c txp = mt7615_txwi_to_txp(mdev, e->txwi); txwi 305 drivers/net/wireless/mediatek/mt76/mt7615/mac.c int mt7615_mac_write_txwi(struct mt7615_dev *dev, __le32 *txwi, txwi 352 drivers/net/wireless/mediatek/mt76/mt7615/mac.c txwi[0] = cpu_to_le32(val); txwi 363 drivers/net/wireless/mediatek/mt76/mt7615/mac.c txwi[1] = cpu_to_le32(val); txwi 372 drivers/net/wireless/mediatek/mt76/mt7615/mac.c txwi[3] = 0; txwi 374 drivers/net/wireless/mediatek/mt76/mt7615/mac.c txwi[3] = cpu_to_le32(MT_TXD3_PROTECT_FRAME); txwi 377 drivers/net/wireless/mediatek/mt76/mt7615/mac.c txwi[3] = 0; txwi 379 drivers/net/wireless/mediatek/mt76/mt7615/mac.c txwi[2] = cpu_to_le32(val); txwi 382 drivers/net/wireless/mediatek/mt76/mt7615/mac.c txwi[2] |= cpu_to_le32(MT_TXD2_BA_DISABLE); txwi 384 drivers/net/wireless/mediatek/mt76/mt7615/mac.c txwi[4] = 0; txwi 385 drivers/net/wireless/mediatek/mt76/mt7615/mac.c txwi[6] = 0; txwi 393 drivers/net/wireless/mediatek/mt76/mt7615/mac.c txwi[2] |= cpu_to_le32(MT_TXD2_FIX_RATE); txwi 398 drivers/net/wireless/mediatek/mt76/mt7615/mac.c txwi[6] |= cpu_to_le32(val); txwi 401 drivers/net/wireless/mediatek/mt76/mt7615/mac.c txwi[6] |= cpu_to_le32(MT_TXD6_SGI); txwi 404 drivers/net/wireless/mediatek/mt76/mt7615/mac.c txwi[6] |= cpu_to_le32(MT_TXD6_LDPC); txwi 408 drivers/net/wireless/mediatek/mt76/mt7615/mac.c txwi[2] |= cpu_to_le32(MT_TXD2_BA_DISABLE); txwi 416 drivers/net/wireless/mediatek/mt76/mt7615/mac.c txwi[5] = cpu_to_le32(val); txwi 418 drivers/net/wireless/mediatek/mt76/mt7615/mac.c txwi[5] = 0; txwi 435 drivers/net/wireless/mediatek/mt76/mt7615/mac.c txwi[3] |= cpu_to_le32(val); txwi 438 drivers/net/wireless/mediatek/mt76/mt7615/mac.c txwi[3] |= cpu_to_le32(MT_TXD3_NO_ACK); txwi 440 drivers/net/wireless/mediatek/mt76/mt7615/mac.c txwi[7] = FIELD_PREP(MT_TXD7_TYPE, fc_type) | txwi 774 drivers/net/wireless/mediatek/mt76/mt7615/mac.c u8 *txwi = (u8 *)txwi_ptr; txwi 794 drivers/net/wireless/mediatek/mt76/mt7615/mac.c txp = (struct mt7615_txp *)(txwi + MT_TXD_SIZE); txwi 819 drivers/net/wireless/mediatek/mt76/mt7615/mac.c t = (struct mt76_txwi_cache *)(txwi + mdev->drv->txwi_size); txwi 1048 drivers/net/wireless/mediatek/mt76/mt7615/mac.c struct mt76_txwi_cache *txwi; txwi 1054 drivers/net/wireless/mediatek/mt76/mt7615/mac.c txwi = idr_remove(&dev->token, le16_to_cpu(free->token[i])); txwi 1057 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (!txwi) txwi 1060 drivers/net/wireless/mediatek/mt76/mt7615/mac.c mt7615_txp_skb_unmap(mdev, txwi); txwi 1061 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (txwi->skb) { txwi 1062 drivers/net/wireless/mediatek/mt76/mt7615/mac.c mt76_tx_complete_skb(mdev, txwi->skb); txwi 1063 drivers/net/wireless/mediatek/mt76/mt7615/mac.c txwi->skb = NULL; txwi 1066 drivers/net/wireless/mediatek/mt76/mt7615/mac.c mt76_put_txwi(mdev, txwi); txwi 323 drivers/net/wireless/mediatek/mt76/mt7615/mac.h u8 *txwi; txwi 328 drivers/net/wireless/mediatek/mt76/mt7615/mac.h txwi = mt76_get_txwi_ptr(dev, t); txwi 330 drivers/net/wireless/mediatek/mt76/mt7615/mac.h return (struct mt7615_txp *)(txwi + MT_TXD_SIZE); txwi 234 drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h int mt7615_mac_write_txwi(struct mt7615_dev *dev, __le32 *txwi, txwi 272 drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h struct mt76_txwi_cache *txwi); txwi 176 drivers/net/wireless/mediatek/mt76/mt76x02.h int mt76x02_tx_prepare_skb(struct mt76_dev *mdev, void *txwi, txwi 29 drivers/net/wireless/mediatek/mt76/mt76x02_beacon.c struct mt76x02_txwi txwi; txwi 34 drivers/net/wireless/mediatek/mt76/mt76x02_beacon.c mt76x02_mac_write_txwi(dev, &txwi, skb, NULL, NULL, skb->len); txwi 36 drivers/net/wireless/mediatek/mt76/mt76x02_beacon.c mt76_wr_copy(dev, offset, &txwi, sizeof(txwi)); txwi 37 drivers/net/wireless/mediatek/mt76/mt76x02_beacon.c offset += sizeof(txwi); txwi 313 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c void mt76x02_mac_write_txwi(struct mt76x02_dev *dev, struct mt76x02_txwi *txwi, txwi 328 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c memset(txwi, 0, sizeof(*txwi)); txwi 338 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c txwi->wcid = wcid->idx; txwi 340 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c txwi->wcid = 0xff; txwi 353 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c txwi->iv = *((__le32 *)&ccmp_pn[0]); txwi 354 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c txwi->eiv = *((__le32 *)&ccmp_pn[4]); txwi 359 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c txwi->rate = FIELD_GET(MT_WCID_TX_INFO_RATE, wcid_tx_info); txwi 364 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c txwi->rate = mt76x02_mac_tx_rate_val(dev, rate, &nss); txwi 370 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c txwi->ctl2 = FIELD_PREP(MT_TX_PWR_ADJ, txpwr_adj); txwi 373 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c txwi->txstream = 0x13; txwi 375 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c !(txwi->rate & cpu_to_le16(rate_ht_mask))) txwi 376 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c txwi->txstream = 0x93; txwi 379 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c txwi->rate |= cpu_to_le16(MT_RXWI_RATE_LDPC); txwi 381 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c txwi->rate |= cpu_to_le16(MT_RXWI_RATE_STBC); txwi 385 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c txwi->ack_ctl |= MT_TXWI_ACK_CTL_REQ; txwi 387 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c txwi->ack_ctl |= MT_TXWI_ACK_CTL_NSEQ; txwi 395 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c txwi->ack_ctl |= FIELD_PREP(MT_TXWI_ACK_CTL_BA_WINDOW, ba_size); txwi 406 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c txwi->flags |= cpu_to_le16(txwi_flags); txwi 407 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c txwi->len_ctl = cpu_to_le16(len); txwi 830 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c struct mt76x02_txwi *txwi; txwi 833 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c if (!e->txwi) { txwi 840 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c txwi_ptr = mt76_get_txwi_ptr(mdev, e->txwi); txwi 841 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c txwi = (struct mt76x02_txwi *)txwi_ptr; txwi 842 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c trace_mac_txdone_add(dev, txwi->wcid, txwi->pktid); txwi 186 drivers/net/wireless/mediatek/mt76/mt76x02_mac.h void mt76x02_mac_write_txwi(struct mt76x02_dev *dev, struct mt76x02_txwi *txwi, txwi 145 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c struct mt76x02_txwi *txwi = txwi_ptr; txwi 154 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c mt76x02_mac_write_txwi(dev, txwi, tx_info->skb, wcid, sta, len); txwi 161 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c (le16_to_cpu(txwi->rate) & MT_RXWI_RATE_INDEX); txwi 163 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c txwi->pktid = pid; txwi 70 drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c struct mt76x02_txwi *txwi; txwi 77 drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c txwi = (struct mt76x02_txwi *)(tx_info->skb->data - sizeof(*txwi)); txwi 78 drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c mt76x02_mac_write_txwi(dev, txwi, tx_info->skb, wcid, sta, len); txwi 79 drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c skb_push(tx_info->skb, sizeof(*txwi)); txwi 86 drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c (le16_to_cpu(txwi->rate) & MT_RXWI_RATE_INDEX); txwi 88 drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c txwi->pktid = pid; txwi 13 drivers/net/wireless/mediatek/mt76/tx.c u8 *txwi; txwi 17 drivers/net/wireless/mediatek/mt76/tx.c txwi = devm_kzalloc(dev->dev, size, GFP_ATOMIC); txwi 18 drivers/net/wireless/mediatek/mt76/tx.c if (!txwi) txwi 21 drivers/net/wireless/mediatek/mt76/tx.c addr = dma_map_single(dev->dev, txwi, dev->drv->txwi_size, txwi 23 drivers/net/wireless/mediatek/mt76/tx.c t = (struct mt76_txwi_cache *)(txwi + dev->drv->txwi_size); txwi 136 drivers/net/wireless/mediatek/mt7601u/tx.c struct mt76_txwi *txwi; txwi 143 drivers/net/wireless/mediatek/mt7601u/tx.c txwi = skb_push(skb, sizeof(struct mt76_txwi)); txwi 144 drivers/net/wireless/mediatek/mt7601u/tx.c memset(txwi, 0, sizeof(*txwi)); txwi 156 drivers/net/wireless/mediatek/mt7601u/tx.c txwi->rate_ctl = cpu_to_le16(rate_ctl); txwi 159 drivers/net/wireless/mediatek/mt7601u/tx.c txwi->ack_ctl |= MT_TXWI_ACK_CTL_REQ; txwi 161 drivers/net/wireless/mediatek/mt7601u/tx.c txwi->ack_ctl |= MT_TXWI_ACK_CTL_NSEQ; txwi 170 drivers/net/wireless/mediatek/mt7601u/tx.c txwi->ack_ctl |= FIELD_PREP(MT_TXWI_ACK_CTL_BA_WINDOW, ba_size); txwi 172 drivers/net/wireless/mediatek/mt7601u/tx.c txwi->flags = txwi 177 drivers/net/wireless/mediatek/mt7601u/tx.c txwi->flags = 0; txwi 180 drivers/net/wireless/mediatek/mt7601u/tx.c txwi->wcid = wcid->idx; txwi 185 drivers/net/wireless/mediatek/mt7601u/tx.c txwi->len_ctl = cpu_to_le16(pkt_len); txwi 187 drivers/net/wireless/mediatek/mt7601u/tx.c return txwi; txwi 199 drivers/net/wireless/mediatek/mt7601u/tx.c struct mt76_txwi *txwi; txwi 220 drivers/net/wireless/mediatek/mt7601u/tx.c txwi = mt7601u_push_txwi(dev, skb, sta, wcid, pkt_len); txwi 225 drivers/net/wireless/mediatek/mt7601u/tx.c trace_mt_tx(dev, skb, msta, txwi); txwi 776 drivers/net/wireless/ralink/rt2x00/rt2800lib.c __le32 *txwi = rt2800_drv_get_txwi(entry); txwi 783 drivers/net/wireless/ralink/rt2x00/rt2800lib.c word = rt2x00_desc_read(txwi, 0); txwi 803 drivers/net/wireless/ralink/rt2x00/rt2800lib.c rt2x00_desc_write(txwi, 0, word); txwi 805 drivers/net/wireless/ralink/rt2x00/rt2800lib.c word = rt2x00_desc_read(txwi, 1); txwi 818 drivers/net/wireless/ralink/rt2x00/rt2800lib.c rt2x00_desc_write(txwi, 1, word); txwi 830 drivers/net/wireless/ralink/rt2x00/rt2800lib.c _rt2x00_desc_write(txwi, i, 0); txwi 957 drivers/net/wireless/ralink/rt2x00/rt2800lib.c __le32 *txwi; txwi 979 drivers/net/wireless/ralink/rt2x00/rt2800lib.c txwi = rt2800_drv_get_txwi(entry); txwi 981 drivers/net/wireless/ralink/rt2x00/rt2800lib.c word = rt2x00_desc_read(txwi, 1); txwi 996 drivers/net/wireless/ralink/rt2x00/rt2800lib.c void rt2800_txdone_entry(struct queue_entry *entry, u32 status, __le32 *txwi, txwi 1011 drivers/net/wireless/ralink/rt2x00/rt2800lib.c word = rt2x00_desc_read(txwi, 0); txwi 193 drivers/net/wireless/ralink/rt2x00/rt2800lib.h void rt2800_txdone_entry(struct queue_entry *entry, u32 status, __le32 *txwi,