| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | en_tx.c | 72 ring->tx_info = kvmalloc_node(tmp, GFP_KERNEL, node); in mlx4_en_create_tx_ring() 73 if (!ring->tx_info) { in mlx4_en_create_tx_ring() 79 ring->tx_info, tmp); in mlx4_en_create_tx_ring() 157 kvfree(ring->tx_info); in mlx4_en_create_tx_ring() 158 ring->tx_info = NULL; in mlx4_en_create_tx_ring() 180 kvfree(ring->tx_info); in mlx4_en_destroy_tx_ring() 181 ring->tx_info = NULL; in mlx4_en_destroy_tx_ring() 197 memset(ring->tx_info, 0, ring->size * sizeof(struct mlx4_en_tx_info)); in mlx4_en_activate_tx_ring() 243 struct mlx4_en_tx_info *tx_info = &ring->tx_info[index]; in mlx4_en_stamp_wqe() local 250 (tx_info->nr_txbb << LOG_TXBB_SIZE) <= end)) { in mlx4_en_stamp_wqe() [all …]
|
| /linux/drivers/net/wireless/silabs/wfx/ |
| H A D | data_tx.c | 213 struct ieee80211_tx_info *tx_info; in wfx_skb_tx_priv() local 217 tx_info = IEEE80211_SKB_CB(skb); in wfx_skb_tx_priv() 218 return (struct wfx_tx_priv *)tx_info->rate_driver_data; in wfx_skb_tx_priv() 295 static u8 wfx_tx_get_retry_policy_id(struct wfx_vif *wvif, struct ieee80211_tx_info *tx_info) in wfx_tx_get_retry_policy_id() argument 300 ret = wfx_tx_policy_get(wvif, tx_info->driver_rates, &tx_policy_renew); in wfx_tx_get_retry_policy_id() 312 static int wfx_tx_get_frame_format(struct ieee80211_tx_info *tx_info) in wfx_tx_get_frame_format() argument 314 if (!(tx_info->driver_rates[0].flags & IEEE80211_TX_RC_MCS)) in wfx_tx_get_frame_format() 316 else if (!(tx_info->driver_rates[0].flags & IEEE80211_TX_RC_GREEN_FIELD)) in wfx_tx_get_frame_format() 339 struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); in wfx_tx_inner() local 340 struct ieee80211_key_conf *hw_key = tx_info->control.hw_key; in wfx_tx_inner() [all …]
|
| H A D | queue.c | 118 struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); in wfx_tx_queues_put() local 120 if (tx_info->flags & IEEE80211_TX_CTL_TX_OFFCHAN) in wfx_tx_queues_put() 122 else if (tx_info->flags & IEEE80211_TX_CTL_SEND_AFTER_DTIM) in wfx_tx_queues_put()
|
| /linux/drivers/net/ethernet/amazon/ena/ |
| H A D | ena_xdp.c | 10 struct ena_tx_buffer *tx_info; in validate_xdp_req_id() local 12 tx_info = &tx_ring->tx_buffer_info[req_id]; in validate_xdp_req_id() 13 if (likely(tx_info->xdpf)) in validate_xdp_req_id() 16 return handle_invalid_req_id(tx_ring, req_id, tx_info, true); in validate_xdp_req_id() 20 struct ena_tx_buffer *tx_info, in ena_xdp_tx_map_frame() argument 31 tx_info->xdpf = xdpf; in ena_xdp_tx_map_frame() 32 data = tx_info->xdpf->data; in ena_xdp_tx_map_frame() 33 size = tx_info->xdpf->len; in ena_xdp_tx_map_frame() 55 tx_info->map_linear_data = 0; in ena_xdp_tx_map_frame() 57 ena_buf = tx_info->bufs; in ena_xdp_tx_map_frame() [all …]
|
| H A D | ena_netdev.c | 119 struct ena_tx_buffer *tx_info, in ena_xmit_common() argument 156 tx_info->tx_descs = nb_hw_desc; in ena_xmit_common() 157 tx_info->total_tx_size = bytes; in ena_xmit_common() 158 tx_info->last_jiffies = jiffies; in ena_xmit_common() 159 tx_info->print_once = 0; in ena_xmit_common() 663 struct ena_tx_buffer *tx_info) in ena_unmap_tx_buff() argument 669 ena_buf = tx_info->bufs; in ena_unmap_tx_buff() 670 cnt = tx_info->num_of_bufs; in ena_unmap_tx_buff() 675 if (tx_info->map_linear_data) { in ena_unmap_tx_buff() 704 struct ena_tx_buffer *tx_info = &tx_ring->tx_buffer_info[i]; in ena_free_tx_bufs() local [all …]
|
| H A D | ena_netdev.h | 430 struct ena_tx_buffer *tx_info, bool is_xdp); 449 struct ena_tx_buffer *tx_info, 454 struct ena_tx_buffer *tx_info);
|
| /linux/drivers/net/wireless/marvell/mwifiex/ |
| H A D | sta_tx.c | 37 struct mwifiex_txinfo *tx_info = MWIFIEX_SKB_TXCB(skb); in mwifiex_process_sta_txpd() local 61 if (tx_info->flags & MWIFIEX_BUF_FLAG_EAPOL_TX_STATUS || in mwifiex_process_sta_txpd() 62 tx_info->flags & MWIFIEX_BUF_FLAG_ACTION_TX_STATUS) { in mwifiex_process_sta_txpd() 63 local_tx_pd->tx_token_id = tx_info->ack_frame_id; in mwifiex_process_sta_txpd() 85 if (tx_info->flags & MWIFIEX_BUF_FLAG_TDLS_PKT) in mwifiex_process_sta_txpd() 122 struct mwifiex_txinfo *tx_info = NULL; in mwifiex_send_null_packet() local 141 tx_info = MWIFIEX_SKB_TXCB(skb); in mwifiex_send_null_packet() 142 memset(tx_info, 0, sizeof(*tx_info)); in mwifiex_send_null_packet() 143 tx_info->bss_num = priv->bss_num; in mwifiex_send_null_packet() 144 tx_info->bss_type = priv->bss_type; in mwifiex_send_null_packet() [all …]
|
| H A D | uap_txrx.c | 28 struct mwifiex_txinfo *tx_info; in mwifiex_uap_del_tx_pkts_in_ralist() local 36 tx_info = MWIFIEX_SKB_TXCB(skb); in mwifiex_uap_del_tx_pkts_in_ralist() 37 if (tx_info->flags & MWIFIEX_BUF_FLAG_BRIDGED_PKT) { in mwifiex_uap_del_tx_pkts_in_ralist() 88 struct mwifiex_txinfo *tx_info; in mwifiex_uap_queue_bridged_pkt() local 180 tx_info = MWIFIEX_SKB_TXCB(skb); in mwifiex_uap_queue_bridged_pkt() 181 memset(tx_info, 0, sizeof(*tx_info)); in mwifiex_uap_queue_bridged_pkt() 182 tx_info->bss_num = priv->bss_num; in mwifiex_uap_queue_bridged_pkt() 183 tx_info->bss_type = priv->bss_type; in mwifiex_uap_queue_bridged_pkt() 184 tx_info->flags |= MWIFIEX_BUF_FLAG_BRIDGED_PKT; in mwifiex_uap_queue_bridged_pkt() 205 tx_info->pkt_len = skb->len; in mwifiex_uap_queue_bridged_pkt() [all …]
|
| H A D | tdls.c | 36 struct mwifiex_txinfo *tx_info; in mwifiex_restore_tdls_packets() local 48 tx_info = MWIFIEX_SKB_TXCB(skb); in mwifiex_restore_tdls_packets() 55 tx_info->flags |= MWIFIEX_BUF_FLAG_TDLS_PKT; in mwifiex_restore_tdls_packets() 60 tx_info->flags &= ~MWIFIEX_BUF_FLAG_TDLS_PKT; in mwifiex_restore_tdls_packets() 634 struct mwifiex_txinfo *tx_info; in mwifiex_send_tdls_data_frame() local 710 tx_info = MWIFIEX_SKB_TXCB(skb); in mwifiex_send_tdls_data_frame() 711 memset(tx_info, 0, sizeof(*tx_info)); in mwifiex_send_tdls_data_frame() 712 tx_info->bss_num = priv->bss_num; in mwifiex_send_tdls_data_frame() 713 tx_info->bss_type = priv->bss_type; in mwifiex_send_tdls_data_frame() 819 struct mwifiex_txinfo *tx_info; in mwifiex_send_tdls_action_frame() local [all …]
|
| H A D | util.h | 22 struct mwifiex_txinfo tx_info; member 53 return &cb->tx_info; in MWIFIEX_SKB_TXCB()
|
| H A D | main.c | 829 struct mwifiex_txinfo *tx_info, *orig_tx_info; in mwifiex_clone_skb_for_tx_status() local 841 tx_info = MWIFIEX_SKB_TXCB(skb); in mwifiex_clone_skb_for_tx_status() 842 tx_info->ack_frame_id = id; in mwifiex_clone_skb_for_tx_status() 843 tx_info->flags |= flag; in mwifiex_clone_skb_for_tx_status() 873 struct mwifiex_txinfo *tx_info; in mwifiex_hard_start_xmit() local 913 tx_info = MWIFIEX_SKB_TXCB(skb); in mwifiex_hard_start_xmit() 914 memset(tx_info, 0, sizeof(*tx_info)); in mwifiex_hard_start_xmit() 915 tx_info->bss_num = priv->bss_num; in mwifiex_hard_start_xmit() 916 tx_info->bss_type = priv->bss_type; in mwifiex_hard_start_xmit() 917 tx_info->pkt_len = skb->len; in mwifiex_hard_start_xmit()
|
| /linux/drivers/net/wireless/ath/ath9k/ |
| H A D | xmit.c | 147 struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); in get_frame_info() local 149 sizeof(tx_info->status.status_driver_data)); in get_frame_info() 150 return (struct ath_frame_info *) &tx_info->status.status_driver_data[0]; in get_frame_info() 163 struct ieee80211_tx_info *tx_info) in ath_merge_ratetbl() argument 175 if (tx_info->control.rates[0].idx < 0 || in ath_merge_ratetbl() 176 tx_info->control.rates[0].count == 0) in ath_merge_ratetbl() 180 bf->rates[0] = tx_info->control.rates[0]; in ath_merge_ratetbl() 187 if (tx_info->control.use_rts) in ath_merge_ratetbl() 189 else if (tx_info->control.use_cts_prot) in ath_merge_ratetbl() 201 struct ieee80211_tx_info *tx_info; in ath_set_rates() local [all …]
|
| H A D | tx99.c | 55 struct ieee80211_tx_info *tx_info; in ath9k_build_tx99_skb() local 80 tx_info = IEEE80211_SKB_CB(skb); in ath9k_build_tx99_skb() 81 memset(tx_info, 0, sizeof(*tx_info)); in ath9k_build_tx99_skb() 82 rate = &tx_info->control.rates[0]; in ath9k_build_tx99_skb() 83 tx_info->band = sc->cur_chan->chandef.chan->band; in ath9k_build_tx99_skb() 84 tx_info->flags = IEEE80211_TX_CTL_NO_ACK; in ath9k_build_tx99_skb() 85 tx_info->control.vif = sc->tx99_vif; in ath9k_build_tx99_skb()
|
| H A D | htc_drv_txrx.c | 219 struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); in ath9k_htc_tx_mgmt() local 253 mgmt_hdr.keyix = tx_info->control.hw_key->hw_key_idx; in ath9k_htc_tx_mgmt() 266 struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); in ath9k_htc_tx_data() local 292 if (tx_info->flags & IEEE80211_TX_CTL_AMPDU) { in ath9k_htc_tx_data() 304 if (!(tx_info->control.flags & IEEE80211_TX_CTRL_DONT_REORDER) && in ath9k_htc_tx_data() 325 tx_hdr.keyix = tx_info->control.hw_key->hw_key_idx; in ath9k_htc_tx_data() 346 struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); in ath9k_htc_tx_start() local 347 struct ieee80211_vif *vif = tx_info->control.vif; in ath9k_htc_tx_start() 451 struct ieee80211_tx_info *tx_info; in ath9k_htc_tx_process() local 466 tx_info = IEEE80211_SKB_CB(skb); in ath9k_htc_tx_process() [all …]
|
| H A D | link.c | 204 struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); in ath_paprd_send_frame() local 213 memset(tx_info, 0, sizeof(*tx_info)); in ath_paprd_send_frame() 214 tx_info->band = sc->cur_chandef.chan->band; in ath_paprd_send_frame() 215 tx_info->flags |= IEEE80211_TX_CTL_NO_ACK; in ath_paprd_send_frame() 216 tx_info->control.rates[0].idx = 0; in ath_paprd_send_frame() 217 tx_info->control.rates[0].count = 1; in ath_paprd_send_frame() 218 tx_info->control.rates[0].flags = IEEE80211_TX_RC_MCS; in ath_paprd_send_frame() 219 tx_info->control.rates[1].idx = -1; in ath_paprd_send_frame()
|
| H A D | common.c | 278 struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); in ath9k_cmn_get_hw_crypto_keytype() local 280 if (tx_info->control.hw_key) { in ath9k_cmn_get_hw_crypto_keytype() 281 switch (tx_info->control.hw_key->cipher) { in ath9k_cmn_get_hw_crypto_keytype()
|
| /linux/drivers/net/wireless/ralink/rt2x00/ |
| H A D | rt2x00queue.c | 180 struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); in rt2x00queue_create_tx_descriptor_seq() local 182 struct rt2x00_intf *intf = vif_to_intf(tx_info->control.vif); in rt2x00queue_create_tx_descriptor_seq() 185 if (!(tx_info->flags & IEEE80211_TX_CTL_ASSIGN_SEQ)) in rt2x00queue_create_tx_descriptor_seq() 232 struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); in rt2x00queue_create_tx_descriptor_plcp() local 233 struct ieee80211_tx_rate *txrate = &tx_info->control.rates[0]; in rt2x00queue_create_tx_descriptor_plcp() 297 struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); in rt2x00queue_create_tx_descriptor_ht() local 298 struct ieee80211_tx_rate *txrate = &tx_info->control.rates[0]; in rt2x00queue_create_tx_descriptor_ht() 330 if (!(tx_info->flags & IEEE80211_TX_CTL_FIRST_FRAGMENT)) in rt2x00queue_create_tx_descriptor_ht() 342 if (tx_info->flags & IEEE80211_TX_CTL_STBC) in rt2x00queue_create_tx_descriptor_ht() 349 if (tx_info->flags & IEEE80211_TX_CTL_AMPDU && in rt2x00queue_create_tx_descriptor_ht() [all …]
|
| H A D | rt2x00mac.c | 23 struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(frag_skb); in rt2x00mac_tx_rts_cts() local 29 if (tx_info->control.rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT) in rt2x00mac_tx_rts_cts() 57 if (tx_info->control.rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT) in rt2x00mac_tx_rts_cts() 71 if (tx_info->control.rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT) in rt2x00mac_tx_rts_cts() 72 ieee80211_ctstoself_get(rt2x00dev->hw, tx_info->control.vif, in rt2x00mac_tx_rts_cts() 73 frag_skb->data, data_length, tx_info, in rt2x00mac_tx_rts_cts() 76 ieee80211_rts_get(rt2x00dev->hw, tx_info->control.vif, in rt2x00mac_tx_rts_cts() 77 frag_skb->data, data_length, tx_info, in rt2x00mac_tx_rts_cts() 94 struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); in rt2x00mac_tx() local 110 if (tx_info->flags & IEEE80211_TX_CTL_SEND_AFTER_DTIM && in rt2x00mac_tx() [all …]
|
| H A D | rt2x00crypto.c | 39 struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); in rt2x00crypto_create_tx_descriptor() local 40 struct ieee80211_key_conf *hw_key = tx_info->control.hw_key; in rt2x00crypto_create_tx_descriptor() 66 struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); in rt2x00crypto_tx_overhead() local 67 struct ieee80211_key_conf *key = tx_info->control.hw_key; in rt2x00crypto_tx_overhead()
|
| /linux/net/bridge/ |
| H A D | br_cfm_netlink.c | 321 struct br_cfm_cc_ccm_tx_info tx_info; in br_cc_ccm_tx_parse() local 363 memset(&tx_info, 0, sizeof(tx_info)); in br_cc_ccm_tx_parse() 366 nla_memcpy(&tx_info.dmac.addr, in br_cc_ccm_tx_parse() 368 sizeof(tx_info.dmac.addr)); in br_cc_ccm_tx_parse() 369 tx_info.seq_no_update = nla_get_u32(tb[IFLA_BRIDGE_CFM_CC_CCM_TX_SEQ_NO_UPDATE]); in br_cc_ccm_tx_parse() 370 tx_info.period = nla_get_u32(tb[IFLA_BRIDGE_CFM_CC_CCM_TX_PERIOD]); in br_cc_ccm_tx_parse() 371 tx_info.if_tlv = nla_get_u32(tb[IFLA_BRIDGE_CFM_CC_CCM_TX_IF_TLV]); in br_cc_ccm_tx_parse() 372 tx_info.if_tlv_value = nla_get_u8(tb[IFLA_BRIDGE_CFM_CC_CCM_TX_IF_TLV_VALUE]); in br_cc_ccm_tx_parse() 373 tx_info.port_tlv = nla_get_u32(tb[IFLA_BRIDGE_CFM_CC_CCM_TX_PORT_TLV]); in br_cc_ccm_tx_parse() 374 tx_info.port_tlv_value = nla_get_u8(tb[IFLA_BRIDGE_CFM_CC_CCM_TX_PORT_TLV_VALUE]); in br_cc_ccm_tx_parse() [all …]
|
| /linux/drivers/net/ethernet/brocade/bna/ |
| H A D | bnad.c | 828 tcb = bnad->tx_info[i].tcb[j]; in bnad_isr() 830 bnad_tx_complete(bnad, bnad->tx_info[i].tcb[j]); in bnad_isr() 955 bnad->tx_info[tx_id].tcb[tcb_id]; in bnad_cb_ethport_link_status() 1002 struct bnad_tx_info *tx_info = in bnad_cb_tcb_setup() local 1006 tx_info->tcb[tcb->id] = tcb; in bnad_cb_tcb_setup() 1012 struct bnad_tx_info *tx_info = in bnad_cb_tcb_destroy() local 1015 tx_info->tcb[tcb->id] = NULL; in bnad_cb_tcb_destroy() 1041 struct bnad_tx_info *tx_info = tx->priv; in bnad_cb_tx_stall() local 1047 tcb = tx_info->tcb[i]; in bnad_cb_tx_stall() 1059 struct bnad_tx_info *tx_info = tx->priv; in bnad_cb_tx_resume() local [all …]
|
| H A D | bnad_ethtool.c | 487 if (!bnad->tx_info[i].tx) in bnad_set_ringparam() 651 if (!bnad->tx_info[i].tx) in bnad_get_strings() 696 if (!bnad->tx_info[i].tx) in bnad_get_stats_count_locked() 774 if (!bnad->tx_info[i].tx) in bnad_per_q_stats_fill() 777 if (bnad->tx_info[i].tcb[j] && in bnad_per_q_stats_fill() 778 bnad->tx_info[i].tcb[j]->txq) { in bnad_per_q_stats_fill() 779 tcb = bnad->tx_info[i].tcb[j]; in bnad_per_q_stats_fill()
|
| /linux/drivers/net/ethernet/adaptec/ |
| H A D | starfire.c | 523 struct tx_ring_info tx_info[TX_RING_SIZE]; member 1166 memset(&np->tx_info[i], 0, sizeof(np->tx_info[i])); in init_ring() 1201 np->tx_info[entry].skb = skb; in start_tx() 1217 np->tx_info[entry].mapping = in start_tx() 1224 np->tx_info[entry].mapping = in start_tx() 1230 if (dma_mapping_error(&np->pci_dev->dev, np->tx_info[entry].mapping)) { in start_tx() 1235 np->tx_ring[entry].addr = cpu_to_dma(np->tx_info[entry].mapping); in start_tx() 1242 np->tx_info[entry].used_slots = TX_RING_SIZE - entry; in start_tx() 1243 np->cur_tx += np->tx_info[entry].used_slots; in start_tx() 1246 np->tx_info[entry].used_slots = 1; in start_tx() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlxsw/ |
| H A D | pci.c | 661 struct mlxsw_tx_info tx_info; in mlxsw_pci_cqe_sdq_handle() local 668 tx_info = mlxsw_skb_cb(elem_info->sdq.skb)->tx_info; in mlxsw_pci_cqe_sdq_handle() 674 if (unlikely(!tx_info.is_emad && in mlxsw_pci_cqe_sdq_handle() 678 tx_info.local_port); in mlxsw_pci_cqe_sdq_handle() 2102 const struct mlxsw_tx_info tx_info = txhdr_info->tx_info; in mlxsw_pci_txhdr_construct() local 2116 u16 fid = txhdr_info->max_fid + tx_info.local_port - 1; in mlxsw_pci_txhdr_construct() 2125 mlxsw_tx_hdr_port_mid_set(txhdr, tx_info.local_port); in mlxsw_pci_txhdr_construct() 2134 const struct mlxsw_tx_info *tx_info) in mlxsw_pci_sdq_pick() argument 2139 if (tx_info->is_emad) { in mlxsw_pci_sdq_pick() 2143 sdqn = 1 + (tx_info->local_port % ctl_sdq_count); in mlxsw_pci_sdq_pick() [all …]
|
| /linux/drivers/usb/cdns3/ |
| H A D | cdnsp-debug.h | 541 u64 deq, u32 tx_info) in cdnsp_decode_ep_context() argument 550 CTX_TO_MAX_ESIT_PAYLOAD_LO(tx_info); in cdnsp_decode_ep_context() 564 avg = EP_AVG_TRB_LENGTH(tx_info); in cdnsp_decode_ep_context()
|