| /freebsd-14.2/sys/contrib/dev/mediatek/mt76/mt7615/ |
| H A D | pci_mac.c | 30 int nbuf = tx_info->nbuf - 1; in mt7615_write_fw_txp() 34 txp->buf[i] = cpu_to_le32(tx_info->buf[i + 1].addr); in mt7615_write_fw_txp() 35 txp->len[i] = cpu_to_le16(tx_info->buf[i + 1].len); in mt7615_write_fw_txp() 40 tx_info->buf[0].len = MT_TXD_SIZE + sizeof(*txp); in mt7615_write_fw_txp() 41 tx_info->buf[1].len = MT_CT_PARSE_LEN; in mt7615_write_fw_txp() 42 tx_info->buf[1].skip_unmap = true; in mt7615_write_fw_txp() 43 tx_info->nbuf = MT_CT_DMA_BUF_NUM; in mt7615_write_fw_txp() 66 struct mt76_tx_info *tx_info) in mt7615_tx_prepare_skb() argument 95 t->skb = tx_info->skb; in mt7615_tx_prepare_skb() 108 mt7615_write_fw_txp(dev, tx_info, txp, id); in mt7615_tx_prepare_skb() [all …]
|
| H A D | usb_sdio.c | 122 if (!(sta->wcid.tx_info & MT_WCID_TX_INFO_SET)) in mt7663_usb_sdio_set_rates() 126 sta->wcid.tx_info |= MT_WCID_TX_INFO_SET; in mt7663_usb_sdio_set_rates() 184 struct mt76_tx_info *tx_info) in mt7663_usb_sdio_tx_prepare_skb() argument 187 struct sk_buff *skb = tx_info->skb; in mt7663_usb_sdio_tx_prepare_skb()
|
| /freebsd-14.2/sys/contrib/dev/mediatek/mt76/ |
| H A D | mt76x02_txrx.c | 140 struct mt76_tx_info *tx_info) in mt76x02_tx_prepare_skb() argument 143 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx_info->skb->data; in mt76x02_tx_prepare_skb() 145 bool ampdu = IEEE80211_SKB_CB(tx_info->skb)->flags & IEEE80211_TX_CTL_AMPDU; in mt76x02_tx_prepare_skb() 152 len = tx_info->skb->len - (hdrlen & 2); in mt76x02_tx_prepare_skb() 153 mt76x02_mac_write_txwi(dev, txwi, tx_info->skb, wcid, sta, len); in mt76x02_tx_prepare_skb() 155 pid = mt76_tx_status_skb_add(mdev, wcid, tx_info->skb); in mt76x02_tx_prepare_skb() 162 skb_get_queue_mapping(tx_info->skb)); in mt76x02_tx_prepare_skb() 169 tx_info->info = FIELD_PREP(MT_TXD_INFO_QSEL, qsel) | in mt76x02_tx_prepare_skb() 173 tx_info->info |= MT_TXD_INFO_WIV; in mt76x02_tx_prepare_skb() 178 ewma_pktlen_add(&msta->pktlen, tx_info->skb->len); in mt76x02_tx_prepare_skb()
|
| H A D | mt76x02_usb_core.c | 67 struct mt76_tx_info *tx_info) in mt76x02u_tx_prepare_skb() argument 70 int pid, len = tx_info->skb->len, ep = q2ep(dev->mphy.q_tx[qid]->hw_idx); in mt76x02u_tx_prepare_skb() 72 bool ampdu = IEEE80211_SKB_CB(tx_info->skb)->flags & IEEE80211_TX_CTL_AMPDU; in mt76x02u_tx_prepare_skb() 77 mt76_insert_hdr_pad(tx_info->skb); in mt76x02u_tx_prepare_skb() 79 txwi = (struct mt76x02_txwi *)(tx_info->skb->data - sizeof(*txwi)); in mt76x02u_tx_prepare_skb() 80 mt76x02_mac_write_txwi(dev, txwi, tx_info->skb, wcid, sta, len); in mt76x02u_tx_prepare_skb() 81 skb_push(tx_info->skb, sizeof(*txwi)); in mt76x02u_tx_prepare_skb() 83 pid = mt76_tx_status_skb_add(mdev, wcid, tx_info->skb); in mt76x02u_tx_prepare_skb() 90 skb_get_queue_mapping(tx_info->skb)); in mt76x02u_tx_prepare_skb() 107 ewma_pktlen_add(&msta->pktlen, tx_info->skb->len); in mt76x02u_tx_prepare_skb() [all …]
|
| H A D | dma.c | 507 struct mt76_tx_info tx_info = { in mt76_dma_tx_queue_skb() local 535 tx_info.buf[n].addr = t->dma_addr; in mt76_dma_tx_queue_skb() 537 tx_info.buf[n].addr = addr; in mt76_dma_tx_queue_skb() 538 tx_info.buf[n++].len = len; in mt76_dma_tx_queue_skb() 541 if (n == ARRAY_SIZE(tx_info.buf)) in mt76_dma_tx_queue_skb() 549 tx_info.buf[n].addr = addr; in mt76_dma_tx_queue_skb() 550 tx_info.buf[n++].len = iter->len; in mt76_dma_tx_queue_skb() 552 tx_info.nbuf = n; in mt76_dma_tx_queue_skb() 567 return mt76_dma_add_buf(dev, q, tx_info.buf, tx_info.nbuf, in mt76_dma_tx_queue_skb() 568 tx_info.info, tx_info.skb, t); in mt76_dma_tx_queue_skb() [all …]
|
| H A D | mt76x02_mcu.c | 40 u32 tx_info; in mt76x02_mcu_msg_send() local 57 tx_info = MT_MCU_MSG_TYPE_CMD | in mt76x02_mcu_msg_send() 63 ret = mt76_tx_queue_skb_raw(dev, mdev->q_mcu[MT_MCUQ_WM], skb, tx_info); in mt76x02_mcu_msg_send()
|
| H A D | mt76x02_usb.h | 21 struct mt76_tx_info *tx_info);
|
| H A D | sdio.c | 521 struct mt76_tx_info tx_info = { in mt76s_tx_queue_skb() local 531 err = dev->drv->tx_prepare_skb(dev, NULL, qid, wcid, sta, &tx_info); in mt76s_tx_queue_skb() 535 q->entry[q->head].skb = tx_info.skb; in mt76s_tx_queue_skb() 549 struct sk_buff *skb, u32 tx_info) in mt76s_tx_queue_skb_raw() argument
|
| H A D | mt76_connac_mac.c | 177 struct mt76_tx_info *tx_info, in mt76_connac_write_hw_txp() argument 182 int i, nbuf = tx_info->nbuf - 1; in mt76_connac_write_hw_txp() 185 tx_info->buf[0].len = MT_TXD_SIZE + sizeof(*txp); in mt76_connac_write_hw_txp() 186 tx_info->nbuf = 1; in mt76_connac_write_hw_txp() 197 u16 len = tx_info->buf[i + 1].len & MT_TXD_LEN_MASK; in mt76_connac_write_hw_txp() 198 u32 addr = tx_info->buf[i + 1].addr; in mt76_connac_write_hw_txp()
|
| H A D | mt76x02_mac.c | 233 u32 tx_info; in mt76x02_mac_wcid_set_rate() local 237 tx_info = FIELD_PREP(MT_WCID_TX_INFO_RATE, rateval) | in mt76x02_mac_wcid_set_rate() 241 wcid->tx_info = tx_info; in mt76x02_mac_wcid_set_rate() 382 wcid_tx_info = wcid->tx_info; in mt76x02_mac_write_txwi() 502 mt76x02_mac_process_tx_rate(&rate[0], msta->wcid.tx_info, in mt76x02_mac_fill_tx_status()
|
| /freebsd-14.2/sys/contrib/dev/mediatek/mt76/mt7921/ |
| H A D | pci_mac.c | 11 struct mt76_tx_info *tx_info) in mt7921e_tx_prepare_skb() argument 14 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(tx_info->skb); in mt7921e_tx_prepare_skb() 21 if (unlikely(tx_info->skb->len <= ETH_HLEN)) in mt7921e_tx_prepare_skb() 28 t->skb = tx_info->skb; in mt7921e_tx_prepare_skb() 43 pid = mt76_tx_status_skb_add(mdev, wcid, tx_info->skb); in mt7921e_tx_prepare_skb() 44 mt76_connac2_mac_write_txwi(mdev, txwi_ptr, tx_info->skb, wcid, key, in mt7921e_tx_prepare_skb() 49 mt76_connac_write_hw_txp(mdev, tx_info, txp, id); in mt7921e_tx_prepare_skb() 51 tx_info->skb = DMA_DUMMY_DATA; in mt7921e_tx_prepare_skb()
|
| H A D | mac.c | 497 __le32 *tx_info = (__le32 *)(data + sizeof(*free)); in mt7921_mac_tx_free() local 499 __le32 *tx_info = (__le32 *)((u8 *)data + sizeof(*free)); in mt7921_mac_tx_free() local 520 if (WARN_ON_ONCE((void *)&tx_info[count] > end)) in mt7921_mac_tx_free() 524 u32 msdu, info = le32_to_cpu(tx_info[i]); in mt7921_mac_tx_free() 781 struct mt76_tx_info *tx_info) in mt7921_usb_sdio_tx_prepare_skb() argument 784 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(tx_info->skb); in mt7921_usb_sdio_tx_prepare_skb() 786 struct sk_buff *skb = tx_info->skb; in mt7921_usb_sdio_tx_prepare_skb() 789 if (unlikely(tx_info->skb->len <= ETH_HLEN)) in mt7921_usb_sdio_tx_prepare_skb()
|
| H A D | mt7921.h | 264 struct mt76_tx_info *tx_info); 319 struct mt76_tx_info *tx_info);
|
| /freebsd-14.2/sys/dev/mlx4/mlx4_en/ |
| H A D | mlx4_en_tx.c | 99 if (!ring->tx_info) { in mlx4_en_create_tx_ring() 101 if (!ring->tx_info) { in mlx4_en_create_tx_ring() 121 ring->tx_info, tmp); in mlx4_en_create_tx_ring() 182 vfree(ring->tx_info); in mlx4_en_create_tx_ring() 207 vfree(ring->tx_info); in mlx4_en_destroy_tx_ring() 274 struct mlx4_en_tx_info *tx_info = &ring->tx_info[index]; in mlx4_en_stamp_wqe() local 296 tx_info = &ring->tx_info[index]; in mlx4_en_free_tx_desc() 297 mb = tx_info->mb; in mlx4_en_free_tx_desc() 308 return (tx_info->nr_txbb); in mlx4_en_free_tx_desc() 687 tx_info = &ring->tx_info[index]; in mlx4_en_xmit() [all …]
|
| /freebsd-14.2/sys/dev/ena/ |
| H A D | ena_datapath.c | 267 struct ena_tx_buffer *tx_info; in ena_tx_cleanup() local 276 mbuf = tx_info->mbuf; in ena_tx_cleanup() 278 tx_info->mbuf = NULL; in ena_tx_cleanup() 865 tx_info->mbuf = mbuf; in ena_tx_map_mbuf() 866 ena_buf = tx_info->bufs; in ena_tx_map_mbuf() 932 tx_info->num_of_bufs++; in ena_tx_map_mbuf() 956 tx_info->num_of_bufs++; in ena_tx_map_mbuf() 963 tx_info->mbuf = NULL; in ena_tx_map_mbuf() 1002 tx_info->num_of_bufs = 0; in ena_xmit_mbuf() 1057 tx_info->print_once = true; in ena_xmit_mbuf() [all …]
|
| H A D | ena_netmap.c | 408 tx_info->num_of_bufs = 0; in ena_netmap_tx_frame() 569 ena_buf = tx_info->bufs; in ena_netmap_tx_map_slots() 570 nm_info = &tx_info->nm_info; in ena_netmap_tx_map_slots() 645 tx_info->num_of_bufs++; in ena_netmap_tx_map_slots() 695 tx_info->num_of_bufs++; in ena_netmap_tx_map_slots() 739 tx_info->num_of_bufs++; in ena_netmap_tx_map_slots() 776 n = tx_info->num_of_bufs; in ena_netmap_unmap_last_socket_chain() 781 tx_info->num_of_bufs = 0; in ena_netmap_unmap_last_socket_chain() 842 n = tx_info->num_of_bufs; in ena_netmap_tx_clean_one() 847 tx_info->num_of_bufs = 0; in ena_netmap_tx_clean_one() [all …]
|
| /freebsd-14.2/sys/dev/liquidio/ |
| H A D | lio_rxtx.c | 56 union lio_tx_info *tx_info; in lio_xmit() local 187 tx_info = (union lio_tx_info *)&ndata.cmd.cmd3.ossp[0]; in lio_xmit() 190 tx_info->s.gso_size = m_head->m_pkthdr.tso_segsz; in lio_xmit() 191 tx_info->s.gso_segs = howmany(m_head->m_pkthdr.len, in lio_xmit() 206 if (tx_info->s.gso_segs) in lio_xmit() 207 stats->tx_done += tx_info->s.gso_segs; in lio_xmit()
|
| /freebsd-14.2/sys/contrib/dev/rtw89/ |
| H A D | rtw8852a.c | 1480 if (tx_info->mode == CONT_TX) in rtw8852a_stop_pmac_tx() 1483 else if (tx_info->mode == PKTS_TX) in rtw8852a_stop_pmac_tx() 1493 u32 pkt_cnt = tx_info->tx_cnt; in rtw8852a_start_pmac_tx() 1494 u16 period = tx_info->period; in rtw8852a_start_pmac_tx() 1519 if (!tx_info->en_pmac_tx) { in rtw8852a_bb_set_pmac_tx() 1544 tx_info.en_pmac_tx = enable; in rtw8852a_bb_set_pmac_pkt_tx() 1545 tx_info.is_cck = 0; in rtw8852a_bb_set_pmac_pkt_tx() 1546 tx_info.mode = PKTS_TX; in rtw8852a_bb_set_pmac_pkt_tx() 1547 tx_info.tx_cnt = tx_cnt; in rtw8852a_bb_set_pmac_pkt_tx() 1548 tx_info.period = period; in rtw8852a_bb_set_pmac_pkt_tx() [all …]
|
| H A D | rtw8852b.c | 1782 if (tx_info->mode == CONT_TX) in rtw8852b_stop_pmac_tx() 1784 else if (tx_info->mode == PKTS_TX) in rtw8852b_stop_pmac_tx() 1793 u32 pkt_cnt = tx_info->tx_cnt; in rtw8852b_start_pmac_tx() 1794 u16 period = tx_info->period; in rtw8852b_start_pmac_tx() 1818 if (!tx_info->en_pmac_tx) { in rtw8852b_bb_set_pmac_tx() 1845 tx_info.en_pmac_tx = enable; in rtw8852b_bb_set_pmac_pkt_tx() 1846 tx_info.is_cck = 0; in rtw8852b_bb_set_pmac_pkt_tx() 1847 tx_info.mode = PKTS_TX; in rtw8852b_bb_set_pmac_pkt_tx() 1848 tx_info.tx_cnt = tx_cnt; in rtw8852b_bb_set_pmac_pkt_tx() 1849 tx_info.period = period; in rtw8852b_bb_set_pmac_pkt_tx() [all …]
|
| H A D | rtw8852a.h | 99 struct rtw8852a_bb_pmac_info *tx_info,
|
| /freebsd-14.2/sys/dev/mana/ |
| H A D | mana_en.c | 350 struct mana_send_buf_info *tx_info, in mana_tx_map_mbuf() argument 387 tx_info->mbuf = *m_head; in mana_tx_map_mbuf() 403 if (tx_info->mbuf) { in mana_tx_unmap_mbuf() 404 m_freem(tx_info->mbuf); in mana_tx_unmap_mbuf() 405 tx_info->mbuf = NULL; in mana_tx_unmap_mbuf() 491 struct mana_send_buf_info *tx_info; in mana_xmit() local 631 mana_tx_unmap_mbuf(apc, tx_info); in mana_xmit() 1421 struct mana_send_buf_info *tx_info; in mana_poll_tx_cq() local 1506 if (!tx_info->mbuf) { in mana_poll_tx_cq() 1517 wqe_info = &tx_info->wqe_inf; in mana_poll_tx_cq() [all …]
|
| /freebsd-14.2/sys/contrib/dev/mediatek/mt76/mt7915/ |
| H A D | mac.c | 752 struct mt76_tx_info *tx_info) in mt7915_tx_prepare_skb() argument 761 int id, i, nbuf = tx_info->nbuf - 1; in mt7915_tx_prepare_skb() 765 if (unlikely(tx_info->skb->len <= ETH_HLEN)) in mt7915_tx_prepare_skb() 783 t->skb = tx_info->skb; in mt7915_tx_prepare_skb() 795 txp->buf[i] = cpu_to_le32(tx_info->buf[i + 1].addr); in mt7915_tx_prepare_skb() 796 txp->len[i] = cpu_to_le16(tx_info->buf[i + 1].len); in mt7915_tx_prepare_skb() 820 tx_info->skb = DMA_DUMMY_DATA; in mt7915_tx_prepare_skb() 823 tx_info->buf[1].len = MT_CT_PARSE_LEN; in mt7915_tx_prepare_skb() 824 tx_info->buf[1].skip_unmap = true; in mt7915_tx_prepare_skb() 825 tx_info->nbuf = MT_CT_DMA_BUF_NUM; in mt7915_tx_prepare_skb() [all …]
|
| /freebsd-14.2/sys/dev/al_eth/ |
| H A D | al_eth.c | 1157 struct al_eth_tx_buffer *tx_info; in al_eth_tx_do_cleanup() local 1162 if (tx_info->tx_descs > total_done) in al_eth_tx_do_cleanup() 1165 mbuf = tx_info->m; in al_eth_tx_do_cleanup() 1167 tx_info->m = NULL; in al_eth_tx_do_cleanup() 1176 total_done -= tx_info->tx_descs; in al_eth_tx_do_cleanup() 1293 struct al_eth_tx_buffer *tx_info; in al_eth_xmit_mbuf() local 1325 tx_info = &tx_ring->tx_buffer_info[next_to_use]; in al_eth_xmit_mbuf() 1326 tx_info->m = m; in al_eth_xmit_mbuf() 1327 hal_pkt = &tx_info->hal_pkt; in al_eth_xmit_mbuf() 1368 al_eth_tx_csum(tx_ring, tx_info, hal_pkt, m); in al_eth_xmit_mbuf() [all …]
|
| /freebsd-14.2/sys/contrib/dev/mediatek/mt76/mt7996/ |
| H A D | mac.c | 935 struct mt76_tx_info *tx_info) in mt7996_tx_prepare_skb() argument 944 int id, i, pid, nbuf = tx_info->nbuf - 1; in mt7996_tx_prepare_skb() 948 if (unlikely(tx_info->skb->len <= ETH_HLEN)) in mt7996_tx_prepare_skb() 964 t->skb = tx_info->skb; in mt7996_tx_prepare_skb() 970 pid = mt76_tx_status_skb_add(mdev, wcid, tx_info->skb); in mt7996_tx_prepare_skb() 976 txp->fw.buf[i] = cpu_to_le32(tx_info->buf[i + 1].addr); in mt7996_tx_prepare_skb() 977 txp->fw.len[i] = cpu_to_le16(tx_info->buf[i + 1].len); in mt7996_tx_prepare_skb() 1001 tx_info->skb = DMA_DUMMY_DATA; in mt7996_tx_prepare_skb() 1004 tx_info->buf[1].len = MT_CT_PARSE_LEN; in mt7996_tx_prepare_skb() 1005 tx_info->buf[1].skip_unmap = true; in mt7996_tx_prepare_skb() [all …]
|
| /freebsd-14.2/sys/contrib/dev/iwlwifi/mvm/ |
| H A D | tx.c | 1927 struct ieee80211_tx_info *tx_info, u32 rate, in iwl_mvm_tx_reclaim() argument 2006 tx_info->status.status_driver_data[0] = in iwl_mvm_tx_reclaim() 2008 tx_info->status.status_driver_data[0]); in iwl_mvm_tx_reclaim() 2009 tx_info->status.status_driver_data[1] = (void *)(uintptr_t)rate; in iwl_mvm_tx_reclaim() 2026 memcpy(&info->status, &tx_info->status, in iwl_mvm_tx_reclaim() 2027 sizeof(tx_info->status)); in iwl_mvm_tx_reclaim() 2050 tx_info->band = chanctx_conf->def.chan->band; in iwl_mvm_tx_reclaim() 2051 iwl_mvm_hwrate_to_tx_status(mvm->fw, rate, tx_info); in iwl_mvm_tx_reclaim() 2054 iwl_mvm_rs_tx_status(mvm, sta, tid, tx_info, false); in iwl_mvm_tx_reclaim() 2276 struct ieee80211_tx_info tx_info = {}; in iwl_mvm_flush_sta_tids() local [all …]
|