Lines Matching refs:dpk_info
2076 struct rtw_dpk_info *dpk_info = &rtwdev->dm_info.dpk_info; in rtw8822c_dpk_set_gnt_wl() local
2079 dpk_info->gnt_control = rtw_read32(rtwdev, 0x70); in rtw8822c_dpk_set_gnt_wl()
2080 dpk_info->gnt_value = rtw_coex_read_indirect_reg(rtwdev, 0x38); in rtw8822c_dpk_set_gnt_wl()
2085 dpk_info->gnt_value); in rtw8822c_dpk_set_gnt_wl()
2086 rtw_write32(rtwdev, 0x70, dpk_info->gnt_control); in rtw8822c_dpk_set_gnt_wl()
2142 struct rtw_dpk_info *dpk_info = &rtwdev->dm_info.dpk_info; in rtw8822c_dpk_information() local
2149 dpk_info->dpk_band = 1 << band_shift; in rtw8822c_dpk_information()
2150 dpk_info->dpk_ch = FIELD_GET(0xff, reg); in rtw8822c_dpk_information()
2151 dpk_info->dpk_bw = FIELD_GET(0x3000, reg); in rtw8822c_dpk_information()
2225 if (rtwdev->dm_info.dpk_info.dpk_band == RTW_BAND_2G) in rtw8822c_dpk_pre_setting()
2249 if (rtwdev->dm_info.dpk_info.dpk_band == RTW_BAND_2G) { in rtw8822c_dpk_rf_setting()
2263 if (rtwdev->dm_info.dpk_info.dpk_bw == DPK_CHANNEL_WIDTH_80) in rtw8822c_dpk_rf_setting()
2278 u8 bw = rtwdev->dm_info.dpk_info.dpk_bw == DPK_CHANNEL_WIDTH_80 ? 2 : 0; in rtw8822c_dpk_get_cmd()
2637 struct rtw_dpk_info *dpk_info = &rtwdev->dm_info.dpk_info; in rtw8822c_dpk_coef_tbl_apply() local
2643 dpk_info->coef[path][i] = rtw8822c_dpk_coef_transfer(rtwdev); in rtw8822c_dpk_coef_tbl_apply()
2664 struct rtw_dpk_info *dpk_info = &rtwdev->dm_info.dpk_info; in rtw8822c_dpk_coef_read() local
2669 coef_i = FIELD_GET(0x1fff0000, dpk_info->coef[path][addr]); in rtw8822c_dpk_coef_read()
2670 coef_q = FIELD_GET(0x1fff, dpk_info->coef[path][addr]); in rtw8822c_dpk_coef_read()
2682 struct rtw_dpk_info *dpk_info = &rtwdev->dm_info.dpk_info; in rtw8822c_dpk_coef_write() local
2697 coef = dpk_info->coef[path][addr]; in rtw8822c_dpk_coef_write()
2706 struct rtw_dpk_info *dpk_info = &rtwdev->dm_info.dpk_info; in rtw8822c_dpk_fill_result() local
2715 dpk_info->result[path] = result; in rtw8822c_dpk_fill_result()
2716 dpk_info->dpk_txagc[path] = rtw_read8(rtwdev, REG_DPD_AGC); in rtw8822c_dpk_fill_result()
2723 struct rtw_dpk_info *dpk_info = &rtwdev->dm_info.dpk_info; in rtw8822c_dpk_gainloss() local
2754 dpk_info->thermal_dpk_delta[path] = abs(t2 - t1); in rtw8822c_dpk_gainloss()
2778 struct rtw_dpk_info *dpk_info = &rtwdev->dm_info.dpk_info; in rtw8822c_dpk_cal_gs() local
2799 if (dpk_info->dpk_bw == DPK_CHANNEL_WIDTH_80) { in rtw8822c_dpk_cal_gs()
2843 dpk_info->dpk_gs[path] = tmp_gs; in rtw8822c_dpk_cal_gs()
2848 struct rtw_dpk_info *dpk_info = &rtwdev->dm_info.dpk_info; in rtw8822c_dpk_cal_coef1() local
2864 i_scaling = 0x16c00 / dpk_info->dpk_gs[path]; in rtw8822c_dpk_cal_coef1()
2881 struct rtw_dpk_info *dpk_info = &rtwdev->dm_info.dpk_info; in rtw8822c_dpk_on() local
2888 if (test_bit(path, dpk_info->dpk_path_ok)) in rtw8822c_dpk_on()
2913 struct rtw_dpk_info *dpk_info = &rtwdev->dm_info.dpk_info; in rtw8822c_dpk_result_reset() local
2917 clear_bit(path, dpk_info->dpk_path_ok); in rtw8822c_dpk_result_reset()
2922 dpk_info->dpk_txagc[path] = 0; in rtw8822c_dpk_result_reset()
2923 dpk_info->result[path] = 0; in rtw8822c_dpk_result_reset()
2924 dpk_info->dpk_gs[path] = 0x5b; in rtw8822c_dpk_result_reset()
2925 dpk_info->pre_pwsf[path] = 0; in rtw8822c_dpk_result_reset()
2926 dpk_info->thermal_dpk[path] = rtw8822c_dpk_thermal_read(rtwdev, in rtw8822c_dpk_result_reset()
2933 struct rtw_dpk_info *dpk_info = &rtwdev->dm_info.dpk_info; in rtw8822c_dpk_calibrate() local
2948 if (dpk_info->result[path]) in rtw8822c_dpk_calibrate()
2949 set_bit(path, dpk_info->dpk_path_ok); in rtw8822c_dpk_calibrate()
2963 struct rtw_dpk_info *dpk_info = &rtwdev->dm_info.dpk_info; in rtw8822c_dpk_enable_disable() local
2969 dpk_info->is_dpk_pwr_on); in rtw8822c_dpk_enable_disable()
2971 dpk_info->is_dpk_pwr_on); in rtw8822c_dpk_enable_disable()
2973 if (test_bit(RF_PATH_A, dpk_info->dpk_path_ok)) { in rtw8822c_dpk_enable_disable()
2975 rtw_write8(rtwdev, REG_DPD_CTL0_S0, dpk_info->dpk_gs[RF_PATH_A]); in rtw8822c_dpk_enable_disable()
2977 if (test_bit(RF_PATH_B, dpk_info->dpk_path_ok)) { in rtw8822c_dpk_enable_disable()
2979 rtw_write8(rtwdev, REG_DPD_CTL0_S1, dpk_info->dpk_gs[RF_PATH_B]); in rtw8822c_dpk_enable_disable()
2985 struct rtw_dpk_info *dpk_info = &rtwdev->dm_info.dpk_info; in rtw8822c_dpk_reload_data() local
2988 if (!test_bit(RF_PATH_A, dpk_info->dpk_path_ok) && in rtw8822c_dpk_reload_data()
2989 !test_bit(RF_PATH_B, dpk_info->dpk_path_ok) && in rtw8822c_dpk_reload_data()
2990 dpk_info->dpk_ch == 0) in rtw8822c_dpk_reload_data()
2996 if (dpk_info->dpk_band == RTW_BAND_2G) in rtw8822c_dpk_reload_data()
3001 rtw_write8(rtwdev, REG_DPD_AGC, dpk_info->dpk_txagc[path]); in rtw8822c_dpk_reload_data()
3004 test_bit(path, dpk_info->dpk_path_ok)); in rtw8822c_dpk_reload_data()
3012 dpk_info->dpk_gs[path]); in rtw8822c_dpk_reload_data()
3015 dpk_info->dpk_gs[path]); in rtw8822c_dpk_reload_data()
3022 struct rtw_dpk_info *dpk_info = &rtwdev->dm_info.dpk_info; in rtw8822c_dpk_reload() local
3025 dpk_info->is_reload = false; in rtw8822c_dpk_reload()
3029 if (channel == dpk_info->dpk_ch) { in rtw8822c_dpk_reload()
3031 "[DPK] DPK reload for CH%d!!\n", dpk_info->dpk_ch); in rtw8822c_dpk_reload()
3033 dpk_info->is_reload = true; in rtw8822c_dpk_reload()
3036 return dpk_info->is_reload; in rtw8822c_dpk_reload()
3041 struct rtw_dpk_info *dpk_info = &rtwdev->dm_info.dpk_info; in rtw8822c_do_dpk() local
3052 if (!dpk_info->is_dpk_pwr_on) { in rtw8822c_do_dpk()
3060 ewma_thermal_init(&dpk_info->avg_thermal[path]); in rtw8822c_do_dpk()
3089 struct rtw_dpk_info *dpk_info = &rtwdev->dm_info.dpk_info; in rtw8822c_dpk_track() local
3094 if (dpk_info->thermal_dpk[0] == 0 && dpk_info->thermal_dpk[1] == 0) in rtw8822c_dpk_track()
3099 ewma_thermal_add(&dpk_info->avg_thermal[path], in rtw8822c_dpk_track()
3102 ewma_thermal_read(&dpk_info->avg_thermal[path]); in rtw8822c_dpk_track()
3103 delta_dpk[path] = dpk_info->thermal_dpk[path] - in rtw8822c_dpk_track()
3106 dpk_info->thermal_dpk_delta[path]; in rtw8822c_dpk_track()
3109 if (offset[path] != dpk_info->pre_pwsf[path]) { in rtw8822c_dpk_track()
3114 dpk_info->pre_pwsf[path] = offset[path]; in rtw8822c_dpk_track()