Home
last modified time | relevance | path

Searched refs:rxbd (Results 1 – 10 of 10) sorted by relevance

/Linux-v5.10/drivers/net/ethernet/arc/
Demac_main.c183 struct arc_emac_bd *rxbd = &priv->rxbd[*last_rx_bd]; in arc_emac_rx() local
184 unsigned int pktlen, info = le32_to_cpu(rxbd->info); in arc_emac_rx()
205 rxbd->info = cpu_to_le32(FOR_EMAC | EMAC_BUFFER_SIZE); in arc_emac_rx()
220 rxbd->info = cpu_to_le32(FOR_EMAC | EMAC_BUFFER_SIZE); in arc_emac_rx()
233 rxbd->info = cpu_to_le32(FOR_EMAC | EMAC_BUFFER_SIZE); in arc_emac_rx()
256 rxbd->data = cpu_to_le32(addr); in arc_emac_rx()
262 rxbd->info = cpu_to_le32(FOR_EMAC | EMAC_BUFFER_SIZE); in arc_emac_rx()
301 struct arc_emac_bd *rxbd; in arc_emac_rx_stall_check() local
307 rxbd = &priv->rxbd[priv->last_rx_bd]; in arc_emac_rx_stall_check()
308 if (le32_to_cpu(rxbd->info) & FOR_EMAC) { in arc_emac_rx_stall_check()
[all …]
Demac.h145 struct arc_emac_bd *rxbd; member
/Linux-v5.10/drivers/net/ethernet/freescale/enetc/
Denetc.h123 union enetc_rx_bd *rxbd, in enetc_rxbd_next() argument
126 rxbd++; in enetc_rxbd_next()
129 rxbd++; in enetc_rxbd_next()
132 rxbd = rx_ring->bd_base; in enetc_rxbd_next()
134 return rxbd; in enetc_rxbd_next()
137 static inline union enetc_rx_bd *enetc_rxbd_ext(union enetc_rx_bd *rxbd) in enetc_rxbd_ext() argument
139 return ++rxbd; in enetc_rxbd_ext()
Denetc.c502 union enetc_rx_bd *rxbd; in enetc_refill_rx_ring() local
507 rxbd = enetc_rxbd(rx_ring, i); in enetc_refill_rx_ring()
519 rxbd->w.addr = cpu_to_le64(rx_swbd->dma + in enetc_refill_rx_ring()
522 rxbd->r.lstatus = 0; in enetc_refill_rx_ring()
524 rxbd = enetc_rxbd_next(rx_ring, rxbd, i); in enetc_refill_rx_ring()
543 union enetc_rx_bd *rxbd, in enetc_get_rx_tstamp() argument
552 if (le16_to_cpu(rxbd->r.flags) & ENETC_RXBD_FLAG_TSTMP) { in enetc_get_rx_tstamp()
555 rxbd = enetc_rxbd_ext(rxbd); in enetc_get_rx_tstamp()
556 tstamp_lo = le32_to_cpu(rxbd->ext.tstamp); in enetc_get_rx_tstamp()
568 union enetc_rx_bd *rxbd, struct sk_buff *skb) in enetc_get_offloads() argument
[all …]
/Linux-v5.10/drivers/net/wireless/quantenna/qtnfmac/pcie/
Dpearl_pcie.c285 struct qtnf_pearl_rx_bd *rxbd; in pearl_skb2rbd_attach() local
296 rxbd = &ps->rx_bd_vbase[index]; in pearl_skb2rbd_attach()
306 rxbd->addr = cpu_to_le32(QTN_HOST_LO32(paddr)); in pearl_skb2rbd_attach()
307 rxbd->addr_h = cpu_to_le32(QTN_HOST_HI32(paddr)); in pearl_skb2rbd_attach()
308 rxbd->info = 0x0; in pearl_skb2rbd_attach()
348 struct qtnf_pearl_rx_bd *rxbd; in qtnf_pearl_free_xfer_buffers() local
356 rxbd = &ps->rx_bd_vbase[i]; in qtnf_pearl_free_xfer_buffers()
358 paddr = QTN_HOST_ADDR(le32_to_cpu(rxbd->addr_h), in qtnf_pearl_free_xfer_buffers()
359 le32_to_cpu(rxbd->addr)); in qtnf_pearl_free_xfer_buffers()
691 struct qtnf_pearl_rx_bd *rxbd; in qtnf_rx_data_ready() local
[all …]
Dtopaz_pcie.c246 struct qtnf_topaz_rx_bd *rxbd = &ts->rx_bd_vbase[index]; in topaz_skb2rbd_attach() local
265 rxbd->addr = cpu_to_le32(QTN_HOST_LO32(paddr)); in topaz_skb2rbd_attach()
266 rxbd->info = cpu_to_le32(QTN_BD_EMPTY | wrap); in topaz_skb2rbd_attach()
297 struct qtnf_topaz_rx_bd *rxbd; in qtnf_topaz_free_xfer_buffers() local
306 rxbd = &ts->rx_bd_vbase[i]; in qtnf_topaz_free_xfer_buffers()
308 paddr = QTN_HOST_ADDR(0x0, le32_to_cpu(rxbd->addr)); in qtnf_topaz_free_xfer_buffers()
313 rxbd->addr = 0; in qtnf_topaz_free_xfer_buffers()
314 rxbd->info = 0; in qtnf_topaz_free_xfer_buffers()
595 struct qtnf_topaz_rx_bd *rxbd; in qtnf_rx_data_ready() local
598 rxbd = &ts->rx_bd_vbase[index]; in qtnf_rx_data_ready()
[all …]
/Linux-v5.10/drivers/scsi/qedi/
Dqedi_main.c741 struct qedi_rx_bd rxbd; in qedi_ll2_process_skb() local
763 memset(&rxbd, 0, sizeof(rxbd)); in qedi_ll2_process_skb()
764 rxbd.rx_pkt_index = prod; in qedi_ll2_process_skb()
765 rxbd.rx_pkt_len = len; in qedi_ll2_process_skb()
766 rxbd.vlan_id = vlan_id; in qedi_ll2_process_skb()
773 memcpy(p_rxbd, &rxbd, sizeof(rxbd)); in qedi_ll2_process_skb()
778 rxbd.rx_pkt_index, rxbd.rx_pkt_len); in qedi_ll2_process_skb()
/Linux-v5.10/drivers/net/ethernet/broadcom/
Dcnic.c4602 struct bnx2_rx_bd *rxbd; in cnic_init_bnx2_rx_ring() local
4638 rxbd = udev->l2_ring + CNIC_PAGE_SIZE; in cnic_init_bnx2_rx_ring()
4639 for (i = 0; i < BNX2_MAX_RX_DESC_CNT; i++, rxbd++) { in cnic_init_bnx2_rx_ring()
4644 rxbd->rx_bd_len = cp->l2_single_buf_size; in cnic_init_bnx2_rx_ring()
4645 rxbd->rx_bd_flags = RX_BD_FLAGS_START | RX_BD_FLAGS_END; in cnic_init_bnx2_rx_ring()
4646 rxbd->rx_bd_haddr_hi = (u64) buf_map >> 32; in cnic_init_bnx2_rx_ring()
4647 rxbd->rx_bd_haddr_lo = (u64) buf_map & 0xffffffff; in cnic_init_bnx2_rx_ring()
4651 rxbd->rx_bd_haddr_hi = val; in cnic_init_bnx2_rx_ring()
4655 rxbd->rx_bd_haddr_lo = val; in cnic_init_bnx2_rx_ring()
4986 struct eth_rx_bd *rxbd = (struct eth_rx_bd *) (udev->l2_ring + in cnic_init_bnx2x_rx_ring() local
[all …]
Dbnx2.c2726 struct bnx2_rx_bd *rxbd = in bnx2_alloc_rx_page() local
2741 rxbd->rx_bd_haddr_hi = (u64) mapping >> 32; in bnx2_alloc_rx_page()
2742 rxbd->rx_bd_haddr_lo = (u64) mapping & 0xffffffff; in bnx2_alloc_rx_page()
2768 struct bnx2_rx_bd *rxbd = in bnx2_alloc_rx_data() local
2787 rxbd->rx_bd_haddr_hi = (u64) mapping >> 32; in bnx2_alloc_rx_data()
2788 rxbd->rx_bd_haddr_lo = (u64) mapping & 0xffffffff; in bnx2_alloc_rx_data()
5214 struct bnx2_rx_bd *rxbd; in bnx2_init_rxbd_rings() local
5219 rxbd = &rx_ring[i][0]; in bnx2_init_rxbd_rings()
5220 for (j = 0; j < BNX2_MAX_RX_DESC_CNT; j++, rxbd++) { in bnx2_init_rxbd_rings()
5221 rxbd->rx_bd_len = buf_size; in bnx2_init_rxbd_rings()
[all …]
/Linux-v5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.c730 struct rx_bd *rxbd = &rxr->rx_desc_ring[RX_RING(prod)][RX_IDX(prod)]; in bnxt_alloc_rx_data() local
754 rxbd->rx_bd_haddr = cpu_to_le64(mapping); in bnxt_alloc_rx_data()
792 struct rx_bd *rxbd = in bnxt_alloc_rx_page() local
840 rxbd->rx_bd_haddr = cpu_to_le64(mapping); in bnxt_alloc_rx_page()
841 rxbd->rx_bd_opaque = sw_prod; in bnxt_alloc_rx_page()
3195 struct rx_bd *rxbd; in bnxt_init_rxbd_pages() local
3197 rxbd = rx_buf_ring[i]; in bnxt_init_rxbd_pages()
3198 if (!rxbd) in bnxt_init_rxbd_pages()
3201 for (j = 0; j < RX_DESC_CNT; j++, rxbd++, prod++) { in bnxt_init_rxbd_pages()
3202 rxbd->rx_bd_len_flags_type = cpu_to_le32(type); in bnxt_init_rxbd_pages()
[all …]