Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/net/
A 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()
A 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()
A 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()
A 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()
A Dveth.c1411 dev->lstats = netdev_alloc_pcpu_stats(struct pcpu_lstats); in veth_dev_init()
1412 if (!dev->lstats) in veth_dev_init()
1417 free_percpu(dev->lstats); in veth_dev_init()
1427 free_percpu(dev->lstats); in veth_dev_free()
/linux-6.3-rc2/drivers/scsi/bfa/
A Dbfa_fcpim.c374 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()
393 bfa_fcpim_add_iostats(lstats, rstats, onlines); in bfa_fcpim_add_stats()
394 bfa_fcpim_add_iostats(lstats, rstats, offlines); in bfa_fcpim_add_stats()
395 bfa_fcpim_add_iostats(lstats, rstats, creates); in bfa_fcpim_add_stats()
396 bfa_fcpim_add_iostats(lstats, rstats, deletes); in bfa_fcpim_add_stats()
404 bfa_fcpim_add_iostats(lstats, rstats, tm_cmnds); in bfa_fcpim_add_stats()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/cavium/liquidio/
A Dlio_vf_main.c1179 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()
1233 lstats->rx_errors = lstats->rx_length_errors + lstats->rx_crc_errors + in liquidio_get_stats64()
1234 lstats->rx_frame_errors; in liquidio_get_stats64()
1240 lstats->tx_errors = lstats->tx_aborted_errors + in liquidio_get_stats64()
[all …]
A Dlio_main.c2072 lstats->tx_packets = pkts; in liquidio_get_stats64()
2073 lstats->tx_bytes = bytes; in liquidio_get_stats64()
2074 lstats->tx_dropped = drop; in liquidio_get_stats64()
2091 lstats->rx_bytes = bytes; in liquidio_get_stats64()
2092 lstats->rx_packets = pkts; in liquidio_get_stats64()
2093 lstats->rx_dropped = drop; in liquidio_get_stats64()
2107 lstats->rx_errors = lstats->rx_length_errors + lstats->rx_crc_errors + in liquidio_get_stats64()
2108 lstats->rx_frame_errors + lstats->rx_fifo_errors; in liquidio_get_stats64()
2115 lstats->tx_errors = lstats->tx_aborted_errors + in liquidio_get_stats64()
2116 lstats->tx_carrier_errors + in liquidio_get_stats64()
[all …]
A Dlio_ethtool.c1443 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()
1732 data[i++] = lstats.rx_packets; in lio_vf_get_ethtool_stats()
1736 data[i++] = lstats.rx_bytes; in lio_vf_get_ethtool_stats()
1738 data[i++] = lstats.tx_bytes; in lio_vf_get_ethtool_stats()
1739 data[i++] = lstats.rx_errors; in lio_vf_get_ethtool_stats()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/toshiba/
A Dtc35815.c397 } lstats; member
1411 lp->lstats.rx_ints++; in tc35815_do_interrupt()
1415 lp->lstats.tx_ints++; in tc35815_do_interrupt()
1698 lp->lstats.tx_underrun++; in tc35815_check_tx_stat()
1801 if (lp->lstats.max_tx_qlen < qlen) in tc35815_txdone()
1802 lp->lstats.max_tx_qlen = qlen; in tc35815_txdone()
1982 return sizeof(lp->lstats) / sizeof(int); in tc35815_get_sset_count()
1991 data[0] = lp->lstats.max_tx_qlen; in tc35815_get_ethtool_stats()
1992 data[1] = lp->lstats.tx_ints; in tc35815_get_ethtool_stats()
1993 data[2] = lp->lstats.rx_ints; in tc35815_get_ethtool_stats()
[all …]
/linux-6.3-rc2/drivers/target/iscsi/
A 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-6.3-rc2/include/linux/
A Dnetdevice.h2306 struct pcpu_lstats __percpu *lstats; member
2733 struct pcpu_lstats *lstats = this_cpu_ptr(dev->lstats); in dev_lstats_add() local
2735 u64_stats_update_begin(&lstats->syncp); in dev_lstats_add()
2736 u64_stats_add(&lstats->bytes, len); in dev_lstats_add()
2737 u64_stats_inc(&lstats->packets); in dev_lstats_add()
2738 u64_stats_update_end(&lstats->syncp); in dev_lstats_add()

Completed in 53 milliseconds