• Home
  • Raw
  • Download

Lines Matching refs:stats

308 			lan966x_add_cnt(&lan966x->stats[idx++],  in lan966x_stats_update()
342 struct ethtool_stats *stats, u64 *data) in lan966x_get_ethtool_stats() argument
353 *data++ = lan966x->stats[port->chip_port * in lan966x_get_ethtool_stats()
371 lan966x->stats[idx + SYS_COUNT_TX_UC] + in lan966x_get_eth_mac_stats()
372 lan966x->stats[idx + SYS_COUNT_TX_MC] + in lan966x_get_eth_mac_stats()
373 lan966x->stats[idx + SYS_COUNT_TX_BC] + in lan966x_get_eth_mac_stats()
374 lan966x->stats[idx + SYS_COUNT_TX_PMAC_UC] + in lan966x_get_eth_mac_stats()
375 lan966x->stats[idx + SYS_COUNT_TX_PMAC_MC] + in lan966x_get_eth_mac_stats()
376 lan966x->stats[idx + SYS_COUNT_TX_PMAC_BC]; in lan966x_get_eth_mac_stats()
378 lan966x->stats[idx + SYS_COUNT_TX_COL]; in lan966x_get_eth_mac_stats()
381 lan966x->stats[idx + SYS_COUNT_RX_UC] + in lan966x_get_eth_mac_stats()
382 lan966x->stats[idx + SYS_COUNT_RX_MC] + in lan966x_get_eth_mac_stats()
383 lan966x->stats[idx + SYS_COUNT_RX_BC]; in lan966x_get_eth_mac_stats()
385 lan966x->stats[idx + SYS_COUNT_RX_CRC] + in lan966x_get_eth_mac_stats()
386 lan966x->stats[idx + SYS_COUNT_RX_CRC]; in lan966x_get_eth_mac_stats()
389 lan966x->stats[idx + SYS_COUNT_TX_OCT] + in lan966x_get_eth_mac_stats()
390 lan966x->stats[idx + SYS_COUNT_TX_PMAC_OCT]; in lan966x_get_eth_mac_stats()
392 lan966x->stats[idx + SYS_COUNT_TX_MM_HOLD]; in lan966x_get_eth_mac_stats()
398 lan966x->stats[idx + SYS_COUNT_RX_OCT]; in lan966x_get_eth_mac_stats()
401 lan966x->stats[idx + SYS_COUNT_TX_MC] + in lan966x_get_eth_mac_stats()
402 lan966x->stats[idx + SYS_COUNT_TX_PMAC_MC]; in lan966x_get_eth_mac_stats()
404 lan966x->stats[idx + SYS_COUNT_TX_BC] + in lan966x_get_eth_mac_stats()
405 lan966x->stats[idx + SYS_COUNT_TX_PMAC_BC]; in lan966x_get_eth_mac_stats()
408 lan966x->stats[idx + SYS_COUNT_RX_MC]; in lan966x_get_eth_mac_stats()
410 lan966x->stats[idx + SYS_COUNT_RX_BC]; in lan966x_get_eth_mac_stats()
412 lan966x->stats[idx + SYS_COUNT_RX_FRAG] + in lan966x_get_eth_mac_stats()
413 lan966x->stats[idx + SYS_COUNT_RX_JABBER] + in lan966x_get_eth_mac_stats()
414 lan966x->stats[idx + SYS_COUNT_RX_CRC] + in lan966x_get_eth_mac_stats()
415 lan966x->stats[idx + SYS_COUNT_RX_PMAC_FRAG] + in lan966x_get_eth_mac_stats()
416 lan966x->stats[idx + SYS_COUNT_RX_PMAC_JABBER] + in lan966x_get_eth_mac_stats()
417 lan966x->stats[idx + SYS_COUNT_RX_PMAC_CRC]; in lan966x_get_eth_mac_stats()
419 lan966x->stats[idx + SYS_COUNT_RX_SHORT] + in lan966x_get_eth_mac_stats()
420 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SHORT] + in lan966x_get_eth_mac_stats()
421 lan966x->stats[idx + SYS_COUNT_RX_LONG] + in lan966x_get_eth_mac_stats()
422 lan966x->stats[idx + SYS_COUNT_RX_PMAC_LONG]; in lan966x_get_eth_mac_stats()
424 lan966x->stats[idx + SYS_COUNT_RX_LONG] + in lan966x_get_eth_mac_stats()
425 lan966x->stats[idx + SYS_COUNT_RX_PMAC_LONG]; in lan966x_get_eth_mac_stats()
456 lan966x->stats[idx + SYS_COUNT_RX_SHORT] + in lan966x_get_eth_rmon_stats()
457 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SHORT]; in lan966x_get_eth_rmon_stats()
459 lan966x->stats[idx + SYS_COUNT_RX_LONG] + in lan966x_get_eth_rmon_stats()
460 lan966x->stats[idx + SYS_COUNT_RX_PMAC_LONG]; in lan966x_get_eth_rmon_stats()
462 lan966x->stats[idx + SYS_COUNT_RX_FRAG] + in lan966x_get_eth_rmon_stats()
463 lan966x->stats[idx + SYS_COUNT_RX_PMAC_FRAG]; in lan966x_get_eth_rmon_stats()
465 lan966x->stats[idx + SYS_COUNT_RX_JABBER] + in lan966x_get_eth_rmon_stats()
466 lan966x->stats[idx + SYS_COUNT_RX_PMAC_JABBER]; in lan966x_get_eth_rmon_stats()
468 lan966x->stats[idx + SYS_COUNT_RX_SZ_64] + in lan966x_get_eth_rmon_stats()
469 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_64]; in lan966x_get_eth_rmon_stats()
471 lan966x->stats[idx + SYS_COUNT_RX_SZ_65_127] + in lan966x_get_eth_rmon_stats()
472 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_65_127]; in lan966x_get_eth_rmon_stats()
474 lan966x->stats[idx + SYS_COUNT_RX_SZ_128_255] + in lan966x_get_eth_rmon_stats()
475 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_128_255]; in lan966x_get_eth_rmon_stats()
477 lan966x->stats[idx + SYS_COUNT_RX_SZ_256_511] + in lan966x_get_eth_rmon_stats()
478 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_256_511]; in lan966x_get_eth_rmon_stats()
480 lan966x->stats[idx + SYS_COUNT_RX_SZ_512_1023] + in lan966x_get_eth_rmon_stats()
481 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_512_1023]; in lan966x_get_eth_rmon_stats()
483 lan966x->stats[idx + SYS_COUNT_RX_SZ_1024_1526] + in lan966x_get_eth_rmon_stats()
484 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_1024_1526]; in lan966x_get_eth_rmon_stats()
486 lan966x->stats[idx + SYS_COUNT_RX_SZ_1024_1526] + in lan966x_get_eth_rmon_stats()
487 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_1024_1526]; in lan966x_get_eth_rmon_stats()
490 lan966x->stats[idx + SYS_COUNT_TX_SZ_64] + in lan966x_get_eth_rmon_stats()
491 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_64]; in lan966x_get_eth_rmon_stats()
493 lan966x->stats[idx + SYS_COUNT_TX_SZ_65_127] + in lan966x_get_eth_rmon_stats()
494 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_65_127]; in lan966x_get_eth_rmon_stats()
496 lan966x->stats[idx + SYS_COUNT_TX_SZ_128_255] + in lan966x_get_eth_rmon_stats()
497 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_128_255]; in lan966x_get_eth_rmon_stats()
499 lan966x->stats[idx + SYS_COUNT_TX_SZ_256_511] + in lan966x_get_eth_rmon_stats()
500 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_256_511]; in lan966x_get_eth_rmon_stats()
502 lan966x->stats[idx + SYS_COUNT_TX_SZ_512_1023] + in lan966x_get_eth_rmon_stats()
503 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_512_1023]; in lan966x_get_eth_rmon_stats()
505 lan966x->stats[idx + SYS_COUNT_TX_SZ_1024_1526] + in lan966x_get_eth_rmon_stats()
506 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_1024_1526]; in lan966x_get_eth_rmon_stats()
508 lan966x->stats[idx + SYS_COUNT_TX_SZ_1024_1526] + in lan966x_get_eth_rmon_stats()
509 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_1024_1526]; in lan966x_get_eth_rmon_stats()
608 struct rtnl_link_stats64 *stats) in lan966x_stats_get() argument
619 stats->rx_bytes = lan966x->stats[idx + SYS_COUNT_RX_OCT] + in lan966x_stats_get()
620 lan966x->stats[idx + SYS_COUNT_RX_PMAC_OCT]; in lan966x_stats_get()
622 stats->rx_packets = lan966x->stats[idx + SYS_COUNT_RX_SHORT] + in lan966x_stats_get()
623 lan966x->stats[idx + SYS_COUNT_RX_FRAG] + in lan966x_stats_get()
624 lan966x->stats[idx + SYS_COUNT_RX_JABBER] + in lan966x_stats_get()
625 lan966x->stats[idx + SYS_COUNT_RX_CRC] + in lan966x_stats_get()
626 lan966x->stats[idx + SYS_COUNT_RX_SYMBOL_ERR] + in lan966x_stats_get()
627 lan966x->stats[idx + SYS_COUNT_RX_SZ_64] + in lan966x_stats_get()
628 lan966x->stats[idx + SYS_COUNT_RX_SZ_65_127] + in lan966x_stats_get()
629 lan966x->stats[idx + SYS_COUNT_RX_SZ_128_255] + in lan966x_stats_get()
630 lan966x->stats[idx + SYS_COUNT_RX_SZ_256_511] + in lan966x_stats_get()
631 lan966x->stats[idx + SYS_COUNT_RX_SZ_512_1023] + in lan966x_stats_get()
632 lan966x->stats[idx + SYS_COUNT_RX_SZ_1024_1526] + in lan966x_stats_get()
633 lan966x->stats[idx + SYS_COUNT_RX_SZ_JUMBO] + in lan966x_stats_get()
634 lan966x->stats[idx + SYS_COUNT_RX_LONG] + in lan966x_stats_get()
635 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SHORT] + in lan966x_stats_get()
636 lan966x->stats[idx + SYS_COUNT_RX_PMAC_FRAG] + in lan966x_stats_get()
637 lan966x->stats[idx + SYS_COUNT_RX_PMAC_JABBER] + in lan966x_stats_get()
638 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_64] + in lan966x_stats_get()
639 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_65_127] + in lan966x_stats_get()
640 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_128_255] + in lan966x_stats_get()
641 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_256_511] + in lan966x_stats_get()
642 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_512_1023] + in lan966x_stats_get()
643 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_1024_1526] + in lan966x_stats_get()
644 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_JUMBO]; in lan966x_stats_get()
646 stats->multicast = lan966x->stats[idx + SYS_COUNT_RX_MC] + in lan966x_stats_get()
647 lan966x->stats[idx + SYS_COUNT_RX_PMAC_MC]; in lan966x_stats_get()
649 stats->rx_errors = lan966x->stats[idx + SYS_COUNT_RX_SHORT] + in lan966x_stats_get()
650 lan966x->stats[idx + SYS_COUNT_RX_FRAG] + in lan966x_stats_get()
651 lan966x->stats[idx + SYS_COUNT_RX_JABBER] + in lan966x_stats_get()
652 lan966x->stats[idx + SYS_COUNT_RX_CRC] + in lan966x_stats_get()
653 lan966x->stats[idx + SYS_COUNT_RX_SYMBOL_ERR] + in lan966x_stats_get()
654 lan966x->stats[idx + SYS_COUNT_RX_LONG]; in lan966x_stats_get()
656 stats->rx_dropped = dev->stats.rx_dropped + in lan966x_stats_get()
657 lan966x->stats[idx + SYS_COUNT_RX_LONG] + in lan966x_stats_get()
658 lan966x->stats[idx + SYS_COUNT_DR_LOCAL] + in lan966x_stats_get()
659 lan966x->stats[idx + SYS_COUNT_DR_TAIL] + in lan966x_stats_get()
660 lan966x->stats[idx + SYS_COUNT_RX_RED_PRIO_0] + in lan966x_stats_get()
661 lan966x->stats[idx + SYS_COUNT_RX_RED_PRIO_1] + in lan966x_stats_get()
662 lan966x->stats[idx + SYS_COUNT_RX_RED_PRIO_2] + in lan966x_stats_get()
663 lan966x->stats[idx + SYS_COUNT_RX_RED_PRIO_3] + in lan966x_stats_get()
664 lan966x->stats[idx + SYS_COUNT_RX_RED_PRIO_4] + in lan966x_stats_get()
665 lan966x->stats[idx + SYS_COUNT_RX_RED_PRIO_5] + in lan966x_stats_get()
666 lan966x->stats[idx + SYS_COUNT_RX_RED_PRIO_6] + in lan966x_stats_get()
667 lan966x->stats[idx + SYS_COUNT_RX_RED_PRIO_7]; in lan966x_stats_get()
670 stats->rx_dropped += in lan966x_stats_get()
671 (lan966x->stats[idx + SYS_COUNT_DR_YELLOW_PRIO_0 + i] + in lan966x_stats_get()
672 lan966x->stats[idx + SYS_COUNT_DR_GREEN_PRIO_0 + i]); in lan966x_stats_get()
676 stats->tx_bytes = lan966x->stats[idx + SYS_COUNT_TX_OCT] + in lan966x_stats_get()
677 lan966x->stats[idx + SYS_COUNT_TX_PMAC_OCT]; in lan966x_stats_get()
679 stats->tx_packets = lan966x->stats[idx + SYS_COUNT_TX_SZ_64] + in lan966x_stats_get()
680 lan966x->stats[idx + SYS_COUNT_TX_SZ_65_127] + in lan966x_stats_get()
681 lan966x->stats[idx + SYS_COUNT_TX_SZ_128_255] + in lan966x_stats_get()
682 lan966x->stats[idx + SYS_COUNT_TX_SZ_256_511] + in lan966x_stats_get()
683 lan966x->stats[idx + SYS_COUNT_TX_SZ_512_1023] + in lan966x_stats_get()
684 lan966x->stats[idx + SYS_COUNT_TX_SZ_1024_1526] + in lan966x_stats_get()
685 lan966x->stats[idx + SYS_COUNT_TX_SZ_JUMBO] + in lan966x_stats_get()
686 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_64] + in lan966x_stats_get()
687 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_65_127] + in lan966x_stats_get()
688 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_128_255] + in lan966x_stats_get()
689 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_256_511] + in lan966x_stats_get()
690 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_512_1023] + in lan966x_stats_get()
691 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_1024_1526] + in lan966x_stats_get()
692 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_JUMBO]; in lan966x_stats_get()
694 stats->tx_dropped = lan966x->stats[idx + SYS_COUNT_TX_DROP] + in lan966x_stats_get()
695 lan966x->stats[idx + SYS_COUNT_TX_AGED]; in lan966x_stats_get()
697 stats->collisions = lan966x->stats[idx + SYS_COUNT_TX_COL]; in lan966x_stats_get()
708 lan966x->stats = devm_kcalloc(lan966x->dev, lan966x->num_phys_ports * in lan966x_stats_init()
711 if (!lan966x->stats) in lan966x_stats_init()