Home
last modified time | relevance | path

Searched refs:lstats (Results 1 – 13 of 13) sorted by relevance

/Linux-v6.6/drivers/net/
Dvsockmon.c18 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()
Dnlmon.c22 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()
Dloopback.c107 lb_stats = per_cpu_ptr(dev->lstats, i); in dev_lstats_read()
144 dev->lstats = netdev_alloc_pcpu_stats(struct pcpu_lstats); in loopback_dev_init()
145 if (!dev->lstats) in loopback_dev_init()
153 free_percpu(dev->lstats); in loopback_dev_free()
Ddummy.c70 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()
Dveth.c1504 dev->lstats = netdev_alloc_pcpu_stats(struct pcpu_lstats); in veth_dev_init()
1505 if (!dev->lstats) in veth_dev_init()
1510 free_percpu(dev->lstats); in veth_dev_init()
1520 free_percpu(dev->lstats); in veth_dev_free()
/Linux-v6.6/drivers/scsi/bfa/
Dbfa_fcpim.c371 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-v6.6/drivers/net/ethernet/cavium/liquidio/
Dlio_vf_main.c1173 struct rtnl_link_stats64 *lstats) in liquidio_get_stats64() argument
1195 lstats->tx_packets = pkts; in liquidio_get_stats64()
1196 lstats->tx_bytes = bytes; in liquidio_get_stats64()
1197 lstats->tx_dropped = drop; in liquidio_get_stats64()
1214 lstats->rx_bytes = bytes; in liquidio_get_stats64()
1215 lstats->rx_packets = pkts; in liquidio_get_stats64()
1216 lstats->rx_dropped = drop; in liquidio_get_stats64()
1218 lstats->multicast = oct->link_stats.fromwire.fw_total_mcast; in liquidio_get_stats64()
1221 lstats->rx_length_errors = oct->link_stats.fromwire.l2_err; in liquidio_get_stats64()
1223 lstats->rx_crc_errors = oct->link_stats.fromwire.fcs_err; in liquidio_get_stats64()
[all …]
Dlio_main.c2044 struct rtnl_link_stats64 *lstats) in liquidio_get_stats64() argument
2066 lstats->tx_packets = pkts; in liquidio_get_stats64()
2067 lstats->tx_bytes = bytes; in liquidio_get_stats64()
2068 lstats->tx_dropped = drop; in liquidio_get_stats64()
2085 lstats->rx_bytes = bytes; in liquidio_get_stats64()
2086 lstats->rx_packets = pkts; in liquidio_get_stats64()
2087 lstats->rx_dropped = drop; in liquidio_get_stats64()
2089 lstats->multicast = oct->link_stats.fromwire.fw_total_mcast; in liquidio_get_stats64()
2090 lstats->collisions = oct->link_stats.fromhost.total_collisions; in liquidio_get_stats64()
2093 lstats->rx_length_errors = oct->link_stats.fromwire.l2_err; in liquidio_get_stats64()
[all …]
Dlio_ethtool.c1435 struct rtnl_link_stats64 lstats; in lio_get_ethtool_stats() local
1441 netdev->netdev_ops->ndo_get_stats64(netdev, &lstats); in lio_get_ethtool_stats()
1443 data[i++] = lstats.rx_packets; in lio_get_ethtool_stats()
1445 data[i++] = lstats.tx_packets; in lio_get_ethtool_stats()
1447 data[i++] = lstats.rx_bytes; in lio_get_ethtool_stats()
1449 data[i++] = lstats.tx_bytes; in lio_get_ethtool_stats()
1450 data[i++] = lstats.rx_errors + in lio_get_ethtool_stats()
1455 data[i++] = lstats.tx_errors; in lio_get_ethtool_stats()
1461 data[i++] = lstats.rx_dropped + in lio_get_ethtool_stats()
1469 data[i++] = lstats.tx_dropped + in lio_get_ethtool_stats()
[all …]
/Linux-v6.6/drivers/net/ethernet/broadcom/asp2/
Dbcmasp_intf.c1148 struct bcmasp_intf_stats64 *lstats; in bcmasp_get_stats64() local
1151 lstats = &intf->stats64; in bcmasp_get_stats64()
1154 start = u64_stats_fetch_begin(&lstats->syncp); in bcmasp_get_stats64()
1155 stats->rx_packets = u64_stats_read(&lstats->rx_packets); in bcmasp_get_stats64()
1156 stats->rx_bytes = u64_stats_read(&lstats->rx_bytes); in bcmasp_get_stats64()
1157 stats->rx_dropped = u64_stats_read(&lstats->rx_dropped); in bcmasp_get_stats64()
1158 stats->rx_crc_errors = u64_stats_read(&lstats->rx_crc_errs); in bcmasp_get_stats64()
1159 stats->rx_frame_errors = u64_stats_read(&lstats->rx_sym_errs); in bcmasp_get_stats64()
1162 stats->tx_packets = u64_stats_read(&lstats->tx_packets); in bcmasp_get_stats64()
1163 stats->tx_bytes = u64_stats_read(&lstats->tx_bytes); in bcmasp_get_stats64()
[all …]
/Linux-v6.6/drivers/net/ethernet/toshiba/
Dtc35815.c397 } lstats; member
1410 lp->lstats.rx_ints++; in tc35815_do_interrupt()
1414 lp->lstats.tx_ints++; in tc35815_do_interrupt()
1696 if (lp->lstats.tx_underrun < TX_THRESHOLD_KEEP_LIMIT) { in tc35815_check_tx_stat()
1697 lp->lstats.tx_underrun++; in tc35815_check_tx_stat()
1698 if (lp->lstats.tx_underrun >= TX_THRESHOLD_KEEP_LIMIT) { in tc35815_check_tx_stat()
1800 if (lp->lstats.max_tx_qlen < qlen) in tc35815_txdone()
1801 lp->lstats.max_tx_qlen = qlen; in tc35815_txdone()
1981 return sizeof(lp->lstats) / sizeof(int); in tc35815_get_sset_count()
1990 data[0] = lp->lstats.max_tx_qlen; in tc35815_get_ethtool_stats()
[all …]
/Linux-v6.6/drivers/target/iscsi/
Discsi_target_stat.c546 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-v6.6/include/linux/
Dnetdevice.h2332 struct pcpu_lstats __percpu *lstats; member
2760 struct pcpu_lstats *lstats = this_cpu_ptr(dev->lstats); in dev_lstats_add() local
2762 u64_stats_update_begin(&lstats->syncp); in dev_lstats_add()
2763 u64_stats_add(&lstats->bytes, len); in dev_lstats_add()
2764 u64_stats_inc(&lstats->packets); in dev_lstats_add()
2765 u64_stats_update_end(&lstats->syncp); in dev_lstats_add()