Searched refs:n_stats (Results 1 – 9 of 9) sorted by relevance
238 struct net_device_stats *n_stats = &qca->net_dev->stats; in qcaspi_transmit() local264 n_stats->tx_packets++; in qcaspi_transmit()265 n_stats->tx_bytes += qca->txr.skb[qca->txr.head]->len; in qcaspi_transmit()292 struct net_device_stats *n_stats = &net_dev->stats; in qcaspi_receive() local363 n_stats->rx_errors++; in qcaspi_receive()364 n_stats->rx_dropped++; in qcaspi_receive()368 n_stats->rx_errors++; in qcaspi_receive()369 n_stats->rx_dropped++; in qcaspi_receive()373 n_stats->rx_packets++; in qcaspi_receive()374 n_stats->rx_bytes += retcode; in qcaspi_receive()[all …]
426 info.n_stats = rc; in ethtool_get_drvinfo()1371 int ret, n_stats; in ethtool_get_stats() local1376 n_stats = ops->get_sset_count(dev, ETH_SS_STATS); in ethtool_get_stats()1377 if (n_stats < 0) in ethtool_get_stats()1378 return n_stats; in ethtool_get_stats()1379 WARN_ON(n_stats == 0); in ethtool_get_stats()1384 stats.n_stats = n_stats; in ethtool_get_stats()1385 data = kmalloc(n_stats * sizeof(u64), GFP_USER); in ethtool_get_stats()1395 if (copy_to_user(useraddr, data, stats.n_stats * sizeof(u64))) in ethtool_get_stats()
184 __u32 n_stats; member651 __u32 n_stats; member
364 size_t n_stats = 0; in efx_describe_per_queue_stats() local369 n_stats++; in efx_describe_per_queue_stats()382 n_stats++; in efx_describe_per_queue_stats()390 return n_stats; in efx_describe_per_queue_stats()
864 if (bnad_get_stats_count_locked(netdev) != stats->n_stats) { in bnad_get_ethtool_stats()875 memset(buf, 0, stats->n_stats * sizeof(u64)); in bnad_get_ethtool_stats()
6519 int n_stats = stats->n_stats; in netdev_get_ethtool_stats() local6565 if (n > n_stats) in netdev_get_ethtool_stats()6566 n = n_stats; in netdev_get_ethtool_stats()6567 n_stats -= n; in netdev_get_ethtool_stats()
433 info->n_stats = BNXT_NUM_STATS * bp->cp_nr_rings; in bnxt_get_drvinfo()
1340 memset(data, 0, stats->n_stats * sizeof(u64)); in qlcnic_get_ethtool_stats()
1137 target_ethtool_stats->n_stats = NES_ETHTOOL_STAT_COUNT; in nes_netdev_get_ethtool_stats()