/Linux-v5.4/drivers/net/wireless/mediatek/mt7601u/ |
D | tx.c | 136 struct mt76_txwi *txwi; in mt7601u_push_txwi() local 143 txwi = skb_push(skb, sizeof(struct mt76_txwi)); in mt7601u_push_txwi() 144 memset(txwi, 0, sizeof(*txwi)); in mt7601u_push_txwi() 156 txwi->rate_ctl = cpu_to_le16(rate_ctl); in mt7601u_push_txwi() 159 txwi->ack_ctl |= MT_TXWI_ACK_CTL_REQ; in mt7601u_push_txwi() 161 txwi->ack_ctl |= MT_TXWI_ACK_CTL_NSEQ; in mt7601u_push_txwi() 170 txwi->ack_ctl |= FIELD_PREP(MT_TXWI_ACK_CTL_BA_WINDOW, ba_size); in mt7601u_push_txwi() 172 txwi->flags = in mt7601u_push_txwi() 177 txwi->flags = 0; in mt7601u_push_txwi() 180 txwi->wcid = wcid->idx; in mt7601u_push_txwi() [all …]
|
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/mt7615/ |
D | mac.c | 225 if (!e->txwi) { in mt7615_tx_complete_skb() 237 txp = mt7615_txwi_to_txp(mdev, e->txwi); in mt7615_tx_complete_skb() 305 int mt7615_mac_write_txwi(struct mt7615_dev *dev, __le32 *txwi, in mt7615_mac_write_txwi() argument 352 txwi[0] = cpu_to_le32(val); in mt7615_mac_write_txwi() 363 txwi[1] = cpu_to_le32(val); in mt7615_mac_write_txwi() 372 txwi[3] = 0; in mt7615_mac_write_txwi() 374 txwi[3] = cpu_to_le32(MT_TXD3_PROTECT_FRAME); in mt7615_mac_write_txwi() 377 txwi[3] = 0; in mt7615_mac_write_txwi() 379 txwi[2] = cpu_to_le32(val); in mt7615_mac_write_txwi() 382 txwi[2] |= cpu_to_le32(MT_TXD2_BA_DISABLE); in mt7615_mac_write_txwi() [all …]
|
D | init.c | 306 struct mt76_txwi_cache *txwi; in mt7615_unregister_device() local 314 idr_for_each_entry(&dev->token, txwi, id) { in mt7615_unregister_device() 315 mt7615_txp_skb_unmap(&dev->mt76, txwi); in mt7615_unregister_device() 316 if (txwi->skb) in mt7615_unregister_device() 317 dev_kfree_skb_any(txwi->skb); in mt7615_unregister_device() 318 mt76_put_txwi(&dev->mt76, txwi); in mt7615_unregister_device()
|
D | mac.h | 323 u8 *txwi; in mt7615_txwi_to_txp() local 328 txwi = mt76_get_txwi_ptr(dev, t); in mt7615_txwi_to_txp() 330 return (struct mt7615_txp *)(txwi + MT_TXD_SIZE); in mt7615_txwi_to_txp()
|
D | mt7615.h | 234 int mt7615_mac_write_txwi(struct mt7615_dev *dev, __le32 *txwi, 272 struct mt76_txwi_cache *txwi);
|
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/ |
D | mt76x02_mac.c | 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() [all …]
|
D | mt76x02_usb_core.c | 70 struct mt76x02_txwi *txwi; in mt76x02u_tx_prepare_skb() local 77 txwi = (struct mt76x02_txwi *)(tx_info->skb->data - sizeof(*txwi)); in mt76x02u_tx_prepare_skb() 78 mt76x02_mac_write_txwi(dev, txwi, tx_info->skb, wcid, sta, len); in mt76x02u_tx_prepare_skb() 79 skb_push(tx_info->skb, sizeof(*txwi)); in mt76x02u_tx_prepare_skb() 86 (le16_to_cpu(txwi->rate) & MT_RXWI_RATE_INDEX); in mt76x02u_tx_prepare_skb() 88 txwi->pktid = pid; in mt76x02u_tx_prepare_skb()
|
D | dma.c | 50 struct sk_buff *skb, void *txwi) in mt76_dma_add_buf() argument 56 if (txwi) { in mt76_dma_add_buf() 57 q->entry[q->head].txwi = DMA_DUMMY_DATA; in mt76_dma_add_buf() 88 q->entry[idx].txwi = txwi; in mt76_dma_add_buf() 118 if (e->txwi == DMA_DUMMY_DATA) in mt76_dma_tx_cleanup_idx() 119 e->txwi = NULL; in mt76_dma_tx_cleanup_idx() 168 if (entry.txwi) { in mt76_dma_tx_cleanup() 170 mt76_put_txwi(dev, entry.txwi); in mt76_dma_tx_cleanup() 294 u8 *txwi; in mt76_dma_tx_queue_skb() local 301 txwi = mt76_get_txwi_ptr(dev, t); in mt76_dma_tx_queue_skb() [all …]
|
D | mt76x02_beacon.c | 29 struct mt76x02_txwi txwi; in mt76x02_write_beacon() local 34 mt76x02_mac_write_txwi(dev, &txwi, skb, NULL, NULL, skb->len); in mt76x02_write_beacon() 36 mt76_wr_copy(dev, offset, &txwi, sizeof(txwi)); in mt76x02_write_beacon() 37 offset += sizeof(txwi); in mt76x02_write_beacon()
|
D | mt76x02_txrx.c | 145 struct mt76x02_txwi *txwi = txwi_ptr; in mt76x02_tx_prepare_skb() local 154 mt76x02_mac_write_txwi(dev, txwi, tx_info->skb, wcid, sta, len); in mt76x02_tx_prepare_skb() 161 (le16_to_cpu(txwi->rate) & MT_RXWI_RATE_INDEX); in mt76x02_tx_prepare_skb() 163 txwi->pktid = pid; in mt76x02_tx_prepare_skb()
|
D | tx.c | 13 u8 *txwi; in mt76_alloc_txwi() local 17 txwi = devm_kzalloc(dev->dev, size, GFP_ATOMIC); in mt76_alloc_txwi() 18 if (!txwi) in mt76_alloc_txwi() 21 addr = dma_map_single(dev->dev, txwi, dev->drv->txwi_size, in mt76_alloc_txwi() 23 t = (struct mt76_txwi_cache *)(txwi + dev->drv->txwi_size); in mt76_alloc_txwi()
|
D | mt76x02_mac.h | 186 void mt76x02_mac_write_txwi(struct mt76x02_dev *dev, struct mt76x02_txwi *txwi,
|
D | mt76x02.h | 176 int mt76x02_tx_prepare_skb(struct mt76_dev *mdev, void *txwi,
|
D | mt76.h | 92 struct mt76_txwi_cache *txwi; member 157 struct sk_buff *skb, void *txwi);
|
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/mt7603/ |
D | mac.c | 778 mt7603_mac_write_txwi(struct mt7603_dev *dev, __le32 *txwi, in mt7603_mac_write_txwi() argument 823 txwi[0] = cpu_to_le32(val); in mt7603_mac_write_txwi() 833 txwi[1] = cpu_to_le32(val); in mt7603_mac_write_txwi() 836 txwi[1] |= cpu_to_le32(MT_TXD1_NO_ACK); in mt7603_mac_write_txwi() 842 txwi[2] = cpu_to_le32(val); in mt7603_mac_write_txwi() 845 txwi[2] |= cpu_to_le32(MT_TXD2_BA_DISABLE); in mt7603_mac_write_txwi() 847 txwi[4] = 0; in mt7603_mac_write_txwi() 851 txwi[5] = cpu_to_le32(val); in mt7603_mac_write_txwi() 853 txwi[6] = 0; in mt7603_mac_write_txwi() 860 txwi[2] |= cpu_to_le32(MT_TXD2_FIX_RATE); in mt7603_mac_write_txwi() [all …]
|
/Linux-v5.4/drivers/net/wireless/ralink/rt2x00/ |
D | rt2800lib.h | 193 void rt2800_txdone_entry(struct queue_entry *entry, u32 status, __le32 *txwi,
|
D | rt2800lib.c | 776 __le32 *txwi = rt2800_drv_get_txwi(entry); in rt2800_write_tx_data() local 783 word = rt2x00_desc_read(txwi, 0); in rt2800_write_tx_data() 803 rt2x00_desc_write(txwi, 0, word); in rt2800_write_tx_data() 805 word = rt2x00_desc_read(txwi, 1); in rt2800_write_tx_data() 818 rt2x00_desc_write(txwi, 1, word); in rt2800_write_tx_data() 830 _rt2x00_desc_write(txwi, i, 0); in rt2800_write_tx_data() 957 __le32 *txwi; in rt2800_txdone_entry_check() local 979 txwi = rt2800_drv_get_txwi(entry); in rt2800_txdone_entry_check() 981 word = rt2x00_desc_read(txwi, 1); in rt2800_txdone_entry_check() 996 void rt2800_txdone_entry(struct queue_entry *entry, u32 status, __le32 *txwi, in rt2800_txdone_entry() argument [all …]
|