Searched full:pstats (Results 1 - 27 of 27) sorted by relevance

/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
H A Dtrx.c114 struct rtl_stats *pstats, _rtl92de_query_rxphystatus()
131 pstats->packet_matchbssid = packet_match_bssid; _rtl92de_query_rxphystatus()
132 pstats->packet_toself = packet_toself; _rtl92de_query_rxphystatus()
133 pstats->packet_beacon = packet_beacon; _rtl92de_query_rxphystatus()
134 pstats->is_cck = is_cck_rate; _rtl92de_query_rxphystatus()
135 pstats->rx_mimo_sig_qual[0] = -1; _rtl92de_query_rxphystatus()
136 pstats->rx_mimo_sig_qual[1] = -1; _rtl92de_query_rxphystatus()
199 pstats->rx_pwdb_all = pwdb_all; _rtl92de_query_rxphystatus()
200 pstats->recvsignalpower = rx_pwr_all; _rtl92de_query_rxphystatus()
203 if (pstats->rx_pwdb_all > 40) { _rtl92de_query_rxphystatus()
214 pstats->signalquality = sq; _rtl92de_query_rxphystatus()
215 pstats->rx_mimo_sig_qual[0] = sq; _rtl92de_query_rxphystatus()
216 pstats->rx_mimo_sig_qual[1] = -1; _rtl92de_query_rxphystatus()
231 pstats->rx_mimo_signalstrength[i] = (u8) rssi; _rtl92de_query_rxphystatus()
235 pstats->rx_pwdb_all = pwdb_all; _rtl92de_query_rxphystatus()
236 pstats->rxpower = rx_pwr_all; _rtl92de_query_rxphystatus()
237 pstats->recvsignalpower = rx_pwr_all; _rtl92de_query_rxphystatus()
247 pstats->signalquality = _rtl92de_query_rxphystatus()
249 pstats->rx_mimo_sig_qual[i] = _rtl92de_query_rxphystatus()
255 pstats->signalstrength = (u8)(_rtl92de_signal_scale_mapping(hw, _rtl92de_query_rxphystatus()
258 pstats->signalstrength = (u8)(_rtl92de_signal_scale_mapping(hw, _rtl92de_query_rxphystatus()
263 struct rtl_stats *pstats) rtl92d_loop_over_paths()
273 pstats->rx_mimo_signalstrength[rfpath]; rtl92d_loop_over_paths()
276 if (pstats->rx_mimo_signalstrength[rfpath] > rtl92d_loop_over_paths()
281 (pstats->rx_mimo_signalstrength[rfpath])) / rtl92d_loop_over_paths()
289 (pstats->rx_mimo_signalstrength[rfpath])) / rtl92d_loop_over_paths()
296 struct rtl_stats *pstats) _rtl92de_process_ui_rssi()
301 if (pstats->packet_toself || pstats->packet_beacon) { _rtl92de_process_ui_rssi()
311 rtlpriv->stats.ui_rssi.total_val += pstats->signalstrength; _rtl92de_process_ui_rssi()
314 pstats->signalstrength; _rtl92de_process_ui_rssi()
321 pstats->rssi = rtlpriv->stats.signal_strength; _rtl92de_process_ui_rssi()
323 if (!pstats->is_cck && pstats->packet_toself) _rtl92de_process_ui_rssi()
324 rtl92d_loop_over_paths(hw, pstats); _rtl92de_process_ui_rssi()
328 struct rtl_stats *pstats) _rtl92de_update_rxsignalstatistics()
334 rtlpriv->stats.recv_signal_power = pstats->recvsignalpower; _rtl92de_update_rxsignalstatistics()
335 if (pstats->recvsignalpower > rtlpriv->stats.recv_signal_power) _rtl92de_update_rxsignalstatistics()
337 else if (pstats->recvsignalpower < rtlpriv->stats.recv_signal_power) _rtl92de_update_rxsignalstatistics()
340 5 + pstats->recvsignalpower + weighting) / 6; _rtl92de_update_rxsignalstatistics()
344 struct rtl_stats *pstats) _rtl92de_process_pwdb()
356 if (pstats->packet_toself || pstats->packet_beacon) { _rtl92de_process_pwdb()
358 undec_sm_pwdb = pstats->rx_pwdb_all; _rtl92de_process_pwdb()
359 if (pstats->rx_pwdb_all > (u32) undec_sm_pwdb) { _rtl92de_process_pwdb()
362 (pstats->rx_pwdb_all)) / (RX_SMOOTH_FACTOR); _rtl92de_process_pwdb()
367 (pstats->rx_pwdb_all)) / (RX_SMOOTH_FACTOR); _rtl92de_process_pwdb()
370 _rtl92de_update_rxsignalstatistics(hw, pstats); _rtl92de_process_pwdb()
375 struct rtl_stats *pstats) rtl92d_loop_over_streams()
381 if (pstats->rx_mimo_sig_qual[stream] != -1) { rtl92d_loop_over_streams()
384 pstats->rx_mimo_sig_qual[stream]; rtl92d_loop_over_streams()
389 (pstats->rx_mimo_sig_qual[stream] * 1)) / rtl92d_loop_over_streams()
396 struct rtl_stats *pstats) _rtl92de_process_ui_link_quality()
401 if (pstats->signalquality == 0) _rtl92de_process_ui_link_quality()
403 if (pstats->packet_toself || pstats->packet_beacon) { _rtl92de_process_ui_link_quality()
413 pstats->signalquality; _rtl92de_process_ui_link_quality()
416 pstats->signalquality; _rtl92de_process_ui_link_quality()
424 rtl92d_loop_over_streams(hw, pstats); _rtl92de_process_ui_link_quality()
444 struct rtl_stats *pstats, _rtl92de_translate_rx_signal_stuff()
457 tmp_buf = skb->data + pstats->rx_drvinfo_size + pstats->rx_bufshift; _rtl92de_translate_rx_signal_stuff()
468 (!pstats->hwerror) && (!pstats->crc) && (!pstats->icv)); _rtl92de_translate_rx_signal_stuff()
473 _rtl92de_query_rxphystatus(hw, pstats, pdesc, p_drvinfo, _rtl92de_translate_rx_signal_stuff()
476 _rtl92de_process_phyinfo(hw, tmp_buf, pstats); _rtl92de_translate_rx_signal_stuff()
113 _rtl92de_query_rxphystatus(struct ieee80211_hw *hw, struct rtl_stats *pstats, struct rx_desc_92d *pdesc, struct rx_fwinfo_92d *p_drvinfo, bool packet_match_bssid, bool packet_toself, bool packet_beacon) _rtl92de_query_rxphystatus() argument
262 rtl92d_loop_over_paths(struct ieee80211_hw *hw, struct rtl_stats *pstats) rtl92d_loop_over_paths() argument
295 _rtl92de_process_ui_rssi(struct ieee80211_hw *hw, struct rtl_stats *pstats) _rtl92de_process_ui_rssi() argument
327 _rtl92de_update_rxsignalstatistics(struct ieee80211_hw *hw, struct rtl_stats *pstats) _rtl92de_update_rxsignalstatistics() argument
343 _rtl92de_process_pwdb(struct ieee80211_hw *hw, struct rtl_stats *pstats) _rtl92de_process_pwdb() argument
374 rtl92d_loop_over_streams(struct ieee80211_hw *hw, struct rtl_stats *pstats) rtl92d_loop_over_streams() argument
395 _rtl92de_process_ui_link_quality(struct ieee80211_hw *hw, struct rtl_stats *pstats) _rtl92de_process_ui_link_quality() argument
442 _rtl92de_translate_rx_signal_stuff(struct ieee80211_hw *hw, struct sk_buff *skb, struct rtl_stats *pstats, struct rx_desc_92d *pdesc, struct rx_fwinfo_92d *p_drvinfo) _rtl92de_translate_rx_signal_stuff() argument
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
H A Dtrx.c62 struct rtl_stats *pstats, u8 *pdesc, _rtl92se_query_rxphystatus()
75 bool is_cck = pstats->is_cck; _rtl92se_query_rxphystatus()
77 pstats->packet_matchbssid = packet_match_bssid; _rtl92se_query_rxphystatus()
78 pstats->packet_toself = packet_toself; _rtl92se_query_rxphystatus()
79 pstats->packet_beacon = packet_beacon; _rtl92se_query_rxphystatus()
80 pstats->rx_mimo_sig_qual[0] = -1; _rtl92se_query_rxphystatus()
81 pstats->rx_mimo_sig_qual[1] = -1; _rtl92se_query_rxphystatus()
149 pstats->rx_pwdb_all = pwdb_all; _rtl92se_query_rxphystatus()
150 pstats->recvsignalpower = rx_pwr_all; _rtl92se_query_rxphystatus()
154 if (pstats->rx_pwdb_all > 40) { _rtl92se_query_rxphystatus()
166 pstats->signalquality = sq; _rtl92se_query_rxphystatus()
167 pstats->rx_mimo_sig_qual[0] = sq; _rtl92se_query_rxphystatus()
168 pstats->rx_mimo_sig_qual[1] = -1; _rtl92se_query_rxphystatus()
185 pstats->rx_mimo_signalstrength[i] = (u8) rssi; _rtl92se_query_rxphystatus()
190 pstats->rx_pwdb_all = pwdb_all; _rtl92se_query_rxphystatus()
191 pstats->rxpower = rx_pwr_all; _rtl92se_query_rxphystatus()
192 pstats->recvsignalpower = rx_pwr_all; _rtl92se_query_rxphystatus()
194 if (pstats->is_ht && pstats->rate >= DESC_RATEMCS8 && _rtl92se_query_rxphystatus()
195 pstats->rate <= DESC_RATEMCS15) _rtl92se_query_rxphystatus()
205 pstats->signalquality = (u8)(evm & _rtl92se_query_rxphystatus()
207 pstats->rx_mimo_sig_qual[i] = (u8) (evm & 0xff); _rtl92se_query_rxphystatus()
213 pstats->signalstrength = (u8)(rtl_signal_scale_mapping(hw, _rtl92se_query_rxphystatus()
216 pstats->signalstrength = (u8) (rtl_signal_scale_mapping(hw, _rtl92se_query_rxphystatus()
221 struct sk_buff *skb, struct rtl_stats *pstats, _rtl92se_translate_rx_signal_stuff()
234 tmp_buf = skb->data + pstats->rx_drvinfo_size + pstats->rx_bufshift; _rtl92se_translate_rx_signal_stuff()
247 (!pstats->hwerror) && (!pstats->crc) && (!pstats->icv)); _rtl92se_translate_rx_signal_stuff()
255 _rtl92se_query_rxphystatus(hw, pstats, pdesc, p_drvinfo, _rtl92se_translate_rx_signal_stuff()
257 rtl_process_phyinfo(hw, tmp_buf, pstats); _rtl92se_translate_rx_signal_stuff()
61 _rtl92se_query_rxphystatus(struct ieee80211_hw *hw, struct rtl_stats *pstats, u8 *pdesc, struct rx_fwinfo *p_drvinfo, bool packet_match_bssid, bool packet_toself, bool packet_beacon) _rtl92se_query_rxphystatus() argument
220 _rtl92se_translate_rx_signal_stuff(struct ieee80211_hw *hw, struct sk_buff *skb, struct rtl_stats *pstats, u8 *pdesc, struct rx_fwinfo *p_drvinfo) _rtl92se_translate_rx_signal_stuff() argument
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
H A Dtrx.c112 struct rtl_stats *pstats, _rtl92ce_query_rxphystatus()
129 pstats->packet_matchbssid = packet_match_bssid; _rtl92ce_query_rxphystatus()
130 pstats->packet_toself = packet_toself; _rtl92ce_query_rxphystatus()
131 pstats->is_cck = is_cck_rate; _rtl92ce_query_rxphystatus()
132 pstats->packet_beacon = packet_beacon; _rtl92ce_query_rxphystatus()
133 pstats->rx_mimo_sig_qual[0] = -1; _rtl92ce_query_rxphystatus()
134 pstats->rx_mimo_sig_qual[1] = -1; _rtl92ce_query_rxphystatus()
205 pstats->rx_pwdb_all = pwdb_all; _rtl92ce_query_rxphystatus()
206 pstats->recvsignalpower = rx_pwr_all; _rtl92ce_query_rxphystatus()
211 if (pstats->rx_pwdb_all > 40) _rtl92ce_query_rxphystatus()
223 pstats->signalquality = sq; _rtl92ce_query_rxphystatus()
224 pstats->rx_mimo_sig_qual[0] = sq; _rtl92ce_query_rxphystatus()
225 pstats->rx_mimo_sig_qual[1] = -1; _rtl92ce_query_rxphystatus()
247 pstats->rx_mimo_signalstrength[i] = (u8) rssi; _rtl92ce_query_rxphystatus()
255 pstats->rx_pwdb_all = pwdb_all; _rtl92ce_query_rxphystatus()
256 pstats->rxpower = rx_pwr_all; _rtl92ce_query_rxphystatus()
257 pstats->recvsignalpower = rx_pwr_all; _rtl92ce_query_rxphystatus()
260 if (pstats->is_ht && pstats->rate >= DESC_RATEMCS8 && _rtl92ce_query_rxphystatus()
261 pstats->rate <= DESC_RATEMCS15) _rtl92ce_query_rxphystatus()
274 pstats->signalquality = _rtl92ce_query_rxphystatus()
276 pstats->rx_mimo_sig_qual[i] = (u8) (evm & 0xff); _rtl92ce_query_rxphystatus()
285 pstats->signalstrength = _rtl92ce_query_rxphystatus()
288 pstats->signalstrength = _rtl92ce_query_rxphystatus()
295 struct rtl_stats *pstats, _rtl92ce_translate_rx_signal_stuff()
309 tmp_buf = skb->data + pstats->rx_drvinfo_size + pstats->rx_bufshift; _rtl92ce_translate_rx_signal_stuff()
323 (!pstats->hwerror) && (!pstats->crc) && (!pstats->icv)); _rtl92ce_translate_rx_signal_stuff()
331 _rtl92ce_query_rxphystatus(hw, pstats, pdesc, p_drvinfo, _rtl92ce_translate_rx_signal_stuff()
335 rtl_process_phyinfo(hw, tmp_buf, pstats); _rtl92ce_translate_rx_signal_stuff()
111 _rtl92ce_query_rxphystatus(struct ieee80211_hw *hw, struct rtl_stats *pstats, struct rx_desc_92c *pdesc, struct rx_fwinfo_92c *p_drvinfo, bool packet_match_bssid, bool packet_toself, bool packet_beacon) _rtl92ce_query_rxphystatus() argument
293 _rtl92ce_translate_rx_signal_stuff(struct ieee80211_hw *hw, struct sk_buff *skb, struct rtl_stats *pstats, struct rx_desc_92c *pdesc, struct rx_fwinfo_92c *p_drvinfo) _rtl92ce_translate_rx_signal_stuff() argument
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_stats.c551 struct host_port_stats *pstats = bnx2x_sp(bp, port_stats); bnx2x_bmac_stats_update() local
628 pstats->pfc_frames_tx_hi = new->tx_stat_gtpp_hi; bnx2x_bmac_stats_update()
629 pstats->pfc_frames_tx_lo = new->tx_stat_gtpp_lo; bnx2x_bmac_stats_update()
631 pstats->pfc_frames_rx_hi = new->rx_stat_grpp_hi; bnx2x_bmac_stats_update()
632 pstats->pfc_frames_rx_lo = new->rx_stat_grpp_lo; bnx2x_bmac_stats_update()
636 pstats->mac_stx[1].rx_stat_mac_xpf_hi; bnx2x_bmac_stats_update()
638 pstats->mac_stx[1].rx_stat_mac_xpf_lo; bnx2x_bmac_stats_update()
641 pstats->mac_stx[1].tx_stat_outxoffsent_hi; bnx2x_bmac_stats_update()
643 pstats->mac_stx[1].tx_stat_outxoffsent_lo; bnx2x_bmac_stats_update()
646 pstats->pfc_frames_rx_hi; bnx2x_bmac_stats_update()
648 pstats->pfc_frames_rx_lo; bnx2x_bmac_stats_update()
650 pstats->pfc_frames_tx_hi; bnx2x_bmac_stats_update()
652 pstats->pfc_frames_tx_lo; bnx2x_bmac_stats_update()
657 struct host_port_stats *pstats = bnx2x_sp(bp, port_stats); bnx2x_mstat_stats_update() local
674 ADD_64(pstats->pfc_frames_tx_hi, new->stats_tx.tx_gtxpp_hi, bnx2x_mstat_stats_update()
675 pstats->pfc_frames_tx_lo, new->stats_tx.tx_gtxpp_lo); bnx2x_mstat_stats_update()
676 ADD_64(pstats->pfc_frames_rx_hi, new->stats_rx.rx_grxpp_hi, bnx2x_mstat_stats_update()
677 pstats->pfc_frames_rx_lo, new->stats_rx.rx_grxpp_lo); bnx2x_mstat_stats_update()
701 pstats->mac_stx[1].tx_stat_etherstatspkts1024octetsto1522octets_hi; bnx2x_mstat_stats_update()
703 pstats->mac_stx[1].tx_stat_etherstatspkts1024octetsto1522octets_lo; bnx2x_mstat_stats_update()
706 pstats->mac_stx[1].tx_stat_mac_2047_hi; bnx2x_mstat_stats_update()
708 pstats->mac_stx[1].tx_stat_mac_2047_lo; bnx2x_mstat_stats_update()
711 pstats->mac_stx[1].tx_stat_mac_4095_hi, bnx2x_mstat_stats_update()
713 pstats->mac_stx[1].tx_stat_mac_4095_lo); bnx2x_mstat_stats_update()
716 pstats->mac_stx[1].tx_stat_mac_9216_hi, bnx2x_mstat_stats_update()
718 pstats->mac_stx[1].tx_stat_mac_9216_lo); bnx2x_mstat_stats_update()
721 pstats->mac_stx[1].tx_stat_mac_16383_hi, bnx2x_mstat_stats_update()
723 pstats->mac_stx[1].tx_stat_mac_16383_lo); bnx2x_mstat_stats_update()
726 pstats->mac_stx[1].rx_stat_mac_xpf_hi; bnx2x_mstat_stats_update()
728 pstats->mac_stx[1].rx_stat_mac_xpf_lo; bnx2x_mstat_stats_update()
731 pstats->mac_stx[1].tx_stat_outxoffsent_hi; bnx2x_mstat_stats_update()
733 pstats->mac_stx[1].tx_stat_outxoffsent_lo; bnx2x_mstat_stats_update()
736 pstats->pfc_frames_rx_hi; bnx2x_mstat_stats_update()
738 pstats->pfc_frames_rx_lo; bnx2x_mstat_stats_update()
740 pstats->pfc_frames_tx_hi; bnx2x_mstat_stats_update()
742 pstats->pfc_frames_tx_lo; bnx2x_mstat_stats_update()
748 struct host_port_stats *pstats = bnx2x_sp(bp, port_stats); bnx2x_emac_stats_update() local
784 pstats->mac_stx[1].rx_stat_xonpauseframesreceived_hi; bnx2x_emac_stats_update()
786 pstats->mac_stx[1].rx_stat_xonpauseframesreceived_lo; bnx2x_emac_stats_update()
788 pstats->mac_stx[1].rx_stat_xoffpauseframesreceived_hi, bnx2x_emac_stats_update()
790 pstats->mac_stx[1].rx_stat_xoffpauseframesreceived_lo); bnx2x_emac_stats_update()
793 pstats->mac_stx[1].tx_stat_outxonsent_hi; bnx2x_emac_stats_update()
795 pstats->mac_stx[1].tx_stat_outxonsent_lo; bnx2x_emac_stats_update()
797 pstats->mac_stx[1].tx_stat_outxoffsent_hi, bnx2x_emac_stats_update()
799 pstats->mac_stx[1].tx_stat_outxoffsent_lo); bnx2x_emac_stats_update()
806 struct host_port_stats *pstats = bnx2x_sp(bp, port_stats); bnx2x_hw_stats_update() local
836 ADD_EXTEND_64(pstats->brb_drop_hi, pstats->brb_drop_lo, bnx2x_hw_stats_update()
850 memcpy(&(estats->rx_stat_ifhcinbadoctets_hi), &(pstats->mac_stx[1]), bnx2x_hw_stats_update()
852 estats->brb_drop_hi = pstats->brb_drop_hi; bnx2x_hw_stats_update()
853 estats->brb_drop_lo = pstats->brb_drop_lo; bnx2x_hw_stats_update()
855 pstats->host_port_stats_counter++; bnx2x_hw_stats_update()
H A Dbnx2x_stats.h387 DIFF_64(diff.hi, new->s##_hi, pstats->mac_stx[0].t##_hi, \
388 diff.lo, new->s##_lo, pstats->mac_stx[0].t##_lo); \
389 pstats->mac_stx[0].t##_hi = new->s##_hi; \
390 pstats->mac_stx[0].t##_lo = new->s##_lo; \
391 ADD_64(pstats->mac_stx[1].t##_hi, diff.hi, \
392 pstats->mac_stx[1].t##_lo, diff.lo); \
412 ADD_64(pstats->mac_stx[1].t##_hi, new->diff##_hi, \
413 pstats->mac_stx[1].t##_lo, new->diff##_lo); \
418 ADD_EXTEND_64(pstats->mac_stx[1].s##_hi, \
419 pstats->mac_stx[1].s##_lo, \
H A Dbnx2x_main.c2651 struct host_port_stats *pstats; bnx2x_link_attn() local
2653 pstats = bnx2x_sp(bp, port_stats); bnx2x_link_attn()
2655 memset(&(pstats->mac_stx[0]), 0, bnx2x_link_attn()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
H A Dmac.c654 struct rtl_stats *pstats, _rtl92c_query_rxphystatus()
673 pstats->packet_matchbssid = packet_match_bssid; _rtl92c_query_rxphystatus()
674 pstats->packet_toself = packet_toself; _rtl92c_query_rxphystatus()
675 pstats->packet_beacon = packet_beacon; _rtl92c_query_rxphystatus()
676 pstats->is_cck = is_cck_rate; _rtl92c_query_rxphystatus()
677 pstats->RX_SIGQ[0] = -1; _rtl92c_query_rxphystatus()
678 pstats->RX_SIGQ[1] = -1; _rtl92c_query_rxphystatus()
724 pstats->rx_pwdb_all = pwdb_all; _rtl92c_query_rxphystatus()
725 pstats->recvsignalpower = rx_pwr_all; _rtl92c_query_rxphystatus()
728 if (pstats->rx_pwdb_all > 40) _rtl92c_query_rxphystatus()
739 pstats->signalquality = sq; _rtl92c_query_rxphystatus()
740 pstats->RX_SIGQ[0] = sq; _rtl92c_query_rxphystatus()
741 pstats->RX_SIGQ[1] = -1; _rtl92c_query_rxphystatus()
757 pstats->rx_mimo_signalstrength[i] = (u8) rssi; _rtl92c_query_rxphystatus()
761 pstats->rx_pwdb_all = pwdb_all; _rtl92c_query_rxphystatus()
762 pstats->rxpower = rx_pwr_all; _rtl92c_query_rxphystatus()
763 pstats->recvsignalpower = rx_pwr_all; _rtl92c_query_rxphystatus()
774 pstats->signalquality = _rtl92c_query_rxphystatus()
776 pstats->RX_SIGQ[i] = _rtl92c_query_rxphystatus()
782 pstats->signalstrength = _rtl92c_query_rxphystatus()
785 pstats->signalstrength = _rtl92c_query_rxphystatus()
792 struct rtl_stats *pstats, rtl92c_translate_rx_signal_stuff()
805 tmp_buf = skb->data + pstats->rx_drvinfo_size + pstats->rx_bufshift; rtl92c_translate_rx_signal_stuff()
817 (!pstats->hwerror) && (!pstats->crc) && (!pstats->icv)); rtl92c_translate_rx_signal_stuff()
823 _rtl92c_query_rxphystatus(hw, pstats, pdesc, p_drvinfo, rtl92c_translate_rx_signal_stuff()
826 rtl_process_phyinfo(hw, tmp_buf, pstats); rtl92c_translate_rx_signal_stuff()
653 _rtl92c_query_rxphystatus(struct ieee80211_hw *hw, struct rtl_stats *pstats, struct rx_desc_92c *p_desc, struct rx_fwinfo_92c *p_drvinfo, bool packet_match_bssid, bool packet_toself, bool packet_beacon) _rtl92c_query_rxphystatus() argument
790 rtl92c_translate_rx_signal_stuff(struct ieee80211_hw *hw, struct sk_buff *skb, struct rtl_stats *pstats, struct rx_desc_92c *pdesc, struct rx_fwinfo_92c *p_drvinfo) rtl92c_translate_rx_signal_stuff() argument
H A Dmac.h151 struct rtl_stats *pstats,
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb/
H A Dcxgb2.c300 const struct cmac_statistics *pstats; t1_get_stats() local
303 pstats = p->mac->ops->statistics_update(p->mac, t1_get_stats()
306 ns->tx_packets = pstats->TxUnicastFramesOK + t1_get_stats()
307 pstats->TxMulticastFramesOK + pstats->TxBroadcastFramesOK; t1_get_stats()
309 ns->rx_packets = pstats->RxUnicastFramesOK + t1_get_stats()
310 pstats->RxMulticastFramesOK + pstats->RxBroadcastFramesOK; t1_get_stats()
312 ns->tx_bytes = pstats->TxOctetsOK; t1_get_stats()
313 ns->rx_bytes = pstats->RxOctetsOK; t1_get_stats()
315 ns->tx_errors = pstats->TxLateCollisions + pstats->TxLengthErrors + t1_get_stats()
316 pstats->TxUnderrun + pstats->TxFramesAbortedDueToXSCollisions; t1_get_stats()
317 ns->rx_errors = pstats->RxDataErrors + pstats->RxJabberErrors + t1_get_stats()
318 pstats->RxFCSErrors + pstats->RxAlignErrors + t1_get_stats()
319 pstats->RxSequenceErrors + pstats->RxFrameTooLongErrors + t1_get_stats()
320 pstats->RxSymbolErrors + pstats->RxRuntErrors; t1_get_stats()
322 ns->multicast = pstats->RxMulticastFramesOK; t1_get_stats()
323 ns->collisions = pstats->TxTotalCollisions; t1_get_stats()
326 ns->rx_length_errors = pstats->RxFrameTooLongErrors + t1_get_stats()
327 pstats->RxJabberErrors; t1_get_stats()
329 ns->rx_crc_errors = pstats->RxFCSErrors; t1_get_stats()
330 ns->rx_frame_errors = pstats->RxAlignErrors; t1_get_stats()
335 ns->tx_aborted_errors = pstats->TxFramesAbortedDueToXSCollisions; t1_get_stats()
337 ns->tx_fifo_errors = pstats->TxUnderrun; t1_get_stats()
339 ns->tx_window_errors = pstats->TxLateCollisions; t1_get_stats()
/linux-4.4.14/drivers/net/ethernet/amd/
H A Dnmclan_cs.c1137 static void pr_linux_stats(struct net_device_stats *pstats) pr_linux_stats() argument
1141 (long)pstats->rx_packets, (long)pstats->tx_packets); pr_linux_stats()
1143 (long)pstats->rx_errors, (long)pstats->tx_errors); pr_linux_stats()
1145 (long)pstats->rx_dropped, (long)pstats->tx_dropped); pr_linux_stats()
1147 (long)pstats->multicast, (long)pstats->collisions); pr_linux_stats()
1150 (long)pstats->rx_length_errors, (long)pstats->rx_over_errors); pr_linux_stats()
1152 (long)pstats->rx_crc_errors, (long)pstats->rx_frame_errors); pr_linux_stats()
1154 (long)pstats->rx_fifo_errors, (long)pstats->rx_missed_errors); pr_linux_stats()
1157 (long)pstats->tx_aborted_errors, (long)pstats->tx_carrier_errors); pr_linux_stats()
1159 (long)pstats->tx_fifo_errors, (long)pstats->tx_heartbeat_errors); pr_linux_stats()
1161 (long)pstats->tx_window_errors); pr_linux_stats()
1167 static void pr_mace_stats(mace_statistics *pstats) pr_mace_stats() argument
1172 pstats->xmtsv, pstats->uflo); pr_mace_stats()
1174 pstats->lcol, pstats->more); pr_mace_stats()
1176 pstats->one, pstats->defer); pr_mace_stats()
1178 pstats->lcar, pstats->rtry); pr_mace_stats()
1182 pstats->exdef, pstats->xmtrc); pr_mace_stats()
1186 pstats->oflo, pstats->clsn); pr_mace_stats()
1188 pstats->fram, pstats->fcs); pr_mace_stats()
1193 pstats->rfs_rntpc, pstats->rfs_rcvcc); pr_mace_stats()
1197 pstats->jab, pstats->babl); pr_mace_stats()
1199 pstats->cerr, pstats->rcvcco); pr_mace_stats()
1201 pstats->rntpco, pstats->mpco); pr_mace_stats()
1204 pr_debug(" mpc=%d\n", pstats->mpc); pr_mace_stats()
1207 pr_debug(" rntpc=%d\n", pstats->rntpc); pr_mace_stats()
1210 pr_debug(" rcvcc=%d\n", pstats->rcvcc); pr_mace_stats()
/linux-4.4.14/drivers/staging/rtl8192e/rtl8192e/
H A Dr8192E_dev.c1475 struct rtllib_rx_stats *pstats, _rtl92e_query_rxphystatus()
1503 pstats->bPacketMatchBSSID = precord_stats->bPacketMatchBSSID = _rtl92e_query_rxphystatus()
1505 pstats->bPacketToSelf = precord_stats->bPacketToSelf = bpacket_toself; _rtl92e_query_rxphystatus()
1506 pstats->bIsCCK = precord_stats->bIsCCK = is_cck_rate; _rtl92e_query_rxphystatus()
1507 pstats->bPacketBeacon = precord_stats->bPacketBeacon = bPacketBeacon; _rtl92e_query_rxphystatus()
1508 pstats->bToSelfBA = precord_stats->bToSelfBA = bToSelfBA; _rtl92e_query_rxphystatus()
1524 pstats->RxMIMOSignalQuality[0] = -1; _rtl92e_query_rxphystatus()
1525 pstats->RxMIMOSignalQuality[1] = -1; _rtl92e_query_rxphystatus()
1581 pstats->RxPWDBAll = precord_stats->RxPWDBAll = pwdb_all; _rtl92e_query_rxphystatus()
1582 pstats->RecvSignalPower = rx_pwr_all; _rtl92e_query_rxphystatus()
1587 if (pstats->RxPWDBAll > 40) { _rtl92e_query_rxphystatus()
1599 pstats->SignalQuality = sq; _rtl92e_query_rxphystatus()
1601 pstats->RxMIMOSignalQuality[0] = sq; _rtl92e_query_rxphystatus()
1603 pstats->RxMIMOSignalQuality[1] = -1; _rtl92e_query_rxphystatus()
1625 pstats->RxMIMOSignalStrength[i] = (u8) RSSI; _rtl92e_query_rxphystatus()
1635 pstats->RxPWDBAll = precord_stats->RxPWDBAll = pwdb_all; _rtl92e_query_rxphystatus()
1636 pstats->RxPower = precord_stats->RxPower = rx_pwr_all; _rtl92e_query_rxphystatus()
1637 pstats->RecvSignalPower = rx_pwr_all; _rtl92e_query_rxphystatus()
1653 pstats->SignalQuality = (u8)(evm & _rtl92e_query_rxphystatus()
1658 pstats->RxMIMOSignalQuality[i] = (u8)(evm & _rtl92e_query_rxphystatus()
1676 pstats->SignalStrength = precord_stats->SignalStrength = _rtl92e_query_rxphystatus()
1682 pstats->SignalStrength = precord_stats->SignalStrength = _rtl92e_query_rxphystatus()
1862 struct rtllib_rx_stats *pstats, _rtl92e_translate_rx_signal_stats()
1876 tmp_buf = skb->data + pstats->RxDrvInfoSize + pstats->RxBufShift; _rtl92e_translate_rx_signal_stats()
1889 (!pstats->bHwError) && (!pstats->bCRC) && (!pstats->bICV)); _rtl92e_translate_rx_signal_stats()
1898 _rtl92e_process_phyinfo(priv, tmp_buf, &previous_stats, pstats); _rtl92e_translate_rx_signal_stats()
1899 _rtl92e_query_rxphystatus(priv, pstats, pdesc, pdrvinfo, _rtl92e_translate_rx_signal_stats()
1902 rtl92e_copy_mpdu_stats(pstats, &previous_stats); _rtl92e_translate_rx_signal_stats()
1907 struct rtllib_rx_stats *pstats) _rtl92e_update_received_rate_histogram_stats()
1914 if (pstats->bCRC) _rtl92e_update_received_rate_histogram_stats()
1916 else if (pstats->bICV) _rtl92e_update_received_rate_histogram_stats()
1919 if (pstats->bShortPreamble) _rtl92e_update_received_rate_histogram_stats()
1924 switch (pstats->rate) { _rtl92e_update_received_rate_histogram_stats()
1473 _rtl92e_query_rxphystatus( struct r8192_priv *priv, struct rtllib_rx_stats *pstats, struct rx_desc *pdesc, struct rx_fwinfo *pdrvinfo, struct rtllib_rx_stats *precord_stats, bool bpacket_match_bssid, bool bpacket_toself, bool bPacketBeacon, bool bToSelfBA ) _rtl92e_query_rxphystatus() argument
1860 _rtl92e_translate_rx_signal_stats(struct net_device *dev, struct sk_buff *skb, struct rtllib_rx_stats *pstats, struct rx_desc *pdesc, struct rx_fwinfo *pdrvinfo) _rtl92e_translate_rx_signal_stats() argument
1905 _rtl92e_update_received_rate_histogram_stats( struct net_device *dev, struct rtllib_rx_stats *pstats) _rtl92e_update_received_rate_histogram_stats() argument
/linux-4.4.14/drivers/infiniband/hw/ocrdma/
H A Docrdma_stats.c470 char *pstats = dev->stats_mem.debugfs_mem; ocrdma_tx_dbg_stats() local
476 memset(pstats, 0, (OCRDMA_MAX_DBGFS_MEM)); ocrdma_tx_dbg_stats()
479 pstats += snprintf(pstats, 80, "DW[%d] = 0x%x\n", i, ocrdma_tx_dbg_stats()
488 char *pstats = dev->stats_mem.debugfs_mem; ocrdma_rx_dbg_stats() local
494 memset(pstats, 0, (OCRDMA_MAX_DBGFS_MEM)); ocrdma_rx_dbg_stats()
497 pstats += snprintf(pstats, 80, "DW[%d] = 0x%x\n", i, ocrdma_rx_dbg_stats()
643 struct ocrdma_stats *pstats = filp->private_data; ocrdma_dbgfs_ops_write() local
644 struct ocrdma_dev *dev = pstats->dev; ocrdma_dbgfs_ops_write()
656 switch (pstats->type) { ocrdma_dbgfs_ops_write()
694 struct ocrdma_stats *pstats = filp->private_data; ocrdma_dbgfs_ops_read() local
695 struct ocrdma_dev *dev = pstats->dev; ocrdma_dbgfs_ops_read()
707 switch (pstats->type) { ocrdma_dbgfs_ops_read()
/linux-4.4.14/drivers/net/ethernet/qlogic/qed/
H A Dqed_dev.c748 p_stat->pstats.address = BAR0_MAP_REG_PSDM_RAM + for_each_hwfn()
750 p_stat->pstats.len = sizeof(struct eth_pstorm_per_queue_stat); for_each_hwfn()
1550 struct eth_pstorm_per_queue_stat pstats; for_each_hwfn() local
1570 memset(&pstats, 0, sizeof(pstats)); for_each_hwfn()
1571 qed_memcpy_from(p_hwfn, p_ptt, &pstats, for_each_hwfn()
1572 p_hwfn->storm_stats.pstats.address, for_each_hwfn()
1573 p_hwfn->storm_stats.pstats.len); for_each_hwfn()
1623 HILO_64_REGPAIR(pstats.sent_ucast_bytes); for_each_hwfn()
1625 HILO_64_REGPAIR(pstats.sent_mcast_bytes); for_each_hwfn()
1627 HILO_64_REGPAIR(pstats.sent_bcast_bytes); for_each_hwfn()
1629 HILO_64_REGPAIR(pstats.sent_ucast_pkts); for_each_hwfn()
1631 HILO_64_REGPAIR(pstats.sent_mcast_pkts); for_each_hwfn()
1633 HILO_64_REGPAIR(pstats.sent_bcast_pkts); for_each_hwfn()
1635 HILO_64_REGPAIR(pstats.error_drop_pkts); for_each_hwfn()
1718 struct eth_pstorm_per_queue_stat pstats; for_each_hwfn() local
1738 memset(&pstats, 0, sizeof(pstats)); for_each_hwfn()
1740 p_hwfn->storm_stats.pstats.address, for_each_hwfn()
1741 &pstats, for_each_hwfn()
1742 p_hwfn->storm_stats.pstats.len); for_each_hwfn()
H A Dqed.h222 struct storm_stats pstats; member in struct:qed_storm_stats
/linux-4.4.14/drivers/staging/rtl8192u/
H A Dr8192U_core.c774 static u32 get_rxpacket_shiftbytes_819xusb(struct ieee80211_rx_stats *pstats) get_rxpacket_shiftbytes_819xusb() argument
777 return (sizeof(rx_desc_819x_usb) + pstats->RxDrvInfoSize get_rxpacket_shiftbytes_819xusb()
778 + pstats->RxBufShift); get_rxpacket_shiftbytes_819xusb()
1013 struct ieee80211_rx_stats *pstats) rtl819xusb_rx_command_packet()
1017 status = cmpk_message_handle_rx(dev, pstats); rtl819xusb_rx_command_packet()
4248 struct ieee80211_rx_stats *pstats, rtl8192_query_rxphystatus()
4276 pstats->bPacketMatchBSSID = rtl8192_query_rxphystatus()
4278 pstats->bPacketToSelf = precord_stats->bPacketToSelf = bpacket_toself; rtl8192_query_rxphystatus()
4279 pstats->bIsCCK = precord_stats->bIsCCK = is_cck_rate; rtl8192_query_rxphystatus()
4280 pstats->bPacketBeacon = precord_stats->bPacketBeacon = bPacketBeacon; rtl8192_query_rxphystatus()
4281 pstats->bToSelfBA = precord_stats->bToSelfBA = bToSelfBA; rtl8192_query_rxphystatus()
4292 pstats->RxMIMOSignalQuality[0] = -1; rtl8192_query_rxphystatus()
4293 pstats->RxMIMOSignalQuality[1] = -1; rtl8192_query_rxphystatus()
4344 pstats->RxPWDBAll = precord_stats->RxPWDBAll = pwdb_all; rtl8192_query_rxphystatus()
4345 pstats->RecvSignalPower = pwdb_all; rtl8192_query_rxphystatus()
4349 if (pstats->RxPWDBAll > 40) { rtl8192_query_rxphystatus()
4361 pstats->SignalQuality = precord_stats->SignalQuality = sq; rtl8192_query_rxphystatus()
4362 pstats->RxMIMOSignalQuality[0] = rtl8192_query_rxphystatus()
4364 pstats->RxMIMOSignalQuality[1] = rtl8192_query_rxphystatus()
4396 pstats->RxMIMOSignalStrength[i] = (u8)RSSI; rtl8192_query_rxphystatus()
4407 pstats->RxPWDBAll = precord_stats->RxPWDBAll = pwdb_all; rtl8192_query_rxphystatus()
4408 pstats->RxPower = precord_stats->RxPower = rx_pwr_all; rtl8192_query_rxphystatus()
4437 pstats->SignalQuality = rtl8192_query_rxphystatus()
4440 pstats->RxMIMOSignalQuality[i] = rtl8192_query_rxphystatus()
4461 pstats->SignalStrength = rtl8192_query_rxphystatus()
4467 pstats->SignalStrength = rtl8192_query_rxphystatus()
4485 struct ieee80211_rx_stats *pstats, TranslateRxSignalStuff819xUsb()
4516 && (!pstats->bHwError) && (!pstats->bCRC) && (!pstats->bICV); TranslateRxSignalStuff819xUsb()
4537 rtl8192_process_phyinfo(priv, tmp_buf, &previous_stats, pstats); TranslateRxSignalStuff819xUsb()
4538 rtl8192_query_rxphystatus(priv, pstats, pdrvinfo, &previous_stats, TranslateRxSignalStuff819xUsb()
4541 rtl8192_record_rxdesc_forlateruse(pstats, &previous_stats); TranslateRxSignalStuff819xUsb()
4827 struct ieee80211_rx_stats *pstats) rtl819xusb_process_received_packet()
4834 pstats->virtual_address += get_rxpacket_shiftbytes_819xusb(pstats); rtl819xusb_process_received_packet()
4835 frame = pstats->virtual_address; rtl819xusb_process_received_packet()
4836 frame_len = pstats->packetlength; rtl819xusb_process_received_packet()
4858 if (rtl819xusb_rx_command_packet(dev, pstats)) rtl819xusb_process_received_packet()
1012 rtl819xusb_rx_command_packet(struct net_device *dev, struct ieee80211_rx_stats *pstats) rtl819xusb_rx_command_packet() argument
4247 rtl8192_query_rxphystatus(struct r8192_priv *priv, struct ieee80211_rx_stats *pstats, rx_drvinfo_819x_usb *pdrvinfo, struct ieee80211_rx_stats *precord_stats, bool bpacket_match_bssid, bool bpacket_toself, bool bPacketBeacon, bool bToSelfBA) rtl8192_query_rxphystatus() argument
4484 TranslateRxSignalStuff819xUsb(struct sk_buff *skb, struct ieee80211_rx_stats *pstats, rx_drvinfo_819x_usb *pdrvinfo) TranslateRxSignalStuff819xUsb() argument
4825 rtl819xusb_process_received_packet( struct net_device *dev, struct ieee80211_rx_stats *pstats) rtl819xusb_process_received_packet() argument
H A Dr819xU_cmdpkt.c497 struct ieee80211_rx_stats *pstats) cmpk_message_handle_rx()
506 if (pstats == NULL) cmpk_message_handle_rx()
510 total_length = pstats->Length; cmpk_message_handle_rx()
513 pcmd_buff = pstats->virtual_address; cmpk_message_handle_rx()
496 cmpk_message_handle_rx(struct net_device *dev, struct ieee80211_rx_stats *pstats) cmpk_message_handle_rx() argument
H A Dr819xU_cmdpkt.h186 struct ieee80211_rx_stats *pstats);
/linux-4.4.14/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-drv.c1547 struct xgbe_mmc_stats *pstats = &pdata->mmc_stats; xgbe_get_stats64() local
1553 s->rx_packets = pstats->rxframecount_gb; xgbe_get_stats64()
1554 s->rx_bytes = pstats->rxoctetcount_gb; xgbe_get_stats64()
1555 s->rx_errors = pstats->rxframecount_gb - xgbe_get_stats64()
1556 pstats->rxbroadcastframes_g - xgbe_get_stats64()
1557 pstats->rxmulticastframes_g - xgbe_get_stats64()
1558 pstats->rxunicastframes_g; xgbe_get_stats64()
1559 s->multicast = pstats->rxmulticastframes_g; xgbe_get_stats64()
1560 s->rx_length_errors = pstats->rxlengtherror; xgbe_get_stats64()
1561 s->rx_crc_errors = pstats->rxcrcerror; xgbe_get_stats64()
1562 s->rx_fifo_errors = pstats->rxfifooverflow; xgbe_get_stats64()
1564 s->tx_packets = pstats->txframecount_gb; xgbe_get_stats64()
1565 s->tx_bytes = pstats->txoctetcount_gb; xgbe_get_stats64()
1566 s->tx_errors = pstats->txframecount_gb - pstats->txframecount_g; xgbe_get_stats64()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb3/
H A Dcxgb3_main.c1490 const struct mac_stats *pstats; cxgb_get_stats() local
1493 pstats = t3_mac_update_stats(&pi->mac); cxgb_get_stats()
1496 ns->tx_bytes = pstats->tx_octets; cxgb_get_stats()
1497 ns->tx_packets = pstats->tx_frames; cxgb_get_stats()
1498 ns->rx_bytes = pstats->rx_octets; cxgb_get_stats()
1499 ns->rx_packets = pstats->rx_frames; cxgb_get_stats()
1500 ns->multicast = pstats->rx_mcast_frames; cxgb_get_stats()
1502 ns->tx_errors = pstats->tx_underrun; cxgb_get_stats()
1503 ns->rx_errors = pstats->rx_symbol_errs + pstats->rx_fcs_errs + cxgb_get_stats()
1504 pstats->rx_too_long + pstats->rx_jabber + pstats->rx_short + cxgb_get_stats()
1505 pstats->rx_fifo_ovfl; cxgb_get_stats()
1508 ns->rx_length_errors = pstats->rx_jabber + pstats->rx_too_long; cxgb_get_stats()
1510 ns->rx_crc_errors = pstats->rx_fcs_errs; cxgb_get_stats()
1511 ns->rx_frame_errors = pstats->rx_symbol_errs; cxgb_get_stats()
1512 ns->rx_fifo_errors = pstats->rx_fifo_ovfl; cxgb_get_stats()
1513 ns->rx_missed_errors = pstats->rx_cong_drops; cxgb_get_stats()
1518 ns->tx_fifo_errors = pstats->tx_underrun; cxgb_get_stats()
/linux-4.4.14/drivers/staging/rtl8188eu/core/
H A Drtw_recv.c664 struct stainfo_stats *pstats = NULL; count_rx_stats() local
682 pstats = &psta->sta_stats; count_rx_stats()
684 pstats->rx_data_pkts++; count_rx_stats()
685 pstats->rx_bytes += sz; count_rx_stats()
H A Drtw_xmit.c1199 struct stainfo_stats *pstats = NULL; rtw_count_tx_stats() local
1209 pstats = &psta->sta_stats; rtw_count_tx_stats()
1210 pstats->tx_pkts += pxmitframe->agg_num; rtw_count_tx_stats()
1211 pstats->tx_bytes += sz; rtw_count_tx_stats()
/linux-4.4.14/drivers/staging/rtl8723au/core/
H A Drtw_recv.c714 struct stainfo_stats *pstats = NULL; count_rx_stats() local
733 pstats = &psta->sta_stats; count_rx_stats()
735 pstats->rx_data_pkts++; count_rx_stats()
736 pstats->rx_bytes += sz; count_rx_stats()
H A Drtw_xmit.c1280 struct stainfo_stats *pstats = NULL; rtw_count_tx_stats23a() local
1290 pstats = &psta->sta_stats; rtw_count_tx_stats23a()
1291 pstats->tx_pkts++; rtw_count_tx_stats23a()
1292 pstats->tx_bytes += sz; rtw_count_tx_stats23a()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
H A Den_rx.c1012 AVG_PERF_COUNTER(priv->pstats.rx_coal_avg, polled);
1054 INC_PERF_COUNTER(priv->pstats.napi_quota); mlx4_en_poll_rx_cq()
H A Den_tx.c764 AVG_PERF_COUNTER(priv->pstats.inflight_avg, mlx4_en_xmit()
911 AVG_PERF_COUNTER(priv->pstats.tx_pktsz_avg, skb->len); mlx4_en_xmit()
H A Dmlx4_en.h569 struct mlx4_en_perf_stats pstats; member in struct:mlx4_en_priv
H A Den_netdev.c1905 memset(&priv->pstats, 0, sizeof(priv->pstats)); mlx4_en_clear_stats()

Completed in 954 milliseconds