/linux/drivers/net/ethernet/qualcomm/ |
H A D | qca_uart.c | 53 struct net_device_stats *n_stats = &netdev->stats; in qca_tty_receive() local 61 n_stats->rx_errors++; in qca_tty_receive() 62 n_stats->rx_dropped++; in qca_tty_receive() 81 n_stats->rx_errors++; in qca_tty_receive() 82 n_stats->rx_dropped++; in qca_tty_receive() 86 n_stats->rx_errors++; in qca_tty_receive() 87 n_stats->rx_dropped++; in qca_tty_receive() 90 n_stats->rx_packets++; in qca_tty_receive() 91 n_stats->rx_bytes += retcode; in qca_tty_receive() 102 n_stats->rx_errors++; in qca_tty_receive() [all …]
|
H A D | qca_spi.c | 270 struct net_device_stats *n_stats = &qca->net_dev->stats; in qcaspi_transmit() local 304 n_stats->tx_packets++; in qcaspi_transmit() 305 n_stats->tx_bytes += qca->txr.skb[qca->txr.head]->len; in qcaspi_transmit() 332 struct net_device_stats *n_stats = &net_dev->stats; in qcaspi_receive() local 411 n_stats->rx_errors++; in qcaspi_receive() 412 n_stats->rx_dropped++; in qcaspi_receive() 416 n_stats->rx_errors++; in qcaspi_receive() 417 n_stats->rx_dropped++; in qcaspi_receive() 421 n_stats->rx_packets++; in qcaspi_receive() 422 n_stats->rx_bytes += retcode; in qcaspi_receive() [all …]
|
/linux/net/ethtool/ |
H A D | stats.c | 170 unsigned int n_grps = 0, n_stats = 0; in stats_reply_size() local 176 n_stats += sizeof(struct ethtool_eth_phy_stats) / sizeof(u64); in stats_reply_size() 180 n_stats += sizeof(struct ethtool_eth_mac_stats) / sizeof(u64); in stats_reply_size() 184 n_stats += sizeof(struct ethtool_eth_ctrl_stats) / sizeof(u64); in stats_reply_size() 188 n_stats += sizeof(struct ethtool_rmon_stats) / sizeof(u64); in stats_reply_size() 201 len += n_stats * (nla_total_size(0) + /* _A_STATS_GRP_STAT */ in stats_reply_size()
|
H A D | ioctl.c | 757 rsp->info.n_stats = rc; in ethtool_get_drvinfo() 2350 int ret, n_stats; in ethtool_get_stats() local 2355 n_stats = ops->get_sset_count(dev, ETH_SS_STATS); in ethtool_get_stats() 2356 if (n_stats < 0) in ethtool_get_stats() 2357 return n_stats; in ethtool_get_stats() 2358 if (n_stats > S32_MAX / sizeof(u64)) in ethtool_get_stats() 2360 WARN_ON_ONCE(!n_stats); in ethtool_get_stats() 2364 stats.n_stats = n_stats; in ethtool_get_stats() 2366 if (n_stats) { in ethtool_get_stats() 2367 data = vzalloc(array_size(n_stats, sizeof(u64))); in ethtool_get_stats() [all …]
|
/linux/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_ethtool.c | 189 u32 n_stats = ARRAY_SIZE(aq_ethtool_stat_names) + in aq_ethtool_n_stats() local 193 n_stats += rx_stat_cnt * aq_ptp_get_ring_cnt(nic, ATL_RING_RX) + in aq_ethtool_n_stats() 199 n_stats += ARRAY_SIZE(aq_macsec_stat_names) + in aq_ethtool_n_stats() 209 return n_stats; in aq_ethtool_n_stats() 246 drvinfo->n_stats = aq_ethtool_n_stats(ndev); in aq_ethtool_get_drvinfo()
|
/linux/drivers/net/ethernet/sfc/siena/ |
H A D | ethtool_common.c | 400 size_t n_stats = 0; in efx_describe_per_queue_stats() local 405 n_stats++; in efx_describe_per_queue_stats() 416 n_stats++; in efx_describe_per_queue_stats() 428 n_stats++; in efx_describe_per_queue_stats() 437 return n_stats; in efx_describe_per_queue_stats()
|
/linux/drivers/net/ethernet/cisco/enic/ |
H A D | enic_ethtool.c | 301 unsigned int n_stats; in enic_get_sset_count() local 307 n_stats = NUM_ENIC_TX_STATS + NUM_ENIC_RX_STATS + in enic_get_sset_count() 310 return n_stats; in enic_get_sset_count()
|
/linux/drivers/net/ethernet/wangxun/libwx/ |
H A D | wx_ethtool.c | 206 info->n_stats = stats_len - in wx_get_drvinfo() 210 info->n_stats = stats_len; in wx_get_drvinfo()
|
/linux/include/uapi/linux/ |
H A D | ethtool.h | 194 __u32 n_stats; member 1186 __u32 n_stats; member
|
/linux/Documentation/networking/ |
H A D | statistics.rst | 176 to retrieve the number of statistics (`.n_stats`).
|
/linux/drivers/net/ethernet/micrel/ |
H A D | ksz884x.c | 6140 int n_stats = stats->n_stats; in netdev_get_ethtool_stats() local 6185 if (n > n_stats) in netdev_get_ethtool_stats() 6186 n = n_stats; in netdev_get_ethtool_stats() 6187 n_stats -= n; in netdev_get_ethtool_stats()
|
/linux/drivers/net/ethernet/brocade/bna/ |
H A D | bnad_ethtool.c | 803 if (bnad_get_stats_count_locked(netdev) != stats->n_stats) { in bnad_get_ethtool_stats()
|
/linux/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_ethtool.c | 33 memset(buf, 0, stats->n_stats * sizeof(*buf)); in ionic_get_stats()
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_ethtool.c | 2019 info->n_stats = bnxt_get_num_stats(bp); in bnxt_get_drvinfo()
|
/linux/drivers/net/ethernet/mediatek/ |
H A D | mtk_eth_soc.c | 4294 info->n_stats = ARRAY_SIZE(mtk_ethtool_stats); in mtk_get_drvinfo()
|