| /linux/drivers/net/ethernet/mellanox/mlxsw/ |
| H A D | spectrum_qdisc.c | 500 mlxsw_sp_xstats_backlog(struct mlxsw_sp_port_xstats *xstats, int tclass_num) in mlxsw_sp_xstats_backlog() argument 502 return xstats->backlog[tclass_num] + in mlxsw_sp_xstats_backlog() 503 xstats->backlog[tclass_num + 8]; in mlxsw_sp_xstats_backlog() 507 mlxsw_sp_xstats_tail_drop(struct mlxsw_sp_port_xstats *xstats, int tclass_num) in mlxsw_sp_xstats_tail_drop() argument 509 return xstats->tail_drop[tclass_num] + in mlxsw_sp_xstats_tail_drop() 510 xstats->tail_drop[tclass_num + 8]; in mlxsw_sp_xstats_tail_drop() 514 mlxsw_sp_qdisc_bstats_per_priority_get(struct mlxsw_sp_port_xstats *xstats, in mlxsw_sp_qdisc_bstats_per_priority_get() argument 524 *tx_packets += xstats->tx_packets[i]; in mlxsw_sp_qdisc_bstats_per_priority_get() 525 *tx_bytes += xstats->tx_bytes[i]; in mlxsw_sp_qdisc_bstats_per_priority_get() 536 struct mlxsw_sp_port_xstats *xstats; in mlxsw_sp_qdisc_collect_tc_stats() local [all …]
|
| /linux/fs/xfs/ |
| H A D | xfs_stats.c | 8 struct xstats xfsstats; 32 } xstats[] = { in xfs_stats_format() local 68 for (i = j = 0; i < ARRAY_SIZE(xstats); i++) { in xfs_stats_format() 70 xstats[i].desc); in xfs_stats_format() 72 for (; j < xstats[i].endpoint; j++) in xfs_stats_format()
|
| H A D | xfs_platform.h | 161 struct xstats { 166 extern struct xstats xfsstats; 164 struct xstats { global() struct 169 xs_kobjxstats global() argument
|
| H A D | xfs_sysfs.c | 341 static inline struct xstats * 346 return container_of(kobj, struct xstats, xs_kobj); in to_xstats() 354 struct xstats *stats = to_xstats(kobject); in stats_show() 368 struct xstats *stats = to_xstats(kobject); in stats_clear_store()
|
| H A D | xfs_stats.h | 173 extern struct xstats xfsstats;
|
| /linux/net/sched/ |
| H A D | sch_fq_codel.c | 692 struct tc_fq_codel_xstats xstats; in fq_codel_dump_class_stats() local 698 memset(&xstats, 0, sizeof(xstats)); in fq_codel_dump_class_stats() 699 xstats.type = TCA_FQ_CODEL_XSTATS_CLASS; in fq_codel_dump_class_stats() 700 xstats.class_stats.deficit = READ_ONCE(flow->deficit); in fq_codel_dump_class_stats() 701 xstats.class_stats.ldelay = in fq_codel_dump_class_stats() 703 xstats.class_stats.count = READ_ONCE(flow->cvars.count); in fq_codel_dump_class_stats() 704 xstats.class_stats.lastcount = READ_ONCE(flow->cvars.lastcount); in fq_codel_dump_class_stats() 705 xstats.class_stats.dropping = READ_ONCE(flow->cvars.dropping); in fq_codel_dump_class_stats() 706 if (xstats in fq_codel_dump_class_stats() [all...] |
| H A D | sch_drr.c | 268 struct tc_drr_stats xstats; in drr_dump_class_stats() local 270 memset(&xstats, 0, sizeof(xstats)); in drr_dump_class_stats() 272 xstats.deficit = READ_ONCE(cl->deficit); in drr_dump_class_stats() 279 return gnet_stats_copy_app(d, &xstats, sizeof(xstats)); in drr_dump_class_stats()
|
| H A D | sch_qfq.c | 663 struct tc_qfq_stats xstats; in qfq_dump_class_stats() 665 memset(&xstats, 0, sizeof(xstats)); in qfq_dump_class_stats() 668 xstats.weight = cl->agg->class_weight; in qfq_dump_class_stats() 669 xstats.lmax = cl->agg->lmax; in qfq_dump_class_stats() 677 return gnet_stats_copy_app(d, &xstats, sizeof(xstats)); in qfq_walk() 660 struct tc_qfq_stats xstats; qfq_dump_class_stats() local
|
| H A D | sch_hfsc.c | 1359 struct tc_hfsc_stats xstats; in hfsc_dump_class_stats() local 1363 xstats.level = READ_ONCE(cl->level); in hfsc_dump_class_stats() 1364 xstats.period = READ_ONCE(cl->cl_vtperiod); in hfsc_dump_class_stats() 1365 xstats.work = READ_ONCE(cl->cl_total); in hfsc_dump_class_stats() 1366 xstats.rtwork = READ_ONCE(cl->cl_cumul); in hfsc_dump_class_stats() 1373 return gnet_stats_copy_app(d, &xstats, sizeof(xstats)); in hfsc_dump_class_stats()
|
| H A D | sch_sfq.c | 919 struct tc_sfq_xstats xstats = { 0 }; in sfq_dump_class_stats() local 924 xstats.allot = READ_ONCE(slot->allot); in sfq_dump_class_stats() 930 return gnet_stats_copy_app(d, &xstats, sizeof(xstats)); in sfq_dump_class_stats()
|
| H A D | sch_htb.c | 1325 struct tc_htb_xstats xstats = { in htb_dump_class_stats() local 1338 xstats.tokens = clamp_t(s64, PSCHED_NS2TICKS(READ_ONCE(cl->tokens)), in htb_dump_class_stats() 1340 xstats.ctokens = clamp_t(s64, PSCHED_NS2TICKS(READ_ONCE(cl->ctokens)), in htb_dump_class_stats() 1366 return gnet_stats_copy_app(d, &xstats, sizeof(xstats)); in htb_dump_class_stats()
|
| /linux/drivers/net/ethernet/stmicro/stmmac/ |
| H A D | stmmac_ethtool.c | 47 offsetof(struct stmmac_priv, xstats.m)} 450 pcpu = per_cpu_ptr(priv->xstats.pcpu_stats, cpu); in stmmac_get_rx_normal_irq_n() 471 pcpu = per_cpu_ptr(priv->xstats.pcpu_stats, cpu); in stmmac_get_tx_normal_irq_n() 489 struct stmmac_txq_stats *txq_stats = &priv->xstats.txq_stats[q]; in stmmac_get_per_qstats() 503 struct stmmac_rxq_stats *rxq_stats = &priv->xstats.rxq_stats[q]; in stmmac_get_per_qstats() 536 ret = stmmac_dma_diagnostic_fr(priv, &priv->xstats, priv->ioaddr); in stmmac_get_ethtool_stats() 554 priv->xstats.phy_eee_wakeup_error_n = val; in stmmac_get_ethtool_stats() 559 (void *)&priv->xstats, in stmmac_get_ethtool_stats() 570 struct stmmac_rxq_stats *rxq_stats = &priv->xstats.rxq_stats[i]; in stmmac_get_ethtool_stats() 589 struct stmmac_txq_stats *txq_stats = &priv->xstats in stmmac_get_ethtool_stats() [all...] |
| H A D | stmmac_main.c | 2724 struct stmmac_txq_stats *txq_stats = &priv->xstats.txq_stats[queue]; in stmmac_xdp_xmit_zc() 2759 priv->xstats.max_sdu_txq_drop[queue]++; in stmmac_xdp_xmit_zc() 2860 struct stmmac_txq_stats *txq_stats = &priv->xstats.txq_stats[queue]; in stmmac_tx_clean() 2891 status = stmmac_tx_status(priv, &priv->xstats, p, priv->ioaddr); in stmmac_tx_clean() 3033 priv->xstats.tx_errors += tx_errors; 3062 priv->xstats.tx_errors++; in stmmac_safety_feat_interrupt() 3116 &priv->xstats, chan, dir); in stmmac_dma_interrupt() 3157 &priv->xstats, chan, in stmmac_mmc_setup() 4595 txq_stats = &priv->xstats.txq_stats[queue]; in stmmac_tso_xmit() 4824 priv->xstats in stmmac_xmit() [all...] |
| H A D | stmmac_tc.c | 1133 priv->xstats.max_sdu_txq_drop[i] = 0; in tc_taprio_stats() 1134 priv->xstats.mtl_est_txq_hlbf[i] = 0; in tc_taprio_stats() 1135 priv->xstats.mtl_est_txq_hlbs[i] = 0; in tc_taprio_stats() 1154 window_drops += priv->xstats.max_sdu_txq_drop[i] + in tc_taprio_queue_stats() 1155 priv->xstats.mtl_est_txq_hlbf[i] + in tc_taprio_queue_stats() 1156 priv->xstats.mtl_est_txq_hlbs[i]; in tc_taprio_queue_stats() 1169 q_stats->stats.window_drops = priv->xstats.max_sdu_txq_drop[queue] + in tc_setup_taprio() 1170 priv->xstats.mtl_est_txq_hlbf[queue] + in tc_setup_taprio() 1171 priv->xstats.mtl_est_txq_hlbs[queue]; in tc_setup_taprio()
|
| H A D | stmmac_selftests.c | 474 memcpy(initial, &priv->xstats, sizeof(*initial)); in stmmac_test_eee() 486 memcpy(final, &priv->xstats, sizeof(*final)); in stmmac_test_eee() 494 memcpy(final, &priv->xstats, sizeof(*final)); in stmmac_test_eee() 504 memcpy(initial, &priv->xstats, sizeof(*initial)); in stmmac_test_eee() 514 memcpy(final, &priv->xstats, sizeof(*final)); in stmmac_test_eee() 522 memcpy(final, &priv->xstats, sizeof(*final)); in stmmac_test_eee() 1717 unsigned long cnt_end, cnt_start = priv->xstats.rx_split_hdr_pkt_n; in stmmac_test_arp_validate() 1732 cnt_end = priv->xstats.rx_split_hdr_pkt_n; in stmmac_test_arpoffload() 1746 cnt_end = priv->xstats.rx_split_hdr_pkt_n; in stmmac_test_arpoffload()
|
| /linux/Documentation/networking/ |
| H 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/samsung/sxgbe/ |
| H A D | sxgbe_main.c | 741 priv->xstats.tx_clean++; in sxgbe_tx_queue_clean() 1159 memset(&priv->xstats, 0, sizeof(struct sxgbe_extra_stats)); in sxgbe_open() 1161 priv->xstats.tx_threshold = priv->tx_tc; in sxgbe_open() 1162 priv->xstats.rx_threshold = priv->rx_tc; in sxgbe_open() 1387 priv->xstats.tx_reset_ic_bit++; in sxgbe_xmit() 1511 status = priv->hw->desc->rx_wbstatus(p, &priv->xstats, in sxgbe_rx() 1563 priv->xstats.napi_poll++; in sxgbe_poll() 1606 status = priv->hw->mac->host_irq_status(priv->ioaddr, &priv->xstats); in sxgbe_common_interrupt() 1609 priv->xstats.tx_lpi_entry_n++; in sxgbe_common_interrupt() 1613 priv->xstats in sxgbe_common_interrupt() [all...] |
| H A D | sxgbe_ethtool.c | 34 offsetof(struct sxgbe_priv_data, xstats.m) \ 235 priv->xstats.eee_wakeup_error_n = val; in sxgbe_get_ethtool_stats()
|
| H A D | sxgbe_common.h | 482 struct sxgbe_extra_stats xstats; member
|
| /linux/drivers/net/ethernet/netronome/nfp/abm/ |
| H 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()
|
| H A D | main.h | 180 struct nfp_alink_xstats xstats; member 266 struct nfp_alink_xstats *xstats);
|
| H 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/drivers/net/ethernet/qlogic/qed/ |
| H 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/calxeda/ |
| H A D | xgmac.c | 375 struct xgmac_extra_stats xstats; member 516 struct xgmac_extra_stats *x = &priv->xstats; in desc_get_tx_status() 543 struct xgmac_extra_stats *x = &priv->xstats; in desc_get_rx_status() 1015 memset(&priv->xstats, 0, sizeof(struct xgmac_extra_stats)); in xgmac_open() 1383 struct xgmac_extra_stats *x = &priv->xstats; in xgmac_interrupt() 1559 { #m, offsetof(struct xgmac_priv, xstats.m), false }
|
| /linux/include/net/ |
| H A D | pkt_cls.h | 923 struct red_stats *xstats; 959 struct red_stats *xstats[MAX_DPs]; 925 struct red_stats *xstats; global() member 961 struct red_stats *xstats[MAX_DPs]; global() member
|