/Linux-v5.10/drivers/net/ |
D | vsockmon.c | 17 dev->lstats = netdev_alloc_pcpu_stats(struct pcpu_lstats); in vsockmon_dev_init() 18 if (!dev->lstats) in vsockmon_dev_init() 25 free_percpu(dev->lstats); in vsockmon_dev_uninit()
|
D | nlmon.c | 21 dev->lstats = netdev_alloc_pcpu_stats(struct pcpu_lstats); in nlmon_dev_init() 22 return dev->lstats == NULL ? -ENOMEM : 0; in nlmon_dev_init() 27 free_percpu(dev->lstats); in nlmon_dev_uninit()
|
D | loopback.c | 106 lb_stats = per_cpu_ptr(dev->lstats, i); in dev_lstats_read() 143 dev->lstats = netdev_alloc_pcpu_stats(struct pcpu_lstats); in loopback_dev_init() 144 if (!dev->lstats) in loopback_dev_init() 152 free_percpu(dev->lstats); in loopback_dev_free()
|
D | dummy.c | 70 dev->lstats = netdev_alloc_pcpu_stats(struct pcpu_lstats); in dummy_dev_init() 71 if (!dev->lstats) in dummy_dev_init() 79 free_percpu(dev->lstats); in dummy_dev_uninit()
|
D | veth.c | 1048 dev->lstats = netdev_alloc_pcpu_stats(struct pcpu_lstats); in veth_dev_init() 1049 if (!dev->lstats) in veth_dev_init() 1054 free_percpu(dev->lstats); in veth_dev_init() 1064 free_percpu(dev->lstats); in veth_dev_free()
|
/Linux-v5.10/drivers/scsi/bfa/ |
D | bfa_fcpim.c | 371 bfa_fcpim_add_stats(struct bfa_itnim_iostats_s *lstats, in bfa_fcpim_add_stats() argument 374 bfa_fcpim_add_iostats(lstats, rstats, total_ios); in bfa_fcpim_add_stats() 375 bfa_fcpim_add_iostats(lstats, rstats, qresumes); in bfa_fcpim_add_stats() 376 bfa_fcpim_add_iostats(lstats, rstats, no_iotags); in bfa_fcpim_add_stats() 377 bfa_fcpim_add_iostats(lstats, rstats, io_aborts); in bfa_fcpim_add_stats() 378 bfa_fcpim_add_iostats(lstats, rstats, no_tskims); in bfa_fcpim_add_stats() 379 bfa_fcpim_add_iostats(lstats, rstats, iocomp_ok); in bfa_fcpim_add_stats() 380 bfa_fcpim_add_iostats(lstats, rstats, iocomp_underrun); in bfa_fcpim_add_stats() 381 bfa_fcpim_add_iostats(lstats, rstats, iocomp_overrun); in bfa_fcpim_add_stats() 382 bfa_fcpim_add_iostats(lstats, rstats, iocomp_aborted); in bfa_fcpim_add_stats() [all …]
|
/Linux-v5.10/drivers/net/ethernet/cavium/liquidio/ |
D | lio_vf_main.c | 1166 struct rtnl_link_stats64 *lstats) in liquidio_get_stats64() argument 1188 lstats->tx_packets = pkts; in liquidio_get_stats64() 1189 lstats->tx_bytes = bytes; in liquidio_get_stats64() 1190 lstats->tx_dropped = drop; in liquidio_get_stats64() 1207 lstats->rx_bytes = bytes; in liquidio_get_stats64() 1208 lstats->rx_packets = pkts; in liquidio_get_stats64() 1209 lstats->rx_dropped = drop; in liquidio_get_stats64() 1211 lstats->multicast = oct->link_stats.fromwire.fw_total_mcast; in liquidio_get_stats64() 1214 lstats->rx_length_errors = oct->link_stats.fromwire.l2_err; in liquidio_get_stats64() 1216 lstats->rx_crc_errors = oct->link_stats.fromwire.fcs_err; in liquidio_get_stats64() [all …]
|
D | lio_main.c | 2026 struct rtnl_link_stats64 *lstats) in liquidio_get_stats64() argument 2048 lstats->tx_packets = pkts; in liquidio_get_stats64() 2049 lstats->tx_bytes = bytes; in liquidio_get_stats64() 2050 lstats->tx_dropped = drop; in liquidio_get_stats64() 2067 lstats->rx_bytes = bytes; in liquidio_get_stats64() 2068 lstats->rx_packets = pkts; in liquidio_get_stats64() 2069 lstats->rx_dropped = drop; in liquidio_get_stats64() 2071 lstats->multicast = oct->link_stats.fromwire.fw_total_mcast; in liquidio_get_stats64() 2072 lstats->collisions = oct->link_stats.fromhost.total_collisions; in liquidio_get_stats64() 2075 lstats->rx_length_errors = oct->link_stats.fromwire.l2_err; in liquidio_get_stats64() [all …]
|
D | lio_ethtool.c | 1429 struct rtnl_link_stats64 lstats; in lio_get_ethtool_stats() local 1435 netdev->netdev_ops->ndo_get_stats64(netdev, &lstats); in lio_get_ethtool_stats() 1437 data[i++] = lstats.rx_packets; in lio_get_ethtool_stats() 1439 data[i++] = lstats.tx_packets; in lio_get_ethtool_stats() 1441 data[i++] = lstats.rx_bytes; in lio_get_ethtool_stats() 1443 data[i++] = lstats.tx_bytes; in lio_get_ethtool_stats() 1444 data[i++] = lstats.rx_errors + in lio_get_ethtool_stats() 1449 data[i++] = lstats.tx_errors; in lio_get_ethtool_stats() 1455 data[i++] = lstats.rx_dropped + in lio_get_ethtool_stats() 1463 data[i++] = lstats.tx_dropped + in lio_get_ethtool_stats() [all …]
|
/Linux-v5.10/drivers/net/ethernet/toshiba/ |
D | tc35815.c | 397 } lstats; member 1409 lp->lstats.rx_ints++; in tc35815_do_interrupt() 1413 lp->lstats.tx_ints++; in tc35815_do_interrupt() 1695 if (lp->lstats.tx_underrun < TX_THRESHOLD_KEEP_LIMIT) { in tc35815_check_tx_stat() 1696 lp->lstats.tx_underrun++; in tc35815_check_tx_stat() 1697 if (lp->lstats.tx_underrun >= TX_THRESHOLD_KEEP_LIMIT) { in tc35815_check_tx_stat() 1799 if (lp->lstats.max_tx_qlen < qlen) in tc35815_txdone() 1800 lp->lstats.max_tx_qlen = qlen; in tc35815_txdone() 1978 return sizeof(lp->lstats) / sizeof(int); in tc35815_get_sset_count() 1987 data[0] = lp->lstats.max_tx_qlen; in tc35815_get_ethtool_stats() [all …]
|
/Linux-v5.10/drivers/target/iscsi/ |
D | iscsi_target_stat.c | 547 struct iscsi_logout_stats *lstats = &tiqn->logout_stats; in iscsi_stat_logout_normal_logouts_show() local 549 return snprintf(page, PAGE_SIZE, "%u\n", lstats->normal_logouts); in iscsi_stat_logout_normal_logouts_show() 556 struct iscsi_logout_stats *lstats = &tiqn->logout_stats; in iscsi_stat_logout_abnormal_logouts_show() local 558 return snprintf(page, PAGE_SIZE, "%u\n", lstats->abnormal_logouts); in iscsi_stat_logout_abnormal_logouts_show()
|
/Linux-v5.10/include/linux/ |
D | netdevice.h | 2112 struct pcpu_lstats __percpu *lstats; member 2562 struct pcpu_lstats *lstats = this_cpu_ptr(dev->lstats); in dev_lstats_add() local 2564 u64_stats_update_begin(&lstats->syncp); in dev_lstats_add() 2565 u64_stats_add(&lstats->bytes, len); in dev_lstats_add() 2566 u64_stats_inc(&lstats->packets); in dev_lstats_add() 2567 u64_stats_update_end(&lstats->syncp); in dev_lstats_add()
|