Home
last modified time | relevance | path

Searched refs:n_stats (Results 1 – 13 of 13) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/qualcomm/
Dqca_uart.c68 struct net_device_stats *n_stats = &netdev->stats; in qca_tty_receive() local
76 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 …]
Dqca_spi.c281 struct net_device_stats *n_stats = &qca->net_dev->stats; in qcaspi_transmit() local
315 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() local
422 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 …]
/Linux-v5.4/net/core/
Dethtool.c791 info.n_stats = rc; in ethtool_get_drvinfo()
1893 int ret, n_stats; in ethtool_get_stats() local
1898 n_stats = ops->get_sset_count(dev, ETH_SS_STATS); in ethtool_get_stats()
1899 if (n_stats < 0) in ethtool_get_stats()
1900 return n_stats; in ethtool_get_stats()
1901 if (n_stats > S32_MAX / sizeof(u64)) in ethtool_get_stats()
1903 WARN_ON_ONCE(!n_stats); in ethtool_get_stats()
1907 stats.n_stats = n_stats; in ethtool_get_stats()
1909 if (n_stats) { in ethtool_get_stats()
1910 data = vzalloc(array_size(n_stats, sizeof(u64))); in ethtool_get_stats()
[all …]
/Linux-v5.4/include/uapi/linux/
Dethtool.h186 __u32 n_stats; member
704 __u32 n_stats; member
/Linux-v5.4/drivers/net/ethernet/sfc/falcon/
Dethtool.c358 size_t n_stats = 0; in ef4_describe_per_queue_stats() local
363 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()
/Linux-v5.4/drivers/net/ethernet/sfc/
Dethtool.c376 size_t n_stats = 0; in efx_describe_per_queue_stats() local
381 n_stats++; in efx_describe_per_queue_stats()
394 n_stats++; in efx_describe_per_queue_stats()
402 return n_stats; in efx_describe_per_queue_stats()
/Linux-v5.4/drivers/net/ethernet/aquantia/atlantic/
Daq_ethtool.c122 drvinfo->n_stats = ARRAY_SIZE(aq_ethtool_stat_names) + in aq_ethtool_get_drvinfo()
/Linux-v5.4/drivers/net/ethernet/pensando/ionic/
Dionic_ethtool.c35 memset(buf, 0, stats->n_stats * sizeof(*buf)); in ionic_get_stats()
/Linux-v5.4/drivers/net/ethernet/micrel/
Dksz884x.c6516 int n_stats = stats->n_stats; in netdev_get_ethtool_stats() local
6562 if (n > n_stats) in netdev_get_ethtool_stats()
6563 n = n_stats; in netdev_get_ethtool_stats()
6564 n_stats -= n; in netdev_get_ethtool_stats()
/Linux-v5.4/drivers/net/ethernet/brocade/bna/
Dbnad_ethtool.c852 if (bnad_get_stats_count_locked(netdev) != stats->n_stats) { in bnad_get_ethtool_stats()
/Linux-v5.4/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_ethtool.c1352 memset(data, 0, stats->n_stats * sizeof(u64)); in qlcnic_get_ethtool_stats()
/Linux-v5.4/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c2585 info->n_stats = ARRAY_SIZE(mtk_ethtool_stats); in mtk_get_drvinfo()
/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c1240 info->n_stats = bnxt_get_num_stats(bp); in bnxt_get_drvinfo()