| /freebsd/sys/contrib/dev/mediatek/mt76/mt7615/ |
| H A D | pci_mac.c | 21 mt7615_write_fw_txp(struct mt7615_dev *dev, struct mt76_tx_info *tx_info, in mt7615_write_fw_txp() argument 24 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx_info->skb->data; in mt7615_write_fw_txp() 25 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(tx_info->skb); in mt7615_write_fw_txp() 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() [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/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 = dev->mphy.q_tx[qid]->ep; 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 | 609 struct sk_buff *skb, u32 tx_info) in mt76_dma_tx_queue_skb_raw() argument 629 mt76_dma_add_buf(dev, q, &buf, 1, tx_info, skb, NULL); in mt76_dma_tx_queue_skb_raw() 648 struct mt76_tx_info tx_info = { in mt76_dma_tx_queue_skb() local 681 tx_info.buf[n].addr = t->dma_addr; in mt76_dma_tx_queue_skb() 682 tx_info.buf[n++].len = dev->drv->txwi_size; in mt76_dma_tx_queue_skb() 683 tx_info.buf[n].addr = addr; in mt76_dma_tx_queue_skb() 684 tx_info.buf[n++].len = len; in mt76_dma_tx_queue_skb() 687 if (n == ARRAY_SIZE(tx_info.buf)) in mt76_dma_tx_queue_skb() 695 tx_info.buf[n].addr = addr; in mt76_dma_tx_queue_skb() 696 tx_info.buf[n++].len = iter->len; 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 | 522 struct mt76_tx_info tx_info = { in mt76s_tx_queue_skb() local 533 err = dev->drv->tx_prepare_skb(dev, NULL, qid, wcid, sta, &tx_info); in mt76s_tx_queue_skb() 537 q->entry[q->head].skb = tx_info.skb; in mt76s_tx_queue_skb() 551 struct sk_buff *skb, u32 tx_info) in mt76s_tx_queue_skb_raw() argument
|
| 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/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 = NULL; in mt7921e_tx_prepare_skb()
|
| H A D | mac.c | 495 __le32 *tx_info = (__le32 *)(data + sizeof(*free)); in mt7921_mac_tx_free() local 497 __le32 *tx_info = (__le32 *)((u8 *)data + sizeof(*free)); in mt7921_mac_tx_free() local 518 if (WARN_ON_ONCE((void *)&tx_info[count] > end)) in mt7921_mac_tx_free() 522 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()
|
| /freebsd/sys/dev/mlx4/mlx4_en/ |
| H A D | mlx4_en_tx.c | 98 ring->tx_info = kzalloc_node(tmp, GFP_KERNEL, node); in mlx4_en_create_tx_ring() 99 if (!ring->tx_info) { in mlx4_en_create_tx_ring() 100 ring->tx_info = kzalloc(tmp, GFP_KERNEL); in mlx4_en_create_tx_ring() 101 if (!ring->tx_info) { in mlx4_en_create_tx_ring() 110 &ring->tx_info[x].dma_map); in mlx4_en_create_tx_ring() 114 ring->tx_info[x].dma_map); in mlx4_en_create_tx_ring() 121 ring->tx_info, tmp); in mlx4_en_create_tx_ring() 180 bus_dmamap_destroy(ring->dma_tag, ring->tx_info[x].dma_map); in mlx4_en_create_tx_ring() 182 vfree(ring->tx_info); in mlx4_en_create_tx_ring() 206 bus_dmamap_destroy(ring->dma_tag, ring->tx_info[x].dma_map); in mlx4_en_destroy_tx_ring() [all …]
|
| /freebsd/sys/contrib/dev/mediatek/mt76/mt7925/ |
| H A D | pci_mac.c | 11 struct mt76_tx_info *tx_info) in mt7925e_tx_prepare_skb() argument 14 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(tx_info->skb); in mt7925e_tx_prepare_skb() 21 if (unlikely(tx_info->skb->len <= ETH_HLEN)) in mt7925e_tx_prepare_skb() 28 t->skb = tx_info->skb; in mt7925e_tx_prepare_skb() 43 pid = mt76_tx_status_skb_add(mdev, wcid, tx_info->skb); in mt7925e_tx_prepare_skb() 44 mt7925_mac_write_txwi(mdev, txwi_ptr, tx_info->skb, wcid, key, in mt7925e_tx_prepare_skb() 49 mt76_connac_write_hw_txp(mdev, tx_info, txp, id); in mt7925e_tx_prepare_skb() 51 tx_info->skb = NULL; in mt7925e_tx_prepare_skb()
|
| /freebsd/sys/dev/ena/ |
| H A D | ena_datapath.c | 265 struct ena_tx_buffer *tx_info; in ena_tx_cleanup() local 272 tx_info = &tx_ring->tx_buffer_info[req_id]; in ena_tx_cleanup() 274 mbuf = tx_info->mbuf; in ena_tx_cleanup() 276 tx_info->mbuf = NULL; in ena_tx_cleanup() 277 atomic_store_64(&tx_info->timestamp, 0); in ena_tx_cleanup() 279 bus_dmamap_sync(adapter->tx_buf_tag, tx_info->dmamap, in ena_tx_cleanup() 281 bus_dmamap_unload(adapter->tx_buf_tag, tx_info->dmamap); in ena_tx_cleanup() 288 total_done += tx_info->tx_descs; in ena_tx_cleanup() 855 ena_tx_map_mbuf(struct ena_ring *tx_ring, struct ena_tx_buffer *tx_info, in ena_tx_map_mbuf() argument 867 tx_info->mbuf = mbuf; in ena_tx_map_mbuf() [all …]
|
| H A D | ena_netmap.c | 392 struct ena_tx_buffer *tx_info; in ena_netmap_tx_frame() local 409 tx_info = &tx_ring->tx_buffer_info[req_id]; in ena_netmap_tx_frame() 410 tx_info->num_of_bufs = 0; in ena_netmap_tx_frame() 411 tx_info->nm_info.sockets_used = 0; in ena_netmap_tx_frame() 413 rc = ena_netmap_tx_map_slots(ctx, tx_info, &push_hdr, &header_len, in ena_netmap_tx_frame() 421 ena_tx_ctx.ena_bufs = tx_info->bufs; in ena_netmap_tx_frame() 423 ena_tx_ctx.num_bufs = tx_info->num_of_bufs; in ena_netmap_tx_frame() 447 ena_netmap_unmap_last_socket_chain(ctx, tx_info); in ena_netmap_tx_frame() 458 tx_info->tx_descs = nb_hw_desc; in ena_netmap_tx_frame() 462 for (unsigned int i = 0; i < tx_info->num_of_bufs; i++) in ena_netmap_tx_frame() [all …]
|
| /freebsd/sys/contrib/dev/broadcom/brcm80211/brcmsmac/ |
| H A D | ampdu.c | 492 struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(p); in brcms_c_ampdu_add_frame() local 493 struct ieee80211_tx_rate *txrate = tx_info->status.rates; in brcms_c_ampdu_add_frame() 600 struct ieee80211_tx_info *tx_info; in brcms_c_ampdu_finalize() local 651 tx_info = IEEE80211_SKB_CB(first); in brcms_c_ampdu_finalize() 652 txrate = tx_info->status.rates; in brcms_c_ampdu_finalize() 788 struct ieee80211_tx_info *tx_info, in brcms_c_ampdu_rate_status() argument 791 struct ieee80211_tx_rate *txrate = tx_info->status.rates; in brcms_c_ampdu_rate_status() 821 struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(p); in brcms_c_ampdu_dotxstatus_complete() local 896 tx_info = IEEE80211_SKB_CB(p); in brcms_c_ampdu_dotxstatus_complete() 933 brcms_c_ampdu_rate_status(wlc, tx_info, txs, in brcms_c_ampdu_dotxstatus_complete() [all …]
|
| /freebsd/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/sys/contrib/dev/rtw89/ |
| H A D | rtw8852a.c | 1610 struct rtw8852a_bb_pmac_info *tx_info, in rtw8852a_stop_pmac_tx() argument 1614 if (tx_info->mode == CONT_TX) in rtw8852a_stop_pmac_tx() 1617 else if (tx_info->mode == PKTS_TX) in rtw8852a_stop_pmac_tx() 1623 struct rtw8852a_bb_pmac_info *tx_info, in rtw8852a_start_pmac_tx() argument 1626 enum rtw8852a_pmac_mode mode = tx_info->mode; in rtw8852a_start_pmac_tx() 1627 u32 pkt_cnt = tx_info->tx_cnt; in rtw8852a_start_pmac_tx() 1628 u16 period = tx_info->period; in rtw8852a_start_pmac_tx() 1630 if (mode == CONT_TX && !tx_info->is_cck) { in rtw8852a_start_pmac_tx() 1648 struct rtw8852a_bb_pmac_info *tx_info, in rtw8852a_bb_set_pmac_tx() argument 1651 if (!tx_info->en_pmac_tx) { in rtw8852a_bb_set_pmac_tx() [all …]
|
| H A D | rtw8852b_common.c | 1443 struct rtw8852bx_bb_pmac_info *tx_info, in rtw8852bx_stop_pmac_tx() argument 1447 if (tx_info->mode == CONT_TX) in rtw8852bx_stop_pmac_tx() 1449 else if (tx_info->mode == PKTS_TX) in rtw8852bx_stop_pmac_tx() 1454 struct rtw8852bx_bb_pmac_info *tx_info, in rtw8852bx_start_pmac_tx() argument 1457 enum rtw8852bx_pmac_mode mode = tx_info->mode; in rtw8852bx_start_pmac_tx() 1458 u32 pkt_cnt = tx_info->tx_cnt; in rtw8852bx_start_pmac_tx() 1459 u16 period = tx_info->period; in rtw8852bx_start_pmac_tx() 1461 if (mode == CONT_TX && !tx_info->is_cck) { in rtw8852bx_start_pmac_tx() 1479 struct rtw8852bx_bb_pmac_info *tx_info, in rtw8852bx_bb_set_pmac_tx() argument 1482 if (!tx_info->en_pmac_tx) { in rtw8852bx_bb_set_pmac_tx() [all …]
|
| /freebsd/sys/contrib/dev/mediatek/mt76/mt7996/ |
| H A D | mac.c | 1046 struct mt76_tx_info *tx_info) in mt7996_tx_prepare_skb() argument 1048 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx_info->skb->data; in mt7996_tx_prepare_skb() 1050 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(tx_info->skb); in mt7996_tx_prepare_skb() 1057 int id, i, pid, nbuf = tx_info->nbuf - 1; in mt7996_tx_prepare_skb() 1063 if (unlikely(tx_info->skb->len <= ETH_HLEN)) in mt7996_tx_prepare_skb() 1070 likely(tx_info->skb->protocol != cpu_to_be16(ETH_P_PAE))) { in mt7996_tx_prepare_skb() 1071 u8 tid = tx_info->skb->priority & IEEE80211_QOS_CTL_TID_MASK; in mt7996_tx_prepare_skb() 1094 t->skb = tx_info->skb; in mt7996_tx_prepare_skb() 1104 if (tx_info->skb->protocol == cpu_to_be16(ETH_P_PAE) && sta->mlo) { in mt7996_tx_prepare_skb() 1105 struct ieee80211_hdr *hdr = (void *)tx_info->skb->data; in mt7996_tx_prepare_skb() [all …]
|
| /freebsd/sys/dev/mana/ |
| H A D | mana_en.c | 337 struct mana_send_buf_info *tx_info, in mana_tx_map_mbuf() argument 346 err = bus_dmamap_load_mbuf_sg(apc->tx_buf_tag, tx_info->dma_map, in mana_tx_map_mbuf() 364 tx_info->dma_map, m, segs, &nsegs, BUS_DMA_NOWAIT); in mana_tx_map_mbuf() 374 tx_info->mbuf = *m_head; in mana_tx_map_mbuf() 376 bus_dmamap_sync(apc->tx_buf_tag, tx_info->dma_map, in mana_tx_map_mbuf() 385 struct mana_send_buf_info *tx_info) in mana_tx_unmap_mbuf() argument 387 bus_dmamap_sync(apc->tx_buf_tag, tx_info->dma_map, in mana_tx_unmap_mbuf() 389 bus_dmamap_unload(apc->tx_buf_tag, tx_info->dma_map); in mana_tx_unmap_mbuf() 390 if (tx_info->mbuf) { in mana_tx_unmap_mbuf() 391 m_freem(tx_info->mbuf); in mana_tx_unmap_mbuf() [all …]
|
| /freebsd/sys/contrib/dev/mediatek/mt76/mt7915/ |
| H A D | mac.c | 752 struct mt76_tx_info *tx_info) in mt7915_tx_prepare_skb() argument 754 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx_info->skb->data; in mt7915_tx_prepare_skb() 756 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(tx_info->skb); in mt7915_tx_prepare_skb() 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() 789 pid = mt76_tx_status_skb_add(mdev, wcid, tx_info->skb); in mt7915_tx_prepare_skb() 790 mt7915_mac_write_txwi(mdev, txwi_ptr, tx_info->skb, wcid, pid, key, 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() [all …]
|
| /freebsd/sys/contrib/dev/athk/ath12k/ |
| H A D | dp_tx.c | 18 struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); in ath12k_dp_tx_get_encap_type() local 23 if (tx_info->flags & IEEE80211_TX_CTL_HW_80211_ENCAP) in ath12k_dp_tx_get_encap_type()
|
| /freebsd/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 1160 tx_info = &tx_ring->tx_buffer_info[next_to_clean]; in al_eth_tx_do_cleanup() 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() 1173 bus_dmamap_unload(tx_ring->dma_buf_tag, tx_info->dma_map); in al_eth_tx_do_cleanup() 1176 total_done -= tx_info->tx_descs; in al_eth_tx_do_cleanup() 1193 al_eth_tx_csum(struct al_eth_ring *tx_ring, struct al_eth_tx_buffer *tx_info, in al_eth_tx_csum() argument 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() [all …]
|
| /freebsd/sys/contrib/dev/iwlwifi/mvm/ |
| H A D | tx.c | 1899 struct ieee80211_tx_info *tx_info, __le32 rate, in iwl_mvm_tx_reclaim() argument 1980 tx_info->status.status_driver_data[0] = in iwl_mvm_tx_reclaim() 1982 tx_info->status.status_driver_data[0]); in iwl_mvm_tx_reclaim() 1984 tx_info->status.status_driver_data[1] = in iwl_mvm_tx_reclaim() 2002 memcpy(&info->status, &tx_info->status, in iwl_mvm_tx_reclaim() 2003 sizeof(tx_info->status)); in iwl_mvm_tx_reclaim() 2026 tx_info->band = chanctx_conf->def.chan->band; in iwl_mvm_tx_reclaim() 2027 iwl_mvm_hwrate_to_tx_status(mvm, rate, tx_info); in iwl_mvm_tx_reclaim() 2030 iwl_mvm_rs_tx_status(mvm, sta, tid, tx_info, false); in iwl_mvm_tx_reclaim() 2252 struct ieee80211_tx_info tx_info = {}; in iwl_mvm_flush_sta_tids() local [all …]
|