| /Linux-v5.15/drivers/net/ |
| D | vsockmon.c | 18 dev->lstats = netdev_alloc_pcpu_stats(struct pcpu_lstats); in vsockmon_dev_init() 19 if (!dev->lstats) in vsockmon_dev_init() 26 free_percpu(dev->lstats); in vsockmon_dev_uninit()
|
| D | nlmon.c | 22 dev->lstats = netdev_alloc_pcpu_stats(struct pcpu_lstats); in nlmon_dev_init() 23 return dev->lstats == NULL ? -ENOMEM : 0; in nlmon_dev_init() 28 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 | 1337 dev->lstats = netdev_alloc_pcpu_stats(struct pcpu_lstats); in veth_dev_init() 1338 if (!dev->lstats) in veth_dev_init() 1343 free_percpu(dev->lstats); in veth_dev_init() 1353 free_percpu(dev->lstats); in veth_dev_free()
|
| /Linux-v5.15/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.15/drivers/net/ethernet/cavium/liquidio/ |
| D | lio_vf_main.c | 1179 struct rtnl_link_stats64 *lstats) in liquidio_get_stats64() argument 1201 lstats->tx_packets = pkts; in liquidio_get_stats64() 1202 lstats->tx_bytes = bytes; in liquidio_get_stats64() 1203 lstats->tx_dropped = drop; in liquidio_get_stats64() 1220 lstats->rx_bytes = bytes; in liquidio_get_stats64() 1221 lstats->rx_packets = pkts; in liquidio_get_stats64() 1222 lstats->rx_dropped = drop; in liquidio_get_stats64() 1224 lstats->multicast = oct->link_stats.fromwire.fw_total_mcast; in liquidio_get_stats64() 1227 lstats->rx_length_errors = oct->link_stats.fromwire.l2_err; in liquidio_get_stats64() 1229 lstats->rx_crc_errors = oct->link_stats.fromwire.fcs_err; in liquidio_get_stats64() [all …]
|
| D | lio_main.c | 2033 struct rtnl_link_stats64 *lstats) in liquidio_get_stats64() argument 2055 lstats->tx_packets = pkts; in liquidio_get_stats64() 2056 lstats->tx_bytes = bytes; in liquidio_get_stats64() 2057 lstats->tx_dropped = drop; in liquidio_get_stats64() 2074 lstats->rx_bytes = bytes; in liquidio_get_stats64() 2075 lstats->rx_packets = pkts; in liquidio_get_stats64() 2076 lstats->rx_dropped = drop; in liquidio_get_stats64() 2078 lstats->multicast = oct->link_stats.fromwire.fw_total_mcast; in liquidio_get_stats64() 2079 lstats->collisions = oct->link_stats.fromhost.total_collisions; in liquidio_get_stats64() 2082 lstats->rx_length_errors = oct->link_stats.fromwire.l2_err; in liquidio_get_stats64() [all …]
|
| D | lio_ethtool.c | 1430 struct rtnl_link_stats64 lstats; in lio_get_ethtool_stats() local 1436 netdev->netdev_ops->ndo_get_stats64(netdev, &lstats); in lio_get_ethtool_stats() 1438 data[i++] = lstats.rx_packets; in lio_get_ethtool_stats() 1440 data[i++] = lstats.tx_packets; in lio_get_ethtool_stats() 1442 data[i++] = lstats.rx_bytes; in lio_get_ethtool_stats() 1444 data[i++] = lstats.tx_bytes; in lio_get_ethtool_stats() 1445 data[i++] = lstats.rx_errors + in lio_get_ethtool_stats() 1450 data[i++] = lstats.tx_errors; in lio_get_ethtool_stats() 1456 data[i++] = lstats.rx_dropped + in lio_get_ethtool_stats() 1464 data[i++] = lstats.tx_dropped + in lio_get_ethtool_stats() [all …]
|
| /Linux-v5.15/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() 1979 return sizeof(lp->lstats) / sizeof(int); in tc35815_get_sset_count() 1988 data[0] = lp->lstats.max_tx_qlen; in tc35815_get_ethtool_stats() [all …]
|
| /Linux-v5.15/drivers/target/iscsi/ |
| D | iscsi_target_stat.c | 546 struct iscsi_logout_stats *lstats = &tiqn->logout_stats; in iscsi_stat_logout_normal_logouts_show() local 548 return snprintf(page, PAGE_SIZE, "%u\n", lstats->normal_logouts); in iscsi_stat_logout_normal_logouts_show() 555 struct iscsi_logout_stats *lstats = &tiqn->logout_stats; in iscsi_stat_logout_abnormal_logouts_show() local 557 return snprintf(page, PAGE_SIZE, "%u\n", lstats->abnormal_logouts); in iscsi_stat_logout_abnormal_logouts_show()
|
| /Linux-v5.15/include/linux/ |
| D | netdevice.h | 2213 struct pcpu_lstats __percpu *lstats; member 2699 struct pcpu_lstats *lstats = this_cpu_ptr(dev->lstats); in dev_lstats_add() local 2701 u64_stats_update_begin(&lstats->syncp); in dev_lstats_add() 2702 u64_stats_add(&lstats->bytes, len); in dev_lstats_add() 2703 u64_stats_inc(&lstats->packets); in dev_lstats_add() 2704 u64_stats_update_end(&lstats->syncp); in dev_lstats_add()
|