Lines Matching refs:idx

300 		uint idx = i * lan966x->num_stats;  in lan966x_stats_update()  local
308 lan966x_add_cnt(&lan966x->stats[idx++], in lan966x_stats_update()
362 u32 idx; in lan966x_get_eth_mac_stats() local
366 idx = port->chip_port * lan966x->num_stats; in lan966x_get_eth_mac_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()
380 lan966x->stats[idx + SYS_COUNT_RX_UC] + in lan966x_get_eth_mac_stats()
381 lan966x->stats[idx + SYS_COUNT_RX_MC] + in lan966x_get_eth_mac_stats()
382 lan966x->stats[idx + SYS_COUNT_RX_BC]; in lan966x_get_eth_mac_stats()
384 lan966x->stats[idx + SYS_COUNT_RX_CRC] + in lan966x_get_eth_mac_stats()
385 lan966x->stats[idx + SYS_COUNT_RX_CRC]; in lan966x_get_eth_mac_stats()
387 lan966x->stats[idx + SYS_COUNT_TX_OCT] + in lan966x_get_eth_mac_stats()
388 lan966x->stats[idx + SYS_COUNT_TX_PMAC_OCT]; in lan966x_get_eth_mac_stats()
390 lan966x->stats[idx + SYS_COUNT_TX_MM_HOLD]; in lan966x_get_eth_mac_stats()
392 lan966x->stats[idx + SYS_COUNT_RX_OCT]; in lan966x_get_eth_mac_stats()
394 lan966x->stats[idx + SYS_COUNT_TX_MC] + in lan966x_get_eth_mac_stats()
395 lan966x->stats[idx + SYS_COUNT_TX_PMAC_MC]; in lan966x_get_eth_mac_stats()
397 lan966x->stats[idx + SYS_COUNT_TX_BC] + in lan966x_get_eth_mac_stats()
398 lan966x->stats[idx + SYS_COUNT_TX_PMAC_BC]; in lan966x_get_eth_mac_stats()
400 lan966x->stats[idx + SYS_COUNT_RX_MC]; in lan966x_get_eth_mac_stats()
402 lan966x->stats[idx + SYS_COUNT_RX_BC]; in lan966x_get_eth_mac_stats()
404 lan966x->stats[idx + SYS_COUNT_RX_FRAG] + in lan966x_get_eth_mac_stats()
405 lan966x->stats[idx + SYS_COUNT_RX_JABBER] + in lan966x_get_eth_mac_stats()
406 lan966x->stats[idx + SYS_COUNT_RX_CRC] + in lan966x_get_eth_mac_stats()
407 lan966x->stats[idx + SYS_COUNT_RX_PMAC_FRAG] + in lan966x_get_eth_mac_stats()
408 lan966x->stats[idx + SYS_COUNT_RX_PMAC_JABBER] + in lan966x_get_eth_mac_stats()
409 lan966x->stats[idx + SYS_COUNT_RX_PMAC_CRC]; in lan966x_get_eth_mac_stats()
411 lan966x->stats[idx + SYS_COUNT_RX_SHORT] + in lan966x_get_eth_mac_stats()
412 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SHORT] + in lan966x_get_eth_mac_stats()
413 lan966x->stats[idx + SYS_COUNT_RX_LONG] + in lan966x_get_eth_mac_stats()
414 lan966x->stats[idx + SYS_COUNT_RX_PMAC_LONG]; in lan966x_get_eth_mac_stats()
416 lan966x->stats[idx + SYS_COUNT_RX_LONG] + in lan966x_get_eth_mac_stats()
417 lan966x->stats[idx + SYS_COUNT_RX_PMAC_LONG]; in lan966x_get_eth_mac_stats()
439 u32 idx; in lan966x_get_eth_rmon_stats() local
443 idx = port->chip_port * lan966x->num_stats; in lan966x_get_eth_rmon_stats()
448 lan966x->stats[idx + SYS_COUNT_RX_SHORT] + in lan966x_get_eth_rmon_stats()
449 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SHORT]; in lan966x_get_eth_rmon_stats()
451 lan966x->stats[idx + SYS_COUNT_RX_LONG] + in lan966x_get_eth_rmon_stats()
452 lan966x->stats[idx + SYS_COUNT_RX_PMAC_LONG]; in lan966x_get_eth_rmon_stats()
454 lan966x->stats[idx + SYS_COUNT_RX_FRAG] + in lan966x_get_eth_rmon_stats()
455 lan966x->stats[idx + SYS_COUNT_RX_PMAC_FRAG]; in lan966x_get_eth_rmon_stats()
457 lan966x->stats[idx + SYS_COUNT_RX_JABBER] + in lan966x_get_eth_rmon_stats()
458 lan966x->stats[idx + SYS_COUNT_RX_PMAC_JABBER]; in lan966x_get_eth_rmon_stats()
460 lan966x->stats[idx + SYS_COUNT_RX_SZ_64] + in lan966x_get_eth_rmon_stats()
461 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_64]; in lan966x_get_eth_rmon_stats()
463 lan966x->stats[idx + SYS_COUNT_RX_SZ_65_127] + in lan966x_get_eth_rmon_stats()
464 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_65_127]; in lan966x_get_eth_rmon_stats()
466 lan966x->stats[idx + SYS_COUNT_RX_SZ_128_255] + in lan966x_get_eth_rmon_stats()
467 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_128_255]; in lan966x_get_eth_rmon_stats()
469 lan966x->stats[idx + SYS_COUNT_RX_SZ_256_511] + in lan966x_get_eth_rmon_stats()
470 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_256_511]; in lan966x_get_eth_rmon_stats()
472 lan966x->stats[idx + SYS_COUNT_RX_SZ_512_1023] + in lan966x_get_eth_rmon_stats()
473 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_512_1023]; in lan966x_get_eth_rmon_stats()
475 lan966x->stats[idx + SYS_COUNT_RX_SZ_1024_1526] + in lan966x_get_eth_rmon_stats()
476 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_1024_1526]; in lan966x_get_eth_rmon_stats()
478 lan966x->stats[idx + SYS_COUNT_RX_SZ_1024_1526] + in lan966x_get_eth_rmon_stats()
479 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_1024_1526]; in lan966x_get_eth_rmon_stats()
482 lan966x->stats[idx + SYS_COUNT_TX_SZ_64] + in lan966x_get_eth_rmon_stats()
483 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_64]; in lan966x_get_eth_rmon_stats()
485 lan966x->stats[idx + SYS_COUNT_TX_SZ_65_127] + in lan966x_get_eth_rmon_stats()
486 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_65_127]; in lan966x_get_eth_rmon_stats()
488 lan966x->stats[idx + SYS_COUNT_TX_SZ_128_255] + in lan966x_get_eth_rmon_stats()
489 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_128_255]; in lan966x_get_eth_rmon_stats()
491 lan966x->stats[idx + SYS_COUNT_TX_SZ_256_511] + in lan966x_get_eth_rmon_stats()
492 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_256_511]; in lan966x_get_eth_rmon_stats()
494 lan966x->stats[idx + SYS_COUNT_TX_SZ_512_1023] + in lan966x_get_eth_rmon_stats()
495 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_512_1023]; in lan966x_get_eth_rmon_stats()
497 lan966x->stats[idx + SYS_COUNT_TX_SZ_1024_1526] + in lan966x_get_eth_rmon_stats()
498 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_1024_1526]; in lan966x_get_eth_rmon_stats()
500 lan966x->stats[idx + SYS_COUNT_TX_SZ_1024_1526] + in lan966x_get_eth_rmon_stats()
501 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_1024_1526]; in lan966x_get_eth_rmon_stats()
601 u32 idx; in lan966x_stats_get() local
604 idx = port->chip_port * lan966x->num_stats; in lan966x_stats_get()
608 stats->rx_bytes = lan966x->stats[idx + SYS_COUNT_RX_OCT] + in lan966x_stats_get()
609 lan966x->stats[idx + SYS_COUNT_RX_PMAC_OCT]; in lan966x_stats_get()
611 stats->rx_packets = lan966x->stats[idx + SYS_COUNT_RX_SHORT] + in lan966x_stats_get()
612 lan966x->stats[idx + SYS_COUNT_RX_FRAG] + in lan966x_stats_get()
613 lan966x->stats[idx + SYS_COUNT_RX_JABBER] + in lan966x_stats_get()
614 lan966x->stats[idx + SYS_COUNT_RX_CRC] + in lan966x_stats_get()
615 lan966x->stats[idx + SYS_COUNT_RX_SYMBOL_ERR] + in lan966x_stats_get()
616 lan966x->stats[idx + SYS_COUNT_RX_SZ_64] + in lan966x_stats_get()
617 lan966x->stats[idx + SYS_COUNT_RX_SZ_65_127] + in lan966x_stats_get()
618 lan966x->stats[idx + SYS_COUNT_RX_SZ_128_255] + in lan966x_stats_get()
619 lan966x->stats[idx + SYS_COUNT_RX_SZ_256_511] + in lan966x_stats_get()
620 lan966x->stats[idx + SYS_COUNT_RX_SZ_512_1023] + in lan966x_stats_get()
621 lan966x->stats[idx + SYS_COUNT_RX_SZ_1024_1526] + in lan966x_stats_get()
622 lan966x->stats[idx + SYS_COUNT_RX_SZ_JUMBO] + in lan966x_stats_get()
623 lan966x->stats[idx + SYS_COUNT_RX_LONG] + in lan966x_stats_get()
624 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SHORT] + in lan966x_stats_get()
625 lan966x->stats[idx + SYS_COUNT_RX_PMAC_FRAG] + in lan966x_stats_get()
626 lan966x->stats[idx + SYS_COUNT_RX_PMAC_JABBER] + in lan966x_stats_get()
627 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_64] + in lan966x_stats_get()
628 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_65_127] + in lan966x_stats_get()
629 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_128_255] + in lan966x_stats_get()
630 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_256_511] + in lan966x_stats_get()
631 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_512_1023] + in lan966x_stats_get()
632 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_1024_1526] + in lan966x_stats_get()
633 lan966x->stats[idx + SYS_COUNT_RX_PMAC_SZ_JUMBO]; in lan966x_stats_get()
635 stats->multicast = lan966x->stats[idx + SYS_COUNT_RX_MC] + in lan966x_stats_get()
636 lan966x->stats[idx + SYS_COUNT_RX_PMAC_MC]; in lan966x_stats_get()
638 stats->rx_errors = lan966x->stats[idx + SYS_COUNT_RX_SHORT] + in lan966x_stats_get()
639 lan966x->stats[idx + SYS_COUNT_RX_FRAG] + in lan966x_stats_get()
640 lan966x->stats[idx + SYS_COUNT_RX_JABBER] + in lan966x_stats_get()
641 lan966x->stats[idx + SYS_COUNT_RX_CRC] + in lan966x_stats_get()
642 lan966x->stats[idx + SYS_COUNT_RX_SYMBOL_ERR] + in lan966x_stats_get()
643 lan966x->stats[idx + SYS_COUNT_RX_LONG]; in lan966x_stats_get()
646 lan966x->stats[idx + SYS_COUNT_RX_LONG] + in lan966x_stats_get()
647 lan966x->stats[idx + SYS_COUNT_DR_LOCAL] + in lan966x_stats_get()
648 lan966x->stats[idx + SYS_COUNT_DR_TAIL] + in lan966x_stats_get()
649 lan966x->stats[idx + SYS_COUNT_RX_RED_PRIO_0] + in lan966x_stats_get()
650 lan966x->stats[idx + SYS_COUNT_RX_RED_PRIO_1] + in lan966x_stats_get()
651 lan966x->stats[idx + SYS_COUNT_RX_RED_PRIO_2] + in lan966x_stats_get()
652 lan966x->stats[idx + SYS_COUNT_RX_RED_PRIO_3] + in lan966x_stats_get()
653 lan966x->stats[idx + SYS_COUNT_RX_RED_PRIO_4] + in lan966x_stats_get()
654 lan966x->stats[idx + SYS_COUNT_RX_RED_PRIO_5] + in lan966x_stats_get()
655 lan966x->stats[idx + SYS_COUNT_RX_RED_PRIO_6] + in lan966x_stats_get()
656 lan966x->stats[idx + SYS_COUNT_RX_RED_PRIO_7]; in lan966x_stats_get()
660 (lan966x->stats[idx + SYS_COUNT_DR_YELLOW_PRIO_0 + i] + in lan966x_stats_get()
661 lan966x->stats[idx + SYS_COUNT_DR_GREEN_PRIO_0 + i]); in lan966x_stats_get()
665 stats->tx_bytes = lan966x->stats[idx + SYS_COUNT_TX_OCT] + in lan966x_stats_get()
666 lan966x->stats[idx + SYS_COUNT_TX_PMAC_OCT]; in lan966x_stats_get()
668 stats->tx_packets = lan966x->stats[idx + SYS_COUNT_TX_SZ_64] + in lan966x_stats_get()
669 lan966x->stats[idx + SYS_COUNT_TX_SZ_65_127] + in lan966x_stats_get()
670 lan966x->stats[idx + SYS_COUNT_TX_SZ_128_255] + in lan966x_stats_get()
671 lan966x->stats[idx + SYS_COUNT_TX_SZ_256_511] + in lan966x_stats_get()
672 lan966x->stats[idx + SYS_COUNT_TX_SZ_512_1023] + in lan966x_stats_get()
673 lan966x->stats[idx + SYS_COUNT_TX_SZ_1024_1526] + in lan966x_stats_get()
674 lan966x->stats[idx + SYS_COUNT_TX_SZ_JUMBO] + in lan966x_stats_get()
675 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_64] + in lan966x_stats_get()
676 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_65_127] + in lan966x_stats_get()
677 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_128_255] + in lan966x_stats_get()
678 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_256_511] + in lan966x_stats_get()
679 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_512_1023] + in lan966x_stats_get()
680 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_1024_1526] + in lan966x_stats_get()
681 lan966x->stats[idx + SYS_COUNT_TX_PMAC_SZ_JUMBO]; in lan966x_stats_get()
683 stats->tx_dropped = lan966x->stats[idx + SYS_COUNT_TX_DROP] + in lan966x_stats_get()
684 lan966x->stats[idx + SYS_COUNT_TX_AGED]; in lan966x_stats_get()
686 stats->collisions = lan966x->stats[idx + SYS_COUNT_TX_COL]; in lan966x_stats_get()