/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_qdisc.c | 199 mlxsw_sp_qdisc_bstats_per_priority_get(struct mlxsw_sp_port_xstats *xstats, in mlxsw_sp_qdisc_bstats_per_priority_get() argument 209 *tx_packets += xstats->tx_packets[i]; in mlxsw_sp_qdisc_bstats_per_priority_get() 210 *tx_bytes += xstats->tx_bytes[i]; in mlxsw_sp_qdisc_bstats_per_priority_get() 259 struct mlxsw_sp_port_xstats *xstats; in mlxsw_sp_setup_tc_qdisc_red_clean_stats() local 262 xstats = &mlxsw_sp_port->periodic_hw_stats.xstats; in mlxsw_sp_setup_tc_qdisc_red_clean_stats() 266 mlxsw_sp_qdisc_bstats_per_priority_get(xstats, in mlxsw_sp_setup_tc_qdisc_red_clean_stats() 270 red_base->prob_mark = xstats->ecn; in mlxsw_sp_setup_tc_qdisc_red_clean_stats() 271 red_base->prob_drop = xstats->wred_drop[tclass_num]; in mlxsw_sp_setup_tc_qdisc_red_clean_stats() 272 red_base->pdrop = xstats->tail_drop[tclass_num]; in mlxsw_sp_setup_tc_qdisc_red_clean_stats() 364 struct mlxsw_sp_port_xstats *xstats; in mlxsw_sp_qdisc_get_red_xstats() local [all …]
|
/Linux-v4.19/fs/xfs/ |
D | xfs_stats.c | 9 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()
|
D | xfs_linux.h | 161 struct xstats { struct 166 extern struct xstats xfsstats; argument
|
D | xfs_sysfs.c | 203 static inline struct xstats * 208 return container_of(kobj, struct xstats, xs_kobj); in to_xstats() 216 struct xstats *stats = to_xstats(kobject); in stats_show() 230 struct xstats *stats = to_xstats(kobject); in stats_clear_store()
|
/Linux-v4.19/net/core/ |
D | gen_stats.c | 37 kfree(d->xstats); in gnet_stats_copy() 38 d->xstats = NULL; in gnet_stats_copy() 342 d->xstats = kmemdup(st, len, GFP_ATOMIC); in gnet_stats_copy_app() 343 if (!d->xstats) in gnet_stats_copy_app() 385 if (d->compat_xstats && d->xstats) { in gnet_stats_finish_copy() 386 if (gnet_stats_copy(d, d->compat_xstats, d->xstats, in gnet_stats_finish_copy() 393 kfree(d->xstats); in gnet_stats_finish_copy() 394 d->xstats = NULL; in gnet_stats_finish_copy()
|
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/abm/ |
D | main.h | 100 struct nfp_alink_xstats xstats; member 135 struct nfp_alink_xstats *xstats); 137 struct nfp_alink_xstats *xstats);
|
D | ctrl.c | 234 struct nfp_alink_xstats *xstats) in nfp_abm_ctrl_read_q_xstats() argument 240 i, true, &xstats->pdrop); in nfp_abm_ctrl_read_q_xstats() 246 i, true, &xstats->ecn_marked); in nfp_abm_ctrl_read_q_xstats() 250 struct nfp_alink_xstats *xstats) in nfp_abm_ctrl_read_xstats() argument 256 true, &xstats->pdrop); in nfp_abm_ctrl_read_xstats() 262 true, &xstats->ecn_marked); in nfp_abm_ctrl_read_xstats()
|
D | main.c | 175 &alink->qdiscs[i].xstats); in nfp_abm_red_replace() 178 &alink->qdiscs[i].xstats); in nfp_abm_red_replace() 240 struct nfp_alink_xstats xstats; in nfp_abm_red_xstats() local 246 prev_xstats = &alink->qdiscs[i].xstats; in nfp_abm_red_xstats() 249 err = nfp_abm_ctrl_read_xstats(alink, &xstats); in nfp_abm_red_xstats() 251 err = nfp_abm_ctrl_read_q_xstats(alink, i, &xstats); in nfp_abm_red_xstats() 255 opt->xstats->forced_mark += xstats.ecn_marked - prev_xstats->ecn_marked; in nfp_abm_red_xstats() 256 opt->xstats->pdrop += xstats.pdrop - prev_xstats->pdrop; in nfp_abm_red_xstats() 258 *prev_xstats = xstats; in nfp_abm_red_xstats()
|
/Linux-v4.19/net/sched/ |
D | sch_fq_codel.c | 635 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()
|
D | sch_drr.c | 273 struct tc_drr_stats xstats; in drr_dump_class_stats() local 275 memset(&xstats, 0, sizeof(xstats)); in drr_dump_class_stats() 277 xstats.deficit = cl->deficit; in drr_dump_class_stats() 285 return gnet_stats_copy_app(d, &xstats, sizeof(xstats)); in drr_dump_class_stats()
|
D | sch_cbq.c | 127 struct tc_cbq_xstats xstats; member 422 cl->xstats.overactions++; in cbq_overlimit() 728 borrow->xstats.borrows++; in cbq_dequeue_prio() 729 cl->xstats.borrows++; in cbq_dequeue_prio() 731 borrow->xstats.borrows += qdisc_pkt_len(skb); in cbq_dequeue_prio() 732 cl->xstats.borrows += qdisc_pkt_len(skb); in cbq_dequeue_prio() 1325 q->link.xstats.avgidle = q->link.avgidle; in cbq_dump_stats() 1326 return gnet_stats_copy_app(d, &q->link.xstats, sizeof(q->link.xstats)); in cbq_dump_stats() 1362 cl->xstats.avgidle = cl->avgidle; in cbq_dump_class_stats() 1363 cl->xstats.undertime = 0; in cbq_dump_class_stats() [all …]
|
D | sch_qfq.c | 648 struct tc_qfq_stats xstats; in qfq_dump_class_stats() local 650 memset(&xstats, 0, sizeof(xstats)); in qfq_dump_class_stats() 652 xstats.weight = cl->agg->class_weight; in qfq_dump_class_stats() 653 xstats.lmax = cl->agg->lmax; in qfq_dump_class_stats() 662 return gnet_stats_copy_app(d, &xstats, sizeof(xstats)); in qfq_dump_class_stats()
|
D | sch_hfsc.c | 1330 struct tc_hfsc_stats xstats; in hfsc_dump_class_stats() local 1333 xstats.level = cl->level; in hfsc_dump_class_stats() 1334 xstats.period = cl->cl_vtperiod; in hfsc_dump_class_stats() 1335 xstats.work = cl->cl_total; in hfsc_dump_class_stats() 1336 xstats.rtwork = cl->cl_cumul; in hfsc_dump_class_stats() 1343 return gnet_stats_copy_app(d, &xstats, sizeof(xstats)); in hfsc_dump_class_stats()
|
D | sch_htb.c | 121 struct tc_htb_xstats xstats; /* our special stats */ member 682 cl->xstats.lends++; in htb_charge_class() 685 cl->xstats.borrows++; in htb_charge_class() 1149 cl->xstats.tokens = clamp_t(s64, PSCHED_NS2TICKS(cl->tokens), in htb_dump_class_stats() 1151 cl->xstats.ctokens = clamp_t(s64, PSCHED_NS2TICKS(cl->ctokens), in htb_dump_class_stats() 1160 return gnet_stats_copy_app(d, &cl->xstats, sizeof(cl->xstats)); in htb_dump_class_stats()
|
D | sch_sfq.c | 863 struct tc_sfq_xstats xstats = { 0 }; in sfq_dump_class_stats() local 868 xstats.allot = slot->allot << SFQ_ALLOT_SHIFT; in sfq_dump_class_stats() 874 return gnet_stats_copy_app(d, &xstats, sizeof(xstats)); in sfq_dump_class_stats()
|
/Linux-v4.19/drivers/net/ethernet/dlink/ |
D | sundance.c | 390 } xstats; member 1540 np->xstats.tx_multiple_collisions += mult_coll; in get_stats() 1542 np->xstats.tx_single_collisions += single_coll; in get_stats() 1544 np->xstats.tx_late_collisions += late_coll; in get_stats() 1549 np->xstats.tx_deferred += ioread8(ioaddr + StatsTxDefer); in get_stats() 1550 np->xstats.tx_deferred_excessive += ioread8(ioaddr + StatsTxXSDefer); in get_stats() 1551 np->xstats.tx_aborted += ioread8(ioaddr + StatsTxAbort); in get_stats() 1552 np->xstats.tx_bcasts += ioread8(ioaddr + StatsBcastTx); in get_stats() 1553 np->xstats.rx_bcasts += ioread8(ioaddr + StatsBcastRx); in get_stats() 1554 np->xstats.tx_mcasts += ioread8(ioaddr + StatsMcastTx); in get_stats() [all …]
|
/Linux-v4.19/Documentation/networking/ |
D | gen_stats.txt | 42 gnet_stats_copy_app(&dump, &xstats, sizeof(xstats)) < 0) 53 Prior users of struct tc_stats and xstats can maintain backward
|
/Linux-v4.19/drivers/net/ethernet/samsung/sxgbe/ |
D | sxgbe_main.c | 744 priv->xstats.tx_clean++; in sxgbe_tx_queue_clean() 1156 memset(&priv->xstats, 0, sizeof(struct sxgbe_extra_stats)); in sxgbe_open() 1158 priv->xstats.tx_threshold = priv->tx_tc; in sxgbe_open() 1159 priv->xstats.rx_threshold = priv->rx_tc; in sxgbe_open() 1383 priv->xstats.tx_reset_ic_bit++; in sxgbe_xmit() 1507 status = priv->hw->desc->rx_wbstatus(p, &priv->xstats, in sxgbe_rx() 1557 priv->xstats.napi_poll++; in sxgbe_poll() 1599 status = priv->hw->mac->host_irq_status(priv->ioaddr, &priv->xstats); in sxgbe_common_interrupt() 1602 priv->xstats.tx_lpi_entry_n++; in sxgbe_common_interrupt() 1606 priv->xstats.tx_lpi_exit_n++; in sxgbe_common_interrupt() [all …]
|
D | sxgbe_ethtool.c | 37 offsetof(struct sxgbe_priv_data, xstats.m) \ 240 priv->xstats.eee_wakeup_error_n = val; in sxgbe_get_ethtool_stats()
|
/Linux-v4.19/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_ethtool.c | 46 offsetof(struct stmmac_priv, xstats.m)} 284 if (!priv->xstats.pcs_link) { in stmmac_ethtool_get_link_ksettings() 289 cmd->base.duplex = priv->xstats.pcs_duplex; in stmmac_ethtool_get_link_ksettings() 291 cmd->base.speed = priv->xstats.pcs_speed; in stmmac_ethtool_get_link_ksettings() 531 ret = stmmac_dma_diagnostic_fr(priv, &dev->stats, (void *) &priv->xstats, in stmmac_get_ethtool_stats() 550 priv->xstats.phy_eee_wakeup_error_n = val; in stmmac_get_ethtool_stats() 555 (void *)&priv->xstats, in stmmac_get_ethtool_stats()
|
D | stmmac_main.c | 1820 priv->xstats.threshold = SF_DMA_MODE; in stmmac_dma_operation_mode() 1858 priv->xstats.tx_clean++; in stmmac_tx_clean() 1872 &priv->xstats, p, priv->ioaddr); in stmmac_tx_clean() 1891 priv->xstats.tx_pkt_n++; in stmmac_tx_clean() 2035 &priv->xstats, chan); in stmmac_napi_check() 2085 if (unlikely(priv->xstats.threshold != SF_DMA_MODE) && in stmmac_dma_interrupt() 2098 priv->xstats.threshold = tc; in stmmac_dma_interrupt() 2619 memset(&priv->xstats, 0, sizeof(struct stmmac_extra_stats)); in stmmac_open() 2620 priv->xstats.threshold = tc; in stmmac_open() 2946 priv->xstats.tx_tso_frames++; in stmmac_tso_xmit() [all …]
|
/Linux-v4.19/include/net/ |
D | gen_stats.h | 26 void * xstats; member
|
/Linux-v4.19/drivers/net/ethernet/3com/ |
D | 3c59x.c | 606 struct vortex_extra_stats xstats; /* NIC-specific extra stats */ member 1965 if (tx_status & 0x08) vp->xstats.tx_max_collisions++; in vortex_error() 2865 vp->xstats.tx_multiple_collisions += window_read8(vp, 6, 2); in update_stats() 2866 vp->xstats.tx_single_collisions += window_read8(vp, 6, 3); in update_stats() 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() [all …]
|
/Linux-v4.19/drivers/net/ethernet/qlogic/qed/ |
D | qed_iscsi.c | 998 struct xstorm_iscsi_stats_drv xstats; in _qed_iscsi_get_xstats() local 1001 memset(&xstats, 0, sizeof(xstats)); in _qed_iscsi_get_xstats() 1004 qed_memcpy_from(p_hwfn, p_ptt, &xstats, xstats_addr, sizeof(xstats)); in _qed_iscsi_get_xstats() 1007 HILO_64_REGPAIR(xstats.iscsi_tx_go_to_slow_start_event_cnt); in _qed_iscsi_get_xstats() 1009 HILO_64_REGPAIR(xstats.iscsi_tx_fast_retransmit_event_cnt); in _qed_iscsi_get_xstats()
|
/Linux-v4.19/drivers/net/ethernet/neterion/ |
D | s2io.c | 3235 struct xpakStat *xstats = &stats->xpak_stat; in s2io_updt_xpak_counter() local 3268 s2io_chk_xpak_counter(&xstats->alarm_transceiver_temp_high, in s2io_updt_xpak_counter() 3269 &xstats->xpak_regs_stat, in s2io_updt_xpak_counter() 3273 xstats->alarm_transceiver_temp_low++; in s2io_updt_xpak_counter() 3277 s2io_chk_xpak_counter(&xstats->alarm_laser_bias_current_high, in s2io_updt_xpak_counter() 3278 &xstats->xpak_regs_stat, in s2io_updt_xpak_counter() 3282 xstats->alarm_laser_bias_current_low++; in s2io_updt_xpak_counter() 3286 s2io_chk_xpak_counter(&xstats->alarm_laser_output_power_high, in s2io_updt_xpak_counter() 3287 &xstats->xpak_regs_stat, in s2io_updt_xpak_counter() 3291 xstats->alarm_laser_output_power_low++; in s2io_updt_xpak_counter() [all …]
|