• Home
  • Raw
  • Download

Lines Matching refs:stats

151 			rtlpriv->stats.rx_snr_db[i] =  in _rtl92de_query_rxphystatus()
194 if (rtlpriv->stats.rx_rssi_percentage[rfpath] == 0) { in rtl92d_loop_over_paths()
195 rtlpriv->stats.rx_rssi_percentage[rfpath] = in rtl92d_loop_over_paths()
200 rtlpriv->stats.rx_rssi_percentage[rfpath]) { in rtl92d_loop_over_paths()
201 rtlpriv->stats.rx_rssi_percentage[rfpath] = in rtl92d_loop_over_paths()
202 ((rtlpriv->stats.rx_rssi_percentage[rfpath] * in rtl92d_loop_over_paths()
206 rtlpriv->stats.rx_rssi_percentage[rfpath] = in rtl92d_loop_over_paths()
207 rtlpriv->stats.rx_rssi_percentage[rfpath] + 1; in rtl92d_loop_over_paths()
209 rtlpriv->stats.rx_rssi_percentage[rfpath] = in rtl92d_loop_over_paths()
210 ((rtlpriv->stats.rx_rssi_percentage[rfpath] * in rtl92d_loop_over_paths()
225 rtlpriv->stats.rssi_calculate_cnt++; in _rtl92de_process_ui_rssi()
226 if (rtlpriv->stats.ui_rssi.total_num++ >= in _rtl92de_process_ui_rssi()
228 rtlpriv->stats.ui_rssi.total_num = in _rtl92de_process_ui_rssi()
230 last_rssi = rtlpriv->stats.ui_rssi.elements[ in _rtl92de_process_ui_rssi()
231 rtlpriv->stats.ui_rssi.index]; in _rtl92de_process_ui_rssi()
232 rtlpriv->stats.ui_rssi.total_val -= last_rssi; in _rtl92de_process_ui_rssi()
234 rtlpriv->stats.ui_rssi.total_val += pstats->signalstrength; in _rtl92de_process_ui_rssi()
235 rtlpriv->stats.ui_rssi.elements in _rtl92de_process_ui_rssi()
236 [rtlpriv->stats.ui_rssi.index++] = in _rtl92de_process_ui_rssi()
238 if (rtlpriv->stats.ui_rssi.index >= PHY_RSSI_SLID_WIN_MAX) in _rtl92de_process_ui_rssi()
239 rtlpriv->stats.ui_rssi.index = 0; in _rtl92de_process_ui_rssi()
240 tmpval = rtlpriv->stats.ui_rssi.total_val / in _rtl92de_process_ui_rssi()
241 rtlpriv->stats.ui_rssi.total_num; in _rtl92de_process_ui_rssi()
242 rtlpriv->stats.signal_strength = _rtl92de_translate_todbm(hw, in _rtl92de_process_ui_rssi()
244 pstats->rssi = rtlpriv->stats.signal_strength; in _rtl92de_process_ui_rssi()
256 if (rtlpriv->stats.recv_signal_power == 0) in _rtl92de_update_rxsignalstatistics()
257 rtlpriv->stats.recv_signal_power = pstats->recvsignalpower; in _rtl92de_update_rxsignalstatistics()
258 if (pstats->recvsignalpower > rtlpriv->stats.recv_signal_power) in _rtl92de_update_rxsignalstatistics()
260 else if (pstats->recvsignalpower < rtlpriv->stats.recv_signal_power) in _rtl92de_update_rxsignalstatistics()
262 rtlpriv->stats.recv_signal_power = (rtlpriv->stats.recv_signal_power * in _rtl92de_update_rxsignalstatistics()
305 if (rtlpriv->stats.rx_evm_percentage[stream] == 0) { in rtl92d_loop_over_streams()
306 rtlpriv->stats.rx_evm_percentage[stream] = in rtl92d_loop_over_streams()
309 rtlpriv->stats.rx_evm_percentage[stream] = in rtl92d_loop_over_streams()
310 ((rtlpriv->stats.rx_evm_percentage[stream] in rtl92d_loop_over_streams()
327 if (rtlpriv->stats.ui_link_quality.total_num++ >= in _rtl92de_process_ui_link_quality()
329 rtlpriv->stats.ui_link_quality.total_num = in _rtl92de_process_ui_link_quality()
331 last_evm = rtlpriv->stats.ui_link_quality.elements[ in _rtl92de_process_ui_link_quality()
332 rtlpriv->stats.ui_link_quality.index]; in _rtl92de_process_ui_link_quality()
333 rtlpriv->stats.ui_link_quality.total_val -= last_evm; in _rtl92de_process_ui_link_quality()
335 rtlpriv->stats.ui_link_quality.total_val += in _rtl92de_process_ui_link_quality()
337 rtlpriv->stats.ui_link_quality.elements[ in _rtl92de_process_ui_link_quality()
338 rtlpriv->stats.ui_link_quality.index++] = in _rtl92de_process_ui_link_quality()
340 if (rtlpriv->stats.ui_link_quality.index >= in _rtl92de_process_ui_link_quality()
342 rtlpriv->stats.ui_link_quality.index = 0; in _rtl92de_process_ui_link_quality()
343 tmpval = rtlpriv->stats.ui_link_quality.total_val / in _rtl92de_process_ui_link_quality()
344 rtlpriv->stats.ui_link_quality.total_num; in _rtl92de_process_ui_link_quality()
345 rtlpriv->stats.signal_quality = tmpval; in _rtl92de_process_ui_link_quality()
346 rtlpriv->stats.last_sigstrength_inpercent = tmpval; in _rtl92de_process_ui_link_quality()
402 bool rtl92de_rx_query_desc(struct ieee80211_hw *hw, struct rtl_stats *stats, in rtl92de_rx_query_desc() argument
410 stats->length = (u16)get_rx_desc_pkt_len(pdesc); in rtl92de_rx_query_desc()
411 stats->rx_drvinfo_size = (u8)get_rx_desc_drv_info_size(pdesc) * in rtl92de_rx_query_desc()
413 stats->rx_bufshift = (u8)(get_rx_desc_shift(pdesc) & 0x03); in rtl92de_rx_query_desc()
414 stats->icv = (u16)get_rx_desc_icv(pdesc); in rtl92de_rx_query_desc()
415 stats->crc = (u16)get_rx_desc_crc32(pdesc); in rtl92de_rx_query_desc()
416 stats->hwerror = (stats->crc | stats->icv); in rtl92de_rx_query_desc()
417 stats->decrypted = !get_rx_desc_swdec(pdesc); in rtl92de_rx_query_desc()
418 stats->rate = (u8)get_rx_desc_rxmcs(pdesc); in rtl92de_rx_query_desc()
419 stats->shortpreamble = (u16)get_rx_desc_splcp(pdesc); in rtl92de_rx_query_desc()
420 stats->isampdu = (bool)(get_rx_desc_paggr(pdesc) == 1); in rtl92de_rx_query_desc()
421 stats->isfirst_ampdu = (bool)((get_rx_desc_paggr(pdesc) == 1) && in rtl92de_rx_query_desc()
423 stats->timestamp_low = get_rx_desc_tsfl(pdesc); in rtl92de_rx_query_desc()
424 stats->rx_is40mhzpacket = (bool)get_rx_desc_bw(pdesc); in rtl92de_rx_query_desc()
425 stats->is_ht = (bool)get_rx_desc_rxht(pdesc); in rtl92de_rx_query_desc()
437 if (stats->decrypted) in rtl92de_rx_query_desc()
439 rx_status->rate_idx = rtlwifi_rate_mapping(hw, stats->is_ht, in rtl92de_rx_query_desc()
440 false, stats->rate); in rtl92de_rx_query_desc()
444 stats->rx_bufshift); in rtl92de_rx_query_desc()
446 skb, stats, in rtl92de_rx_query_desc()
451 rx_status->signal = stats->recvsignalpower + 10; in rtl92de_rx_query_desc()