Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_qdisc.c373 mlxsw_sp_xstats_backlog(struct mlxsw_sp_port_xstats *xstats, int tclass_num) in mlxsw_sp_xstats_backlog() argument
375 return xstats->backlog[tclass_num] + in mlxsw_sp_xstats_backlog()
376 xstats->backlog[tclass_num + 8]; in mlxsw_sp_xstats_backlog()
380 mlxsw_sp_xstats_tail_drop(struct mlxsw_sp_port_xstats *xstats, int tclass_num) in mlxsw_sp_xstats_tail_drop() argument
382 return xstats->tail_drop[tclass_num] + in mlxsw_sp_xstats_tail_drop()
383 xstats->tail_drop[tclass_num + 8]; in mlxsw_sp_xstats_tail_drop()
387 mlxsw_sp_qdisc_bstats_per_priority_get(struct mlxsw_sp_port_xstats *xstats, in mlxsw_sp_qdisc_bstats_per_priority_get() argument
397 *tx_packets += xstats->tx_packets[i]; in mlxsw_sp_qdisc_bstats_per_priority_get()
398 *tx_bytes += xstats->tx_bytes[i]; in mlxsw_sp_qdisc_bstats_per_priority_get()
410 struct mlxsw_sp_port_xstats *xstats; in mlxsw_sp_qdisc_collect_tc_stats() local
[all …]
Dspectrum.c790 struct mlxsw_sp_port_xstats *xstats) in mlxsw_sp_port_get_hw_xstats() argument
798 xstats->ecn = mlxsw_reg_ppcnt_ecn_marked_get(ppcnt_pl); in mlxsw_sp_port_get_hw_xstats()
805 xstats->wred_drop[i] = in mlxsw_sp_port_get_hw_xstats()
813 xstats->backlog[i] = in mlxsw_sp_port_get_hw_xstats()
815 xstats->tail_drop[i] = in mlxsw_sp_port_get_hw_xstats()
825 xstats->tx_packets[i] = mlxsw_reg_ppcnt_tx_frames_get(ppcnt_pl); in mlxsw_sp_port_get_hw_xstats()
826 xstats->tx_bytes[i] = mlxsw_reg_ppcnt_tx_octets_get(ppcnt_pl); in mlxsw_sp_port_get_hw_xstats()
845 &mlxsw_sp_port->periodic_hw_stats.xstats); in update_stats_cache()
2119 mlxsw_sp_port->periodic_hw_stats.xstats.backlog[i] = 0; in mlxsw_sp_port_down_wipe_counters()
Dspectrum.h332 struct mlxsw_sp_port_xstats xstats; member
/drivers/net/ethernet/dlink/
Dsundance.c383 } 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.tx_mcasts += ioread8(ioaddr + StatsMcastTx); in get_stats()
[all …]
/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_main.c746 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.tx_lpi_exit_n++; in sxgbe_common_interrupt()
[all …]
Dsxgbe_ethtool.c34 offsetof(struct sxgbe_priv_data, xstats.m) \
237 priv->xstats.eee_wakeup_error_n = val; in sxgbe_get_ethtool_stats()
Dsxgbe_common.h482 struct sxgbe_extra_stats xstats; member
/drivers/net/ethernet/netronome/nfp/abm/
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()
Dmain.h180 struct nfp_alink_xstats xstats; member
266 struct nfp_alink_xstats *xstats);
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()
/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ethtool.c46 offsetof(struct stmmac_priv, xstats.m)}
314 if (!priv->xstats.pcs_link) { in stmmac_ethtool_get_link_ksettings()
319 cmd->base.duplex = priv->xstats.pcs_duplex; in stmmac_ethtool_get_link_ksettings()
321 cmd->base.speed = priv->xstats.pcs_speed; in stmmac_ethtool_get_link_ksettings()
549 xstats.txq_stats[q].tx_pkt_n); in stmmac_get_per_qstats()
557 xstats.rxq_stats[q].rx_pkt_n); in stmmac_get_per_qstats()
583 ret = stmmac_dma_diagnostic_fr(priv, &dev->stats, (void *) &priv->xstats, in stmmac_get_ethtool_stats()
602 priv->xstats.phy_eee_wakeup_error_n = val; in stmmac_get_ethtool_stats()
607 (void *)&priv->xstats, in stmmac_get_ethtool_stats()
Dstmmac_main.c2373 priv->xstats.threshold = SF_DMA_MODE; in stmmac_dma_operation_mode()
2478 priv->xstats.tx_set_ic_bit++; in stmmac_xdp_xmit_zc()
2519 priv->xstats.tx_clean++; in stmmac_tx_clean()
2552 &priv->xstats, p, priv->ioaddr); in stmmac_tx_clean()
2571 priv->xstats.tx_pkt_n++; in stmmac_tx_clean()
2572 priv->xstats.txq_stats[queue].tx_pkt_n++; in stmmac_tx_clean()
2760 &priv->xstats, chan, dir); in stmmac_napi_check()
2819 if (unlikely(priv->xstats.threshold != SF_DMA_MODE) && in stmmac_dma_interrupt()
2832 priv->xstats.threshold = tc; in stmmac_dma_interrupt()
3734 memset(&priv->xstats, 0, sizeof(struct stmmac_extra_stats)); in stmmac_open()
[all …]
Dstmmac_selftests.c447 memcpy(initial, &priv->xstats, sizeof(*initial)); in stmmac_test_eee()
455 memcpy(final, &priv->xstats, sizeof(*final)); in stmmac_test_eee()
1720 unsigned long cnt_end, cnt_start = priv->xstats.rx_split_hdr_pkt_n; in stmmac_test_sph()
1735 cnt_end = priv->xstats.rx_split_hdr_pkt_n; in stmmac_test_sph()
1749 cnt_end = priv->xstats.rx_split_hdr_pkt_n; in stmmac_test_sph()
Dstmmac.h234 struct stmmac_extra_stats xstats ____cacheline_aligned_in_smp;
/drivers/net/ethernet/3com/
D3c59x.c606 struct vortex_extra_stats xstats; /* NIC-specific extra stats */ member
1963 if (tx_status & 0x08) vp->xstats.tx_max_collisions++; in vortex_error()
2863 vp->xstats.tx_multiple_collisions += window_read8(vp, 6, 2); in update_stats()
2864 vp->xstats.tx_single_collisions += window_read8(vp, 6, 3); in update_stats()
2865 vp->xstats.tx_deferred += window_read8(vp, 6, 8); in update_stats()
2866 vp->xstats.rx_bad_ssd += window_read8(vp, 4, 12); in update_stats()
2868 dev->stats.collisions = vp->xstats.tx_multiple_collisions in update_stats()
2869 + vp->xstats.tx_single_collisions in update_stats()
2870 + vp->xstats.tx_max_collisions; in update_stats()
2935 data[0] = vp->xstats.tx_deferred; in vortex_get_ethtool_stats()
[all …]
/drivers/net/ethernet/qlogic/qed/
Dqed_iscsi.c950 struct xstorm_iscsi_stats_drv xstats; in _qed_iscsi_get_xstats() local
953 memset(&xstats, 0, sizeof(xstats)); in _qed_iscsi_get_xstats()
956 qed_memcpy_from(p_hwfn, p_ptt, &xstats, xstats_addr, sizeof(xstats)); in _qed_iscsi_get_xstats()
959 HILO_64_REGPAIR(xstats.iscsi_tx_go_to_slow_start_event_cnt); in _qed_iscsi_get_xstats()
961 HILO_64_REGPAIR(xstats.iscsi_tx_fast_retransmit_event_cnt); in _qed_iscsi_get_xstats()
/drivers/net/ethernet/neterion/
Ds2io.c3241 struct xpakStat *xstats = &stats->xpak_stat; in s2io_updt_xpak_counter() local
3274 s2io_chk_xpak_counter(&xstats->alarm_transceiver_temp_high, in s2io_updt_xpak_counter()
3275 &xstats->xpak_regs_stat, in s2io_updt_xpak_counter()
3279 xstats->alarm_transceiver_temp_low++; in s2io_updt_xpak_counter()
3283 s2io_chk_xpak_counter(&xstats->alarm_laser_bias_current_high, 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()
3292 s2io_chk_xpak_counter(&xstats->alarm_laser_output_power_high, 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()
[all …]
/drivers/net/ethernet/realtek/
D8139too.c614 struct rtl_extra_stats xstats; member
1679 tp->xstats.tx_timeouts++; in rtl8139_tx_timeout_task()
1857 tp->xstats.rx_lost_in_ring++; in rtl8139_rx_err()
1997 tp->xstats.early_rx++; in rtl8139_rx()
2472 data[0] = tp->xstats.early_rx; in rtl8139_get_ethtool_stats()
2473 data[1] = tp->xstats.tx_buf_mapped; in rtl8139_get_ethtool_stats()
2474 data[2] = tp->xstats.tx_timeouts; in rtl8139_get_ethtool_stats()
2475 data[3] = tp->xstats.rx_lost_in_ring; in rtl8139_get_ethtool_stats()
/drivers/net/ethernet/calxeda/
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 }