Searched refs:n_stats (Results 1 – 14 of 14) sorted by relevance
68 struct net_device_stats *n_stats = &netdev->stats; in qca_tty_receive() local76 n_stats->rx_errors++; in qca_tty_receive()77 n_stats->rx_dropped++; in qca_tty_receive()96 n_stats->rx_errors++; in qca_tty_receive()97 n_stats->rx_dropped++; in qca_tty_receive()101 n_stats->rx_errors++; in qca_tty_receive()102 n_stats->rx_dropped++; in qca_tty_receive()105 n_stats->rx_packets++; in qca_tty_receive()106 n_stats->rx_bytes += retcode; in qca_tty_receive()117 n_stats->rx_errors++; in qca_tty_receive()[all …]
281 struct net_device_stats *n_stats = &qca->net_dev->stats; in qcaspi_transmit() local315 n_stats->tx_packets++; in qcaspi_transmit()316 n_stats->tx_bytes += qca->txr.skb[qca->txr.head]->len; in qcaspi_transmit()343 struct net_device_stats *n_stats = &net_dev->stats; in qcaspi_receive() local422 n_stats->rx_errors++; in qcaspi_receive()423 n_stats->rx_dropped++; in qcaspi_receive()427 n_stats->rx_errors++; in qcaspi_receive()428 n_stats->rx_dropped++; in qcaspi_receive()432 n_stats->rx_packets++; in qcaspi_receive()433 n_stats->rx_bytes += retcode; in qcaspi_receive()[all …]
730 info.n_stats = rc; in ethtool_get_drvinfo()1891 int ret, n_stats; in ethtool_get_stats() local1896 n_stats = ops->get_sset_count(dev, ETH_SS_STATS); in ethtool_get_stats()1897 if (n_stats < 0) in ethtool_get_stats()1898 return n_stats; in ethtool_get_stats()1899 if (n_stats > S32_MAX / sizeof(u64)) in ethtool_get_stats()1901 WARN_ON_ONCE(!n_stats); in ethtool_get_stats()1905 stats.n_stats = n_stats; in ethtool_get_stats()1907 if (n_stats) { in ethtool_get_stats()1908 data = vzalloc(array_size(n_stats, sizeof(u64))); in ethtool_get_stats()[all …]
177 u32 n_stats = ARRAY_SIZE(aq_ethtool_stat_names) + in aq_ethtool_n_stats() local181 n_stats += rx_stat_cnt * aq_ptp_get_ring_cnt(nic, ATL_RING_RX) + in aq_ethtool_n_stats()187 n_stats += ARRAY_SIZE(aq_macsec_stat_names) + in aq_ethtool_n_stats()197 return n_stats; in aq_ethtool_n_stats()234 drvinfo->n_stats = aq_ethtool_n_stats(ndev); in aq_ethtool_get_drvinfo()
400 size_t n_stats = 0; in efx_describe_per_queue_stats() local405 n_stats++; in efx_describe_per_queue_stats()418 n_stats++; in efx_describe_per_queue_stats()430 n_stats++; in efx_describe_per_queue_stats()439 return n_stats; in efx_describe_per_queue_stats()
358 size_t n_stats = 0; in ef4_describe_per_queue_stats() local363 n_stats++; in ef4_describe_per_queue_stats()376 n_stats++; in ef4_describe_per_queue_stats()384 return n_stats; in ef4_describe_per_queue_stats()
186 __u32 n_stats; member791 __u32 n_stats; member
121 to retrieve the number of statistics (`.n_stats`).
37 memset(buf, 0, stats->n_stats * sizeof(*buf)); in ionic_get_stats()
6511 int n_stats = stats->n_stats; in netdev_get_ethtool_stats() local6556 if (n > n_stats) in netdev_get_ethtool_stats()6557 n = n_stats; in netdev_get_ethtool_stats()6558 n_stats -= n; in netdev_get_ethtool_stats()
851 if (bnad_get_stats_count_locked(netdev) != stats->n_stats) { in bnad_get_ethtool_stats()
1351 memset(data, 0, stats->n_stats * sizeof(u64)); in qlcnic_get_ethtool_stats()
2634 info->n_stats = ARRAY_SIZE(mtk_ethtool_stats); in mtk_get_drvinfo()
1323 info->n_stats = bnxt_get_num_stats(bp); in bnxt_get_drvinfo()