Lines Matching refs:cnps

96 	struct bnxt_re_cc_stat *cnps;  in bnxt_re_get_qos_stats()  local
137 cnps = &rdev->stats.cnps; in bnxt_re_get_qos_stats()
139 if (!cnps->is_first) { in bnxt_re_get_qos_stats()
141 cnps->is_first = true; in bnxt_re_get_qos_stats()
142 cnps->prev[0].cnp_tx_pkts = tmp_counters[0].cnp_tx_pkts; in bnxt_re_get_qos_stats()
143 cnps->prev[0].cnp_tx_bytes = tmp_counters[0].cnp_tx_bytes; in bnxt_re_get_qos_stats()
144 cnps->prev[0].cnp_rx_pkts = tmp_counters[0].cnp_rx_pkts; in bnxt_re_get_qos_stats()
145 cnps->prev[0].cnp_rx_bytes = tmp_counters[0].cnp_rx_bytes; in bnxt_re_get_qos_stats()
147 cnps->prev[1].cnp_tx_pkts = tmp_counters[1].cnp_tx_pkts; in bnxt_re_get_qos_stats()
148 cnps->prev[1].cnp_tx_bytes = tmp_counters[1].cnp_tx_bytes; in bnxt_re_get_qos_stats()
149 cnps->prev[1].cnp_rx_pkts = tmp_counters[1].cnp_rx_pkts; in bnxt_re_get_qos_stats()
150 cnps->prev[1].cnp_rx_bytes = tmp_counters[1].cnp_rx_bytes; in bnxt_re_get_qos_stats()
175 &cnps->prev[0].cnp_tx_pkts, in bnxt_re_get_qos_stats()
177 cnps->cur[0].cnp_tx_pkts += pkts; in bnxt_re_get_qos_stats()
179 &cnps->prev[0].cnp_tx_bytes, in bnxt_re_get_qos_stats()
182 cnps->cur[0].cnp_tx_bytes += bytes; in bnxt_re_get_qos_stats()
184 &cnps->prev[0].cnp_rx_pkts, in bnxt_re_get_qos_stats()
186 cnps->cur[0].cnp_rx_pkts += pkts; in bnxt_re_get_qos_stats()
188 &cnps->prev[0].cnp_rx_bytes, in bnxt_re_get_qos_stats()
190 cnps->cur[0].cnp_rx_bytes += bytes; in bnxt_re_get_qos_stats()
198 &cnps->prev[1].cnp_tx_pkts, in bnxt_re_get_qos_stats()
200 cnps->cur[1].cnp_tx_pkts += pkts; in bnxt_re_get_qos_stats()
202 &cnps->prev[1].cnp_tx_bytes, in bnxt_re_get_qos_stats()
204 cnps->cur[1].cnp_tx_bytes += diff + pkts * 4; in bnxt_re_get_qos_stats()
206 &cnps->prev[1].cnp_rx_pkts, in bnxt_re_get_qos_stats()
208 cnps->cur[1].cnp_rx_pkts += pkts; in bnxt_re_get_qos_stats()
210 &cnps->prev[1].cnp_rx_bytes, in bnxt_re_get_qos_stats()
212 cnps->cur[1].cnp_rx_bytes += bytes; in bnxt_re_get_qos_stats()
260 cnp = &rdev->stats.cnps.cur[indx]; in bnxt_re_copy_ext_stats()
521 cnp = &rdev->stats.cnps.cur[0]; in bnxt_re_print_ext_stat()
557 struct bnxt_re_cc_stat *cnps; in bnxt_re_print_normal_total_counters() local
559 cnps = &rdev->stats.cnps; in bnxt_re_print_normal_total_counters()
562 stats->value[BNXT_RE_RX_PKTS] = cnps->cur[0].cnp_rx_pkts + roce_only->rx_pkts; in bnxt_re_print_normal_total_counters()
563 stats->value[BNXT_RE_RX_BYTES] = cnps->cur[0].cnp_rx_bytes + roce_only->rx_bytes; in bnxt_re_print_normal_total_counters()
564 stats->value[BNXT_RE_TX_PKTS] = cnps->cur[0].cnp_tx_pkts + roce_only->tx_pkts; in bnxt_re_print_normal_total_counters()
565 stats->value[BNXT_RE_TX_BYTES] = cnps->cur[0].cnp_tx_bytes + roce_only->tx_bytes; in bnxt_re_print_normal_total_counters()
572 struct bnxt_re_cc_stat *cnps; in bnxt_re_print_normal_counters() local
576 cnps = &rdev->stats.cnps; in bnxt_re_print_normal_counters()
581 rstats->value[BNXT_RE_CNP_TX_PKTS] = cnps->cur[0].cnp_tx_pkts; in bnxt_re_print_normal_counters()
583 rstats->value[BNXT_RE_CNP_TX_BYTES] = cnps->cur[0].cnp_tx_bytes; in bnxt_re_print_normal_counters()
584 rstats->value[BNXT_RE_CNP_RX_PKTS] = cnps->cur[0].cnp_rx_pkts; in bnxt_re_print_normal_counters()
586 rstats->value[BNXT_RE_CNP_RX_BYTES] = cnps->cur[0].cnp_rx_bytes; in bnxt_re_print_normal_counters()