| /drivers/net/wireless/realtek/rtlwifi/rtl8192d/ |
| A D | trx_common.c | 21 struct rtl_stats *pstats, in _rtl92d_query_rxphystatus() argument 44 pstats->is_cck = is_cck_rate; in _rtl92d_query_rxphystatus() 126 pstats->signalquality = sq; in _rtl92d_query_rxphystatus() 148 pstats->rxpower = rx_pwr_all; in _rtl92d_query_rxphystatus() 159 pstats->signalquality = in _rtl92d_query_rxphystatus() 213 if (!pstats->packet_toself && !pstats->packet_beacon) in _rtl92d_process_ui_rssi() 232 if (!pstats->is_cck && pstats->packet_toself) in _rtl92d_process_ui_rssi() 265 if (pstats->packet_toself || pstats->packet_beacon) { in _rtl92d_process_pwdb() 313 if (!pstats->packet_toself && !pstats->packet_beacon) in _rtl92d_process_ui_link_quality() 363 tmp_buf = skb->data + pstats->rx_drvinfo_size + pstats->rx_bufshift; in _rtl92d_translate_rx_signal_stuff() [all …]
|
| /drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
| A D | trx.c | 27 struct rtl_stats *pstats, in _rtl92ce_query_rxphystatus() argument 46 pstats->is_cck = is_cck_rate; in _rtl92ce_query_rxphystatus() 48 pstats->rx_mimo_sig_qual[0] = -1; in _rtl92ce_query_rxphystatus() 142 pstats->signalquality = sq; in _rtl92ce_query_rxphystatus() 175 pstats->rxpower = rx_pwr_all; in _rtl92ce_query_rxphystatus() 179 if (pstats->is_ht && pstats->rate >= DESC_RATEMCS8 && in _rtl92ce_query_rxphystatus() 193 pstats->signalquality = in _rtl92ce_query_rxphystatus() 204 pstats->signalstrength = in _rtl92ce_query_rxphystatus() 207 pstats->signalstrength = in _rtl92ce_query_rxphystatus() 227 tmp_buf = skb->data + pstats->rx_drvinfo_size + pstats->rx_bufshift; in _rtl92ce_translate_rx_signal_stuff() [all …]
|
| /drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
| A D | trx.c | 49 bool is_cck = pstats->is_cck; in _rtl92se_query_rxphystatus() 54 pstats->rx_mimo_sig_qual[0] = -1; in _rtl92se_query_rxphystatus() 55 pstats->rx_mimo_sig_qual[1] = -1; in _rtl92se_query_rxphystatus() 123 pstats->rx_pwdb_all = pwdb_all; in _rtl92se_query_rxphystatus() 128 if (pstats->rx_pwdb_all > 40) { in _rtl92se_query_rxphystatus() 140 pstats->signalquality = sq; in _rtl92se_query_rxphystatus() 164 pstats->rx_pwdb_all = pwdb_all; in _rtl92se_query_rxphystatus() 165 pstats->rxpower = rx_pwr_all; in _rtl92se_query_rxphystatus() 168 if (pstats->is_ht && pstats->rate >= DESC_RATEMCS8 && in _rtl92se_query_rxphystatus() 207 tmp_buf = skb->data + pstats->rx_drvinfo_size + pstats->rx_bufshift; in _rtl92se_translate_rx_signal_stuff() [all …]
|
| /drivers/net/ethernet/amd/ |
| A D | nmclan_cs.c | 1168 pstats->xmtsv, pstats->uflo); in pr_mace_stats() 1170 pstats->lcol, pstats->more); in pr_mace_stats() 1172 pstats->one, pstats->defer); in pr_mace_stats() 1174 pstats->lcar, pstats->rtry); in pr_mace_stats() 1178 pstats->exdef, pstats->xmtrc); in pr_mace_stats() 1182 pstats->oflo, pstats->clsn); in pr_mace_stats() 1184 pstats->fram, pstats->fcs); in pr_mace_stats() 1189 pstats->rfs_rntpc, pstats->rfs_rcvcc); in pr_mace_stats() 1193 pstats->jab, pstats->babl); in pr_mace_stats() 1195 pstats->cerr, pstats->rcvcco); in pr_mace_stats() [all …]
|
| /drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
| A D | mac.c | 593 pstats->is_cck = is_cck_rate; in _rtl92c_query_rxphystatus() 594 pstats->RX_SIGQ[0] = -1; in _rtl92c_query_rxphystatus() 595 pstats->RX_SIGQ[1] = -1; in _rtl92c_query_rxphystatus() 661 pstats->RX_SIGQ[0] = sq; in _rtl92c_query_rxphystatus() 662 pstats->RX_SIGQ[1] = -1; in _rtl92c_query_rxphystatus() 695 pstats->signalquality = in _rtl92c_query_rxphystatus() 697 pstats->RX_SIGQ[i] = in _rtl92c_query_rxphystatus() 703 pstats->signalstrength = in _rtl92c_query_rxphystatus() 706 pstats->signalstrength = in _rtl92c_query_rxphystatus() 725 tmp_buf = skb->data + pstats->rx_drvinfo_size + pstats->rx_bufshift; in rtl92c_translate_rx_signal_stuff() [all …]
|
| A D | mac.h | 124 struct rtl_stats *pstats,
|
| /drivers/net/ethernet/broadcom/bnx2x/ |
| A D | bnx2x_stats.c | 636 pstats->mac_stx[1].rx_stat_mac_xpf_hi; in bnx2x_bmac_stats_update() 646 pstats->pfc_frames_rx_hi; in bnx2x_bmac_stats_update() 648 pstats->pfc_frames_rx_lo; in bnx2x_bmac_stats_update() 650 pstats->pfc_frames_tx_hi; in bnx2x_bmac_stats_update() 652 pstats->pfc_frames_tx_lo; in bnx2x_bmac_stats_update() 736 pstats->pfc_frames_rx_hi; in bnx2x_mstat_stats_update() 738 pstats->pfc_frames_rx_lo; in bnx2x_mstat_stats_update() 740 pstats->pfc_frames_tx_hi; in bnx2x_mstat_stats_update() 742 pstats->pfc_frames_tx_lo; in bnx2x_mstat_stats_update() 836 ADD_EXTEND_64(pstats->brb_drop_hi, pstats->brb_drop_lo, in bnx2x_hw_stats_update() [all …]
|
| A D | bnx2x_stats.h | 396 DIFF_64(diff.hi, new->s##_hi, pstats->mac_stx[0].t##_hi, \ 397 diff.lo, new->s##_lo, pstats->mac_stx[0].t##_lo); \ 398 pstats->mac_stx[0].t##_hi = new->s##_hi; \ 399 pstats->mac_stx[0].t##_lo = new->s##_lo; \ 400 ADD_64(pstats->mac_stx[1].t##_hi, diff.hi, \ 401 pstats->mac_stx[1].t##_lo, diff.lo); \ 421 ADD_64(pstats->mac_stx[1].t##_hi, new->diff##_hi, \ 422 pstats->mac_stx[1].t##_lo, new->diff##_lo); \ 427 ADD_EXTEND_64(pstats->mac_stx[1].s##_hi, \ 428 pstats->mac_stx[1].s##_lo, \
|
| /drivers/net/ethernet/chelsio/cxgb/ |
| A D | cxgb2.c | 304 pstats->TxMulticastFramesOK + pstats->TxBroadcastFramesOK; in t1_get_stats() 307 pstats->RxMulticastFramesOK + pstats->RxBroadcastFramesOK; in t1_get_stats() 309 ns->tx_bytes = pstats->TxOctetsOK; in t1_get_stats() 310 ns->rx_bytes = pstats->RxOctetsOK; in t1_get_stats() 312 ns->tx_errors = pstats->TxLateCollisions + pstats->TxLengthErrors + in t1_get_stats() 313 pstats->TxUnderrun + pstats->TxFramesAbortedDueToXSCollisions; in t1_get_stats() 314 ns->rx_errors = pstats->RxDataErrors + pstats->RxJabberErrors + in t1_get_stats() 315 pstats->RxFCSErrors + pstats->RxAlignErrors + in t1_get_stats() 316 pstats->RxSequenceErrors + pstats->RxFrameTooLongErrors + in t1_get_stats() 317 pstats->RxSymbolErrors + pstats->RxRuntErrors; in t1_get_stats() [all …]
|
| /drivers/net/ethernet/mellanox/mlx5/core/ |
| A D | en_stats.h | 298 #define PPORT_802_3_GET(pstats, c) \ argument 299 MLX5_GET64(ppcnt_reg, pstats->IEEE_802_3_counters, \ 301 #define PPORT_2863_GET(pstats, c) \ argument 302 MLX5_GET64(ppcnt_reg, pstats->RFC_2863_counters, \ 304 #define PPORT_2819_GET(pstats, c) \ argument 305 MLX5_GET64(ppcnt_reg, pstats->RFC_2819_counters, \ 307 #define PPORT_PHY_STATISTICAL_GET(pstats, c) \ argument 310 #define PPORT_PHY_RECOVERY_GET(pstats, c) \ argument 313 #define PPORT_PER_PRIO_GET(pstats, prio, c) \ argument 317 #define PPORT_ETH_EXT_GET(pstats, c) \ argument [all …]
|
| A D | en_stats.c | 884 struct mlx5e_pport_stats *pstats = &priv->stats.pport; variable 894 out = pstats->IEEE_802_3_counters; 1049 out = pstats->RFC_2863_counters; 1111 out = pstats->RFC_2819_counters; 1351 out = pstats->phy_counters; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS() 1356 out = pstats->phy_statistical_counters; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS() 1364 out = pstats->phy_recovery_counters; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS() 1557 out = pstats->eth_ext_counters; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS() 1759 out = pstats->per_tc_prio_counters[prio]; in mlx5e_grp_per_tc_prio_update_stats() 1790 out = pstats->per_tc_congest_prio_counters[prio]; in mlx5e_grp_per_tc_congest_prio_update_stats() [all …]
|
| A D | en_dcbnl.c | 347 struct mlx5e_pport_stats *pstats = &priv->stats.pport; in mlx5e_dcbnl_ieee_getpfc() local 352 pfc->requests[i] = PPORT_PER_PRIO_GET(pstats, i, tx_pause); in mlx5e_dcbnl_ieee_getpfc() 353 pfc->indications[i] = PPORT_PER_PRIO_GET(pstats, i, rx_pause); in mlx5e_dcbnl_ieee_getpfc()
|
| /drivers/net/wireless/ath/ath10k/ |
| A D | htt_rx.c | 3720 pstats->succ_bytes + pstats->retry_bytes; in ath10k_accumulate_per_peer_tx_stats() 3722 pstats->succ_pkts + pstats->retry_pkts; in ath10k_accumulate_per_peer_tx_stats() 3727 pstats->succ_pkts + pstats->retry_pkts; in ath10k_accumulate_per_peer_tx_stats() 3730 pstats->succ_bytes + pstats->retry_bytes; in ath10k_accumulate_per_peer_tx_stats() 3732 pstats->succ_bytes + pstats->retry_bytes; in ath10k_accumulate_per_peer_tx_stats() 3734 pstats->succ_bytes + pstats->retry_bytes; in ath10k_accumulate_per_peer_tx_stats() 3736 pstats->succ_bytes + pstats->retry_bytes; in ath10k_accumulate_per_peer_tx_stats() 3738 pstats->succ_pkts + pstats->retry_pkts; in ath10k_accumulate_per_peer_tx_stats() 3740 pstats->succ_pkts + pstats->retry_pkts; in ath10k_accumulate_per_peer_tx_stats() 3742 pstats->succ_pkts + pstats->retry_pkts; in ath10k_accumulate_per_peer_tx_stats() [all …]
|
| /drivers/net/ethernet/intel/idpf/ |
| A D | idpf_ethtool.c | 1062 u64_stats_update_begin(&pstats->stats_sync); in idpf_collect_queue_stats() 1063 u64_stats_set(&pstats->rx_hw_csum_err, 0); in idpf_collect_queue_stats() 1064 u64_stats_set(&pstats->rx_hsplit, 0); in idpf_collect_queue_stats() 1065 u64_stats_set(&pstats->rx_hsplit_hbo, 0); in idpf_collect_queue_stats() 1066 u64_stats_set(&pstats->rx_bad_descs, 0); in idpf_collect_queue_stats() 1067 u64_stats_set(&pstats->tx_linearize, 0); in idpf_collect_queue_stats() 1068 u64_stats_set(&pstats->tx_busy, 0); in idpf_collect_queue_stats() 1069 u64_stats_set(&pstats->tx_drops, 0); in idpf_collect_queue_stats() 1070 u64_stats_set(&pstats->tx_dma_map_errs, 0); in idpf_collect_queue_stats() 1071 u64_stats_update_end(&pstats->stats_sync); in idpf_collect_queue_stats() [all …]
|
| /drivers/net/vxlan/ |
| A D | vxlan_vnifilter.c | 122 struct vxlan_vni_stats_pcpu *pstats; in vxlan_vnifilter_stats_get() local 148 u64_stats_update_begin(&pstats->syncp); in vxlan_vnifilter_stats_add() 151 pstats->stats.rx_bytes += len; in vxlan_vnifilter_stats_add() 152 pstats->stats.rx_packets++; in vxlan_vnifilter_stats_add() 155 pstats->stats.rx_drops++; in vxlan_vnifilter_stats_add() 158 pstats->stats.rx_errors++; in vxlan_vnifilter_stats_add() 161 pstats->stats.tx_bytes += len; in vxlan_vnifilter_stats_add() 162 pstats->stats.tx_packets++; in vxlan_vnifilter_stats_add() 165 pstats->stats.tx_drops++; in vxlan_vnifilter_stats_add() 168 pstats->stats.tx_errors++; in vxlan_vnifilter_stats_add() [all …]
|
| /drivers/infiniband/hw/ocrdma/ |
| A D | ocrdma_stats.c | 468 char *pstats = dev->stats_mem.debugfs_mem; in ocrdma_tx_dbg_stats() local 474 memset(pstats, 0, (OCRDMA_MAX_DBGFS_MEM)); in ocrdma_tx_dbg_stats() 477 pstats += snprintf(pstats, 80, "DW[%d] = 0x%x\n", i, in ocrdma_tx_dbg_stats() 486 char *pstats = dev->stats_mem.debugfs_mem; in ocrdma_rx_dbg_stats() local 492 memset(pstats, 0, (OCRDMA_MAX_DBGFS_MEM)); in ocrdma_rx_dbg_stats() 495 pstats += snprintf(pstats, 80, "DW[%d] = 0x%x\n", i, in ocrdma_rx_dbg_stats() 641 struct ocrdma_stats *pstats = filp->private_data; in ocrdma_dbgfs_ops_write() local 642 struct ocrdma_dev *dev = pstats->dev; in ocrdma_dbgfs_ops_write() 654 switch (pstats->type) { in ocrdma_dbgfs_ops_write() 690 struct ocrdma_dev *dev = pstats->dev; in ocrdma_dbgfs_ops_read() [all …]
|
| /drivers/net/ethernet/synopsys/ |
| A D | dwc-xlgmac-net.c | 775 s->rx_packets = pstats->rxframecount_gb; in xlgmac_get_stats64() 776 s->rx_bytes = pstats->rxoctetcount_gb; in xlgmac_get_stats64() 777 s->rx_errors = pstats->rxframecount_gb - in xlgmac_get_stats64() 778 pstats->rxbroadcastframes_g - in xlgmac_get_stats64() 779 pstats->rxmulticastframes_g - in xlgmac_get_stats64() 780 pstats->rxunicastframes_g; in xlgmac_get_stats64() 781 s->multicast = pstats->rxmulticastframes_g; in xlgmac_get_stats64() 783 s->rx_crc_errors = pstats->rxcrcerror; in xlgmac_get_stats64() 786 s->tx_packets = pstats->txframecount_gb; in xlgmac_get_stats64() 787 s->tx_bytes = pstats->txoctetcount_gb; in xlgmac_get_stats64() [all …]
|
| /drivers/net/ethernet/qlogic/qed/ |
| A D | qed_fcoe.c | 678 struct fcoe_tx_stat pstats; in _qed_fcoe_get_pstats() local 681 memset(&pstats, 0, sizeof(pstats)); in _qed_fcoe_get_pstats() 684 qed_memcpy_from(p_hwfn, p_ptt, &pstats, pstats_addr, sizeof(pstats)); in _qed_fcoe_get_pstats() 686 p_stats->fcoe_tx_byte_cnt = HILO_64_REGPAIR(pstats.fcoe_tx_byte_cnt); in _qed_fcoe_get_pstats() 688 HILO_64_REGPAIR(pstats.fcoe_tx_data_pkt_cnt); in _qed_fcoe_get_pstats() 690 HILO_64_REGPAIR(pstats.fcoe_tx_xfer_pkt_cnt); in _qed_fcoe_get_pstats() 692 HILO_64_REGPAIR(pstats.fcoe_tx_other_pkt_cnt); in _qed_fcoe_get_pstats()
|
| A D | qed_l2.c | 1618 struct eth_pstorm_per_queue_stat pstats; in __qed_get_vport_pstats() local 1624 memset(&pstats, 0, sizeof(pstats)); in __qed_get_vport_pstats() 1628 HILO_64_REGPAIR(pstats.sent_ucast_bytes); in __qed_get_vport_pstats() 1630 HILO_64_REGPAIR(pstats.sent_mcast_bytes); in __qed_get_vport_pstats() 1632 HILO_64_REGPAIR(pstats.sent_bcast_bytes); in __qed_get_vport_pstats() 1634 HILO_64_REGPAIR(pstats.sent_ucast_pkts); in __qed_get_vport_pstats() 1636 HILO_64_REGPAIR(pstats.sent_mcast_pkts); in __qed_get_vport_pstats() 1638 HILO_64_REGPAIR(pstats.sent_bcast_pkts); in __qed_get_vport_pstats() 1640 HILO_64_REGPAIR(pstats.error_drop_pkts); in __qed_get_vport_pstats() 1939 struct eth_pstorm_per_queue_stat pstats; in qed_reset_vport_stats() local [all …]
|
| A D | qed_ll2.c | 2301 struct core_ll2_pstorm_per_queue_stat pstats; in _qed_ll2_get_pstats() local 2305 memset(&pstats, 0, sizeof(pstats)); in _qed_ll2_get_pstats() 2308 qed_memcpy_from(p_hwfn, p_ptt, &pstats, pstats_addr, sizeof(pstats)); in _qed_ll2_get_pstats() 2310 p_stats->sent_ucast_bytes += HILO_64_REGPAIR(pstats.sent_ucast_bytes); in _qed_ll2_get_pstats() 2311 p_stats->sent_mcast_bytes += HILO_64_REGPAIR(pstats.sent_mcast_bytes); in _qed_ll2_get_pstats() 2312 p_stats->sent_bcast_bytes += HILO_64_REGPAIR(pstats.sent_bcast_bytes); in _qed_ll2_get_pstats() 2313 p_stats->sent_ucast_pkts += HILO_64_REGPAIR(pstats.sent_ucast_pkts); in _qed_ll2_get_pstats() 2314 p_stats->sent_mcast_pkts += HILO_64_REGPAIR(pstats.sent_mcast_pkts); in _qed_ll2_get_pstats() 2315 p_stats->sent_bcast_pkts += HILO_64_REGPAIR(pstats.sent_bcast_pkts); in _qed_ll2_get_pstats()
|
| A D | qed_iscsi.c | 987 struct pstorm_iscsi_stats_drv pstats; in _qed_iscsi_get_pstats() local 990 memset(&pstats, 0, sizeof(pstats)); in _qed_iscsi_get_pstats() 993 qed_memcpy_from(p_hwfn, p_ptt, &pstats, pstats_addr, sizeof(pstats)); in _qed_iscsi_get_pstats() 996 HILO_64_REGPAIR(pstats.iscsi_tx_bytes_cnt); in _qed_iscsi_get_pstats() 998 HILO_64_REGPAIR(pstats.iscsi_tx_packet_cnt); in _qed_iscsi_get_pstats()
|
| /drivers/net/ethernet/chelsio/cxgb3/ |
| A D | cxgb3_main.c | 1491 const struct mac_stats *pstats; in cxgb_get_stats() local 1494 pstats = t3_mac_update_stats(&pi->mac); in cxgb_get_stats() 1497 ns->tx_bytes = pstats->tx_octets; in cxgb_get_stats() 1498 ns->tx_packets = pstats->tx_frames; in cxgb_get_stats() 1499 ns->rx_bytes = pstats->rx_octets; in cxgb_get_stats() 1500 ns->rx_packets = pstats->rx_frames; in cxgb_get_stats() 1503 ns->tx_errors = pstats->tx_underrun; in cxgb_get_stats() 1504 ns->rx_errors = pstats->rx_symbol_errs + pstats->rx_fcs_errs + in cxgb_get_stats() 1505 pstats->rx_too_long + pstats->rx_jabber + pstats->rx_short + in cxgb_get_stats() 1506 pstats->rx_fifo_ovfl; in cxgb_get_stats() [all …]
|
| /drivers/net/ethernet/amd/xgbe/ |
| A D | xgbe-drv.c | 1803 s->rx_packets = pstats->rxframecount_gb; in xgbe_get_stats64() 1804 s->rx_bytes = pstats->rxoctetcount_gb; in xgbe_get_stats64() 1805 s->rx_errors = pstats->rxframecount_gb - in xgbe_get_stats64() 1806 pstats->rxbroadcastframes_g - in xgbe_get_stats64() 1807 pstats->rxmulticastframes_g - in xgbe_get_stats64() 1808 pstats->rxunicastframes_g; in xgbe_get_stats64() 1809 s->multicast = pstats->rxmulticastframes_g; in xgbe_get_stats64() 1811 s->rx_crc_errors = pstats->rxcrcerror; in xgbe_get_stats64() 1814 s->tx_packets = pstats->txframecount_gb; in xgbe_get_stats64() 1815 s->tx_bytes = pstats->txoctetcount_gb; in xgbe_get_stats64() [all …]
|
| /drivers/net/dsa/qca/ |
| A D | ar9331.c | 611 struct ethtool_pause_stats *pstats = &port->pause_stats; in ar9331_read_stats() local 652 pstats->tx_pause_frames += raw.txpause; in ar9331_read_stats() 653 pstats->rx_pause_frames += raw.rxpause; in ar9331_read_stats()
|
| /drivers/staging/rtl8723bs/core/ |
| A D | rtw_recv.c | 618 struct stainfo_stats *pstats = NULL; in count_rx_stats() local 636 pstats = &psta->sta_stats; in count_rx_stats() 638 pstats->rx_data_pkts++; in count_rx_stats() 639 pstats->rx_bytes += sz; in count_rx_stats()
|