Home
last modified time | relevance | path

Searched refs:txwi (Results 1 – 16 of 16) sorted by relevance

/Linux-v4.19/drivers/net/wireless/mediatek/mt76/mt76x0/
Dtx.c77 struct mt76_txwi *txwi; in mt76x0_push_txwi() local
84 txwi = (struct mt76_txwi *)skb_push(skb, sizeof(struct mt76_txwi)); in mt76x0_push_txwi()
85 memset(txwi, 0, sizeof(*txwi)); in mt76x0_push_txwi()
100 txwi->rate_ctl = cpu_to_le16(rate_ctl); in mt76x0_push_txwi()
103 txwi->rate_ctl |= cpu_to_le16(MT_RXWI_RATE_LDPC); in mt76x0_push_txwi()
105 txwi->rate_ctl |= cpu_to_le16(MT_RXWI_RATE_STBC); in mt76x0_push_txwi()
110 txwi->ack_ctl |= MT_TXWI_ACK_CTL_REQ; in mt76x0_push_txwi()
120 txwi->ack_ctl |= MT_TXWI_ACK_CTL_NSEQ; in mt76x0_push_txwi()
134 txwi->ack_ctl |= FIELD_PREP(MT_TXWI_ACK_CTL_BA_WINDOW, ba_size); in mt76x0_push_txwi()
137 txwi->wcid = wcid->idx; in mt76x0_push_txwi()
[all …]
/Linux-v4.19/drivers/net/wireless/mediatek/mt7601u/
Dtx.c144 struct mt76_txwi *txwi; in mt7601u_push_txwi() local
151 txwi = skb_push(skb, sizeof(struct mt76_txwi)); in mt7601u_push_txwi()
152 memset(txwi, 0, sizeof(*txwi)); in mt7601u_push_txwi()
164 txwi->rate_ctl = cpu_to_le16(rate_ctl); in mt7601u_push_txwi()
167 txwi->ack_ctl |= MT_TXWI_ACK_CTL_REQ; in mt7601u_push_txwi()
169 txwi->ack_ctl |= MT_TXWI_ACK_CTL_NSEQ; in mt7601u_push_txwi()
178 txwi->ack_ctl |= FIELD_PREP(MT_TXWI_ACK_CTL_BA_WINDOW, ba_size); in mt7601u_push_txwi()
180 txwi->flags = in mt7601u_push_txwi()
185 txwi->flags = 0; in mt7601u_push_txwi()
188 txwi->wcid = wcid->idx; in mt7601u_push_txwi()
[all …]
/Linux-v4.19/drivers/net/wireless/mediatek/mt76/
Dmt76x2_mac.c67 struct mt76x2_txwi *txwi = txwi_ptr; in mt76x2_mac_queue_txdone() local
73 txi->wcid = txwi->wcid; in mt76x2_mac_queue_txdone()
74 txi->pktid = txwi->pktid; in mt76x2_mac_queue_txdone()
75 trace_mac_txdone_add(dev, txwi->wcid, txwi->pktid); in mt76x2_mac_queue_txdone()
93 if (e->txwi) in mt76x2_tx_complete_skb()
94 mt76x2_mac_queue_txdone(dev, e->skb, &e->txwi->txwi); in mt76x2_tx_complete_skb()
103 struct mt76x2_txwi txwi; in mt76_write_beacon() local
108 mt76x2_mac_write_txwi(dev, &txwi, skb, NULL, NULL, skb->len); in mt76_write_beacon()
110 mt76_wr_copy(dev, offset, &txwi, sizeof(txwi)); in mt76_write_beacon()
111 offset += sizeof(txwi); in mt76_write_beacon()
Dmt76x2_mac_common.c371 void mt76x2_mac_write_txwi(struct mt76x2_dev *dev, struct mt76x2_txwi *txwi, in mt76x2_mac_write_txwi() argument
385 memset(txwi, 0, sizeof(*txwi)); in mt76x2_mac_write_txwi()
388 txwi->wcid = wcid->idx; in mt76x2_mac_write_txwi()
390 txwi->wcid = 0xff; in mt76x2_mac_write_txwi()
392 txwi->pktid = 1; in mt76x2_mac_write_txwi()
404 txwi->iv = *((__le32 *)&ccmp_pn[0]); in mt76x2_mac_write_txwi()
405 txwi->eiv = *((__le32 *)&ccmp_pn[1]); in mt76x2_mac_write_txwi()
410 txwi->rate = wcid->tx_rate; in mt76x2_mac_write_txwi()
414 txwi->rate = mt76x2_mac_tx_rate_val(dev, rate, &nss); in mt76x2_mac_write_txwi()
421 txwi->ctl2 = FIELD_PREP(MT_TX_PWR_ADJ, txpwr_adj); in mt76x2_mac_write_txwi()
[all …]
Ddma.c57 struct sk_buff *skb, void *txwi) in mt76_dma_add_buf() argument
63 if (txwi) in mt76_dma_add_buf()
64 q->entry[q->head].txwi = DMA_DUMMY_TXWI; in mt76_dma_add_buf()
93 q->entry[idx].txwi = txwi; in mt76_dma_add_buf()
107 if (!e->txwi || !e->skb) { in mt76_dma_tx_cleanup_idx()
123 if (e->txwi == DMA_DUMMY_TXWI) in mt76_dma_tx_cleanup_idx()
124 e->txwi = NULL; in mt76_dma_tx_cleanup_idx()
163 if (entry.txwi) { in mt76_dma_tx_cleanup()
164 mt76_put_txwi(dev, entry.txwi); in mt76_dma_tx_cleanup()
261 dma_sync_single_for_cpu(dev->dev, t->dma_addr, sizeof(t->txwi), in mt76_dma_tx_queue_skb()
[all …]
Dmt76x2u_core.c85 struct mt76x2_txwi *txwi; in mt76x2u_tx_prepare_skb() local
94 txwi = skb_push(skb, sizeof(struct mt76x2_txwi)); in mt76x2u_tx_prepare_skb()
95 mt76x2_mac_write_txwi(dev, txwi, skb, wcid, sta, len); in mt76x2u_tx_prepare_skb()
Dmt76x2_tx.c26 int mt76x2_tx_prepare_skb(struct mt76_dev *mdev, void *txwi, in mt76x2_tx_prepare_skb() argument
39 mt76x2_mac_write_txwi(dev, txwi, skb, wcid, sta, skb->len); in mt76x2_tx_prepare_skb()
Dtx.c31 addr = dma_map_single(dev->dev, &t->txwi, sizeof(t->txwi), in mt76_alloc_txwi()
81 dma_unmap_single(dev->dev, t->dma_addr, sizeof(t->txwi), in mt76_tx_free()
Dmt76.h80 struct mt76_txwi_cache *txwi; member
124 struct sk_buff *skb, void *txwi);
181 u32 txwi[8]; member
Dmt76x2_dma.c116 BUILD_BUG_ON(sizeof(t->txwi) < sizeof(struct mt76x2_txwi)); in mt76x2_dma_init()
Dmt76x2_mac.h167 void mt76x2_mac_write_txwi(struct mt76x2_dev *dev, struct mt76x2_txwi *txwi,
Dmt76x2.h266 int mt76x2_tx_prepare_skb(struct mt76_dev *mdev, void *txwi,
/Linux-v4.19/drivers/net/wireless/ralink/rt2x00/
Drt2800mmio.c180 __le32 *txwi; in rt2800mmio_txdone_entry_check() local
186 txwi = rt2800_drv_get_txwi(entry); in rt2800mmio_txdone_entry_check()
187 word = rt2x00_desc_read(txwi, 1); in rt2800mmio_txdone_entry_check()
Drt2800usb.c506 __le32 *txwi; in rt2800usb_txdone_entry_check() local
528 txwi = rt2800usb_get_txwi(entry); in rt2800usb_txdone_entry_check()
530 word = rt2x00_desc_read(txwi, 1); in rt2800usb_txdone_entry_check()
Drt2800lib.h196 void rt2800_txdone_entry(struct queue_entry *entry, u32 status, __le32 *txwi,
Drt2800lib.c781 __le32 *txwi = rt2800_drv_get_txwi(entry); in rt2800_write_tx_data() local
788 word = rt2x00_desc_read(txwi, 0); in rt2800_write_tx_data()
808 rt2x00_desc_write(txwi, 0, word); in rt2800_write_tx_data()
810 word = rt2x00_desc_read(txwi, 1); in rt2800_write_tx_data()
823 rt2x00_desc_write(txwi, 1, word); in rt2800_write_tx_data()
835 _rt2x00_desc_write(txwi, i, 0); in rt2800_write_tx_data()
960 void rt2800_txdone_entry(struct queue_entry *entry, u32 status, __le32 *txwi, in rt2800_txdone_entry() argument
975 word = rt2x00_desc_read(txwi, 0); in rt2800_txdone_entry()