• Home
  • Raw
  • Download

Lines Matching refs:dm_info

111 	struct rtw_dm_info *dm_info = &rtwdev->dm_info;  in rtw_phy_cck_pd_init()  local
116 dm_info->cck_pd_lv[i][j] = CCK_PD_LV0; in rtw_phy_cck_pd_init()
119 dm_info->cck_fa_avg = CCK_FA_AVG_RESET; in rtw_phy_cck_pd_init()
144 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw_phy_init() local
147 dm_info->fa_history[3] = 0; in rtw_phy_init()
148 dm_info->fa_history[2] = 0; in rtw_phy_init()
149 dm_info->fa_history[1] = 0; in rtw_phy_init()
150 dm_info->fa_history[0] = 0; in rtw_phy_init()
151 dm_info->igi_bitmap = 0; in rtw_phy_init()
152 dm_info->igi_history[3] = 0; in rtw_phy_init()
153 dm_info->igi_history[2] = 0; in rtw_phy_init()
154 dm_info->igi_history[1] = 0; in rtw_phy_init()
158 dm_info->igi_history[0] = rtw_read32_mask(rtwdev, addr, mask); in rtw_phy_init()
161 dm_info->iqk.done = false; in rtw_phy_init()
238 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw_phy_stat_rssi() local
245 dm_info->pre_min_rssi = dm_info->min_rssi; in rtw_phy_stat_rssi()
246 dm_info->min_rssi = data.min_rssi; in rtw_phy_stat_rssi()
251 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw_phy_stat_rate_cnt() local
253 dm_info->last_pkt_count = dm_info->cur_pkt_count; in rtw_phy_stat_rate_cnt()
254 memset(&dm_info->cur_pkt_count, 0, sizeof(dm_info->cur_pkt_count)); in rtw_phy_stat_rate_cnt()
278 rtw_phy_dig_check_damping(struct rtw_dm_info *dm_info) in rtw_phy_dig_check_damping() argument
290 min_rssi = dm_info->min_rssi; in rtw_phy_dig_check_damping()
291 if (dm_info->damping) { in rtw_phy_dig_check_damping()
292 damping_rssi = dm_info->damping_rssi; in rtw_phy_dig_check_damping()
295 if (diff > 3 || dm_info->damping_cnt++ > 20) { in rtw_phy_dig_check_damping()
296 dm_info->damping = false; in rtw_phy_dig_check_damping()
303 igi_history = dm_info->igi_history; in rtw_phy_dig_check_damping()
304 fa_history = dm_info->fa_history; in rtw_phy_dig_check_damping()
305 igi_bitmap = dm_info->igi_bitmap & 0xf; in rtw_phy_dig_check_damping()
332 dm_info->damping = true; in rtw_phy_dig_check_damping()
333 dm_info->damping_cnt = 0; in rtw_phy_dig_check_damping()
334 dm_info->damping_rssi = min_rssi; in rtw_phy_dig_check_damping()
341 struct rtw_dm_info *dm_info, in rtw_phy_dig_get_boundary() argument
351 min_rssi = max_t(u8, dm_info->min_rssi, dig_min); in rtw_phy_dig_get_boundary()
366 static void rtw_phy_dig_get_threshold(struct rtw_dm_info *dm_info, in rtw_phy_dig_get_threshold() argument
371 min_rssi = dm_info->min_rssi; in rtw_phy_dig_get_threshold()
372 pre_min_rssi = dm_info->pre_min_rssi; in rtw_phy_dig_get_threshold()
393 static void rtw_phy_dig_recorder(struct rtw_dm_info *dm_info, u8 igi, u16 fa) in rtw_phy_dig_recorder() argument
400 igi_bitmap = dm_info->igi_bitmap << 1 & 0xfe; in rtw_phy_dig_recorder()
401 igi_history = dm_info->igi_history; in rtw_phy_dig_recorder()
402 fa_history = dm_info->fa_history; in rtw_phy_dig_recorder()
417 dm_info->igi_bitmap = igi_bitmap; in rtw_phy_dig_recorder()
422 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw_phy_dig() local
433 if (rtw_phy_dig_check_damping(dm_info)) in rtw_phy_dig()
438 fa_cnt = dm_info->total_fa_cnt; in rtw_phy_dig()
439 pre_igi = dm_info->igi_history[0]; in rtw_phy_dig()
441 rtw_phy_dig_get_threshold(dm_info, fa_th, step, linked); in rtw_phy_dig()
461 rtw_phy_dig_get_boundary(rtwdev, dm_info, &upper_bound, &lower_bound, in rtw_phy_dig()
468 rtw_phy_dig_recorder(dm_info, cur_igi, fa_cnt); in rtw_phy_dig()
527 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw_phy_rrsr_mask_min_iter() local
531 if (mask < dm_info->rrsr_mask_min) in rtw_phy_rrsr_mask_min_iter()
532 dm_info->rrsr_mask_min = mask; in rtw_phy_rrsr_mask_min_iter()
537 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw_phy_rrsr_update() local
539 dm_info->rrsr_mask_min = RRSR_RATE_ORDER_MAX; in rtw_phy_rrsr_update()
541 rtw_write32(rtwdev, REG_RRSR, dm_info->rrsr_val_init & dm_info->rrsr_mask_min); in rtw_phy_rrsr_update()
565 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw_phy_parsing_cfo_iter() local
566 struct rtw_cfo_track *cfo = &dm_info->cfo_track; in rtw_phy_parsing_cfo_iter()
613 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw_phy_cck_pd_lv_unlink() local
614 u32 cck_fa_avg = dm_info->cck_fa_avg; in rtw_phy_cck_pd_lv_unlink()
634 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw_phy_cck_pd_lv_link() local
635 u8 igi = dm_info->igi_history[0]; in rtw_phy_cck_pd_lv_link()
636 u8 rssi = dm_info->min_rssi; in rtw_phy_cck_pd_lv_link()
637 u32 cck_fa_avg = dm_info->cck_fa_avg; in rtw_phy_cck_pd_lv_link()
663 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw_phy_cck_pd() local
665 u32 cck_fa = dm_info->cck_fa_cnt; in rtw_phy_cck_pd()
671 if (dm_info->cck_fa_avg == CCK_FA_AVG_RESET) in rtw_phy_cck_pd()
672 dm_info->cck_fa_avg = cck_fa; in rtw_phy_cck_pd()
674 dm_info->cck_fa_avg = (dm_info->cck_fa_avg * 3 + cck_fa) >> 2; in rtw_phy_cck_pd()
677 dm_info->igi_history[0], dm_info->min_rssi, in rtw_phy_cck_pd()
678 dm_info->fa_history[0]); in rtw_phy_cck_pd()
680 dm_info->cck_fa_avg, dm_info->cck_pd_default); in rtw_phy_cck_pd()
1633 struct rtw_dpk_info *dpk_info = &rtwdev->dm_info.dpk_info; in rtw_load_rfk_table()
1955 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw_get_tx_power_params() local
1983 *remnant = (rate <= DESC_RATE11M ? dm_info->txagc_remnant_cck : in rtw_get_tx_power_params()
1984 dm_info->txagc_remnant_ofdm); in rtw_get_tx_power_params()
2199 if (rtwdev->dm_info.tx_rate <= DESC_RATE11M) { in rtw_phy_config_swing_table()
2236 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw_phy_pwrtrack_avg() local
2238 ewma_thermal_add(&dm_info->avg_thermal[path], thermal); in rtw_phy_pwrtrack_avg()
2239 dm_info->thermal_avg[path] = in rtw_phy_pwrtrack_avg()
2240 ewma_thermal_read(&dm_info->avg_thermal[path]); in rtw_phy_pwrtrack_avg()
2247 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw_phy_pwrtrack_thermal_changed() local
2248 u8 avg = ewma_thermal_read(&dm_info->avg_thermal[path]); in rtw_phy_pwrtrack_thermal_changed()
2259 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw_phy_pwrtrack_get_delta() local
2262 therm_avg = dm_info->thermal_avg[path]; in rtw_phy_pwrtrack_get_delta()
2274 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw_phy_pwrtrack_get_pwridx() local
2296 if (dm_info->thermal_avg[therm_path] > in rtw_phy_pwrtrack_get_pwridx()
2306 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw_phy_pwrtrack_need_lck() local
2309 delta_lck = abs(dm_info->thermal_avg[0] - dm_info->thermal_meter_lck); in rtw_phy_pwrtrack_need_lck()
2311 dm_info->thermal_meter_lck = dm_info->thermal_avg[0]; in rtw_phy_pwrtrack_need_lck()
2320 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw_phy_pwrtrack_need_iqk() local
2323 delta_iqk = abs(dm_info->thermal_avg[0] - dm_info->thermal_meter_k); in rtw_phy_pwrtrack_need_iqk()
2325 dm_info->thermal_meter_k = dm_info->thermal_avg[0]; in rtw_phy_pwrtrack_need_iqk()