Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/broadcom/asp2/
H A Dbcmasp_intf.c1191 struct bcmasp_intf_stats64 *lstats; in bcmasp_get_stats64() local
1194 lstats = &intf->stats64; in bcmasp_get_stats64()
1197 start = u64_stats_fetch_begin(&lstats->syncp); in bcmasp_get_stats64()
1198 stats->rx_packets = u64_stats_read(&lstats->rx_packets); in bcmasp_get_stats64()
1199 stats->rx_bytes = u64_stats_read(&lstats->rx_bytes); in bcmasp_get_stats64()
1200 stats->rx_dropped = u64_stats_read(&lstats->rx_dropped); in bcmasp_get_stats64()
1201 stats->rx_crc_errors = u64_stats_read(&lstats->rx_crc_errs); in bcmasp_get_stats64()
1202 stats->rx_frame_errors = u64_stats_read(&lstats->rx_sym_errs); in bcmasp_get_stats64()
1205 stats->tx_packets = u64_stats_read(&lstats->tx_packets); in bcmasp_get_stats64()
1206 stats->tx_bytes = u64_stats_read(&lstats->tx_bytes); in bcmasp_get_stats64()
[all …]
/linux/drivers/net/ethernet/cavium/liquidio/
H A Dlio_main.c2038 struct rtnl_link_stats64 *lstats) in liquidio_get_stats64() argument
2060 lstats->tx_packets = pkts; in liquidio_get_stats64()
2061 lstats->tx_bytes = bytes; in liquidio_get_stats64()
2062 lstats->tx_dropped = drop; in liquidio_get_stats64()
2079 lstats->rx_bytes = bytes; in liquidio_get_stats64()
2080 lstats->rx_packets = pkts; in liquidio_get_stats64()
2081 lstats->rx_dropped = drop; in liquidio_get_stats64()
2083 lstats->multicast = oct->link_stats.fromwire.fw_total_mcast; in liquidio_get_stats64()
2084 lstats->collisions = oct->link_stats.fromhost.total_collisions; in liquidio_get_stats64()
2087 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/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/mm/
H A Dmemcontrol.c4514 struct lruvec_stats *lstats = pn->lruvec_stats; in flush_nmi_stats() local
4524 lstats->state[index] += slab; in flush_nmi_stats()
4525 lstats->state_local[index] += slab; in flush_nmi_stats()
4537 lstats->state[index] += slab; in flush_nmi_stats()
4538 lstats->state_local[index] += slab; in flush_nmi_stats()
4589 struct lruvec_stats *lstats = pn->lruvec_stats; in mem_cgroup_css_rstat_flush() local
4599 .aggregate = lstats->state, in mem_cgroup_css_rstat_flush()
4600 .local = lstats->state_local, in mem_cgroup_css_rstat_flush()
4601 .pending = lstats->state_pending, in mem_cgroup_css_rstat_flush()
/linux/include/linux/
H A Dnetdevice.h2041 * allocate/free: none, lstats, tstats, dstats. none
2044 * @lstats: Loopback statistics: packets, bytes
2205 struct pcpu_lstats __percpu *lstats;
3099 struct pcpu_lstats *lstats = this_cpu_ptr(dev->lstats); in dev_lstats_add()
3101 u64_stats_update_begin(&lstats->syncp); in dev_lstats_add()
3102 u64_stats_add(&lstats->bytes, len); in dev_lstats_add()
3103 u64_stats_inc(&lstats->packets);
3104 u64_stats_update_end(&lstats->syncp); in dev_dstats_rx_add()
2202 struct pcpu_lstats __percpu *lstats; global() member
3096 struct pcpu_lstats *lstats = this_cpu_ptr(dev->lstats); dev_lstats_add() local
/linux/net/core/
H A Ddev.c11378 v = dev->lstats = netdev_alloc_pcpu_stats(struct pcpu_lstats); in netdev_free_phy_link_topology()
11399 free_percpu(dev->lstats); in register_netdevice()
13385 CACHELINE_ASSERT_GROUP_MEMBER(struct net_device, net_device_read_txrx, lstats);