/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_qdisc.c | 501 mlxsw_sp_xstats_backlog(struct mlxsw_sp_port_xstats *xstats, int tclass_num) in mlxsw_sp_xstats_backlog() argument 503 return xstats->backlog[tclass_num] + in mlxsw_sp_xstats_backlog() 504 xstats->backlog[tclass_num + 8]; in mlxsw_sp_xstats_backlog() 508 mlxsw_sp_xstats_tail_drop(struct mlxsw_sp_port_xstats *xstats, int tclass_num) in mlxsw_sp_xstats_tail_drop() argument 510 return xstats->tail_drop[tclass_num] + in mlxsw_sp_xstats_tail_drop() 511 xstats->tail_drop[tclass_num + 8]; in mlxsw_sp_xstats_tail_drop() 515 mlxsw_sp_qdisc_bstats_per_priority_get(struct mlxsw_sp_port_xstats *xstats, in mlxsw_sp_qdisc_bstats_per_priority_get() argument 525 *tx_packets += xstats->tx_packets[i]; in mlxsw_sp_qdisc_bstats_per_priority_get() 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 642 struct mlxsw_sp_port_xstats *xstats; mlxsw_sp_setup_tc_qdisc_red_clean_stats() local 775 struct mlxsw_sp_port_xstats *xstats; mlxsw_sp_qdisc_get_red_xstats() local 805 struct mlxsw_sp_port_xstats *xstats; mlxsw_sp_qdisc_get_red_stats() local 1470 struct mlxsw_sp_port_xstats *xstats; mlxsw_sp_setup_tc_qdisc_prio_clean_stats() local [all...] |
/kernel/linux/linux-5.10/net/core/ |
H A D | gen_stats.c | 33 kfree(d->xstats); in gnet_stats_copy() 34 d->xstats = NULL; in gnet_stats_copy() 44 * @xstats_type: TLV type for backward compatibility xstats TLV 377 d->xstats = kmemdup(st, len, GFP_ATOMIC); in gnet_stats_copy_app() 378 if (!d->xstats) in gnet_stats_copy_app() 420 if (d->compat_xstats && d->xstats) { in gnet_stats_finish_copy() 421 if (gnet_stats_copy(d, d->compat_xstats, d->xstats, in gnet_stats_finish_copy() 428 kfree(d->xstats); in gnet_stats_finish_copy() 429 d->xstats = NULL; in gnet_stats_finish_copy()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_qdisc.c | 262 mlxsw_sp_xstats_backlog(struct mlxsw_sp_port_xstats *xstats, int tclass_num) in mlxsw_sp_xstats_backlog() argument 264 return xstats->backlog[tclass_num] + in mlxsw_sp_xstats_backlog() 265 xstats->backlog[tclass_num + 8]; in mlxsw_sp_xstats_backlog() 269 mlxsw_sp_xstats_tail_drop(struct mlxsw_sp_port_xstats *xstats, int tclass_num) in mlxsw_sp_xstats_tail_drop() argument 271 return xstats->tail_drop[tclass_num] + in mlxsw_sp_xstats_tail_drop() 272 xstats->tail_drop[tclass_num + 8]; in mlxsw_sp_xstats_tail_drop() 276 mlxsw_sp_qdisc_bstats_per_priority_get(struct mlxsw_sp_port_xstats *xstats, in mlxsw_sp_qdisc_bstats_per_priority_get() argument 286 *tx_packets += xstats->tx_packets[i]; in mlxsw_sp_qdisc_bstats_per_priority_get() 287 *tx_bytes += xstats->tx_bytes[i]; in mlxsw_sp_qdisc_bstats_per_priority_get() 299 struct mlxsw_sp_port_xstats *xstats; in mlxsw_sp_qdisc_collect_tc_stats() local 400 struct mlxsw_sp_port_xstats *xstats; mlxsw_sp_setup_tc_qdisc_red_clean_stats() local 516 struct mlxsw_sp_port_xstats *xstats; mlxsw_sp_qdisc_get_red_xstats() local 541 struct mlxsw_sp_port_xstats *xstats; mlxsw_sp_qdisc_get_red_stats() local 1095 struct mlxsw_sp_port_xstats *xstats; mlxsw_sp_setup_tc_qdisc_prio_clean_stats() local [all...] |
/kernel/linux/linux-5.10/fs/xfs/ |
H 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()
|
H A D | xfs_sysfs.c | 252 static inline struct xstats * 257 return container_of(kobj, struct xstats, xs_kobj); in to_xstats() 265 struct xstats *stats = to_xstats(kobject); in stats_show() 279 struct xstats *stats = to_xstats(kobject); in stats_clear_store()
|
H A D | xfs_linux.h | 155 struct xstats { struct 160 extern struct xstats xfsstats;
|
/kernel/linux/linux-6.6/fs/xfs/ |
H 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()
|
H A D | xfs_sysfs.c | 279 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()
|
/kernel/linux/linux-6.6/net/core/ |
H A D | gen_stats.c | 33 kfree(d->xstats); in gnet_stats_copy() 34 d->xstats = NULL; in gnet_stats_copy() 44 * @xstats_type: TLV type for backward compatibility xstats TLV 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()
|
/kernel/linux/linux-5.10/net/sched/ |
H A D | sch_fq_codel.c | 626 struct tc_fq_codel_xstats xstats; in fq_codel_dump_class_stats() local 632 memset(&xstats, 0, sizeof(xstats)); in fq_codel_dump_class_stats() 633 xstats.type = TCA_FQ_CODEL_XSTATS_CLASS; in fq_codel_dump_class_stats() 634 xstats.class_stats.deficit = flow->deficit; in fq_codel_dump_class_stats() 635 xstats.class_stats.ldelay = in fq_codel_dump_class_stats() 637 xstats.class_stats.count = flow->cvars.count; in fq_codel_dump_class_stats() 638 xstats.class_stats.lastcount = flow->cvars.lastcount; in fq_codel_dump_class_stats() 639 xstats.class_stats.dropping = flow->cvars.dropping; in fq_codel_dump_class_stats() 644 xstats in fq_codel_dump_class_stats() [all...] |
H A D | sch_drr.c | 263 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() 275 return gnet_stats_copy_app(d, &xstats, sizeof(xstats)); in drr_dump_class_stats()
|
H A D | sch_cbq.c | 122 struct tc_cbq_xstats xstats; member 417 cl->xstats.overactions++; in cbq_overlimit() 723 borrow->xstats.borrows++; in cbq_dequeue_prio() 724 cl->xstats.borrows++; in cbq_dequeue_prio() 726 borrow->xstats.borrows += qdisc_pkt_len(skb); in cbq_dequeue_prio() 727 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 in cbq_dump_class_stats() [all...] |
/kernel/linux/linux-6.6/net/sched/ |
H A 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 in fq_codel_dump_class_stats() [all...] |
H A D | sch_drr.c | 263 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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_ethtool.c | 46 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() 638 ret = stmmac_dma_diagnostic_fr(priv, &priv->xstats, priv->ioaddr); in stmmac_get_ethtool_stats() 656 priv->xstats in stmmac_get_ethtool_stats() [all...] |
H A D | stmmac_main.c | 2398 priv->xstats.threshold = SF_DMA_MODE; in stmmac_dma_operation_mode() 2438 struct stmmac_txq_stats *txq_stats = &priv->xstats.txq_stats[queue]; in stmmac_xdp_xmit_zc() 2536 if (unlikely(priv->xstats.threshold != SF_DMA_MODE) && tc <= 256) { in stmmac_bump_dma_threshold() 2545 priv->xstats.threshold = tc; in stmmac_bump_dma_threshold() 2559 struct stmmac_txq_stats *txq_stats = &priv->xstats.txq_stats[queue]; in stmmac_tx_clean() 2596 status = stmmac_tx_status(priv, &priv->xstats, p, priv->ioaddr); in stmmac_tx_clean() 2724 priv->xstats.tx_errors += tx_errors; in stmmac_tx_clean() 2753 priv->xstats.tx_errors++; in stmmac_tx_err() 2807 &priv->xstats, chan, dir); in stmmac_napi_check() 4142 txq_stats = &priv->xstats in stmmac_tso_xmit() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/dlink/ |
H A D | sundance.c | 383 } xstats; member 1525 np->xstats.tx_multiple_collisions += mult_coll; in get_stats() 1527 np->xstats.tx_single_collisions += single_coll; in get_stats() 1529 np->xstats.tx_late_collisions += late_coll; in get_stats() 1534 np->xstats.tx_deferred += ioread8(ioaddr + StatsTxDefer); in get_stats() 1535 np->xstats.tx_deferred_excessive += ioread8(ioaddr + StatsTxXSDefer); in get_stats() 1536 np->xstats.tx_aborted += ioread8(ioaddr + StatsTxAbort); in get_stats() 1537 np->xstats.tx_bcasts += ioread8(ioaddr + StatsBcastTx); in get_stats() 1538 np->xstats.rx_bcasts += ioread8(ioaddr + StatsBcastRx); in get_stats() 1539 np->xstats in get_stats() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/dlink/ |
H A D | sundance.c | 383 } xstats; member 1525 np->xstats.tx_multiple_collisions += mult_coll; in get_stats() 1527 np->xstats.tx_single_collisions += single_coll; in get_stats() 1529 np->xstats.tx_late_collisions += late_coll; in get_stats() 1534 np->xstats.tx_deferred += ioread8(ioaddr + StatsTxDefer); in get_stats() 1535 np->xstats.tx_deferred_excessive += ioread8(ioaddr + StatsTxXSDefer); in get_stats() 1536 np->xstats.tx_aborted += ioread8(ioaddr + StatsTxAbort); in get_stats() 1537 np->xstats.tx_bcasts += ioread8(ioaddr + StatsBcastTx); in get_stats() 1538 np->xstats.rx_bcasts += ioread8(ioaddr + StatsBcastRx); in get_stats() 1539 np->xstats in get_stats() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/abm/ |
H A D | qdisc.c | 63 &qdisc->red.band[i].xstats); in nfp_abm_stats_update_red() 65 nfp_err(cpp, "RED xstats (%d, %d) read failed with error %d\n", in nfp_abm_stats_update_red() 162 "RED xstats init (%d, %d) failed with error %d\n", in __nfp_abm_stats_init() 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() [all...] |
H A D | main.h | 149 * @red.band.xstats: extended stats for RED - current 180 struct nfp_alink_xstats xstats; member 266 struct nfp_alink_xstats *xstats);
|
/kernel/linux/linux-6.6/drivers/net/ethernet/netronome/nfp/abm/ |
H A D | qdisc.c | 63 &qdisc->red.band[i].xstats); in nfp_abm_stats_update_red() 65 nfp_err(cpp, "RED xstats (%d, %d) read failed with error %d\n", in nfp_abm_stats_update_red() 162 "RED xstats init (%d, %d) failed with error %d\n", in __nfp_abm_stats_init() 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() [all...] |
H A D | main.h | 149 * @red.band.xstats: extended stats for RED - current 180 struct nfp_alink_xstats xstats; member 266 struct nfp_alink_xstats *xstats);
|
/kernel/linux/linux-5.10/drivers/net/ethernet/samsung/sxgbe/ |
H A D | sxgbe_main.c | 746 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() 1386 priv->xstats.tx_reset_ic_bit++; in sxgbe_xmit() 1510 status = priv->hw->desc->rx_wbstatus(p, &priv->xstats, in sxgbe_rx() 1560 priv->xstats.napi_poll++; in sxgbe_poll() 1603 status = priv->hw->mac->host_irq_status(priv->ioaddr, &priv->xstats); in sxgbe_common_interrupt() 1606 priv->xstats.tx_lpi_entry_n++; in sxgbe_common_interrupt() 1610 priv->xstats in sxgbe_common_interrupt() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/samsung/sxgbe/ |
H A D | sxgbe_main.c | 746 priv->xstats.tx_clean++; in sxgbe_tx_queue_clean() 1162 memset(&priv->xstats, 0, sizeof(struct sxgbe_extra_stats)); in sxgbe_open() 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() 1513 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...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_ethtool.c | 46 offsetof(struct stmmac_priv, xstats.m)} 292 if (!priv->xstats.pcs_link) { in stmmac_ethtool_get_link_ksettings() 297 cmd->base.duplex = priv->xstats.pcs_duplex; in stmmac_ethtool_get_link_ksettings() 299 cmd->base.speed = priv->xstats.pcs_speed; in stmmac_ethtool_get_link_ksettings() 536 ret = stmmac_dma_diagnostic_fr(priv, &dev->stats, (void *) &priv->xstats, in stmmac_get_ethtool_stats() 555 priv->xstats.phy_eee_wakeup_error_n = val; in stmmac_get_ethtool_stats() 560 (void *)&priv->xstats, in stmmac_get_ethtool_stats()
|