/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 …]
|
/drivers/net/wireless/mediatek/mt76/mt7921/ |
D | mac.c | 679 mt7921_mac_write_txwi_8023(struct mt7921_dev *dev, __le32 *txwi, in mt7921_mac_write_txwi_8023() argument 702 txwi[1] |= cpu_to_le32(val); in mt7921_mac_write_txwi_8023() 710 txwi[2] |= cpu_to_le32(val); in mt7921_mac_write_txwi_8023() 714 txwi[7] |= cpu_to_le32(val); in mt7921_mac_write_txwi_8023() 718 mt7921_mac_write_txwi_80211(struct mt7921_dev *dev, __le32 *txwi, in mt7921_mac_write_txwi_80211() argument 735 txwi[5] |= cpu_to_le32(MT_TXD5_ADD_BA); in mt7921_mac_write_txwi_80211() 748 txwi[1] |= cpu_to_le32(val); in mt7921_mac_write_txwi_80211() 760 txwi[3] &= ~cpu_to_le32(MT_TXD3_PROTECT_FRAME); in mt7921_mac_write_txwi_80211() 766 txwi[2] |= cpu_to_le32(val); in mt7921_mac_write_txwi_80211() 769 txwi[3] &= ~cpu_to_le32(MT_TXD3_SW_POWER_MGMT); in mt7921_mac_write_txwi_80211() [all …]
|
D | mac.h | 323 u8 *txwi; in mt7921_txwi_to_txp() local 328 txwi = mt76_get_txwi_ptr(dev, t); in mt7921_txwi_to_txp() 330 return (struct mt7921_txp_common *)(txwi + MT_TXD_SIZE); in mt7921_txwi_to_txp()
|
D | mt7921.h | 330 void mt7921_mac_write_txwi(struct mt7921_dev *dev, __le32 *txwi, 361 struct mt76_txwi_cache *txwi);
|
/drivers/net/wireless/mediatek/mt76/ |
D | mt76x02_beacon.c | 37 struct mt76x02_txwi *txwi; in mt76x02_write_beacon() local 39 txwi = (struct mt76x02_txwi *)(skb->data - sizeof(*txwi)); in mt76x02_write_beacon() 40 mt76x02_mac_write_txwi(dev, txwi, skb, NULL, NULL, skb->len); in mt76x02_write_beacon() 41 skb_push(skb, sizeof(*txwi)); in mt76x02_write_beacon() 43 struct mt76x02_txwi txwi; in mt76x02_write_beacon() local 45 mt76x02_mac_write_txwi(dev, &txwi, skb, NULL, NULL, skb->len); in mt76x02_write_beacon() 46 mt76_wr_copy(dev, offset, &txwi, sizeof(txwi)); in mt76x02_write_beacon() 47 offset += sizeof(txwi); in mt76x02_write_beacon()
|
D | dma.c | 15 u8 *txwi; in mt76_alloc_txwi() local 19 txwi = kzalloc(size, GFP_ATOMIC); in mt76_alloc_txwi() 20 if (!txwi) in mt76_alloc_txwi() 23 addr = dma_map_single(dev->dma_dev, txwi, dev->drv->txwi_size, in mt76_alloc_txwi() 25 t = (struct mt76_txwi_cache *)(txwi + dev->drv->txwi_size); in mt76_alloc_txwi() 143 struct sk_buff *skb, void *txwi) in mt76_dma_add_buf() argument 150 if (txwi) { in mt76_dma_add_buf() 151 q->entry[q->head].txwi = DMA_DUMMY_DATA; in mt76_dma_add_buf() 194 q->entry[idx].txwi = txwi; in mt76_dma_add_buf() 215 if (e->txwi == DMA_DUMMY_DATA) in mt76_dma_tx_cleanup_idx() [all …]
|
D | mt76x02_mac.c | 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() [all …]
|
D | mt76x02_usb_core.c | 71 struct mt76x02_txwi *txwi; in mt76x02u_tx_prepare_skb() local 78 txwi = (struct mt76x02_txwi *)(tx_info->skb->data - sizeof(*txwi)); in mt76x02u_tx_prepare_skb() 79 mt76x02_mac_write_txwi(dev, txwi, tx_info->skb, wcid, sta, len); in mt76x02u_tx_prepare_skb() 80 skb_push(tx_info->skb, sizeof(*txwi)); in mt76x02u_tx_prepare_skb() 87 (le16_to_cpu(txwi->rate) & MT_PKTID_RATE) | in mt76x02u_tx_prepare_skb() 91 txwi->pktid = pid; in mt76x02u_tx_prepare_skb()
|
D | mt76x02_txrx.c | 144 struct mt76x02_txwi *txwi = txwi_ptr; in mt76x02_tx_prepare_skb() local 153 mt76x02_mac_write_txwi(dev, txwi, tx_info->skb, wcid, sta, len); in mt76x02_tx_prepare_skb() 160 (le16_to_cpu(txwi->rate) & MT_RXWI_RATE_INDEX) | in mt76x02_tx_prepare_skb() 164 txwi->pktid = pid; in mt76x02_tx_prepare_skb()
|
D | tx.c | 714 struct mt76_txwi_cache *txwi; in mt76_token_release() local 718 txwi = idr_remove(&dev->token, token); in mt76_token_release() 719 if (txwi) in mt76_token_release() 728 return txwi; in mt76_token_release()
|
D | mt76x02_mac.h | 193 void mt76x02_mac_write_txwi(struct mt76x02_dev *dev, struct mt76x02_txwi *txwi,
|
D | mt76.h | 125 struct mt76_txwi_cache *txwi; member 1296 struct mt76_txwi_cache *txwi; in mt76_token_put() local 1299 txwi = idr_remove(&dev->token, token); in mt76_token_put() 1302 return txwi; in mt76_token_put()
|
D | mt76x02.h | 180 int mt76x02_tx_prepare_skb(struct mt76_dev *mdev, void *txwi,
|
/drivers/net/wireless/mediatek/mt76/mt7915/ |
D | mac.c | 681 mt7915_mac_write_txwi_tm(struct mt7915_phy *phy, __le32 *txwi, in mt7915_mac_write_txwi_tm() argument 761 txwi[2] |= cpu_to_le32(MT_TXD2_FIX_RATE); in mt7915_mac_write_txwi_tm() 763 le32p_replace_bits(&txwi[3], 1, MT_TXD3_REM_TX_COUNT); in mt7915_mac_write_txwi_tm() 765 txwi[3] |= cpu_to_le32(MT_TXD3_BA_DISABLE); in mt7915_mac_write_txwi_tm() 788 txwi[3] &= ~cpu_to_le32(MT_TXD3_SN_VALID); in mt7915_mac_write_txwi_tm() 789 txwi[6] |= cpu_to_le32(val); in mt7915_mac_write_txwi_tm() 790 txwi[7] |= cpu_to_le32(FIELD_PREP(MT_TXD7_SPE_IDX, in mt7915_mac_write_txwi_tm() 796 mt7915_mac_write_txwi_8023(struct mt7915_dev *dev, __le32 *txwi, in mt7915_mac_write_txwi_8023() argument 820 txwi[1] |= cpu_to_le32(val); in mt7915_mac_write_txwi_8023() 828 txwi[2] |= cpu_to_le32(val); in mt7915_mac_write_txwi_8023() [all …]
|
D | mac.h | 401 u8 *txwi; in mt7915_txwi_to_txp() local 406 txwi = mt76_get_txwi_ptr(dev, t); in mt7915_txwi_to_txp() 408 return (struct mt7915_txp *)(txwi + MT_TXD_SIZE); in mt7915_txwi_to_txp()
|
D | mt7915.h | 410 void mt7915_mac_write_txwi(struct mt7915_dev *dev, __le32 *txwi,
|
/drivers/net/wireless/mediatek/mt76/mt7615/ |
D | mac.c | 617 int mt7615_mac_write_txwi(struct mt7615_dev *dev, __le32 *txwi, in mt7615_mac_write_txwi() argument 670 txwi[0] = cpu_to_le32(val); in mt7615_mac_write_txwi() 681 txwi[1] = cpu_to_le32(val); in mt7615_mac_write_txwi() 690 txwi[3] = 0; in mt7615_mac_write_txwi() 692 txwi[3] = cpu_to_le32(MT_TXD3_PROTECT_FRAME); in mt7615_mac_write_txwi() 695 txwi[3] = 0; in mt7615_mac_write_txwi() 697 txwi[2] = cpu_to_le32(val); in mt7615_mac_write_txwi() 700 txwi[2] |= cpu_to_le32(MT_TXD2_BA_DISABLE); in mt7615_mac_write_txwi() 702 txwi[4] = 0; in mt7615_mac_write_txwi() 703 txwi[6] = 0; in mt7615_mac_write_txwi() [all …]
|
D | pci_mac.c | 19 if (!e->txwi) { in mt7615_tx_complete_skb() 32 txp = mt7615_txwi_to_txp(mdev, e->txwi); in mt7615_tx_complete_skb() 137 u8 *txwi = (u8 *)txwi_ptr; in mt7615_tx_prepare_skb() local 160 t = (struct mt76_txwi_cache *)(txwi + mdev->drv->txwi_size); in mt7615_tx_prepare_skb() 170 txp = txwi + MT_TXD_SIZE; in mt7615_tx_prepare_skb()
|
D | usb_sdio.c | 50 __le32 *txwi; in mt7663_usb_sdio_write_txwi() local 58 txwi = (__le32 *)(skb->data - MT_USB_TXD_SIZE); in mt7663_usb_sdio_write_txwi() 59 memset(txwi, 0, MT_USB_TXD_SIZE); in mt7663_usb_sdio_write_txwi() 60 mt7615_mac_write_txwi(dev, txwi, skb, wcid, sta, pid, key, false); in mt7663_usb_sdio_write_txwi()
|
D | mac.h | 389 u8 *txwi; in mt7615_txwi_to_txp() local 394 txwi = mt76_get_txwi_ptr(dev, t); in mt7615_txwi_to_txp() 396 return (struct mt7615_txp_common *)(txwi + MT_TXD_SIZE); in mt7615_txwi_to_txp()
|
D | mt7615.h | 486 int mt7615_mac_write_txwi(struct mt7615_dev *dev, __le32 *txwi, 530 struct mt76_txwi_cache *txwi);
|
/drivers/net/wireless/mediatek/mt76/mt7603/ |
D | mac.c | 909 mt7603_mac_write_txwi(struct mt7603_dev *dev, __le32 *txwi, in mt7603_mac_write_txwi() argument 954 txwi[0] = cpu_to_le32(val); in mt7603_mac_write_txwi() 964 txwi[1] = cpu_to_le32(val); in mt7603_mac_write_txwi() 967 txwi[1] |= cpu_to_le32(MT_TXD1_NO_ACK); in mt7603_mac_write_txwi() 973 txwi[2] = cpu_to_le32(val); in mt7603_mac_write_txwi() 976 txwi[2] |= cpu_to_le32(MT_TXD2_BA_DISABLE); in mt7603_mac_write_txwi() 978 txwi[4] = 0; in mt7603_mac_write_txwi() 982 txwi[5] = cpu_to_le32(val); in mt7603_mac_write_txwi() 984 txwi[6] = 0; in mt7603_mac_write_txwi() 991 txwi[2] |= cpu_to_le32(MT_TXD2_FIX_RATE); in mt7603_mac_write_txwi() [all …]
|
/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 …]
|