Lines Matching full:status
102 struct sja1105_port_status_mac *status) in sja1105_port_status_mac_unpack() argument
107 sja1105_unpack(p + 0x0, &status->n_runt, 31, 24, 4); in sja1105_port_status_mac_unpack()
108 sja1105_unpack(p + 0x0, &status->n_soferr, 23, 16, 4); in sja1105_port_status_mac_unpack()
109 sja1105_unpack(p + 0x0, &status->n_alignerr, 15, 8, 4); in sja1105_port_status_mac_unpack()
110 sja1105_unpack(p + 0x0, &status->n_miierr, 7, 0, 4); in sja1105_port_status_mac_unpack()
111 sja1105_unpack(p + 0x1, &status->typeerr, 27, 27, 4); in sja1105_port_status_mac_unpack()
112 sja1105_unpack(p + 0x1, &status->sizeerr, 26, 26, 4); in sja1105_port_status_mac_unpack()
113 sja1105_unpack(p + 0x1, &status->tctimeout, 25, 25, 4); in sja1105_port_status_mac_unpack()
114 sja1105_unpack(p + 0x1, &status->priorerr, 24, 24, 4); in sja1105_port_status_mac_unpack()
115 sja1105_unpack(p + 0x1, &status->nomaster, 23, 23, 4); in sja1105_port_status_mac_unpack()
116 sja1105_unpack(p + 0x1, &status->memov, 22, 22, 4); in sja1105_port_status_mac_unpack()
117 sja1105_unpack(p + 0x1, &status->memerr, 21, 21, 4); in sja1105_port_status_mac_unpack()
118 sja1105_unpack(p + 0x1, &status->invtyp, 19, 19, 4); in sja1105_port_status_mac_unpack()
119 sja1105_unpack(p + 0x1, &status->intcyov, 18, 18, 4); in sja1105_port_status_mac_unpack()
120 sja1105_unpack(p + 0x1, &status->domerr, 17, 17, 4); in sja1105_port_status_mac_unpack()
121 sja1105_unpack(p + 0x1, &status->pcfbagdrop, 16, 16, 4); in sja1105_port_status_mac_unpack()
122 sja1105_unpack(p + 0x1, &status->spcprior, 15, 12, 4); in sja1105_port_status_mac_unpack()
123 sja1105_unpack(p + 0x1, &status->ageprior, 11, 8, 4); in sja1105_port_status_mac_unpack()
124 sja1105_unpack(p + 0x1, &status->portdrop, 6, 6, 4); in sja1105_port_status_mac_unpack()
125 sja1105_unpack(p + 0x1, &status->lendrop, 5, 5, 4); in sja1105_port_status_mac_unpack()
126 sja1105_unpack(p + 0x1, &status->bagdrop, 4, 4, 4); in sja1105_port_status_mac_unpack()
127 sja1105_unpack(p + 0x1, &status->policeerr, 3, 3, 4); in sja1105_port_status_mac_unpack()
128 sja1105_unpack(p + 0x1, &status->drpnona664err, 2, 2, 4); in sja1105_port_status_mac_unpack()
129 sja1105_unpack(p + 0x1, &status->spcerr, 1, 1, 4); in sja1105_port_status_mac_unpack()
130 sja1105_unpack(p + 0x1, &status->agedrp, 0, 0, 4); in sja1105_port_status_mac_unpack()
135 struct sja1105_port_status_hl1 *status) in sja1105_port_status_hl1_unpack() argument
140 sja1105_unpack(p + 0xF, &status->n_n664err, 31, 0, 4); in sja1105_port_status_hl1_unpack()
141 sja1105_unpack(p + 0xE, &status->n_vlanerr, 31, 0, 4); in sja1105_port_status_hl1_unpack()
142 sja1105_unpack(p + 0xD, &status->n_unreleased, 31, 0, 4); in sja1105_port_status_hl1_unpack()
143 sja1105_unpack(p + 0xC, &status->n_sizeerr, 31, 0, 4); in sja1105_port_status_hl1_unpack()
144 sja1105_unpack(p + 0xB, &status->n_crcerr, 31, 0, 4); in sja1105_port_status_hl1_unpack()
145 sja1105_unpack(p + 0xA, &status->n_vlnotfound, 31, 0, 4); in sja1105_port_status_hl1_unpack()
146 sja1105_unpack(p + 0x9, &status->n_ctpolerr, 31, 0, 4); in sja1105_port_status_hl1_unpack()
147 sja1105_unpack(p + 0x8, &status->n_polerr, 31, 0, 4); in sja1105_port_status_hl1_unpack()
148 sja1105_unpack(p + 0x7, &status->n_rxfrmsh, 31, 0, 4); in sja1105_port_status_hl1_unpack()
149 sja1105_unpack(p + 0x6, &status->n_rxfrm, 31, 0, 4); in sja1105_port_status_hl1_unpack()
150 sja1105_unpack(p + 0x5, &status->n_rxbytesh, 31, 0, 4); in sja1105_port_status_hl1_unpack()
151 sja1105_unpack(p + 0x4, &status->n_rxbyte, 31, 0, 4); in sja1105_port_status_hl1_unpack()
152 sja1105_unpack(p + 0x3, &status->n_txfrmsh, 31, 0, 4); in sja1105_port_status_hl1_unpack()
153 sja1105_unpack(p + 0x2, &status->n_txfrm, 31, 0, 4); in sja1105_port_status_hl1_unpack()
154 sja1105_unpack(p + 0x1, &status->n_txbytesh, 31, 0, 4); in sja1105_port_status_hl1_unpack()
155 sja1105_unpack(p + 0x0, &status->n_txbyte, 31, 0, 4); in sja1105_port_status_hl1_unpack()
156 status->n_rxfrm += status->n_rxfrmsh << 32; in sja1105_port_status_hl1_unpack()
157 status->n_rxbyte += status->n_rxbytesh << 32; in sja1105_port_status_hl1_unpack()
158 status->n_txfrm += status->n_txfrmsh << 32; in sja1105_port_status_hl1_unpack()
159 status->n_txbyte += status->n_txbytesh << 32; in sja1105_port_status_hl1_unpack()
164 struct sja1105_port_status_hl2 *status) in sja1105_port_status_hl2_unpack() argument
169 sja1105_unpack(p + 0x3, &status->n_qfull, 31, 0, 4); in sja1105_port_status_hl2_unpack()
170 sja1105_unpack(p + 0x2, &status->n_part_drop, 31, 0, 4); in sja1105_port_status_hl2_unpack()
171 sja1105_unpack(p + 0x1, &status->n_egr_disabled, 31, 0, 4); in sja1105_port_status_hl2_unpack()
172 sja1105_unpack(p + 0x0, &status->n_not_reach, 31, 0, 4); in sja1105_port_status_hl2_unpack()
177 struct sja1105_port_status_hl2 *status) in sja1105pqrs_port_status_qlevel_unpack() argument
184 sja1105_unpack(p + i, &status->qlevel_hwm[i], 24, 16, 4); in sja1105pqrs_port_status_qlevel_unpack()
185 sja1105_unpack(p + i, &status->qlevel[i], 8, 0, 4); in sja1105pqrs_port_status_qlevel_unpack()
191 struct sja1105_port_status_ether *status) in sja1105pqrs_port_status_ether_unpack() argument
196 sja1105_unpack(p + 0x16, &status->n_drops_nolearn, 31, 0, 4); in sja1105pqrs_port_status_ether_unpack()
197 sja1105_unpack(p + 0x15, &status->n_drops_noroute, 31, 0, 4); in sja1105pqrs_port_status_ether_unpack()
198 sja1105_unpack(p + 0x14, &status->n_drops_ill_dtag, 31, 0, 4); in sja1105pqrs_port_status_ether_unpack()
199 sja1105_unpack(p + 0x13, &status->n_drops_dtag, 31, 0, 4); in sja1105pqrs_port_status_ether_unpack()
200 sja1105_unpack(p + 0x12, &status->n_drops_sotag, 31, 0, 4); in sja1105pqrs_port_status_ether_unpack()
201 sja1105_unpack(p + 0x11, &status->n_drops_sitag, 31, 0, 4); in sja1105pqrs_port_status_ether_unpack()
202 sja1105_unpack(p + 0x10, &status->n_drops_utag, 31, 0, 4); in sja1105pqrs_port_status_ether_unpack()
203 sja1105_unpack(p + 0x0F, &status->n_tx_bytes_1024_2047, 31, 0, 4); in sja1105pqrs_port_status_ether_unpack()
204 sja1105_unpack(p + 0x0E, &status->n_tx_bytes_512_1023, 31, 0, 4); in sja1105pqrs_port_status_ether_unpack()
205 sja1105_unpack(p + 0x0D, &status->n_tx_bytes_256_511, 31, 0, 4); in sja1105pqrs_port_status_ether_unpack()
206 sja1105_unpack(p + 0x0C, &status->n_tx_bytes_128_255, 31, 0, 4); in sja1105pqrs_port_status_ether_unpack()
207 sja1105_unpack(p + 0x0B, &status->n_tx_bytes_65_127, 31, 0, 4); in sja1105pqrs_port_status_ether_unpack()
208 sja1105_unpack(p + 0x0A, &status->n_tx_bytes_64, 31, 0, 4); in sja1105pqrs_port_status_ether_unpack()
209 sja1105_unpack(p + 0x09, &status->n_tx_mcast, 31, 0, 4); in sja1105pqrs_port_status_ether_unpack()
210 sja1105_unpack(p + 0x08, &status->n_tx_bcast, 31, 0, 4); in sja1105pqrs_port_status_ether_unpack()
211 sja1105_unpack(p + 0x07, &status->n_rx_bytes_1024_2047, 31, 0, 4); in sja1105pqrs_port_status_ether_unpack()
212 sja1105_unpack(p + 0x06, &status->n_rx_bytes_512_1023, 31, 0, 4); in sja1105pqrs_port_status_ether_unpack()
213 sja1105_unpack(p + 0x05, &status->n_rx_bytes_256_511, 31, 0, 4); in sja1105pqrs_port_status_ether_unpack()
214 sja1105_unpack(p + 0x04, &status->n_rx_bytes_128_255, 31, 0, 4); in sja1105pqrs_port_status_ether_unpack()
215 sja1105_unpack(p + 0x03, &status->n_rx_bytes_65_127, 31, 0, 4); in sja1105pqrs_port_status_ether_unpack()
216 sja1105_unpack(p + 0x02, &status->n_rx_bytes_64, 31, 0, 4); in sja1105pqrs_port_status_ether_unpack()
217 sja1105_unpack(p + 0x01, &status->n_rx_mcast, 31, 0, 4); in sja1105pqrs_port_status_ether_unpack()
218 sja1105_unpack(p + 0x00, &status->n_rx_bcast, 31, 0, 4); in sja1105pqrs_port_status_ether_unpack()
242 struct sja1105_port_status_mac *status, in sja1105_port_status_get_mac() argument
255 sja1105_port_status_mac_unpack(packed_buf, status); in sja1105_port_status_get_mac()
261 struct sja1105_port_status_hl1 *status, in sja1105_port_status_get_hl1() argument
273 sja1105_port_status_hl1_unpack(packed_buf, status); in sja1105_port_status_get_hl1()
279 struct sja1105_port_status_hl2 *status, in sja1105_port_status_get_hl2() argument
291 sja1105_port_status_hl2_unpack(packed_buf, status); in sja1105_port_status_get_hl2()
303 sja1105pqrs_port_status_qlevel_unpack(packed_buf, status); in sja1105_port_status_get_hl2()
309 struct sja1105_port_status *status, in sja1105_port_status_get() argument
314 rc = sja1105_port_status_get_mac(priv, &status->mac, port); in sja1105_port_status_get()
317 rc = sja1105_port_status_get_hl1(priv, &status->hl1, port); in sja1105_port_status_get()
320 rc = sja1105_port_status_get_hl2(priv, &status->hl2, port); in sja1105_port_status_get()
328 return sja1105pqrs_port_status_get_ether(priv, &status->ether, port); in sja1105_port_status_get()
424 struct sja1105_port_status *status; in sja1105_get_ethtool_stats() local
427 status = kzalloc(sizeof(*status), GFP_KERNEL); in sja1105_get_ethtool_stats()
428 if (!status) in sja1105_get_ethtool_stats()
431 rc = sja1105_port_status_get(priv, status, port); in sja1105_get_ethtool_stats()
438 data[k++] = status->mac.n_runt; in sja1105_get_ethtool_stats()
439 data[k++] = status->mac.n_soferr; in sja1105_get_ethtool_stats()
440 data[k++] = status->mac.n_alignerr; in sja1105_get_ethtool_stats()
441 data[k++] = status->mac.n_miierr; in sja1105_get_ethtool_stats()
442 data[k++] = status->mac.typeerr; in sja1105_get_ethtool_stats()
443 data[k++] = status->mac.sizeerr; in sja1105_get_ethtool_stats()
444 data[k++] = status->mac.tctimeout; in sja1105_get_ethtool_stats()
445 data[k++] = status->mac.priorerr; in sja1105_get_ethtool_stats()
446 data[k++] = status->mac.nomaster; in sja1105_get_ethtool_stats()
447 data[k++] = status->mac.memov; in sja1105_get_ethtool_stats()
448 data[k++] = status->mac.memerr; in sja1105_get_ethtool_stats()
449 data[k++] = status->mac.invtyp; in sja1105_get_ethtool_stats()
450 data[k++] = status->mac.intcyov; in sja1105_get_ethtool_stats()
451 data[k++] = status->mac.domerr; in sja1105_get_ethtool_stats()
452 data[k++] = status->mac.pcfbagdrop; in sja1105_get_ethtool_stats()
453 data[k++] = status->mac.spcprior; in sja1105_get_ethtool_stats()
454 data[k++] = status->mac.ageprior; in sja1105_get_ethtool_stats()
455 data[k++] = status->mac.portdrop; in sja1105_get_ethtool_stats()
456 data[k++] = status->mac.lendrop; in sja1105_get_ethtool_stats()
457 data[k++] = status->mac.bagdrop; in sja1105_get_ethtool_stats()
458 data[k++] = status->mac.policeerr; in sja1105_get_ethtool_stats()
459 data[k++] = status->mac.drpnona664err; in sja1105_get_ethtool_stats()
460 data[k++] = status->mac.spcerr; in sja1105_get_ethtool_stats()
461 data[k++] = status->mac.agedrp; in sja1105_get_ethtool_stats()
462 data[k++] = status->hl1.n_n664err; in sja1105_get_ethtool_stats()
463 data[k++] = status->hl1.n_vlanerr; in sja1105_get_ethtool_stats()
464 data[k++] = status->hl1.n_unreleased; in sja1105_get_ethtool_stats()
465 data[k++] = status->hl1.n_sizeerr; in sja1105_get_ethtool_stats()
466 data[k++] = status->hl1.n_crcerr; in sja1105_get_ethtool_stats()
467 data[k++] = status->hl1.n_vlnotfound; in sja1105_get_ethtool_stats()
468 data[k++] = status->hl1.n_ctpolerr; in sja1105_get_ethtool_stats()
469 data[k++] = status->hl1.n_polerr; in sja1105_get_ethtool_stats()
470 data[k++] = status->hl1.n_rxfrm; in sja1105_get_ethtool_stats()
471 data[k++] = status->hl1.n_rxbyte; in sja1105_get_ethtool_stats()
472 data[k++] = status->hl1.n_txfrm; in sja1105_get_ethtool_stats()
473 data[k++] = status->hl1.n_txbyte; in sja1105_get_ethtool_stats()
474 data[k++] = status->hl2.n_qfull; in sja1105_get_ethtool_stats()
475 data[k++] = status->hl2.n_part_drop; in sja1105_get_ethtool_stats()
476 data[k++] = status->hl2.n_egr_disabled; in sja1105_get_ethtool_stats()
477 data[k++] = status->hl2.n_not_reach; in sja1105_get_ethtool_stats()
486 data[k++] = status->hl2.qlevel_hwm[i]; in sja1105_get_ethtool_stats()
487 data[k++] = status->hl2.qlevel[i]; in sja1105_get_ethtool_stats()
489 data[k++] = status->ether.n_drops_nolearn; in sja1105_get_ethtool_stats()
490 data[k++] = status->ether.n_drops_noroute; in sja1105_get_ethtool_stats()
491 data[k++] = status->ether.n_drops_ill_dtag; in sja1105_get_ethtool_stats()
492 data[k++] = status->ether.n_drops_dtag; in sja1105_get_ethtool_stats()
493 data[k++] = status->ether.n_drops_sotag; in sja1105_get_ethtool_stats()
494 data[k++] = status->ether.n_drops_sitag; in sja1105_get_ethtool_stats()
495 data[k++] = status->ether.n_drops_utag; in sja1105_get_ethtool_stats()
496 data[k++] = status->ether.n_tx_bytes_1024_2047; in sja1105_get_ethtool_stats()
497 data[k++] = status->ether.n_tx_bytes_512_1023; in sja1105_get_ethtool_stats()
498 data[k++] = status->ether.n_tx_bytes_256_511; in sja1105_get_ethtool_stats()
499 data[k++] = status->ether.n_tx_bytes_128_255; in sja1105_get_ethtool_stats()
500 data[k++] = status->ether.n_tx_bytes_65_127; in sja1105_get_ethtool_stats()
501 data[k++] = status->ether.n_tx_bytes_64; in sja1105_get_ethtool_stats()
502 data[k++] = status->ether.n_tx_mcast; in sja1105_get_ethtool_stats()
503 data[k++] = status->ether.n_tx_bcast; in sja1105_get_ethtool_stats()
504 data[k++] = status->ether.n_rx_bytes_1024_2047; in sja1105_get_ethtool_stats()
505 data[k++] = status->ether.n_rx_bytes_512_1023; in sja1105_get_ethtool_stats()
506 data[k++] = status->ether.n_rx_bytes_256_511; in sja1105_get_ethtool_stats()
507 data[k++] = status->ether.n_rx_bytes_128_255; in sja1105_get_ethtool_stats()
508 data[k++] = status->ether.n_rx_bytes_65_127; in sja1105_get_ethtool_stats()
509 data[k++] = status->ether.n_rx_bytes_64; in sja1105_get_ethtool_stats()
510 data[k++] = status->ether.n_rx_mcast; in sja1105_get_ethtool_stats()
511 data[k++] = status->ether.n_rx_bcast; in sja1105_get_ethtool_stats()
513 kfree(status); in sja1105_get_ethtool_stats()