Home
last modified time | relevance | path

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

/linux-6.15/drivers/net/ethernet/qualcomm/
H A Dqca_uart.c61 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()
130 n_stats->tx_packets++; in qcauart_transmit()
[all …]
H A Dqca_spi.c270 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-6.15/net/ethtool/
H A Dstats.c199 unsigned int n_grps = 0, n_stats = 0; in stats_reply_size() local
205 n_stats += sizeof(struct ethtool_eth_phy_stats) / sizeof(u64); in stats_reply_size()
209 n_stats += sizeof(struct ethtool_eth_mac_stats) / sizeof(u64); in stats_reply_size()
213 n_stats += sizeof(struct ethtool_eth_ctrl_stats) / sizeof(u64); in stats_reply_size()
217 n_stats += sizeof(struct ethtool_rmon_stats) / sizeof(u64); in stats_reply_size()
227 n_stats += sizeof(struct ethtool_phy_stats) / sizeof(u64); in stats_reply_size()
234 len += n_stats * (nla_total_size(0) + /* _A_STATS_GRP_STAT */ in stats_reply_size()
H A Dioctl.c2361 int ret, n_stats; in ethtool_get_stats() local
2367 if (n_stats < 0) in ethtool_get_stats()
2368 return n_stats; in ethtool_get_stats()
2375 stats.n_stats = n_stats; in ethtool_get_stats()
2377 if (n_stats) { in ethtool_get_stats()
2401 if (n_stats < 0) in ethtool_vzalloc_stats_array()
2402 return n_stats; in ethtool_vzalloc_stats_array()
2420 int n_stats, ret; in ethtool_get_phy_stats_phydev() local
2431 stats->n_stats = n_stats; in ethtool_get_phy_stats_phydev()
2440 int n_stats, ret; in ethtool_get_phy_stats_ethtool() local
[all …]
/linux-6.15/drivers/net/ethernet/aquantia/atlantic/
H A Daq_ethtool.c189 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-6.15/drivers/net/ethernet/sfc/siena/
H A Dethtool_common.c400 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-6.15/drivers/net/ethernet/cisco/enic/
H A Denic_ethtool.c301 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-6.15/drivers/net/ethernet/sfc/
H A Dethtool_common.c400 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-6.15/drivers/net/ethernet/wangxun/libwx/
H A Dwx_ethtool.c209 info->n_stats = stats_len - in wx_get_drvinfo()
213 info->n_stats = stats_len; in wx_get_drvinfo()
/linux-6.15/drivers/net/ethernet/sfc/falcon/
H A Dethtool.c358 size_t n_stats = 0; in ef4_describe_per_queue_stats() local
363 n_stats++; in ef4_describe_per_queue_stats()
374 n_stats++; in ef4_describe_per_queue_stats()
382 return n_stats; in ef4_describe_per_queue_stats()
/linux-6.15/include/uapi/linux/
H A Dethtool.h194 __u32 n_stats; member
1190 __u32 n_stats; member
/linux-6.15/drivers/net/phy/
H A Dnxp-c45-tja11xx.c286 int n_stats; member
1142 return ARRAY_SIZE(common_hw_stats) + (phy_data ? phy_data->n_stats : 0); in nxp_c45_get_sset_count()
1903 .n_stats = ARRAY_SIZE(tja1103_hw_stats),
2054 .n_stats = ARRAY_SIZE(tja1120_hw_stats),
/linux-6.15/Documentation/networking/
H A Dstatistics.rst176 to retrieve the number of statistics (`.n_stats`).
/linux-6.15/drivers/net/ethernet/micrel/
H A Dksz884x.c6140 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-6.15/drivers/net/ethernet/brocade/bna/
H A Dbnad_ethtool.c803 if (bnad_get_stats_count_locked(netdev) != stats->n_stats) { in bnad_get_ethtool_stats()
/linux-6.15/drivers/net/ethernet/pensando/ionic/
H A Dionic_ethtool.c33 memset(buf, 0, stats->n_stats * sizeof(*buf)); in ionic_get_stats()
/linux-6.15/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_ethtool.c1352 memset(data, 0, stats->n_stats * sizeof(u64)); in qlcnic_get_ethtool_stats()
/linux-6.15/drivers/net/ethernet/mediatek/
H A Dmtk_eth_soc.c4370 info->n_stats = ARRAY_SIZE(mtk_ethtool_stats); in mtk_get_drvinfo()
/linux-6.15/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c2041 info->n_stats = bnxt_get_num_stats(bp); in bnxt_get_drvinfo()