Home
last modified time | relevance | path

Searched refs:txbd (Results 1 – 19 of 19) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/arc/
Demac_main.c119 struct arc_emac_bd *txbd = &priv->txbd[*txbd_dirty]; in arc_emac_tx_clean() local
122 unsigned int info = le32_to_cpu(txbd->info); in arc_emac_tx_clean()
124 if ((info & FOR_EMAC) || !txbd->data || !skb) in arc_emac_tx_clean()
150 txbd->data = 0; in arc_emac_tx_clean()
151 txbd->info = 0; in arc_emac_tx_clean()
474 memset(priv->txbd, 0, TX_RING_SZ); in arc_emac_open()
555 struct arc_emac_bd *txbd = &priv->txbd[i]; in arc_free_tx_queue() local
568 txbd->info = 0; in arc_free_tx_queue()
569 txbd->data = 0; in arc_free_tx_queue()
682 __le32 *info = &priv->txbd[*txbd_curr].info; in arc_emac_tx()
[all …]
Demac.h147 struct arc_emac_bd *txbd; member
/Linux-v5.4/drivers/net/ethernet/freescale/enetc/
Denetc.c51 static bool enetc_tx_csum(struct sk_buff *skb, union enetc_tx_bd *txbd) in enetc_tx_csum() argument
79 txbd->l3_csoff = enetc_txbd_l3_csoff(l3_start, l3_hsize, l3_flags); in enetc_tx_csum()
80 txbd->l4_csoff = l4_flags; in enetc_tx_csum()
116 union enetc_tx_bd *txbd; in enetc_map_tx_buffs() local
124 txbd = ENETC_TXBD(*tx_ring, i); in enetc_map_tx_buffs()
125 prefetchw(txbd); in enetc_map_tx_buffs()
159 *txbd = temp_bd; in enetc_map_tx_buffs()
165 txbd++; in enetc_map_tx_buffs()
170 txbd = ENETC_TXBD(*tx_ring, 0); in enetc_map_tx_buffs()
172 prefetchw(txbd); in enetc_map_tx_buffs()
[all …]
Denetc_hw.h378 static inline void enetc_clear_tx_bd(union enetc_tx_bd *txbd) in enetc_clear_tx_bd() argument
380 memset(txbd, 0, sizeof(*txbd)); in enetc_clear_tx_bd()
/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_xdp.c28 struct tx_bd *txbd; in bnxt_xmit_bd() local
35 txbd = &txr->tx_desc_ring[TX_RING(prod)][TX_IDX(prod)]; in bnxt_xmit_bd()
38 txbd->tx_bd_len_flags_type = cpu_to_le32(flags); in bnxt_xmit_bd()
39 txbd->tx_bd_opaque = prod; in bnxt_xmit_bd()
40 txbd->tx_bd_haddr = cpu_to_le64(mapping); in bnxt_xmit_bd()
Dbnxt.c348 struct tx_bd *txbd; in bnxt_start_xmit() local
380 txbd = &txr->tx_desc_ring[TX_RING(prod)][TX_IDX(prod)]; in bnxt_start_xmit()
382 txbd->tx_bd_opaque = prod; in bnxt_start_xmit()
446 txbd->tx_bd_len_flags_type = tx_push->tx_bd_len_flags_type; in bnxt_start_xmit()
447 txbd->tx_bd_haddr = txr->data_mapping; in bnxt_start_xmit()
449 txbd = &txr->tx_desc_ring[TX_RING(prod)][TX_IDX(prod)]; in bnxt_start_xmit()
450 memcpy(txbd, tx_push1, sizeof(*txbd)); in bnxt_start_xmit()
495 txbd->tx_bd_haddr = cpu_to_le64(mapping); in bnxt_start_xmit()
533 txbd->tx_bd_len_flags_type = cpu_to_le32(flags); in bnxt_start_xmit()
542 txbd = &txr->tx_desc_ring[TX_RING(prod)][TX_IDX(prod)]; in bnxt_start_xmit()
[all …]
/Linux-v5.4/drivers/net/wireless/quantenna/qtnfmac/pcie/
Dpearl_pcie.c348 struct qtnf_pearl_tx_bd *txbd; in qtnf_pearl_free_xfer_buffers() local
371 txbd = &ps->tx_bd_vbase[i]; in qtnf_pearl_free_xfer_buffers()
373 paddr = QTN_HOST_ADDR(le32_to_cpu(txbd->addr_h), in qtnf_pearl_free_xfer_buffers()
374 le32_to_cpu(txbd->addr)); in qtnf_pearl_free_xfer_buffers()
466 struct qtnf_pearl_tx_bd *txbd; in qtnf_pearl_data_tx_reclaim() local
484 txbd = &ps->tx_bd_vbase[i]; in qtnf_pearl_data_tx_reclaim()
485 paddr = QTN_HOST_ADDR(le32_to_cpu(txbd->addr_h), in qtnf_pearl_data_tx_reclaim()
486 le32_to_cpu(txbd->addr)); in qtnf_pearl_data_tx_reclaim()
539 struct qtnf_pearl_tx_bd *txbd; in qtnf_pcie_data_tx() local
569 txbd = &ps->tx_bd_vbase[i]; in qtnf_pcie_data_tx()
[all …]
Dtopaz_pcie.c299 struct qtnf_topaz_tx_bd *txbd; in qtnf_topaz_free_xfer_buffers() local
322 txbd = &ts->tx_bd_vbase[i]; in qtnf_topaz_free_xfer_buffers()
324 paddr = QTN_HOST_ADDR(0x0, le32_to_cpu(txbd->addr)); in qtnf_topaz_free_xfer_buffers()
329 txbd->addr = 0; in qtnf_topaz_free_xfer_buffers()
330 txbd->info = 0; in qtnf_topaz_free_xfer_buffers()
383 struct qtnf_topaz_tx_bd *txbd; in qtnf_topaz_data_tx_reclaim() local
404 txbd = &ts->tx_bd_vbase[i]; in qtnf_topaz_data_tx_reclaim()
405 paddr = QTN_HOST_ADDR(0x0, le32_to_cpu(txbd->addr)); in qtnf_topaz_data_tx_reclaim()
494 struct qtnf_topaz_tx_bd *txbd; in qtnf_pcie_data_tx() local
527 txbd = &ts->tx_bd_vbase[i]; in qtnf_pcie_data_tx()
[all …]
/Linux-v5.4/drivers/net/ethernet/broadcom/
Dbnx2.c5186 struct bnx2_tx_bd *txbd; in bnx2_init_tx_ring() local
5201 txbd = &txr->tx_desc_ring[BNX2_MAX_TX_DESC_CNT]; in bnx2_init_tx_ring()
5203 txbd->tx_bd_haddr_hi = (u64) txr->tx_desc_mapping >> 32; in bnx2_init_tx_ring()
5204 txbd->tx_bd_haddr_lo = (u64) txr->tx_desc_mapping & 0xffffffff; in bnx2_init_tx_ring()
5815 struct bnx2_tx_bd *txbd; in bnx2_run_loopback() local
5868 txbd = &txr->tx_desc_ring[BNX2_TX_RING_IDX(txr->tx_prod)]; in bnx2_run_loopback()
5870 txbd->tx_bd_haddr_hi = (u64) map >> 32; in bnx2_run_loopback()
5871 txbd->tx_bd_haddr_lo = (u64) map & 0xffffffff; in bnx2_run_loopback()
5872 txbd->tx_bd_mss_nbytes = pkt_size; in bnx2_run_loopback()
5873 txbd->tx_bd_vlan_tag_flags = TX_BD_FLAGS_START | TX_BD_FLAGS_END; in bnx2_run_loopback()
[all …]
Dcnic.c4538 struct bnx2_tx_bd *txbd; in cnic_init_bnx2_tx_ring() local
4581 txbd = udev->l2_ring; in cnic_init_bnx2_tx_ring()
4584 for (i = 0; i < BNX2_MAX_TX_DESC_CNT; i++, txbd++) { in cnic_init_bnx2_tx_ring()
4585 txbd->tx_bd_haddr_hi = (u64) buf_map >> 32; in cnic_init_bnx2_tx_ring()
4586 txbd->tx_bd_haddr_lo = (u64) buf_map & 0xffffffff; in cnic_init_bnx2_tx_ring()
4590 txbd->tx_bd_haddr_hi = val; in cnic_init_bnx2_tx_ring()
4594 txbd->tx_bd_haddr_lo = val; in cnic_init_bnx2_tx_ring()
4923 union eth_tx_bd_types *txbd = (union eth_tx_bd_types *) udev->l2_ring; in cnic_init_bnx2x_tx_ring() local
4930 memset(txbd, 0, CNIC_PAGE_SIZE); in cnic_init_bnx2x_tx_ring()
4933 for (i = 0; i < BNX2_MAX_TX_DESC_CNT; i += 3, txbd += 3) { in cnic_init_bnx2x_tx_ring()
[all …]
Dtg3.c7695 static inline void tg3_tx_set_bd(struct tg3_tx_buffer_desc *txbd, in tg3_tx_set_bd() argument
7699 txbd->addr_hi = ((u64) mapping >> 32); in tg3_tx_set_bd()
7700 txbd->addr_lo = ((u64) mapping & 0xffffffff); in tg3_tx_set_bd()
7701 txbd->len_flags = (len << TXD_LEN_SHIFT) | (flags & 0x0000ffff); in tg3_tx_set_bd()
7702 txbd->vlan_tag = (mss << TXD_MSS_SHIFT) | (vlan << TXD_VLAN_TAG_SHIFT); in tg3_tx_set_bd()
/Linux-v5.4/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
Dtrx.h516 u8 *pdesc, u8 *txbd,
Dtrx.c343 u8 *txbd, struct ieee80211_tx_info *info, in rtl8723e_tx_fill_desc() argument
/Linux-v5.4/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Dtrx.h634 struct ieee80211_hdr *hdr, u8 *pdesc_tx, u8 *txbd,
Dtrx.c660 struct ieee80211_hdr *hdr, u8 *pdesc8, u8 *txbd, in rtl8821ae_tx_fill_desc() argument
/Linux-v5.4/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Dtrx.h629 u8 *pdesc_tx, u8 *txbd,
Dtrx.c406 u8 *txbd, struct ieee80211_tx_info *info, in rtl8723be_tx_fill_desc() argument
/Linux-v5.4/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
Dtrx.h783 u8 *txbd, struct ieee80211_tx_info *info,
Dtrx.c478 u8 *txbd, struct ieee80211_tx_info *info, in rtl88ee_tx_fill_desc() argument