Lines Matching refs:ppcnt_pl
770 int prio, char *ppcnt_pl) in mlxsw_sp_port_get_stats_raw() argument
775 mlxsw_reg_ppcnt_pack(ppcnt_pl, mlxsw_sp_port->local_port, grp, prio); in mlxsw_sp_port_get_stats_raw()
776 return mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(ppcnt), ppcnt_pl); in mlxsw_sp_port_get_stats_raw()
782 char ppcnt_pl[MLXSW_REG_PPCNT_LEN]; in mlxsw_sp_port_get_hw_stats() local
786 0, ppcnt_pl); in mlxsw_sp_port_get_hw_stats()
791 mlxsw_reg_ppcnt_a_frames_transmitted_ok_get(ppcnt_pl); in mlxsw_sp_port_get_hw_stats()
793 mlxsw_reg_ppcnt_a_frames_received_ok_get(ppcnt_pl); in mlxsw_sp_port_get_hw_stats()
795 mlxsw_reg_ppcnt_a_octets_transmitted_ok_get(ppcnt_pl); in mlxsw_sp_port_get_hw_stats()
797 mlxsw_reg_ppcnt_a_octets_received_ok_get(ppcnt_pl); in mlxsw_sp_port_get_hw_stats()
799 mlxsw_reg_ppcnt_a_multicast_frames_received_ok_get(ppcnt_pl); in mlxsw_sp_port_get_hw_stats()
802 mlxsw_reg_ppcnt_a_frame_check_sequence_errors_get(ppcnt_pl); in mlxsw_sp_port_get_hw_stats()
804 mlxsw_reg_ppcnt_a_alignment_errors_get(ppcnt_pl); in mlxsw_sp_port_get_hw_stats()
807 mlxsw_reg_ppcnt_a_in_range_length_errors_get(ppcnt_pl) + in mlxsw_sp_port_get_hw_stats()
808 mlxsw_reg_ppcnt_a_out_of_range_length_field_get(ppcnt_pl) + in mlxsw_sp_port_get_hw_stats()
809 mlxsw_reg_ppcnt_a_frame_too_long_errors_get(ppcnt_pl)); in mlxsw_sp_port_get_hw_stats()
822 char ppcnt_pl[MLXSW_REG_PPCNT_LEN]; in mlxsw_sp_port_get_hw_xstats() local
826 ppcnt_pl); in mlxsw_sp_port_get_hw_xstats()
828 xstats->ecn = mlxsw_reg_ppcnt_ecn_marked_get(ppcnt_pl); in mlxsw_sp_port_get_hw_xstats()
833 i, ppcnt_pl); in mlxsw_sp_port_get_hw_xstats()
838 mlxsw_reg_ppcnt_wred_discard_get(ppcnt_pl); in mlxsw_sp_port_get_hw_xstats()
839 xstats->tc_ecn[i] = mlxsw_reg_ppcnt_ecn_marked_tc_get(ppcnt_pl); in mlxsw_sp_port_get_hw_xstats()
843 i, ppcnt_pl); in mlxsw_sp_port_get_hw_xstats()
848 mlxsw_reg_ppcnt_tc_transmit_queue_get(ppcnt_pl); in mlxsw_sp_port_get_hw_xstats()
850 mlxsw_reg_ppcnt_tc_no_buffer_discard_uc_get(ppcnt_pl); in mlxsw_sp_port_get_hw_xstats()
855 i, ppcnt_pl); in mlxsw_sp_port_get_hw_xstats()
859 xstats->tx_packets[i] = mlxsw_reg_ppcnt_tx_frames_get(ppcnt_pl); in mlxsw_sp_port_get_hw_xstats()
860 xstats->tx_bytes[i] = mlxsw_reg_ppcnt_tx_octets_get(ppcnt_pl); in mlxsw_sp_port_get_hw_xstats()