Home
last modified time | relevance | path

Searched refs:xstats (Results 1 – 25 of 44) sorted by relevance

12

/openbmc/linux/fs/xfs/
H A Dxfs_stats.c8 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()
H A Dxfs_linux.h158 struct xstats { struct
163 extern struct xstats xfsstats; argument
H A Dxfs_sysfs.c279 static inline struct xstats *
284 return container_of(kobj, struct xstats, xs_kobj); in to_xstats()
292 struct xstats *stats = to_xstats(kobject); in stats_show()
306 struct xstats *stats = to_xstats(kobject); in stats_clear_store()
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_qdisc.c503 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 …]
/openbmc/linux/net/core/
H A Dgen_stats.c33 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()
/openbmc/linux/net/sched/
H A Dsch_fq_codel.c635 struct tc_fq_codel_xstats xstats; in fq_codel_dump_class_stats() local
641 memset(&xstats, 0, sizeof(xstats)); in fq_codel_dump_class_stats()
642 xstats.type = TCA_FQ_CODEL_XSTATS_CLASS; in fq_codel_dump_class_stats()
643 xstats.class_stats.deficit = flow->deficit; in fq_codel_dump_class_stats()
644 xstats.class_stats.ldelay = in fq_codel_dump_class_stats()
646 xstats.class_stats.count = flow->cvars.count; in fq_codel_dump_class_stats()
647 xstats.class_stats.lastcount = flow->cvars.lastcount; in fq_codel_dump_class_stats()
648 xstats.class_stats.dropping = flow->cvars.dropping; in fq_codel_dump_class_stats()
653 xstats.class_stats.drop_next = (delta >= 0) ? in fq_codel_dump_class_stats()
672 return gnet_stats_copy_app(d, &xstats, sizeof(xstats)); in fq_codel_dump_class_stats()
H A Dsch_drr.c263 struct tc_drr_stats xstats; in drr_dump_class_stats() local
265 memset(&xstats, 0, sizeof(xstats)); in drr_dump_class_stats()
267 xstats.deficit = cl->deficit; in drr_dump_class_stats()
274 return gnet_stats_copy_app(d, &xstats, sizeof(xstats)); in drr_dump_class_stats()
H A Dsch_qfq.c647 struct tc_qfq_stats xstats; in qfq_dump_class_stats() local
649 memset(&xstats, 0, sizeof(xstats)); in qfq_dump_class_stats()
651 xstats.weight = cl->agg->class_weight; in qfq_dump_class_stats()
652 xstats.lmax = cl->agg->lmax; in qfq_dump_class_stats()
659 return gnet_stats_copy_app(d, &xstats, sizeof(xstats)); in qfq_dump_class_stats()
H A Dsch_hfsc.c1336 struct tc_hfsc_stats xstats; in hfsc_dump_class_stats() local
1340 xstats.level = cl->level; in hfsc_dump_class_stats()
1341 xstats.period = cl->cl_vtperiod; in hfsc_dump_class_stats()
1342 xstats.work = cl->cl_total; in hfsc_dump_class_stats()
1343 xstats.rtwork = cl->cl_cumul; in hfsc_dump_class_stats()
1350 return gnet_stats_copy_app(d, &xstats, sizeof(xstats)); in hfsc_dump_class_stats()
H A Dsch_sfq.c871 struct tc_sfq_xstats xstats = { 0 }; in sfq_dump_class_stats() local
876 xstats.allot = slot->allot << SFQ_ALLOT_SHIFT; in sfq_dump_class_stats()
882 return gnet_stats_copy_app(d, &xstats, sizeof(xstats)); in sfq_dump_class_stats()
/openbmc/linux/drivers/net/ethernet/dlink/
H A Dsundance.c383 } xstats; member
1529 np->xstats.tx_late_collisions += late_coll; in get_stats()
1719 data[i++] = np->xstats.tx_single_collisions; in get_ethtool_stats()
1720 data[i++] = np->xstats.tx_late_collisions; in get_ethtool_stats()
1721 data[i++] = np->xstats.tx_deferred; in get_ethtool_stats()
1722 data[i++] = np->xstats.tx_deferred_excessive; in get_ethtool_stats()
1723 data[i++] = np->xstats.tx_aborted; in get_ethtool_stats()
1724 data[i++] = np->xstats.tx_bcasts; in get_ethtool_stats()
1725 data[i++] = np->xstats.rx_bcasts; in get_ethtool_stats()
1726 data[i++] = np->xstats.tx_mcasts; in get_ethtool_stats()
[all …]
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_ethtool.c46 offsetof(struct stmmac_priv, xstats.m)}
320 if (!priv->xstats.pcs_link) { in stmmac_ethtool_get_link_ksettings()
325 cmd->base.duplex = priv->xstats.pcs_duplex; in stmmac_ethtool_get_link_ksettings()
327 cmd->base.speed = priv->xstats.pcs_speed; in stmmac_ethtool_get_link_ksettings()
553 pcpu = per_cpu_ptr(priv->xstats.pcpu_stats, cpu); in stmmac_get_rx_normal_irq_n()
574 pcpu = per_cpu_ptr(priv->xstats.pcpu_stats, cpu); in stmmac_get_tx_normal_irq_n()
592 struct stmmac_txq_stats *txq_stats = &priv->xstats.txq_stats[q]; in stmmac_get_per_qstats()
605 struct stmmac_rxq_stats *rxq_stats = &priv->xstats.rxq_stats[q]; in stmmac_get_per_qstats()
656 priv->xstats.phy_eee_wakeup_error_n = val; in stmmac_get_ethtool_stats()
661 (void *)&priv->xstats, in stmmac_get_ethtool_stats()
[all …]
H A Dstmmac_main.c2530 priv->xstats.threshold = tc; in stmmac_bump_dma_threshold()
2738 priv->xstats.tx_errors++; in stmmac_tx_err()
4342 priv->xstats.tx_dropped++; in stmmac_tso_xmit()
4626 priv->xstats.tx_dropped++; in stmmac_xmit()
4987 priv->xstats.rx_dropped++; in stmmac_dispatch_skb_zc()
5893 if (priv->xstats.pcs_link) in stmmac_common_interrupt()
6954 stats->tx_carrier_errors = priv->xstats.tx_losscarrier + priv->xstats.tx_carrier; in stmmac_get_stats64()
6955 stats->collisions = priv->xstats.tx_collision + priv->xstats.rx_collision; in stmmac_get_stats64()
7352 priv->xstats.pcpu_stats = in stmmac_dvr_probe()
7354 if (!priv->xstats.pcpu_stats) in stmmac_dvr_probe()
[all …]
/openbmc/linux/Documentation/networking/
H A Dgen_stats.rst51 gnet_stats_copy_app(&dump, &xstats, sizeof(xstats)) < 0)
62 Prior users of struct tc_stats and xstats can maintain backward
/openbmc/linux/drivers/net/ethernet/netronome/nfp/abm/
H A Dqdisc.c63 &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()
H A Dmain.h180 struct nfp_alink_xstats xstats; member
266 struct nfp_alink_xstats *xstats);
H A Dctrl.c235 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()
/openbmc/linux/drivers/net/ethernet/samsung/sxgbe/
H A Dsxgbe_main.c746 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 …]
H A Dsxgbe_ethtool.c34 offsetof(struct sxgbe_priv_data, xstats.m) \
237 priv->xstats.eee_wakeup_error_n = val; in sxgbe_get_ethtool_stats()
/openbmc/linux/Documentation/netlink/specs/
H A Drt_link.yaml972 name: xstats
1209 name: link-xstats
1212 name: link-xstats-slave
1215 name: link-offload-xstats
1217 nested-attributes: link-offload-xstats
1222 name: link-offload-xstats
1414 - link-xstats
1415 - link-xstats-slave
1416 - link-offload-xstats
/openbmc/linux/include/net/
H A Dgen_stats.h35 void * xstats; member
/openbmc/linux/drivers/net/ethernet/3com/
H A D3c59x.c1965 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 …]
/openbmc/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_iscsi.c949 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()
/openbmc/linux/drivers/net/ethernet/neterion/
H A Ds2io.c3275 &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 …]
/openbmc/linux/drivers/net/ethernet/calxeda/
H A Dxgmac.c376 struct xgmac_extra_stats xstats; member
517 struct xgmac_extra_stats *x = &priv->xstats; in desc_get_tx_status()
544 struct xgmac_extra_stats *x = &priv->xstats; in desc_get_rx_status()
1018 memset(&priv->xstats, 0, sizeof(struct xgmac_extra_stats)); in xgmac_open()
1386 struct xgmac_extra_stats *x = &priv->xstats; in xgmac_interrupt()
1562 { #m, offsetof(struct xgmac_priv, xstats.m), false }

12