Lines Matching refs:hw_stats
2377 if (cpr->hw_stats) { in bnxt_free_stats()
2378 dma_free_coherent(&pdev->dev, size, cpr->hw_stats, in bnxt_free_stats()
2380 cpr->hw_stats = NULL; in bnxt_free_stats()
2396 cpr->hw_stats = dma_alloc_coherent(&pdev->dev, size, in bnxt_alloc_stats()
2399 if (!cpr->hw_stats) in bnxt_alloc_stats()
4753 struct ctx_hw_stats *hw_stats = cpr->hw_stats; in bnxt_get_stats64() local
4755 stats->rx_packets += le64_to_cpu(hw_stats->rx_ucast_pkts); in bnxt_get_stats64()
4756 stats->rx_packets += le64_to_cpu(hw_stats->rx_mcast_pkts); in bnxt_get_stats64()
4757 stats->rx_packets += le64_to_cpu(hw_stats->rx_bcast_pkts); in bnxt_get_stats64()
4759 stats->tx_packets += le64_to_cpu(hw_stats->tx_ucast_pkts); in bnxt_get_stats64()
4760 stats->tx_packets += le64_to_cpu(hw_stats->tx_mcast_pkts); in bnxt_get_stats64()
4761 stats->tx_packets += le64_to_cpu(hw_stats->tx_bcast_pkts); in bnxt_get_stats64()
4763 stats->rx_bytes += le64_to_cpu(hw_stats->rx_ucast_bytes); in bnxt_get_stats64()
4764 stats->rx_bytes += le64_to_cpu(hw_stats->rx_mcast_bytes); in bnxt_get_stats64()
4765 stats->rx_bytes += le64_to_cpu(hw_stats->rx_bcast_bytes); in bnxt_get_stats64()
4767 stats->tx_bytes += le64_to_cpu(hw_stats->tx_ucast_bytes); in bnxt_get_stats64()
4768 stats->tx_bytes += le64_to_cpu(hw_stats->tx_mcast_bytes); in bnxt_get_stats64()
4769 stats->tx_bytes += le64_to_cpu(hw_stats->tx_bcast_bytes); in bnxt_get_stats64()
4772 le64_to_cpu(hw_stats->rx_discard_pkts); in bnxt_get_stats64()
4774 stats->multicast += le64_to_cpu(hw_stats->rx_mcast_pkts); in bnxt_get_stats64()
4776 stats->rx_dropped += le64_to_cpu(hw_stats->rx_drop_pkts); in bnxt_get_stats64()
4778 stats->tx_dropped += le64_to_cpu(hw_stats->tx_drop_pkts); in bnxt_get_stats64()