Lines Matching +full:queue +full:- +full:pkt +full:- +full:rx

1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 2014-2025 Broadcom
24 /* total number of Buffer Descriptors, same for Rx/Tx */
49 u32 rx_csum; /* partial rx checksum */
55 /* Rx status bits */
79 /* Rx/Tx common counter group */
82 u32 cnt_127; /* RO Rx/Tx 127 bytes packet */
83 u32 cnt_255; /* RO Rx/Tx 65-255 bytes packet */
84 u32 cnt_511; /* RO Rx/Tx 256-511 bytes packet */
85 u32 cnt_1023; /* RO Rx/Tx 512-1023 bytes packet */
86 u32 cnt_1518; /* RO Rx/Tx 1024-1518 bytes packet */
87 u32 cnt_mgv; /* RO Rx/Tx 1519-1522 good VLAN packet */
88 u32 cnt_2047; /* RO Rx/Tx 1522-2047 bytes packet*/
89 u32 cnt_4095; /* RO Rx/Tx 2048-4095 bytes packet*/
90 u32 cnt_9216; /* RO Rx/Tx 4096-9216 bytes packet*/
96 u32 pkt; /* RO (0x428) Received pkt count*/ member
98 u32 mca; /* RO # of Received multicast pkt */
99 u32 bca; /* RO # of Receive broadcast pkt */
101 u32 cf; /* RO # of Received control frame pkt*/
102 u32 pf; /* RO # of Received pause frame pkt */
103 u32 uo; /* RO # of unknown op code pkt */
106 u32 cde; /* RO # of code error pkt */
107 u32 fcr; /* RO # of carrier sense error pkt */
108 u32 ovr; /* RO # of oversize pkt*/
110 u32 mtue; /* RO # of MTU error pkt*/
111 u32 pok; /* RO # of Received good pkt */
112 u32 uc; /* RO # of unicast pkt */
113 u32 ppp; /* RO # of PPP pkt */
114 u32 rcrc; /* RO (0x470),# of CRC match pkt */
120 u32 pkts; /* RO (0x4a8) Transmited pkt */
121 u32 mca; /* RO # of xmited multicast pkt */
122 u32 bca; /* RO # of xmited broadcast pkt */
126 u32 ovr; /* RO # of xmited oversize pkt */
127 u32 drf; /* RO # of xmited deferral pkt */
128 u32 edf; /* RO # of xmited Excessive deferral pkt*/
129 u32 scl; /* RO # of xmited single collision pkt */
130 u32 mcl; /* RO # of xmited multiple collision pkt*/
131 u32 lcl; /* RO # of xmited late collision pkt */
132 u32 ecl; /* RO # of xmited excessive collision pkt*/
133 u32 frg; /* RO # of xmited fragments pkt*/
137 u32 pok; /* RO # of xmited good pkt */
138 u32 uc; /* RO (0x0x4f0)# of xmited unitcast pkt */
142 struct bcmgenet_rx_counters rx; member
414 /* Tx/Rx Dma Descriptor common bits*/
428 /* Rx Specific Dma descriptor bits */
462 /* We support both runtime GENET detection and compile-time
463 * to optimize code-paths for a given hardware
473 #define GENET_IS_V1(p) ((p)->version == GENET_V1)
474 #define GENET_IS_V2(p) ((p)->version == GENET_V2)
475 #define GENET_IS_V3(p) ((p)->version == GENET_V3)
476 #define GENET_IS_V4(p) ((p)->version == GENET_V4)
477 #define GENET_IS_V5(p) ((p)->version == GENET_V5)
513 #define GENET_CB(skb) ((struct bcmgenet_skb_cb *)((skb)->cb))
517 struct napi_struct napi; /* NAPI per tx queue */
542 struct napi_struct napi; /* Rx NAPI struct */
547 unsigned int index; /* Rx ring index */
548 struct enet_cb *cbs; /* Rx ring buffer control block */
549 unsigned int size; /* Rx ring size */
550 unsigned int c_index; /* Rx last consumer index */
551 unsigned int read_ptr; /* Rx ring read pointer */
552 unsigned int cb_ptr; /* Rx ring initial CB ptr */
553 unsigned int end_ptr; /* Rx ring end CB ptr */
654 return !!(priv->flags & GENET_HAS_40BITS); in bcmgenet_has_40bits()
659 return !!(priv->flags & GENET_HAS_EXT); in bcmgenet_has_ext()
664 return !!(priv->flags & GENET_HAS_MDIO_INTR); in bcmgenet_has_mdio_intr()
669 return !!(priv->flags & GENET_HAS_MOCA_LINK_DET); in bcmgenet_has_moca_link_det()
674 return !!(priv->flags & GENET_HAS_EPHY_16NM); in bcmgenet_has_ephy_16nm()
682 * peripheral registers for CPU-native byte order. \
685 return __raw_readl(priv->base + offset + off); \
687 return readl_relaxed(priv->base + offset + off); \
693 __raw_writel(val, priv->base + offset + off); \
695 writel_relaxed(val, priv->base + offset + off); \
707 GENET_IO_MACRO(hfb, priv->hw_params->hfb_offset);
710 GENET_IO_MACRO(hfb_reg, priv->hw_params->hfb_reg_offset);
720 void bcmgenet_phy_pause_set(struct net_device *dev, bool rx, bool tx);
724 /* Wake-on-LAN routines */