/linux/drivers/net/ethernet/mellanox/mlxsw/ |
A D | spectrum_qdisc.c | 503 return xstats->backlog[tclass_num] + in mlxsw_sp_xstats_backlog() 526 *tx_bytes += xstats->tx_bytes[i]; in mlxsw_sp_qdisc_bstats_per_priority_get() 537 struct mlxsw_sp_port_xstats *xstats; in mlxsw_sp_qdisc_collect_tc_stats() local 546 xstats = &mlxsw_sp_port->periodic_hw_stats.xstats; in mlxsw_sp_qdisc_collect_tc_stats() 642 struct mlxsw_sp_port_xstats *xstats; in mlxsw_sp_setup_tc_qdisc_red_clean_stats() local 651 xstats = &mlxsw_sp_port->periodic_hw_stats.xstats; in mlxsw_sp_setup_tc_qdisc_red_clean_stats() 775 struct mlxsw_sp_port_xstats *xstats; in mlxsw_sp_qdisc_get_red_xstats() local 782 xstats = &mlxsw_sp_port->periodic_hw_stats.xstats; in mlxsw_sp_qdisc_get_red_xstats() 811 xstats = &mlxsw_sp_port->periodic_hw_stats.xstats; in mlxsw_sp_qdisc_get_red_stats() 874 p->xstats); in __mlxsw_sp_setup_tc_red() [all …]
|
/linux/fs/xfs/ |
A D | xfs_stats.c | 8 struct xstats xfsstats; 31 } xstats[] = { in xfs_stats_format() local 60 for (i = j = 0; i < ARRAY_SIZE(xstats); i++) { in xfs_stats_format() 62 xstats[i].desc); in xfs_stats_format() 64 for (; j < xstats[i].endpoint; j++) in xfs_stats_format()
|
A D | xfs_linux.h | 154 struct xstats { struct 159 extern struct xstats xfsstats; argument
|
A D | xfs_sysfs.c | 253 static inline struct xstats * 258 return container_of(kobj, struct xstats, xs_kobj); in to_xstats() 266 struct xstats *stats = to_xstats(kobject); in stats_show() 280 struct xstats *stats = to_xstats(kobject); in stats_clear_store()
|
/linux/net/core/ |
A D | gen_stats.c | 33 kfree(d->xstats); in gnet_stats_copy() 34 d->xstats = NULL; in gnet_stats_copy() 429 d->xstats = kmemdup(st, len, GFP_ATOMIC); in gnet_stats_copy_app() 430 if (!d->xstats) in gnet_stats_copy_app() 472 if (d->compat_xstats && d->xstats) { in gnet_stats_finish_copy() 473 if (gnet_stats_copy(d, d->compat_xstats, d->xstats, in gnet_stats_finish_copy() 480 kfree(d->xstats); in gnet_stats_finish_copy() 481 d->xstats = NULL; in gnet_stats_finish_copy()
|
/linux/net/sched/ |
A D | sch_fq_codel.c | 640 struct tc_fq_codel_xstats xstats; in fq_codel_dump_class_stats() local 646 memset(&xstats, 0, sizeof(xstats)); in fq_codel_dump_class_stats() 647 xstats.type = TCA_FQ_CODEL_XSTATS_CLASS; in fq_codel_dump_class_stats() 648 xstats.class_stats.deficit = flow->deficit; in fq_codel_dump_class_stats() 649 xstats.class_stats.ldelay = in fq_codel_dump_class_stats() 651 xstats.class_stats.count = flow->cvars.count; in fq_codel_dump_class_stats() 652 xstats.class_stats.lastcount = flow->cvars.lastcount; in fq_codel_dump_class_stats() 653 xstats.class_stats.dropping = flow->cvars.dropping; in fq_codel_dump_class_stats() 658 xstats.class_stats.drop_next = (delta >= 0) ? in fq_codel_dump_class_stats() 677 return gnet_stats_copy_app(d, &xstats, sizeof(xstats)); in fq_codel_dump_class_stats()
|
A D | sch_drr.c | 262 struct tc_drr_stats xstats; in drr_dump_class_stats() local 264 memset(&xstats, 0, sizeof(xstats)); in drr_dump_class_stats() 266 xstats.deficit = cl->deficit; in drr_dump_class_stats() 273 return gnet_stats_copy_app(d, &xstats, sizeof(xstats)); in drr_dump_class_stats()
|
A D | sch_cbq.c | 122 struct tc_cbq_xstats xstats; member 417 cl->xstats.overactions++; in cbq_overlimit() 722 borrow->xstats.borrows++; in cbq_dequeue_prio() 723 cl->xstats.borrows++; in cbq_dequeue_prio() 726 cl->xstats.borrows += qdisc_pkt_len(skb); in cbq_dequeue_prio() 1341 q->link.xstats.avgidle = q->link.avgidle; in cbq_dump_stats() 1342 return gnet_stats_copy_app(d, &q->link.xstats, sizeof(q->link.xstats)); in cbq_dump_stats() 1379 cl->xstats.avgidle = cl->avgidle; in cbq_dump_class_stats() 1380 cl->xstats.undertime = 0; in cbq_dump_class_stats() 1384 cl->xstats.undertime = cl->undertime - q->now; in cbq_dump_class_stats() [all …]
|
A D | sch_qfq.c | 636 struct tc_qfq_stats xstats; in qfq_dump_class_stats() local 638 memset(&xstats, 0, sizeof(xstats)); in qfq_dump_class_stats() 640 xstats.weight = cl->agg->class_weight; in qfq_dump_class_stats() 641 xstats.lmax = cl->agg->lmax; in qfq_dump_class_stats() 648 return gnet_stats_copy_app(d, &xstats, sizeof(xstats)); in qfq_dump_class_stats()
|
A D | sch_hfsc.c | 1320 struct tc_hfsc_stats xstats; in hfsc_dump_class_stats() local 1324 xstats.level = cl->level; in hfsc_dump_class_stats() 1325 xstats.period = cl->cl_vtperiod; in hfsc_dump_class_stats() 1326 xstats.work = cl->cl_total; in hfsc_dump_class_stats() 1327 xstats.rtwork = cl->cl_cumul; in hfsc_dump_class_stats() 1334 return gnet_stats_copy_app(d, &xstats, sizeof(xstats)); in hfsc_dump_class_stats()
|
A D | sch_sfq.c | 868 struct tc_sfq_xstats xstats = { 0 }; in sfq_dump_class_stats() local 873 xstats.allot = slot->allot << SFQ_ALLOT_SHIFT; in sfq_dump_class_stats() 879 return gnet_stats_copy_app(d, &xstats, sizeof(xstats)); in sfq_dump_class_stats()
|
/linux/drivers/net/ethernet/dlink/ |
A D | sundance.c | 383 } xstats; member 1531 np->xstats.tx_late_collisions += late_coll; in get_stats() 1721 data[i++] = np->xstats.tx_single_collisions; in get_ethtool_stats() 1722 data[i++] = np->xstats.tx_late_collisions; in get_ethtool_stats() 1723 data[i++] = np->xstats.tx_deferred; in get_ethtool_stats() 1724 data[i++] = np->xstats.tx_deferred_excessive; in get_ethtool_stats() 1725 data[i++] = np->xstats.tx_aborted; in get_ethtool_stats() 1726 data[i++] = np->xstats.tx_bcasts; in get_ethtool_stats() 1727 data[i++] = np->xstats.rx_bcasts; in get_ethtool_stats() 1728 data[i++] = np->xstats.tx_mcasts; in get_ethtool_stats() [all …]
|
/linux/drivers/net/ethernet/samsung/sxgbe/ |
A D | sxgbe_main.c | 746 priv->xstats.tx_clean++; in sxgbe_tx_queue_clean() 1164 priv->xstats.tx_threshold = priv->tx_tc; in sxgbe_open() 1165 priv->xstats.rx_threshold = priv->rx_tc; in sxgbe_open() 1389 priv->xstats.tx_reset_ic_bit++; in sxgbe_xmit() 1563 priv->xstats.napi_poll++; in sxgbe_poll() 1609 priv->xstats.tx_lpi_entry_n++; in sxgbe_common_interrupt() 1613 priv->xstats.tx_lpi_exit_n++; in sxgbe_common_interrupt() 1617 priv->xstats.rx_lpi_entry_n++; in sxgbe_common_interrupt() 1619 priv->xstats.rx_lpi_exit_n++; in sxgbe_common_interrupt() 1638 &priv->xstats); in sxgbe_tx_interrupt() [all …]
|
A D | sxgbe_ethtool.c | 34 offsetof(struct sxgbe_priv_data, xstats.m) \ 237 priv->xstats.eee_wakeup_error_n = val; in sxgbe_get_ethtool_stats()
|
/linux/drivers/net/ethernet/netronome/nfp/abm/ |
A D | qdisc.c | 63 &qdisc->red.band[i].xstats); in nfp_abm_stats_update_red() 498 if (!stats->xstats[i]) in nfp_abm_gred_stats() 506 nfp_abm_stats_red_calculate(&qdisc->red.band[i].xstats, in nfp_abm_gred_stats() 508 stats->xstats[i]); in nfp_abm_gred_stats() 509 qdisc->red.band[i].prev_xstats = qdisc->red.band[i].xstats; in nfp_abm_gred_stats() 630 nfp_abm_stats_red_calculate(&qdisc->red.band[0].xstats, in nfp_abm_red_xstats() 632 opt->xstats); in nfp_abm_red_xstats() 633 qdisc->red.band[0].prev_xstats = qdisc->red.band[0].xstats; in nfp_abm_red_xstats()
|
A D | main.h | 180 struct nfp_alink_xstats xstats; member 266 struct nfp_alink_xstats *xstats);
|
A D | ctrl.c | 235 struct nfp_alink_xstats *xstats) in nfp_abm_ctrl_read_q_xstats() argument 241 band, queue, true, &xstats->pdrop); in nfp_abm_ctrl_read_q_xstats() 247 band, queue, true, &xstats->ecn_marked); in nfp_abm_ctrl_read_q_xstats()
|
/linux/Documentation/networking/ |
A D | gen_stats.rst | 51 gnet_stats_copy_app(&dump, &xstats, sizeof(xstats)) < 0) 62 Prior users of struct tc_stats and xstats can maintain backward
|
/linux/drivers/net/ethernet/stmicro/stmmac/ |
A D | stmmac_ethtool.c | 38 offsetof(struct stmmac_priv, xstats.m)} 306 if (!priv->xstats.pcs_link) { in stmmac_ethtool_get_link_ksettings() 311 cmd->base.duplex = priv->xstats.pcs_duplex; in stmmac_ethtool_get_link_ksettings() 313 cmd->base.speed = priv->xstats.pcs_speed; in stmmac_ethtool_get_link_ksettings() 534 xstats.txq_stats[q].tx_pkt_n); in stmmac_get_per_qstats() 542 xstats.rxq_stats[q].rx_pkt_n); in stmmac_get_per_qstats() 568 ret = stmmac_dma_diagnostic_fr(priv, &dev->stats, (void *) &priv->xstats, in stmmac_get_ethtool_stats() 587 priv->xstats.phy_eee_wakeup_error_n = val; in stmmac_get_ethtool_stats() 592 (void *)&priv->xstats, in stmmac_get_ethtool_stats()
|
A D | stmmac_main.c | 2496 priv->xstats.tx_clean++; in stmmac_tx_clean() 2548 priv->xstats.tx_pkt_n++; in stmmac_tx_clean() 3709 priv->xstats.threshold = tc; in stmmac_open() 4158 priv->xstats.tx_tso_frames++; in stmmac_tso_xmit() 4957 &priv->xstats, p); in stmmac_rx_zc() 4980 &priv->xstats, in stmmac_rx_zc() 5150 &priv->xstats, p); in stmmac_rx() 5364 priv->xstats.napi_poll++; in stmmac_napi_poll_rx() 5386 priv->xstats.napi_poll++; in stmmac_napi_poll_tx() 5410 priv->xstats.napi_poll++; in stmmac_napi_poll_rxtx() [all …]
|
/linux/drivers/net/ethernet/3com/ |
A D | 3c59x.c | 1965 if (tx_status & 0x08) vp->xstats.tx_max_collisions++; in vortex_error() 2867 vp->xstats.tx_deferred += window_read8(vp, 6, 8); in update_stats() 2868 vp->xstats.rx_bad_ssd += window_read8(vp, 4, 12); in update_stats() 2870 dev->stats.collisions = vp->xstats.tx_multiple_collisions in update_stats() 2871 + vp->xstats.tx_single_collisions in update_stats() 2872 + vp->xstats.tx_max_collisions; in update_stats() 2937 data[0] = vp->xstats.tx_deferred; in vortex_get_ethtool_stats() 2938 data[1] = vp->xstats.tx_max_collisions; in vortex_get_ethtool_stats() 2939 data[2] = vp->xstats.tx_multiple_collisions; in vortex_get_ethtool_stats() 2940 data[3] = vp->xstats.tx_single_collisions; in vortex_get_ethtool_stats() [all …]
|
/linux/include/net/ |
A D | gen_stats.h | 35 void * xstats; member
|
/linux/drivers/net/ethernet/qlogic/qed/ |
A D | qed_iscsi.c | 949 struct xstorm_iscsi_stats_drv xstats; in _qed_iscsi_get_xstats() local 952 memset(&xstats, 0, sizeof(xstats)); in _qed_iscsi_get_xstats() 955 qed_memcpy_from(p_hwfn, p_ptt, &xstats, xstats_addr, sizeof(xstats)); in _qed_iscsi_get_xstats() 958 HILO_64_REGPAIR(xstats.iscsi_tx_go_to_slow_start_event_cnt); in _qed_iscsi_get_xstats() 960 HILO_64_REGPAIR(xstats.iscsi_tx_fast_retransmit_event_cnt); in _qed_iscsi_get_xstats()
|
/linux/drivers/net/ethernet/neterion/ |
A D | s2io.c | 3275 &xstats->xpak_regs_stat, in s2io_updt_xpak_counter() 3279 xstats->alarm_transceiver_temp_low++; in s2io_updt_xpak_counter() 3284 &xstats->xpak_regs_stat, in s2io_updt_xpak_counter() 3288 xstats->alarm_laser_bias_current_low++; in s2io_updt_xpak_counter() 3293 &xstats->xpak_regs_stat, in s2io_updt_xpak_counter() 3297 xstats->alarm_laser_output_power_low++; in s2io_updt_xpak_counter() 3305 xstats->warn_transceiver_temp_high++; in s2io_updt_xpak_counter() 3308 xstats->warn_transceiver_temp_low++; in s2io_updt_xpak_counter() 3311 xstats->warn_laser_bias_current_high++; in s2io_updt_xpak_counter() 3314 xstats->warn_laser_bias_current_low++; in s2io_updt_xpak_counter() [all …]
|
/linux/drivers/net/ethernet/realtek/ |
A D | 8139too.c | 614 struct rtl_extra_stats xstats; member 1680 tp->xstats.tx_timeouts++; in rtl8139_tx_timeout_task() 1858 tp->xstats.rx_lost_in_ring++; in rtl8139_rx_err() 1998 tp->xstats.early_rx++; in rtl8139_rx() 2473 data[0] = tp->xstats.early_rx; in rtl8139_get_ethtool_stats() 2474 data[1] = tp->xstats.tx_buf_mapped; in rtl8139_get_ethtool_stats() 2475 data[2] = tp->xstats.tx_timeouts; in rtl8139_get_ethtool_stats() 2476 data[3] = tp->xstats.rx_lost_in_ring; in rtl8139_get_ethtool_stats()
|