Lines Matching refs:dm_info

120 	struct rtw_dm_info *dm_info = &rtwdev->dm_info;  in rtw8723d_pwrtrack_init()  local
123 dm_info->default_ofdm_index = RTW_DEF_OFDM_SWING_INDEX; in rtw8723d_pwrtrack_init()
126 ewma_thermal_init(&dm_info->avg_thermal[path]); in rtw8723d_pwrtrack_init()
127 dm_info->delta_power_index[path] = 0; in rtw8723d_pwrtrack_init()
129 dm_info->pwr_trk_triggered = false; in rtw8723d_pwrtrack_init()
130 dm_info->pwr_trk_init_trigger = true; in rtw8723d_pwrtrack_init()
131 dm_info->thermal_meter_k = rtwdev->efuse.thermal_meter_k; in rtw8723d_pwrtrack_init()
132 dm_info->txagc_remnant_cck = 0; in rtw8723d_pwrtrack_init()
133 dm_info->txagc_remnant_ofdm = 0; in rtw8723d_pwrtrack_init()
195 rtwdev->dm_info.cck_pd_default = rtw_read8(rtwdev, REG_CSRATIO) & 0x1f; in rtw8723d_phy_set_param()
271 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in query_phy_status_page0() local
280 dm_info->rssi[RF_PATH_A] = pkt_stat->rssi; in query_phy_status_page0()
286 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in query_phy_status_page1() local
312 dm_info->curr_rx_rate = pkt_stat->rate; in query_phy_status_page1()
313 dm_info->rssi[RF_PATH_A] = pkt_stat->rssi; in query_phy_status_page1()
314 dm_info->rx_snr[RF_PATH_A] = pkt_stat->rx_snr[RF_PATH_A] >> 1; in query_phy_status_page1()
315 dm_info->cfo_tail[RF_PATH_A] = (pkt_stat->cfo_tail[RF_PATH_A] * 5) >> 1; in query_phy_status_page1()
319 dm_info->rx_evm_dbm[RF_PATH_A] = rx_evm; in query_phy_status_page1()
642 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw8723d_false_alarm_statistics() local
661 dm_info->ofdm_cca_cnt = u32_get_bits(val32, BIT_MASK_OFDM_CCA_CNT); in rtw8723d_false_alarm_statistics()
669 dm_info->cck_fa_cnt = cck_fa_cnt; in rtw8723d_false_alarm_statistics()
670 dm_info->ofdm_fa_cnt = ofdm_fa_cnt; in rtw8723d_false_alarm_statistics()
671 dm_info->total_fa_cnt = cck_fa_cnt + ofdm_fa_cnt; in rtw8723d_false_alarm_statistics()
673 dm_info->cck_err_cnt = rtw_read32(rtwdev, REG_IGI_C_11N); in rtw8723d_false_alarm_statistics()
674 dm_info->cck_ok_cnt = rtw_read32(rtwdev, REG_IGI_D_11N); in rtw8723d_false_alarm_statistics()
676 dm_info->ofdm_err_cnt = u32_get_bits(crc32_cnt, BIT_MASK_OFDM_LCRC_ERR); in rtw8723d_false_alarm_statistics()
677 dm_info->ofdm_ok_cnt = u32_get_bits(crc32_cnt, BIT_MASK_OFDM_LCRC_OK); in rtw8723d_false_alarm_statistics()
679 dm_info->ht_err_cnt = u32_get_bits(crc32_cnt, BIT_MASK_HT_CRC_ERR); in rtw8723d_false_alarm_statistics()
680 dm_info->ht_ok_cnt = u32_get_bits(crc32_cnt, BIT_MASK_HT_CRC_OK); in rtw8723d_false_alarm_statistics()
681 dm_info->vht_err_cnt = 0; in rtw8723d_false_alarm_statistics()
682 dm_info->vht_ok_cnt = 0; in rtw8723d_false_alarm_statistics()
685 dm_info->cck_cca_cnt = (u32_get_bits(val32, BIT_MASK_CCK_FA_MSB) << 8) | in rtw8723d_false_alarm_statistics()
687 dm_info->total_cca_cnt = dm_info->cck_cca_cnt + dm_info->ofdm_cca_cnt; in rtw8723d_false_alarm_statistics()
1428 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw8723d_phy_calibration() local
1485 dm_info->iqk.result.s1_x = result[final_candidate][IQK_S1_TX_X]; in rtw8723d_phy_calibration()
1486 dm_info->iqk.result.s1_y = result[final_candidate][IQK_S1_TX_Y]; in rtw8723d_phy_calibration()
1487 dm_info->iqk.result.s0_x = result[final_candidate][IQK_S0_TX_X]; in rtw8723d_phy_calibration()
1488 dm_info->iqk.result.s0_y = result[final_candidate][IQK_S0_TX_Y]; in rtw8723d_phy_calibration()
1489 dm_info->iqk.done = true; in rtw8723d_phy_calibration()
1522 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw8723d_phy_cck_pd_set() local
1527 dm_info->cck_pd_lv[RTW_CHANNEL_WIDTH_20][RF_PATH_A], new_lvl); in rtw8723d_phy_cck_pd_set()
1529 if (dm_info->cck_pd_lv[RTW_CHANNEL_WIDTH_20][RF_PATH_A] == new_lvl) in rtw8723d_phy_cck_pd_set()
1537 dm_info->cck_pd_default + new_lvl * 2, in rtw8723d_phy_cck_pd_set()
1538 pd[new_lvl], dm_info->cck_fa_avg); in rtw8723d_phy_cck_pd_set()
1540 dm_info->cck_fa_avg = CCK_FA_AVG_RESET; in rtw8723d_phy_cck_pd_set()
1542 dm_info->cck_pd_lv[RTW_CHANNEL_WIDTH_20][RF_PATH_A] = new_lvl; in rtw8723d_phy_cck_pd_set()
1545 dm_info->cck_pd_default + new_lvl * 2); in rtw8723d_phy_cck_pd_set()
1676 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw8723d_pwrtrack_get_limit_ofdm() local
1677 u8 tx_rate = dm_info->tx_rate; in rtw8723d_pwrtrack_get_limit_ofdm()
1710 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw8723d_set_iqk_matrix_by_result() local
1720 iqk_result_x = dm_info->iqk.result.s1_x; in rtw8723d_set_iqk_matrix_by_result()
1721 iqk_result_y = dm_info->iqk.result.s1_y; in rtw8723d_set_iqk_matrix_by_result()
1724 iqk_result_x = dm_info->iqk.result.s0_x; in rtw8723d_set_iqk_matrix_by_result()
1725 iqk_result_y = dm_info->iqk.result.s0_y; in rtw8723d_set_iqk_matrix_by_result()
1773 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw8723d_set_iqk_matrix() local
1784 if (dm_info->iqk.done) { in rtw8723d_set_iqk_matrix()
1820 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw8723d_pwrtrack_set_ofdm_pwr() local
1822 dm_info->txagc_remnant_ofdm = txagc_idx; in rtw8723d_pwrtrack_set_ofdm_pwr()
1831 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw8723d_pwrtrack_set_cck_pwr() local
1833 dm_info->txagc_remnant_cck = txagc_idx; in rtw8723d_pwrtrack_set_cck_pwr()
1841 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw8723d_pwrtrack_set() local
1851 dm_info->delta_power_index[path]; in rtw8723d_pwrtrack_set()
1853 dm_info->delta_power_index[path]; in rtw8723d_pwrtrack_set()
1879 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw8723d_pwrtrack_set_xtal() local
1884 if (dm_info->thermal_avg[therm_path] > in rtw8723d_pwrtrack_set_xtal()
1898 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw8723d_phy_pwrtrack() local
1917 if (dm_info->pwr_trk_init_trigger) in rtw8723d_phy_pwrtrack()
1918 dm_info->pwr_trk_init_trigger = false; in rtw8723d_phy_pwrtrack()
1930 delta_last = dm_info->delta_power_index[path]; in rtw8723d_phy_pwrtrack()
1936 dm_info->delta_power_index[path] = delta_cur; in rtw8723d_phy_pwrtrack()
1950 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw8723d_pwr_track() local
1955 if (!dm_info->pwr_trk_triggered) { in rtw8723d_pwr_track()
1958 dm_info->pwr_trk_triggered = true; in rtw8723d_pwr_track()
1963 dm_info->pwr_trk_triggered = false; in rtw8723d_pwr_track()