/linux-6.1.9/drivers/net/ethernet/qualcomm/ |
D | qca_uart.c | 68 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 …]
|
D | qca_spi.c | 281 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-6.1.9/net/ethtool/ |
D | stats.c | 146 unsigned int n_grps = 0, n_stats = 0; in stats_reply_size() local 150 n_stats += sizeof(struct ethtool_eth_phy_stats) / sizeof(u64); in stats_reply_size() 154 n_stats += sizeof(struct ethtool_eth_mac_stats) / sizeof(u64); in stats_reply_size() 158 n_stats += sizeof(struct ethtool_eth_ctrl_stats) / sizeof(u64); in stats_reply_size() 162 n_stats += sizeof(struct ethtool_rmon_stats) / sizeof(u64); in stats_reply_size() 175 len += n_stats * (nla_total_size(0) + /* _A_STATS_GRP_STAT */ in stats_reply_size()
|
D | ioctl.c | 745 rsp->info.n_stats = rc; in ethtool_get_drvinfo() 2038 int ret, n_stats; in ethtool_get_stats() local 2043 n_stats = ops->get_sset_count(dev, ETH_SS_STATS); in ethtool_get_stats() 2044 if (n_stats < 0) in ethtool_get_stats() 2045 return n_stats; in ethtool_get_stats() 2046 if (n_stats > S32_MAX / sizeof(u64)) in ethtool_get_stats() 2048 WARN_ON_ONCE(!n_stats); in ethtool_get_stats() 2052 stats.n_stats = n_stats; in ethtool_get_stats() 2054 if (n_stats) { in ethtool_get_stats() 2055 data = vzalloc(array_size(n_stats, sizeof(u64))); in ethtool_get_stats() [all …]
|
/linux-6.1.9/tools/include/uapi/linux/ |
D | ethtool.h | 96 __u32 n_stats; member
|
/linux-6.1.9/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_ethtool.c | 187 u32 n_stats = ARRAY_SIZE(aq_ethtool_stat_names) + in aq_ethtool_n_stats() local 191 n_stats += rx_stat_cnt * aq_ptp_get_ring_cnt(nic, ATL_RING_RX) + in aq_ethtool_n_stats() 197 n_stats += ARRAY_SIZE(aq_macsec_stat_names) + in aq_ethtool_n_stats() 207 return n_stats; in aq_ethtool_n_stats() 244 drvinfo->n_stats = aq_ethtool_n_stats(ndev); in aq_ethtool_get_drvinfo()
|
/linux-6.1.9/drivers/net/ethernet/sfc/siena/ |
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() 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()
|
/linux-6.1.9/drivers/net/ethernet/sfc/ |
D | ethtool_common.c | 409 size_t n_stats = 0; in efx_describe_per_queue_stats() local 414 n_stats++; in efx_describe_per_queue_stats() 427 n_stats++; in efx_describe_per_queue_stats() 439 n_stats++; in efx_describe_per_queue_stats() 448 return n_stats; in efx_describe_per_queue_stats()
|
/linux-6.1.9/drivers/net/ethernet/sfc/falcon/ |
D | ethtool.c | 358 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-6.1.9/include/uapi/linux/ |
D | ethtool.h | 196 __u32 n_stats; member 881 __u32 n_stats; member
|
/linux-6.1.9/Documentation/networking/ |
D | statistics.rst | 161 to retrieve the number of statistics (`.n_stats`).
|
/linux-6.1.9/drivers/net/ethernet/micrel/ |
D | ksz884x.c | 6438 int n_stats = stats->n_stats; in netdev_get_ethtool_stats() local 6483 if (n > n_stats) in netdev_get_ethtool_stats() 6484 n = n_stats; in netdev_get_ethtool_stats() 6485 n_stats -= n; in netdev_get_ethtool_stats()
|
/linux-6.1.9/drivers/net/ethernet/pensando/ionic/ |
D | ionic_ethtool.c | 31 memset(buf, 0, stats->n_stats * sizeof(*buf)); in ionic_get_stats()
|
/linux-6.1.9/drivers/net/ethernet/brocade/bna/ |
D | bnad_ethtool.c | 803 if (bnad_get_stats_count_locked(netdev) != stats->n_stats) { in bnad_get_ethtool_stats()
|
/linux-6.1.9/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_ethtool.c | 1356 memset(data, 0, stats->n_stats * sizeof(u64)); in qlcnic_get_ethtool_stats()
|
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ethtool.c | 1377 info->n_stats = bnxt_get_num_stats(bp); in bnxt_get_drvinfo()
|
/linux-6.1.9/drivers/net/ethernet/mediatek/ |
D | mtk_eth_soc.c | 3604 info->n_stats = ARRAY_SIZE(mtk_ethtool_stats); in mtk_get_drvinfo()
|