Lines Matching full:mac
128 { ENETC_PM_REOCT(0), "MAC rx ethernet octets" },
129 { ENETC_PM_RALN(0), "MAC rx alignment errors" },
130 { ENETC_PM_RXPF(0), "MAC rx valid pause frames" },
131 { ENETC_PM_RFRM(0), "MAC rx valid frames" },
132 { ENETC_PM_RFCS(0), "MAC rx fcs errors" },
133 { ENETC_PM_RVLAN(0), "MAC rx VLAN frames" },
134 { ENETC_PM_RERR(0), "MAC rx frame errors" },
135 { ENETC_PM_RUCA(0), "MAC rx unicast frames" },
136 { ENETC_PM_RMCA(0), "MAC rx multicast frames" },
137 { ENETC_PM_RBCA(0), "MAC rx broadcast frames" },
138 { ENETC_PM_RDRP(0), "MAC rx dropped packets" },
139 { ENETC_PM_RPKT(0), "MAC rx packets" },
140 { ENETC_PM_RUND(0), "MAC rx undersized packets" },
141 { ENETC_PM_R64(0), "MAC rx 64 byte packets" },
142 { ENETC_PM_R127(0), "MAC rx 65-127 byte packets" },
143 { ENETC_PM_R255(0), "MAC rx 128-255 byte packets" },
144 { ENETC_PM_R511(0), "MAC rx 256-511 byte packets" },
145 { ENETC_PM_R1023(0), "MAC rx 512-1023 byte packets" },
146 { ENETC_PM_R1522(0), "MAC rx 1024-1522 byte packets" },
147 { ENETC_PM_R1523X(0), "MAC rx 1523 to max-octet packets" },
148 { ENETC_PM_ROVR(0), "MAC rx oversized packets" },
149 { ENETC_PM_RJBR(0), "MAC rx jabber packets" },
150 { ENETC_PM_RFRG(0), "MAC rx fragment packets" },
151 { ENETC_PM_RCNP(0), "MAC rx control packets" },
152 { ENETC_PM_RDRNTP(0), "MAC rx fifo drop" },
153 { ENETC_PM_TEOCT(0), "MAC tx ethernet octets" },
154 { ENETC_PM_TOCT(0), "MAC tx octets" },
155 { ENETC_PM_TCRSE(0), "MAC tx carrier sense errors" },
156 { ENETC_PM_TXPF(0), "MAC tx valid pause frames" },
157 { ENETC_PM_TFRM(0), "MAC tx frames" },
158 { ENETC_PM_TFCS(0), "MAC tx fcs errors" },
159 { ENETC_PM_TVLAN(0), "MAC tx VLAN frames" },
160 { ENETC_PM_TERR(0), "MAC tx frame errors" },
161 { ENETC_PM_TUCA(0), "MAC tx unicast frames" },
162 { ENETC_PM_TMCA(0), "MAC tx multicast frames" },
163 { ENETC_PM_TBCA(0), "MAC tx broadcast frames" },
164 { ENETC_PM_TPKT(0), "MAC tx packets" },
165 { ENETC_PM_TUND(0), "MAC tx undersized packets" },
166 { ENETC_PM_T64(0), "MAC tx 64 byte packets" },
167 { ENETC_PM_T127(0), "MAC tx 65-127 byte packets" },
168 { ENETC_PM_T255(0), "MAC tx 128-255 byte packets" },
169 { ENETC_PM_T511(0), "MAC tx 256-511 byte packets" },
170 { ENETC_PM_T1023(0), "MAC tx 512-1023 byte packets" },
171 { ENETC_PM_T1522(0), "MAC tx 1024-1522 byte packets" },
172 { ENETC_PM_T1523X(0), "MAC tx 1523 to max-octet packets" },
173 { ENETC_PM_TCNP(0), "MAC tx control packets" },
174 { ENETC_PM_TDFR(0), "MAC tx deferred packets" },
175 { ENETC_PM_TMCOL(0), "MAC tx multiple collisions" },
176 { ENETC_PM_TSCOL(0), "MAC tx single collisions" },
177 { ENETC_PM_TLCOL(0), "MAC tx late collisions" },
178 { ENETC_PM_TECOL(0), "MAC tx excessive collisions" },
179 { ENETC_UFDMF, "SI MAC nomatch u-cast discards" },
180 { ENETC_MFDMF, "SI MAC nomatch m-cast discards" },
181 { ENETC_PBFDSIR, "SI MAC nomatch b-cast discards" },
314 static void enetc_mac_stats(struct enetc_hw *hw, int mac, in enetc_mac_stats() argument
317 s->FramesTransmittedOK = enetc_port_rd(hw, ENETC_PM_TFRM(mac)); in enetc_mac_stats()
318 s->SingleCollisionFrames = enetc_port_rd(hw, ENETC_PM_TSCOL(mac)); in enetc_mac_stats()
319 s->MultipleCollisionFrames = enetc_port_rd(hw, ENETC_PM_TMCOL(mac)); in enetc_mac_stats()
320 s->FramesReceivedOK = enetc_port_rd(hw, ENETC_PM_RFRM(mac)); in enetc_mac_stats()
321 s->FrameCheckSequenceErrors = enetc_port_rd(hw, ENETC_PM_RFCS(mac)); in enetc_mac_stats()
322 s->AlignmentErrors = enetc_port_rd(hw, ENETC_PM_RALN(mac)); in enetc_mac_stats()
323 s->OctetsTransmittedOK = enetc_port_rd(hw, ENETC_PM_TEOCT(mac)); in enetc_mac_stats()
324 s->FramesWithDeferredXmissions = enetc_port_rd(hw, ENETC_PM_TDFR(mac)); in enetc_mac_stats()
325 s->LateCollisions = enetc_port_rd(hw, ENETC_PM_TLCOL(mac)); in enetc_mac_stats()
326 s->FramesAbortedDueToXSColls = enetc_port_rd(hw, ENETC_PM_TECOL(mac)); in enetc_mac_stats()
327 s->FramesLostDueToIntMACXmitError = enetc_port_rd(hw, ENETC_PM_TERR(mac)); in enetc_mac_stats()
328 s->CarrierSenseErrors = enetc_port_rd(hw, ENETC_PM_TCRSE(mac)); in enetc_mac_stats()
329 s->OctetsReceivedOK = enetc_port_rd(hw, ENETC_PM_REOCT(mac)); in enetc_mac_stats()
330 s->FramesLostDueToIntMACRcvError = enetc_port_rd(hw, ENETC_PM_RDRNTP(mac)); in enetc_mac_stats()
331 s->MulticastFramesXmittedOK = enetc_port_rd(hw, ENETC_PM_TMCA(mac)); in enetc_mac_stats()
332 s->BroadcastFramesXmittedOK = enetc_port_rd(hw, ENETC_PM_TBCA(mac)); in enetc_mac_stats()
333 s->MulticastFramesReceivedOK = enetc_port_rd(hw, ENETC_PM_RMCA(mac)); in enetc_mac_stats()
334 s->BroadcastFramesReceivedOK = enetc_port_rd(hw, ENETC_PM_RBCA(mac)); in enetc_mac_stats()
337 static void enetc_ctrl_stats(struct enetc_hw *hw, int mac, in enetc_ctrl_stats() argument
340 s->MACControlFramesTransmitted = enetc_port_rd(hw, ENETC_PM_TCNP(mac)); in enetc_ctrl_stats()
341 s->MACControlFramesReceived = enetc_port_rd(hw, ENETC_PM_RCNP(mac)); in enetc_ctrl_stats()
355 static void enetc_rmon_stats(struct enetc_hw *hw, int mac, in enetc_rmon_stats() argument
359 s->undersize_pkts = enetc_port_rd(hw, ENETC_PM_RUND(mac)); in enetc_rmon_stats()
360 s->oversize_pkts = enetc_port_rd(hw, ENETC_PM_ROVR(mac)); in enetc_rmon_stats()
361 s->fragments = enetc_port_rd(hw, ENETC_PM_RFRG(mac)); in enetc_rmon_stats()
362 s->jabbers = enetc_port_rd(hw, ENETC_PM_RJBR(mac)); in enetc_rmon_stats()
364 s->hist[0] = enetc_port_rd(hw, ENETC_PM_R64(mac)); in enetc_rmon_stats()
365 s->hist[1] = enetc_port_rd(hw, ENETC_PM_R127(mac)); in enetc_rmon_stats()
366 s->hist[2] = enetc_port_rd(hw, ENETC_PM_R255(mac)); in enetc_rmon_stats()
367 s->hist[3] = enetc_port_rd(hw, ENETC_PM_R511(mac)); in enetc_rmon_stats()
368 s->hist[4] = enetc_port_rd(hw, ENETC_PM_R1023(mac)); in enetc_rmon_stats()
369 s->hist[5] = enetc_port_rd(hw, ENETC_PM_R1522(mac)); in enetc_rmon_stats()
370 s->hist[6] = enetc_port_rd(hw, ENETC_PM_R1523X(mac)); in enetc_rmon_stats()
372 s->hist_tx[0] = enetc_port_rd(hw, ENETC_PM_T64(mac)); in enetc_rmon_stats()
373 s->hist_tx[1] = enetc_port_rd(hw, ENETC_PM_T127(mac)); in enetc_rmon_stats()
374 s->hist_tx[2] = enetc_port_rd(hw, ENETC_PM_T255(mac)); in enetc_rmon_stats()
375 s->hist_tx[3] = enetc_port_rd(hw, ENETC_PM_T511(mac)); in enetc_rmon_stats()
376 s->hist_tx[4] = enetc_port_rd(hw, ENETC_PM_T1023(mac)); in enetc_rmon_stats()
377 s->hist_tx[5] = enetc_port_rd(hw, ENETC_PM_T1522(mac)); in enetc_rmon_stats()
378 s->hist_tx[6] = enetc_port_rd(hw, ENETC_PM_T1523X(mac)); in enetc_rmon_stats()
438 /* current HW spec does byte reversal on everything including MAC addresses */