• Home
  • Raw
  • Download

Lines Matching refs:stats

80 	rtlpriv->stats.pwdb_all_cnt += pstatus->rx_pwdb_all;  in rtl_process_ui_rssi()
81 rtlpriv->stats.rssi_calculate_cnt++; in rtl_process_ui_rssi()
83 if (rtlpriv->stats.ui_rssi.total_num++ >= PHY_RSSI_SLID_WIN_MAX) { in rtl_process_ui_rssi()
84 rtlpriv->stats.ui_rssi.total_num = PHY_RSSI_SLID_WIN_MAX; in rtl_process_ui_rssi()
85 last_rssi = rtlpriv->stats.ui_rssi.elements[ in rtl_process_ui_rssi()
86 rtlpriv->stats.ui_rssi.index]; in rtl_process_ui_rssi()
87 rtlpriv->stats.ui_rssi.total_val -= last_rssi; in rtl_process_ui_rssi()
89 rtlpriv->stats.ui_rssi.total_val += pstatus->signalstrength; in rtl_process_ui_rssi()
90 rtlpriv->stats.ui_rssi.elements[rtlpriv->stats.ui_rssi.index++] = in rtl_process_ui_rssi()
92 if (rtlpriv->stats.ui_rssi.index >= PHY_RSSI_SLID_WIN_MAX) in rtl_process_ui_rssi()
93 rtlpriv->stats.ui_rssi.index = 0; in rtl_process_ui_rssi()
94 tmpval = rtlpriv->stats.ui_rssi.total_val / in rtl_process_ui_rssi()
95 rtlpriv->stats.ui_rssi.total_num; in rtl_process_ui_rssi()
96 rtlpriv->stats.signal_strength = rtl_translate_todbm(hw, in rtl_process_ui_rssi()
98 pstatus->rssi = rtlpriv->stats.signal_strength; in rtl_process_ui_rssi()
105 if (rtlpriv->stats.rx_rssi_percentage[rfpath] == 0) { in rtl_process_ui_rssi()
106 rtlpriv->stats.rx_rssi_percentage[rfpath] = in rtl_process_ui_rssi()
111 rtlpriv->stats.rx_rssi_percentage[rfpath]) { in rtl_process_ui_rssi()
112 rtlpriv->stats.rx_rssi_percentage[rfpath] = in rtl_process_ui_rssi()
113 ((rtlpriv->stats.rx_rssi_percentage[rfpath] * in rtl_process_ui_rssi()
117 rtlpriv->stats.rx_rssi_percentage[rfpath] = in rtl_process_ui_rssi()
118 rtlpriv->stats.rx_rssi_percentage[rfpath] + 1; in rtl_process_ui_rssi()
120 rtlpriv->stats.rx_rssi_percentage[rfpath] = in rtl_process_ui_rssi()
121 ((rtlpriv->stats.rx_rssi_percentage[rfpath] * in rtl_process_ui_rssi()
126 rtlpriv->stats.rx_snr_db[rfpath] = pstatus->rx_snr[rfpath]; in rtl_process_ui_rssi()
127 rtlpriv->stats.rx_evm_dbm[rfpath] = in rtl_process_ui_rssi()
129 rtlpriv->stats.rx_cfo_short[rfpath] = in rtl_process_ui_rssi()
131 rtlpriv->stats.rx_cfo_tail[rfpath] = pstatus->cfo_tail[rfpath]; in rtl_process_ui_rssi()
141 if (rtlpriv->stats.recv_signal_power == 0) in rtl_update_rxsignalstatistics()
142 rtlpriv->stats.recv_signal_power = pstatus->recvsignalpower; in rtl_update_rxsignalstatistics()
143 if (pstatus->recvsignalpower > rtlpriv->stats.recv_signal_power) in rtl_update_rxsignalstatistics()
145 else if (pstatus->recvsignalpower < rtlpriv->stats.recv_signal_power) in rtl_update_rxsignalstatistics()
147 rtlpriv->stats.recv_signal_power = (rtlpriv->stats.recv_signal_power * in rtl_update_rxsignalstatistics()
202 if (rtlpriv->stats.ui_link_quality.total_num++ >= in rtl_process_ui_link_quality()
204 rtlpriv->stats.ui_link_quality.total_num = in rtl_process_ui_link_quality()
206 last_evm = rtlpriv->stats.ui_link_quality.elements[ in rtl_process_ui_link_quality()
207 rtlpriv->stats.ui_link_quality.index]; in rtl_process_ui_link_quality()
208 rtlpriv->stats.ui_link_quality.total_val -= last_evm; in rtl_process_ui_link_quality()
210 rtlpriv->stats.ui_link_quality.total_val += pstatus->signalquality; in rtl_process_ui_link_quality()
211 rtlpriv->stats.ui_link_quality.elements[ in rtl_process_ui_link_quality()
212 rtlpriv->stats.ui_link_quality.index++] = in rtl_process_ui_link_quality()
214 if (rtlpriv->stats.ui_link_quality.index >= in rtl_process_ui_link_quality()
216 rtlpriv->stats.ui_link_quality.index = 0; in rtl_process_ui_link_quality()
217 tmpval = rtlpriv->stats.ui_link_quality.total_val / in rtl_process_ui_link_quality()
218 rtlpriv->stats.ui_link_quality.total_num; in rtl_process_ui_link_quality()
219 rtlpriv->stats.signal_quality = tmpval; in rtl_process_ui_link_quality()
220 rtlpriv->stats.last_sigstrength_inpercent = tmpval; in rtl_process_ui_link_quality()
223 if (rtlpriv->stats.rx_evm_percentage[n_stream] == 0) { in rtl_process_ui_link_quality()
224 rtlpriv->stats.rx_evm_percentage[n_stream] = in rtl_process_ui_link_quality()
227 rtlpriv->stats.rx_evm_percentage[n_stream] = in rtl_process_ui_link_quality()
228 ((rtlpriv->stats.rx_evm_percentage[n_stream] in rtl_process_ui_link_quality()