Lines Matching +full:queue +full:- +full:pkt +full:- +full:tx
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 2014-2024 Broadcom
21 /* total number of Buffer Descriptors, same for Rx/Tx */
48 u32 tx_csum_info; /* Tx checksum info. */
64 /* Tx status bits */
76 /* Rx/Tx common counter group */
79 u32 cnt_127; /* RO Rx/Tx 127 bytes packet */
80 u32 cnt_255; /* RO Rx/Tx 65-255 bytes packet */
81 u32 cnt_511; /* RO Rx/Tx 256-511 bytes packet */
82 u32 cnt_1023; /* RO Rx/Tx 512-1023 bytes packet */
83 u32 cnt_1518; /* RO Rx/Tx 1024-1518 bytes packet */
84 u32 cnt_mgv; /* RO Rx/Tx 1519-1522 good VLAN packet */
85 u32 cnt_2047; /* RO Rx/Tx 1522-2047 bytes packet*/
86 u32 cnt_4095; /* RO Rx/Tx 2048-4095 bytes packet*/
87 u32 cnt_9216; /* RO Rx/Tx 4096-9216 bytes packet*/
93 u32 pkt; /* RO (0x428) Received pkt count*/ member
95 u32 mca; /* RO # of Received multicast pkt */
96 u32 bca; /* RO # of Receive broadcast pkt */
98 u32 cf; /* RO # of Received control frame pkt*/
99 u32 pf; /* RO # of Received pause frame pkt */
100 u32 uo; /* RO # of unknown op code pkt */
103 u32 cde; /* RO # of code error pkt */
104 u32 fcr; /* RO # of carrier sense error pkt */
105 u32 ovr; /* RO # of oversize pkt*/
107 u32 mtue; /* RO # of MTU error pkt*/
108 u32 pok; /* RO # of Received good pkt */
109 u32 uc; /* RO # of unicast pkt */
110 u32 ppp; /* RO # of PPP pkt */
111 u32 rcrc; /* RO (0x470),# of CRC match pkt */
117 u32 pkts; /* RO (0x4a8) Transmited pkt */
118 u32 mca; /* RO # of xmited multicast pkt */
119 u32 bca; /* RO # of xmited broadcast pkt */
123 u32 ovr; /* RO # of xmited oversize pkt */
124 u32 drf; /* RO # of xmited deferral pkt */
125 u32 edf; /* RO # of xmited Excessive deferral pkt*/
126 u32 scl; /* RO # of xmited single collision pkt */
127 u32 mcl; /* RO # of xmited multiple collision pkt*/
128 u32 lcl; /* RO # of xmited late collision pkt */
129 u32 ecl; /* RO # of xmited excessive collision pkt*/
130 u32 frg; /* RO # of xmited fragments pkt*/
134 u32 pok; /* RO # of xmited good pkt */
135 u32 uc; /* RO (0x0x4f0)# of xmited unitcast pkt */
140 struct bcmgenet_tx_counters tx; member
409 /* Tx/Rx Dma Descriptor common bits*/
416 /* Tx specific Dma descriptor bits */
457 /* We support both runtime GENET detection and compile-time
458 * to optimize code-paths for a given hardware
468 #define GENET_IS_V1(p) ((p)->version == GENET_V1)
469 #define GENET_IS_V2(p) ((p)->version == GENET_V2)
470 #define GENET_IS_V3(p) ((p)->version == GENET_V3)
471 #define GENET_IS_V4(p) ((p)->version == GENET_V4)
472 #define GENET_IS_V5(p) ((p)->version == GENET_V5)
508 #define GENET_CB(skb) ((struct bcmgenet_skb_cb *)((skb)->cb))
512 struct napi_struct napi; /* NAPI per tx queue */
516 unsigned int queue; /* queue index */ member
517 struct enet_cb *cbs; /* tx ring buffer control block*/
518 unsigned int size; /* size of each tx ring */
519 unsigned int clean_ptr; /* Tx ring clean pointer */
522 unsigned int write_ptr; /* Tx ring write pointer SW copy */
523 unsigned int prod_index; /* Tx ring producer index SW copy */
524 unsigned int cb_ptr; /* Tx ring initial CB ptr */
525 unsigned int end_ptr; /* Tx ring end CB ptr */
658 * peripheral registers for CPU-native byte order. \
661 return __raw_readl(priv->base + offset + off); \
663 return readl_relaxed(priv->base + offset + off); \
669 __raw_writel(val, priv->base + offset + off); \
671 writel_relaxed(val, priv->base + offset + off); \
683 GENET_IO_MACRO(hfb, priv->hw_params->hfb_offset);
686 GENET_IO_MACRO(hfb_reg, priv->hw_params->hfb_reg_offset);
696 void bcmgenet_phy_pause_set(struct net_device *dev, bool rx, bool tx);
700 /* Wake-on-LAN routines */