Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/net/ethernet/arc/
Demac_main.c118 struct arc_emac_bd *txbd = &priv->txbd[*txbd_dirty]; in arc_emac_tx_clean() local
121 unsigned int info = le32_to_cpu(txbd->info); in arc_emac_tx_clean()
123 if ((info & FOR_EMAC) || !txbd->data || !skb) in arc_emac_tx_clean()
149 txbd->data = 0; in arc_emac_tx_clean()
150 txbd->info = 0; in arc_emac_tx_clean()
473 memset(priv->txbd, 0, TX_RING_SZ); in arc_emac_open()
554 struct arc_emac_bd *txbd = &priv->txbd[i]; in arc_free_tx_queue() local
567 txbd->info = 0; in arc_free_tx_queue()
568 txbd->data = 0; in arc_free_tx_queue()
681 __le32 *info = &priv->txbd[*txbd_curr].info; in arc_emac_tx()
[all …]
Demac.h146 struct arc_emac_bd *txbd; member
/linux-6.6.21/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_xdp.c32 struct tx_bd *txbd; in bnxt_xmit_bd() local
50 txbd = &txr->tx_desc_ring[TX_RING(prod)][TX_IDX(prod)]; in bnxt_xmit_bd()
54 txbd->tx_bd_len_flags_type = cpu_to_le32(flags); in bnxt_xmit_bd()
55 txbd->tx_bd_opaque = prod; in bnxt_xmit_bd()
56 txbd->tx_bd_haddr = cpu_to_le64(mapping); in bnxt_xmit_bd()
72 txbd = &txr->tx_desc_ring[TX_RING(prod)][TX_IDX(prod)]; in bnxt_xmit_bd()
76 txbd->tx_bd_len_flags_type = cpu_to_le32(flags); in bnxt_xmit_bd()
79 txbd->tx_bd_haddr = cpu_to_le64(frag_mapping); in bnxt_xmit_bd()
85 txbd->tx_bd_len_flags_type = cpu_to_le32(((len) << TX_BD_LEN_SHIFT) | flags | in bnxt_xmit_bd()
Dbnxt.c392 struct tx_bd *txbd; in bnxt_start_xmit() local
434 txbd = &txr->tx_desc_ring[TX_RING(prod)][TX_IDX(prod)]; in bnxt_start_xmit()
436 txbd->tx_bd_opaque = prod; in bnxt_start_xmit()
521 txbd->tx_bd_len_flags_type = tx_push->tx_bd_len_flags_type; in bnxt_start_xmit()
522 txbd->tx_bd_haddr = txr->data_mapping; in bnxt_start_xmit()
524 txbd = &txr->tx_desc_ring[TX_RING(prod)][TX_IDX(prod)]; in bnxt_start_xmit()
525 memcpy(txbd, tx_push1, sizeof(*txbd)); in bnxt_start_xmit()
565 txbd->tx_bd_haddr = cpu_to_le64(mapping); in bnxt_start_xmit()
600 txbd->tx_bd_len_flags_type = cpu_to_le32(flags); in bnxt_start_xmit()
609 txbd = &txr->tx_desc_ring[TX_RING(prod)][TX_IDX(prod)]; in bnxt_start_xmit()
[all …]
/linux-6.6.21/drivers/net/ethernet/freescale/enetc/
Denetc.c154 union enetc_tx_bd *txbd; in enetc_map_tx_buffs() local
163 txbd = ENETC_TXBD(*tx_ring, i); in enetc_map_tx_buffs()
164 prefetchw(txbd); in enetc_map_tx_buffs()
213 *txbd = temp_bd; in enetc_map_tx_buffs()
219 txbd++; in enetc_map_tx_buffs()
224 txbd = ENETC_TXBD(*tx_ring, 0); in enetc_map_tx_buffs()
226 prefetchw(txbd); in enetc_map_tx_buffs()
284 *txbd = temp_bd; in enetc_map_tx_buffs()
289 txbd++; in enetc_map_tx_buffs()
294 txbd = ENETC_TXBD(*tx_ring, 0); in enetc_map_tx_buffs()
[all …]
Denetc_hw.h586 static inline void enetc_clear_tx_bd(union enetc_tx_bd *txbd) in enetc_clear_tx_bd() argument
588 memset(txbd, 0, sizeof(*txbd)); in enetc_clear_tx_bd()
/linux-6.6.21/drivers/net/wireless/quantenna/qtnfmac/pcie/
Dpearl_pcie.c347 struct qtnf_pearl_tx_bd *txbd; in qtnf_pearl_free_xfer_buffers() local
370 txbd = &ps->tx_bd_vbase[i]; in qtnf_pearl_free_xfer_buffers()
372 paddr = QTN_HOST_ADDR(le32_to_cpu(txbd->addr_h), in qtnf_pearl_free_xfer_buffers()
373 le32_to_cpu(txbd->addr)); in qtnf_pearl_free_xfer_buffers()
467 struct qtnf_pearl_tx_bd *txbd; in qtnf_pearl_data_tx_reclaim() local
485 txbd = &ps->tx_bd_vbase[i]; in qtnf_pearl_data_tx_reclaim()
486 paddr = QTN_HOST_ADDR(le32_to_cpu(txbd->addr_h), in qtnf_pearl_data_tx_reclaim()
487 le32_to_cpu(txbd->addr)); in qtnf_pearl_data_tx_reclaim()
540 struct qtnf_pearl_tx_bd *txbd; in qtnf_pcie_skb_send() local
570 txbd = &ps->tx_bd_vbase[i]; in qtnf_pcie_skb_send()
[all …]
Dtopaz_pcie.c298 struct qtnf_topaz_tx_bd *txbd; in qtnf_topaz_free_xfer_buffers() local
321 txbd = &ts->tx_bd_vbase[i]; in qtnf_topaz_free_xfer_buffers()
323 paddr = QTN_HOST_ADDR(0x0, le32_to_cpu(txbd->addr)); in qtnf_topaz_free_xfer_buffers()
328 txbd->addr = 0; in qtnf_topaz_free_xfer_buffers()
329 txbd->info = 0; in qtnf_topaz_free_xfer_buffers()
394 struct qtnf_topaz_tx_bd *txbd; in qtnf_topaz_data_tx_reclaim() local
415 txbd = &ts->tx_bd_vbase[i]; in qtnf_topaz_data_tx_reclaim()
416 paddr = QTN_HOST_ADDR(0x0, le32_to_cpu(txbd->addr)); in qtnf_topaz_data_tx_reclaim()
506 struct qtnf_topaz_tx_bd *txbd; in qtnf_pcie_data_tx() local
532 txbd = &ts->tx_bd_vbase[i]; in qtnf_pcie_data_tx()
[all …]
/linux-6.6.21/drivers/net/ethernet/broadcom/
Dbnx2.c5163 struct bnx2_tx_bd *txbd; in bnx2_init_tx_ring() local
5178 txbd = &txr->tx_desc_ring[BNX2_MAX_TX_DESC_CNT]; in bnx2_init_tx_ring()
5180 txbd->tx_bd_haddr_hi = (u64) txr->tx_desc_mapping >> 32; in bnx2_init_tx_ring()
5181 txbd->tx_bd_haddr_lo = (u64) txr->tx_desc_mapping & 0xffffffff; in bnx2_init_tx_ring()
5793 struct bnx2_tx_bd *txbd; in bnx2_run_loopback() local
5846 txbd = &txr->tx_desc_ring[BNX2_TX_RING_IDX(txr->tx_prod)]; in bnx2_run_loopback()
5848 txbd->tx_bd_haddr_hi = (u64) map >> 32; in bnx2_run_loopback()
5849 txbd->tx_bd_haddr_lo = (u64) map & 0xffffffff; in bnx2_run_loopback()
5850 txbd->tx_bd_mss_nbytes = pkt_size; in bnx2_run_loopback()
5851 txbd->tx_bd_vlan_tag_flags = TX_BD_FLAGS_START | TX_BD_FLAGS_END; in bnx2_run_loopback()
[all …]
Dcnic.c4533 struct bnx2_tx_bd *txbd; in cnic_init_bnx2_tx_ring() local
4576 txbd = udev->l2_ring; in cnic_init_bnx2_tx_ring()
4579 for (i = 0; i < BNX2_MAX_TX_DESC_CNT; i++, txbd++) { in cnic_init_bnx2_tx_ring()
4580 txbd->tx_bd_haddr_hi = (u64) buf_map >> 32; in cnic_init_bnx2_tx_ring()
4581 txbd->tx_bd_haddr_lo = (u64) buf_map & 0xffffffff; in cnic_init_bnx2_tx_ring()
4585 txbd->tx_bd_haddr_hi = val; in cnic_init_bnx2_tx_ring()
4589 txbd->tx_bd_haddr_lo = val; in cnic_init_bnx2_tx_ring()
4917 union eth_tx_bd_types *txbd = (union eth_tx_bd_types *) udev->l2_ring; in cnic_init_bnx2x_tx_ring() local
4924 memset(txbd, 0, CNIC_PAGE_SIZE); in cnic_init_bnx2x_tx_ring()
4927 for (i = 0; i < BNX2_MAX_TX_DESC_CNT; i += 3, txbd += 3) { in cnic_init_bnx2x_tx_ring()
[all …]
Dtg3.c7684 static inline void tg3_tx_set_bd(struct tg3_tx_buffer_desc *txbd, in tg3_tx_set_bd() argument
7688 txbd->addr_hi = ((u64) mapping >> 32); in tg3_tx_set_bd()
7689 txbd->addr_lo = ((u64) mapping & 0xffffffff); in tg3_tx_set_bd()
7690 txbd->len_flags = (len << TXD_LEN_SHIFT) | (flags & 0x0000ffff); in tg3_tx_set_bd()
7691 txbd->vlan_tag = (mss << TXD_MSS_SHIFT) | (vlan << TXD_VLAN_TAG_SHIFT); in tg3_tx_set_bd()
/linux-6.6.21/drivers/net/wireless/realtek/rtw89/
Dpci.c1253 struct rtw89_pci_tx_bd_32 *txbd, in rtw89_pci_fwcmd_submit() argument
1277 txbd->option = cpu_to_le16(RTW89_PCI_TXBD_OPTION_LS); in rtw89_pci_fwcmd_submit()
1278 txbd->length = cpu_to_le16(skb->len); in rtw89_pci_fwcmd_submit()
1279 txbd->dma = cpu_to_le32(tx_data->dma); in rtw89_pci_fwcmd_submit()
1289 struct rtw89_pci_tx_bd_32 *txbd, in rtw89_pci_txbd_submit() argument
1300 return rtw89_pci_fwcmd_submit(rtwdev, tx_ring, txbd, tx_req); in rtw89_pci_txbd_submit()
1317 txbd->option = cpu_to_le16(RTW89_PCI_TXBD_OPTION_LS); in rtw89_pci_txbd_submit()
1318 txbd->length = cpu_to_le16(txwd->len); in rtw89_pci_txbd_submit()
1319 txbd->dma = cpu_to_le32(txwd->paddr); in rtw89_pci_txbd_submit()
1336 struct rtw89_pci_tx_bd_32 *txbd; in rtw89_pci_tx_write() local
[all …]
/linux-6.6.21/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-6.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Dtrx.h634 struct ieee80211_hdr *hdr, u8 *pdesc_tx, u8 *txbd,
Dtrx.c663 struct ieee80211_hdr *hdr, u8 *pdesc8, u8 *txbd, in rtl8821ae_tx_fill_desc() argument
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Dtrx.h629 u8 *pdesc_tx, u8 *txbd,
Dtrx.c404 u8 *txbd, struct ieee80211_tx_info *info, in rtl8723be_tx_fill_desc() argument
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
Dtrx.h784 u8 *txbd, struct ieee80211_tx_info *info,
Dtrx.c478 u8 *txbd, struct ieee80211_tx_info *info, in rtl88ee_tx_fill_desc() argument