Lines Matching refs:sw_stats

1836 			cpr->sw_stats->rx.rx_oom_discards += 1;  in bnxt_tpa_end()
1846 cpr->sw_stats->rx.rx_oom_discards += 1; in bnxt_tpa_end()
1862 cpr->sw_stats->rx.rx_oom_discards += 1; in bnxt_tpa_end()
1873 cpr->sw_stats->rx.rx_oom_discards += 1; in bnxt_tpa_end()
2131 bnapi->cp_ring.sw_stats->rx.rx_buf_errors++; in bnxt_rx_pkt()
2247 bnapi->cp_ring.sw_stats->rx.rx_l4_csum_errors++; in bnxt_rx_pkt()
2285 cpr->sw_stats->rx.rx_oom_discards += 1; in bnxt_rx_pkt()
2334 cpr->sw_stats->rx.rx_netpoll_discards += 1; in bnxt_force_rx_discard()
3973 cpr2->sw_stats = cpr->sw_stats; in bnxt_alloc_cp_rings()
4731 kfree(stats->sw_stats); in bnxt_free_stats_mem()
4732 stats->sw_stats = NULL; in bnxt_free_stats_mem()
4748 stats->sw_stats = kzalloc(stats->len, GFP_KERNEL); in bnxt_alloc_stats_mem()
4749 if (!stats->sw_stats) in bnxt_alloc_stats_mem()
4906 kfree(cpr->sw_stats); in bnxt_free_ring_stats()
4907 cpr->sw_stats = NULL; in bnxt_free_ring_stats()
4922 cpr->sw_stats = kzalloc(sizeof(*cpr->sw_stats), GFP_KERNEL); in bnxt_alloc_stats()
4923 if (!cpr->sw_stats) in bnxt_alloc_stats()
9789 static void __bnxt_accumulate_stats(__le64 *hw_stats, u64 *sw_stats, u64 *masks, in __bnxt_accumulate_stats() argument
9801 sw_stats[i] = hw; in __bnxt_accumulate_stats()
9803 bnxt_add_one_ctr(hw, &sw_stats[i], masks[i]); in __bnxt_accumulate_stats()
9812 __bnxt_accumulate_stats(stats->hw_stats, stats->sw_stats, in bnxt_accumulate_stats()
9835 __bnxt_accumulate_stats(stats->hw_stats, stats->sw_stats, in bnxt_accumulate_all_stats()
9842 u64 *sw_stats = stats->sw_stats; in bnxt_accumulate_all_stats() local
9847 __bnxt_accumulate_stats(hw_stats, sw_stats, masks, cnt, false); in bnxt_accumulate_all_stats()
9850 sw_stats += BNXT_TX_PORT_STATS_BYTE_OFFSET / 8; in bnxt_accumulate_all_stats()
9853 __bnxt_accumulate_stats(hw_stats, sw_stats, masks, cnt, false); in bnxt_accumulate_all_stats()
11013 cpr->sw_stats->tx.tx_resets++; in bnxt_disable_napi()
11015 cpr->sw_stats->rx.rx_resets++; in bnxt_disable_napi()
12492 u64 *sw = cpr->stats.sw_stats; in bnxt_get_ring_stats()
12518 cpr->sw_stats->rx.rx_netpoll_discards + in bnxt_get_ring_stats()
12519 cpr->sw_stats->rx.rx_oom_discards; in bnxt_get_ring_stats()
12558 u64 *rx = bp->port_stats.sw_stats; in bnxt_get_stats64()
12559 u64 *tx = bp->port_stats.sw_stats + in bnxt_get_stats64()
12586 struct bnxt_sw_stats *sw_stats = cpr->sw_stats; in bnxt_get_one_ring_err_stats() local
12587 u64 *hw_stats = cpr->stats.sw_stats; in bnxt_get_one_ring_err_stats()
12589 stats->rx_total_l4_csum_errors += sw_stats->rx.rx_l4_csum_errors; in bnxt_get_one_ring_err_stats()
12590 stats->rx_total_resets += sw_stats->rx.rx_resets; in bnxt_get_one_ring_err_stats()
12591 stats->rx_total_buf_errors += sw_stats->rx.rx_buf_errors; in bnxt_get_one_ring_err_stats()
12592 stats->rx_total_oom_discards += sw_stats->rx.rx_oom_discards; in bnxt_get_one_ring_err_stats()
12593 stats->rx_total_netpoll_discards += sw_stats->rx.rx_netpoll_discards; in bnxt_get_one_ring_err_stats()
12596 stats->tx_total_resets += sw_stats->tx.tx_resets; in bnxt_get_one_ring_err_stats()
12599 stats->total_missed_irqs += sw_stats->cmn.missed_irqs; in bnxt_get_one_ring_err_stats()
13424 cpr->sw_stats->rx.rx_resets++; in bnxt_rx_ring_reset()
13641 cpr->sw_stats->cmn.missed_irqs++; in bnxt_chk_missed_irq()
14980 sw = cpr->stats.sw_stats; in bnxt_get_queue_stats_rx()
14992 stats->alloc_fail = cpr->sw_stats->rx.rx_oom_discards; in bnxt_get_queue_stats_rx()
15003 sw = bnapi->cp_ring.stats.sw_stats; in bnxt_get_queue_stats_tx()
15230 cpr->sw_stats->rx.rx_resets++; in bnxt_queue_start()