Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/cavium/liquidio/
H A Dlio_vf_main.c1174 struct rtnl_link_stats64 *lstats) in liquidio_get_stats64() argument
1196 lstats->tx_packets = pkts; in liquidio_get_stats64()
1197 lstats->tx_bytes = bytes; in liquidio_get_stats64()
1198 lstats->tx_dropped = drop; in liquidio_get_stats64()
1215 lstats->rx_bytes = bytes; in liquidio_get_stats64()
1216 lstats->rx_packets = pkts; in liquidio_get_stats64()
1217 lstats->rx_dropped = drop; in liquidio_get_stats64()
1219 lstats->multicast = oct->link_stats.fromwire.fw_total_mcast; in liquidio_get_stats64()
1222 lstats->rx_length_errors = oct->link_stats.fromwire.l2_err; in liquidio_get_stats64()
1224 lstats->rx_crc_errors = oct->link_stats.fromwire.fcs_err; in liquidio_get_stats64()
[all …]
H A Dlio_main.c2040 struct rtnl_link_stats64 *lstats) in liquidio_get_stats64() argument
2062 lstats->tx_packets = pkts; in liquidio_get_stats64()
2063 lstats->tx_bytes = bytes; in liquidio_get_stats64()
2064 lstats->tx_dropped = drop; in liquidio_get_stats64()
2081 lstats->rx_bytes = bytes; in liquidio_get_stats64()
2082 lstats->rx_packets = pkts; in liquidio_get_stats64()
2083 lstats->rx_dropped = drop; in liquidio_get_stats64()
2085 lstats->multicast = oct->link_stats.fromwire.fw_total_mcast; in liquidio_get_stats64()
2086 lstats->collisions = oct->link_stats.fromhost.total_collisions; in liquidio_get_stats64()
2089 lstats->rx_length_errors = oct->link_stats.fromwire.l2_err; in liquidio_get_stats64()
[all …]
H A Dlio_ethtool.c1437 struct rtnl_link_stats64 lstats; in lio_get_ethtool_stats() local
1443 netdev->netdev_ops->ndo_get_stats64(netdev, &lstats); in lio_get_ethtool_stats()
1445 data[i++] = lstats.rx_packets; in lio_get_ethtool_stats()
1447 data[i++] = lstats.tx_packets; in lio_get_ethtool_stats()
1449 data[i++] = lstats.rx_bytes; in lio_get_ethtool_stats()
1451 data[i++] = lstats.tx_bytes; in lio_get_ethtool_stats()
1452 data[i++] = lstats.rx_errors + in lio_get_ethtool_stats()
1457 data[i++] = lstats.tx_errors; in lio_get_ethtool_stats()
1463 data[i++] = lstats.rx_dropped + in lio_get_ethtool_stats()
1471 data[i++] = lstats.tx_dropped + in lio_get_ethtool_stats()
[all …]
/linux/drivers/net/ethernet/broadcom/asp2/
H A Dbcmasp_intf.c1118 struct bcmasp_intf_stats64 *lstats; in bcmasp_get_stats64() local
1121 lstats = &intf->stats64; in bcmasp_get_stats64()
1124 start = u64_stats_fetch_begin(&lstats->syncp); in bcmasp_get_stats64()
1125 stats->rx_packets = u64_stats_read(&lstats->rx_packets); in bcmasp_get_stats64()
1126 stats->rx_bytes = u64_stats_read(&lstats->rx_bytes); in bcmasp_get_stats64()
1127 stats->rx_dropped = u64_stats_read(&lstats->rx_dropped); in bcmasp_get_stats64()
1128 stats->rx_crc_errors = u64_stats_read(&lstats->rx_crc_errs); in bcmasp_get_stats64()
1129 stats->rx_frame_errors = u64_stats_read(&lstats->rx_sym_errs); in bcmasp_get_stats64()
1132 stats->tx_packets = u64_stats_read(&lstats->tx_packets); in bcmasp_get_stats64()
1133 stats->tx_bytes = u64_stats_read(&lstats->tx_bytes); in bcmasp_get_stats64()
[all …]
/linux/drivers/net/ethernet/toshiba/
H A Dtc35815.c397 } lstats; member
1410 lp->lstats.rx_ints++; in tc35815_do_interrupt()
1414 lp->lstats.tx_ints++; in tc35815_do_interrupt()
1692 if (lp->lstats.tx_underrun < TX_THRESHOLD_KEEP_LIMIT) { in tc35815_check_tx_stat()
1693 lp->lstats.tx_underrun++; in tc35815_check_tx_stat()
1694 if (lp->lstats.tx_underrun >= TX_THRESHOLD_KEEP_LIMIT) { in tc35815_check_tx_stat()
1796 if (lp->lstats.max_tx_qlen < qlen) in tc35815_txdone()
1797 lp->lstats.max_tx_qlen = qlen; in tc35815_txdone()
1977 return sizeof(lp->lstats) / sizeof(int); in tc35815_get_sset_count()
1986 data[0] = lp->lstats.max_tx_qlen; in tc35815_get_ethtool_stats()
[all …]
/linux/drivers/target/iscsi/
H 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/drivers/net/
H A Dloopback.c108 lb_stats = per_cpu_ptr(dev->lstats, i); in dev_lstats_read()
/linux/Documentation/networking/net_cachelines/
H A Dnet_device.rst143 struct pcpu_lstats__percpu* lstats read_mostly …
/linux/include/linux/
H A Dnetdevice.h2151 struct pcpu_lstats __percpu *lstats; member
3019 struct pcpu_lstats *lstats = this_cpu_ptr(dev->lstats); in dev_lstats_add() local
3021 u64_stats_update_begin(&lstats->syncp); in dev_lstats_add()
3022 u64_stats_add(&lstats->bytes, len); in dev_lstats_add()
3023 u64_stats_inc(&lstats->packets); in dev_lstats_add()
3024 u64_stats_update_end(&lstats->syncp); in dev_lstats_add()
/linux/mm/
H A Dmemcontrol.c4075 struct lruvec_stats *lstats = pn->lruvec_stats; in flush_nmi_stats() local
4085 lstats->state[index] += slab; in flush_nmi_stats()
4093 lstats->state[index] += slab; in flush_nmi_stats()
4141 struct lruvec_stats *lstats = pn->lruvec_stats; in mem_cgroup_css_rstat_flush() local
4151 .aggregate = lstats->state, in mem_cgroup_css_rstat_flush()
4152 .local = lstats->state_local, in mem_cgroup_css_rstat_flush()
4153 .pending = lstats->state_pending, in mem_cgroup_css_rstat_flush()
/linux/net/core/
H A Ddev.c11245 v = dev->lstats = netdev_alloc_pcpu_stats(struct pcpu_lstats); in netdev_do_alloc_pcpu_stats()
11266 free_percpu(dev->lstats); in netdev_do_free_pcpu_stats()
13092 CACHELINE_ASSERT_GROUP_MEMBER(struct net_device, net_device_read_txrx, lstats); in net_dev_struct_check()