/kernel/linux/linux-5.10/drivers/scsi/bfa/ |
H A 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, rstat in bfa_fcpim_add_stats() [all...] |
/kernel/linux/linux-6.6/drivers/scsi/bfa/ |
H A 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, rstat in bfa_fcpim_add_stats() [all...] |
/kernel/linux/linux-5.10/drivers/net/ |
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A D | veth.c | 1049 dev->lstats = netdev_alloc_pcpu_stats(struct pcpu_lstats); in veth_dev_init() 1050 if (!dev->lstats) in veth_dev_init() 1055 free_percpu(dev->lstats); in veth_dev_init() 1065 free_percpu(dev->lstats); in veth_dev_free()
|
/kernel/linux/linux-6.6/drivers/net/ |
H A 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()
|
H A 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()
|
H A D | loopback.c | 107 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()
|
H A 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/liquidio/ |
H A D | lio_vf_main.c | 1179 struct rtnl_link_stats64 *lstats) in liquidio_get_stats64() 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 in liquidio_get_stats64() 1178 liquidio_get_stats64(struct net_device *netdev, struct rtnl_link_stats64 *lstats) liquidio_get_stats64() argument [all...] |
H A D | lio_main.c | 2051 struct rtnl_link_stats64 *lstats) in liquidio_get_stats64() 2073 lstats->tx_packets = pkts; in liquidio_get_stats64() 2074 lstats->tx_bytes = bytes; in liquidio_get_stats64() 2075 lstats->tx_dropped = drop; in liquidio_get_stats64() 2092 lstats->rx_bytes = bytes; in liquidio_get_stats64() 2093 lstats->rx_packets = pkts; in liquidio_get_stats64() 2094 lstats->rx_dropped = drop; in liquidio_get_stats64() 2096 lstats->multicast = oct->link_stats.fromwire.fw_total_mcast; in liquidio_get_stats64() 2097 lstats->collisions = oct->link_stats.fromhost.total_collisions; in liquidio_get_stats64() 2100 lstats in liquidio_get_stats64() 2050 liquidio_get_stats64(struct net_device *netdev, struct rtnl_link_stats64 *lstats) liquidio_get_stats64() argument [all...] |
H A 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 in lio_get_ethtool_stats() 1716 struct rtnl_link_stats64 lstats; lio_vf_get_ethtool_stats() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/cavium/liquidio/ |
H A D | lio_vf_main.c | 1173 struct rtnl_link_stats64 *lstats) in liquidio_get_stats64() 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 in liquidio_get_stats64() 1172 liquidio_get_stats64(struct net_device *netdev, struct rtnl_link_stats64 *lstats) liquidio_get_stats64() argument [all...] |
H A D | lio_main.c | 2044 struct rtnl_link_stats64 *lstats) in liquidio_get_stats64() 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 in liquidio_get_stats64() 2043 liquidio_get_stats64(struct net_device *netdev, struct rtnl_link_stats64 *lstats) liquidio_get_stats64() argument [all...] |
H A D | lio_ethtool.c | 1435 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 in lio_get_ethtool_stats() 1722 struct rtnl_link_stats64 lstats; lio_vf_get_ethtool_stats() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/asp2/ |
H A D | bcmasp_intf.c | 1151 struct bcmasp_intf_stats64 *lstats; in bcmasp_get_stats64() local 1154 lstats = &intf->stats64; in bcmasp_get_stats64() 1157 start = u64_stats_fetch_begin(&lstats->syncp); in bcmasp_get_stats64() 1158 stats->rx_packets = u64_stats_read(&lstats->rx_packets); in bcmasp_get_stats64() 1159 stats->rx_bytes = u64_stats_read(&lstats->rx_bytes); in bcmasp_get_stats64() 1160 stats->rx_dropped = u64_stats_read(&lstats->rx_dropped); in bcmasp_get_stats64() 1161 stats->rx_crc_errors = u64_stats_read(&lstats->rx_crc_errs); in bcmasp_get_stats64() 1162 stats->rx_frame_errors = u64_stats_read(&lstats->rx_sym_errs); in bcmasp_get_stats64() 1165 stats->tx_packets = u64_stats_read(&lstats->tx_packets); in bcmasp_get_stats64() 1166 stats->tx_bytes = u64_stats_read(&lstats in bcmasp_get_stats64() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/toshiba/ |
H A 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 in tc35815_get_ethtool_stats() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/toshiba/ |
H A D | tc35815.c | 397 } 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 in tc35815_get_ethtool_stats() [all...] |
/kernel/linux/linux-5.10/drivers/target/iscsi/ |
H A 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()
|
/kernel/linux/linux-6.6/drivers/target/iscsi/ |
H A 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()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | netdevice.h | 1830 * @lstats: Loopback statistics 2146 struct pcpu_lstats __percpu *lstats; member 2620 struct pcpu_lstats *lstats = this_cpu_ptr(dev->lstats); in dev_lstats_add() local 2622 u64_stats_update_begin(&lstats->syncp); in dev_lstats_add() 2623 u64_stats_add(&lstats->bytes, len); in dev_lstats_add() 2624 u64_stats_inc(&lstats->packets); in dev_lstats_add() 2625 u64_stats_update_end(&lstats->syncp); in dev_lstats_add()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | netdevice.h | 1980 * allocate/free: none, lstats, tstats, dstats. none 1983 * @lstats: Loopback statistics: packets, bytes 2344 struct pcpu_lstats __percpu *lstats; member 2782 struct pcpu_lstats *lstats = this_cpu_ptr(dev->lstats); in dev_lstats_add() local 2784 u64_stats_update_begin(&lstats->syncp); in dev_lstats_add() 2785 u64_stats_add(&lstats->bytes, len); in dev_lstats_add() 2786 u64_stats_inc(&lstats->packets); in dev_lstats_add() 2787 u64_stats_update_end(&lstats->syncp); in dev_lstats_add()
|
/kernel/linux/linux-6.6/net/core/ |
H A D | dev.c | 10075 v = dev->lstats = netdev_alloc_pcpu_stats(struct pcpu_lstats); in netdev_do_alloc_pcpu_stats() 10096 free_percpu(dev->lstats); in netdev_do_free_pcpu_stats()
|