Searched refs:cfo_ave (Results 1 – 4 of 4) sorted by relevance
/Linux-v4.19/drivers/staging/rtlwifi/phydm/ |
D | phydm_cfotracking.c | 155 s32 cfo_ave = 0; in odm_cfo_tracking() local 214 cfo_ave += (0 - (s32)cfo_khz_avg[i]); in odm_cfo_tracking() 216 cfo_ave += (s32)cfo_khz_avg[i]; in odm_cfo_tracking() 221 cfo_ave = cfo_ave / valid_path_cnt; in odm_cfo_tracking() 225 valid_path_cnt, cfo_ave); in odm_cfo_tracking() 234 cfo_ave_diff = (cfo_track->CFO_ave_pre >= cfo_ave) ? in odm_cfo_tracking() 235 (cfo_track->CFO_ave_pre - cfo_ave) : in odm_cfo_tracking() 236 (cfo_ave - cfo_track->CFO_ave_pre); in odm_cfo_tracking() 246 cfo_track->CFO_ave_pre = cfo_ave; in odm_cfo_tracking() 250 if (cfo_ave > CFO_TH_XTAL_HIGH || in odm_cfo_tracking() [all …]
|
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
D | dm.c | 817 int cfo_khz_a , cfo_khz_b , cfo_ave = 0, adjust_xtal = 0; in rtl92ee_dm_dynamic_atc_switch() local 853 cfo_ave = cfo_khz_a; in rtl92ee_dm_dynamic_atc_switch() 855 cfo_ave = (int)(cfo_khz_a + cfo_khz_b) >> 1; in rtl92ee_dm_dynamic_atc_switch() 857 cfo_ave_diff = (rtldm->cfo_ave_pre >= cfo_ave) ? in rtl92ee_dm_dynamic_atc_switch() 858 (rtldm->cfo_ave_pre - cfo_ave) : in rtl92ee_dm_dynamic_atc_switch() 859 (cfo_ave - rtldm->cfo_ave_pre); in rtl92ee_dm_dynamic_atc_switch() 867 rtldm->cfo_ave_pre = cfo_ave; in rtl92ee_dm_dynamic_atc_switch() 869 if (cfo_ave >= -rtldm->cfo_threshold && in rtl92ee_dm_dynamic_atc_switch() 870 cfo_ave <= rtldm->cfo_threshold && rtldm->is_freeze == 0) { in rtl92ee_dm_dynamic_atc_switch() 879 if (cfo_ave > rtldm->cfo_threshold && rtldm->crystal_cap < 0x3f) in rtl92ee_dm_dynamic_atc_switch() [all …]
|
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
D | dm.c | 1138 int cfo_khz_a, cfo_khz_b, cfo_ave = 0, adjust_xtal = 0; in rtl8723be_dm_dynamic_atc_switch() local 1172 cfo_ave = cfo_khz_a; in rtl8723be_dm_dynamic_atc_switch() 1174 cfo_ave = (int)(cfo_khz_a + cfo_khz_b) >> 1; in rtl8723be_dm_dynamic_atc_switch() 1176 cfo_ave_diff = (rtldm->cfo_ave_pre >= cfo_ave) ? in rtl8723be_dm_dynamic_atc_switch() 1177 (rtldm->cfo_ave_pre - cfo_ave) : in rtl8723be_dm_dynamic_atc_switch() 1178 (cfo_ave - rtldm->cfo_ave_pre); in rtl8723be_dm_dynamic_atc_switch() 1186 rtldm->cfo_ave_pre = cfo_ave; in rtl8723be_dm_dynamic_atc_switch() 1188 if (cfo_ave >= -rtldm->cfo_threshold && in rtl8723be_dm_dynamic_atc_switch() 1189 cfo_ave <= rtldm->cfo_threshold && rtldm->is_freeze == 0) { in rtl8723be_dm_dynamic_atc_switch() 1198 if (cfo_ave > rtldm->cfo_threshold && rtldm->crystal_cap < 0x3f) in rtl8723be_dm_dynamic_atc_switch() [all …]
|
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
D | dm.c | 2808 int cfo_khz_a, cfo_khz_b, cfo_ave = 0, adjust_xtal = 0; in rtl8821ae_dm_dynamic_atc_switch() local 2857 cfo_ave = cfo_khz_a; in rtl8821ae_dm_dynamic_atc_switch() 2859 cfo_ave = (cfo_khz_a + cfo_khz_b) >> 1; in rtl8821ae_dm_dynamic_atc_switch() 2863 cfo_khz_a, cfo_khz_b, cfo_ave); in rtl8821ae_dm_dynamic_atc_switch() 2866 cfo_ave_diff = (rtldm->cfo_ave_pre >= cfo_ave) ? in rtl8821ae_dm_dynamic_atc_switch() 2867 (rtldm->cfo_ave_pre - cfo_ave) : in rtl8821ae_dm_dynamic_atc_switch() 2868 (cfo_ave - rtldm->cfo_ave_pre); in rtl8821ae_dm_dynamic_atc_switch() 2878 rtldm->cfo_ave_pre = cfo_ave; in rtl8821ae_dm_dynamic_atc_switch() 2883 if (cfo_ave >= -rtldm->cfo_threshold && in rtl8821ae_dm_dynamic_atc_switch() 2884 cfo_ave <= rtldm->cfo_threshold && in rtl8821ae_dm_dynamic_atc_switch() [all …]
|