Home
last modified time | relevance | path

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

/linux-4.1.27/net/core/
Dgen_stats.c35 kfree(d->xstats); in gnet_stats_copy()
36 d->xstats = NULL; in gnet_stats_copy()
311 d->xstats = kmemdup(st, len, GFP_ATOMIC); in gnet_stats_copy_app()
312 if (!d->xstats) in gnet_stats_copy_app()
352 if (d->compat_xstats && d->xstats) { in gnet_stats_finish_copy()
353 if (gnet_stats_copy(d, d->compat_xstats, d->xstats, in gnet_stats_finish_copy()
358 kfree(d->xstats); in gnet_stats_finish_copy()
359 d->xstats = NULL; in gnet_stats_finish_copy()
/linux-4.1.27/fs/xfs/
Dxfs_stats.c42 } xstats[] = { in xfs_stat_proc_show() local
68 for (i = j = 0; i < ARRAY_SIZE(xstats); i++) { in xfs_stat_proc_show()
69 seq_printf(m, "%s", xstats[i].desc); in xfs_stat_proc_show()
71 for (; j < xstats[i].endpoint; j++) in xfs_stat_proc_show()
/linux-4.1.27/net/sched/
Dsch_fq_codel.c524 struct tc_fq_codel_xstats xstats; in fq_codel_dump_class_stats() local
530 memset(&xstats, 0, sizeof(xstats)); in fq_codel_dump_class_stats()
531 xstats.type = TCA_FQ_CODEL_XSTATS_CLASS; in fq_codel_dump_class_stats()
532 xstats.class_stats.deficit = flow->deficit; in fq_codel_dump_class_stats()
533 xstats.class_stats.ldelay = in fq_codel_dump_class_stats()
535 xstats.class_stats.count = flow->cvars.count; in fq_codel_dump_class_stats()
536 xstats.class_stats.lastcount = flow->cvars.lastcount; in fq_codel_dump_class_stats()
537 xstats.class_stats.dropping = flow->cvars.dropping; in fq_codel_dump_class_stats()
542 xstats.class_stats.drop_next = (delta >= 0) ? in fq_codel_dump_class_stats()
556 return gnet_stats_copy_app(d, &xstats, sizeof(xstats)); in fq_codel_dump_class_stats()
Dsch_drr.c279 struct tc_drr_stats xstats; in drr_dump_class_stats() local
281 memset(&xstats, 0, sizeof(xstats)); in drr_dump_class_stats()
283 xstats.deficit = cl->deficit; in drr_dump_class_stats()
290 return gnet_stats_copy_app(d, &xstats, sizeof(xstats)); in drr_dump_class_stats()
Dsch_cbq.c134 struct tc_cbq_xstats xstats; member
432 cl->xstats.overactions++; in cbq_ovl_classic()
516 cl->xstats.overactions++; in cbq_ovl_delay()
536 cl->xstats.overactions++; in cbq_ovl_lowprio()
548 cl->xstats.overactions++; in cbq_ovl_drop()
866 borrow->xstats.borrows++; in cbq_dequeue_prio()
867 cl->xstats.borrows++; in cbq_dequeue_prio()
869 borrow->xstats.borrows += qdisc_pkt_len(skb); in cbq_dequeue_prio()
870 cl->xstats.borrows += qdisc_pkt_len(skb); in cbq_dequeue_prio()
1560 q->link.xstats.avgidle = q->link.avgidle; in cbq_dump_stats()
[all …]
Dsch_qfq.c664 struct tc_qfq_stats xstats; in qfq_dump_class_stats() local
666 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_dump_class_stats()
Dsch_htb.c121 struct tc_htb_xstats xstats; /* our special stats */ member
655 cl->xstats.lends++; in htb_charge_class()
658 cl->xstats.borrows++; in htb_charge_class()
1145 cl->xstats.tokens = PSCHED_NS2TICKS(cl->tokens); in htb_dump_class_stats()
1146 cl->xstats.ctokens = PSCHED_NS2TICKS(cl->ctokens); in htb_dump_class_stats()
1153 return gnet_stats_copy_app(d, &cl->xstats, sizeof(cl->xstats)); in htb_dump_class_stats()
Dsch_hfsc.c1371 struct tc_hfsc_stats xstats; in hfsc_dump_class_stats() local
1374 xstats.level = cl->level; in hfsc_dump_class_stats()
1375 xstats.period = cl->cl_vtperiod; in hfsc_dump_class_stats()
1376 xstats.work = cl->cl_total; in hfsc_dump_class_stats()
1377 xstats.rtwork = cl->cl_cumul; in hfsc_dump_class_stats()
1384 return gnet_stats_copy_app(d, &xstats, sizeof(xstats)); in hfsc_dump_class_stats()
Dsch_sfq.c865 struct tc_sfq_xstats xstats = { 0 }; in sfq_dump_class_stats() local
870 xstats.allot = slot->allot << SFQ_ALLOT_SHIFT; in sfq_dump_class_stats()
876 return gnet_stats_copy_app(d, &xstats, sizeof(xstats)); in sfq_dump_class_stats()
/linux-4.1.27/drivers/net/ethernet/dlink/
Dsundance.c390 } 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-4.1.27/Documentation/networking/
Dgen_stats.txt41 gnet_stats_copy_app(&dump, &xstats, sizeof(xstats)) < 0)
52 Prior users of struct tc_stats and xstats can maintain backward
/linux-4.1.27/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_main.c748 priv->xstats.tx_clean++; in sxgbe_tx_queue_clean()
1166 memset(&priv->xstats, 0, sizeof(struct sxgbe_extra_stats)); in sxgbe_open()
1168 priv->xstats.tx_threshold = priv->tx_tc; in sxgbe_open()
1169 priv->xstats.rx_threshold = priv->rx_tc; in sxgbe_open()
1399 priv->xstats.tx_reset_ic_bit++; in sxgbe_xmit()
1526 status = priv->hw->desc->rx_wbstatus(p, &priv->xstats, in sxgbe_rx()
1576 priv->xstats.napi_poll++; in sxgbe_poll()
1618 status = priv->hw->mac->host_irq_status(priv->ioaddr, &priv->xstats); in sxgbe_common_interrupt()
1621 priv->xstats.tx_lpi_entry_n++; in sxgbe_common_interrupt()
1625 priv->xstats.tx_lpi_exit_n++; in sxgbe_common_interrupt()
[all …]
Dsxgbe_ethtool.c37 offsetof(struct sxgbe_priv_data, xstats.m) \
261 priv->xstats.eee_wakeup_error_n = val; in sxgbe_get_ethtool_stats()
Dsxgbe_common.h487 struct sxgbe_extra_stats xstats; member
/linux-4.1.27/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ethtool.c48 offsetof(struct stmmac_priv, xstats.m)}
254 if (!priv->xstats.pcs_link) { in stmmac_ethtool_getsettings()
259 cmd->duplex = priv->xstats.pcs_duplex; in stmmac_ethtool_getsettings()
261 ethtool_cmd_speed_set(cmd, priv->xstats.pcs_speed); in stmmac_ethtool_getsettings()
479 (void *) &priv->xstats, in stmmac_get_ethtool_stats()
498 priv->xstats.phy_eee_wakeup_error_n = val; in stmmac_get_ethtool_stats()
Dstmmac_main.c1297 priv->xstats.threshold = SF_DMA_MODE; in stmmac_dma_operation_mode()
1315 priv->xstats.tx_clean++; in stmmac_tx_clean()
1337 &priv->xstats, p, in stmmac_tx_clean()
1341 priv->xstats.tx_pkt_n++; in stmmac_tx_clean()
1454 status = priv->hw->dma->dma_interrupt(priv->ioaddr, &priv->xstats); in stmmac_dma_interrupt()
1463 if (unlikely(priv->xstats.threshold != SF_DMA_MODE) && in stmmac_dma_interrupt()
1472 priv->xstats.threshold = tc; in stmmac_dma_interrupt()
1794 memset(&priv->xstats, 0, sizeof(struct stmmac_extra_stats)); in stmmac_open()
1795 priv->xstats.threshold = tc; in stmmac_open()
2032 priv->xstats.tx_reset_ic_bit++; in stmmac_xmit()
[all …]
Dstmmac.h90 struct stmmac_extra_stats xstats ____cacheline_aligned_in_smp;
/linux-4.1.27/include/net/
Dgen_stats.h22 void * xstats; member
/linux-4.1.27/drivers/net/ethernet/3com/
D3c59x.c606 struct vortex_extra_stats xstats; /* NIC-specific extra stats */ member
1985 if (tx_status & 0x08) vp->xstats.tx_max_collisions++; in vortex_error()
2872 vp->xstats.tx_multiple_collisions += window_read8(vp, 6, 2); in update_stats()
2873 vp->xstats.tx_single_collisions += window_read8(vp, 6, 3); in update_stats()
2874 vp->xstats.tx_deferred += window_read8(vp, 6, 8); in update_stats()
2875 vp->xstats.rx_bad_ssd += window_read8(vp, 4, 12); in update_stats()
2877 dev->stats.collisions = vp->xstats.tx_multiple_collisions in update_stats()
2878 + vp->xstats.tx_single_collisions in update_stats()
2879 + vp->xstats.tx_max_collisions; in update_stats()
2940 data[0] = vp->xstats.tx_deferred; in vortex_get_ethtool_stats()
[all …]
/linux-4.1.27/drivers/net/ethernet/neterion/
Ds2io.c3249 struct xpakStat *xstats = &stats->xpak_stat; in s2io_updt_xpak_counter() local
3282 s2io_chk_xpak_counter(&xstats->alarm_transceiver_temp_high, in s2io_updt_xpak_counter()
3283 &xstats->xpak_regs_stat, in s2io_updt_xpak_counter()
3287 xstats->alarm_transceiver_temp_low++; in s2io_updt_xpak_counter()
3291 s2io_chk_xpak_counter(&xstats->alarm_laser_bias_current_high, in s2io_updt_xpak_counter()
3292 &xstats->xpak_regs_stat, in s2io_updt_xpak_counter()
3296 xstats->alarm_laser_bias_current_low++; in s2io_updt_xpak_counter()
3300 s2io_chk_xpak_counter(&xstats->alarm_laser_output_power_high, in s2io_updt_xpak_counter()
3301 &xstats->xpak_regs_stat, in s2io_updt_xpak_counter()
3305 xstats->alarm_laser_output_power_low++; in s2io_updt_xpak_counter()
[all …]
/linux-4.1.27/drivers/net/ethernet/calxeda/
Dxgmac.c386 struct xgmac_extra_stats xstats; member
527 struct xgmac_extra_stats *x = &priv->xstats; in desc_get_tx_status()
554 struct xgmac_extra_stats *x = &priv->xstats; in desc_get_rx_status()
1028 memset(&priv->xstats, 0, sizeof(struct xgmac_extra_stats)); in xgmac_open()
1408 struct xgmac_extra_stats *x = &priv->xstats; in xgmac_interrupt()
1586 { #m, offsetof(struct xgmac_priv, xstats.m), false }
/linux-4.1.27/drivers/net/ethernet/realtek/
D8139too.c613 struct rtl_extra_stats xstats; member
1682 tp->xstats.tx_timeouts++; in rtl8139_tx_timeout_task()
1860 tp->xstats.rx_lost_in_ring++; in rtl8139_rx_err()
2000 tp->xstats.early_rx++; in rtl8139_rx()
2477 data[0] = tp->xstats.early_rx; in rtl8139_get_ethtool_stats()
2478 data[1] = tp->xstats.tx_buf_mapped; in rtl8139_get_ethtool_stats()
2479 data[2] = tp->xstats.tx_timeouts; in rtl8139_get_ethtool_stats()
2480 data[3] = tp->xstats.rx_lost_in_ring; in rtl8139_get_ethtool_stats()