Home
last modified time | relevance | path

Searched refs:cfo_ave (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.1/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Ddm.c677 int cfo_khz_a , cfo_khz_b , cfo_ave = 0, adjust_xtal = 0; in rtl92ee_dm_dynamic_atc_switch() local
713 cfo_ave = cfo_khz_a; in rtl92ee_dm_dynamic_atc_switch()
715 cfo_ave = (int)(cfo_khz_a + cfo_khz_b) >> 1; in rtl92ee_dm_dynamic_atc_switch()
717 cfo_ave_diff = (rtldm->cfo_ave_pre >= cfo_ave) ? in rtl92ee_dm_dynamic_atc_switch()
718 (rtldm->cfo_ave_pre - cfo_ave) : in rtl92ee_dm_dynamic_atc_switch()
719 (cfo_ave - rtldm->cfo_ave_pre); in rtl92ee_dm_dynamic_atc_switch()
727 rtldm->cfo_ave_pre = cfo_ave; in rtl92ee_dm_dynamic_atc_switch()
729 if (cfo_ave >= -rtldm->cfo_threshold && in rtl92ee_dm_dynamic_atc_switch()
730 cfo_ave <= rtldm->cfo_threshold && rtldm->is_freeze == 0) { in rtl92ee_dm_dynamic_atc_switch()
739 if (cfo_ave > rtldm->cfo_threshold && rtldm->crystal_cap < 0x3f) in rtl92ee_dm_dynamic_atc_switch()
[all …]
/Linux-v6.1/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Ddm.c1113 int cfo_khz_a, cfo_khz_b, cfo_ave = 0, adjust_xtal = 0; in rtl8723be_dm_dynamic_atc_switch() local
1147 cfo_ave = cfo_khz_a; in rtl8723be_dm_dynamic_atc_switch()
1149 cfo_ave = (int)(cfo_khz_a + cfo_khz_b) >> 1; in rtl8723be_dm_dynamic_atc_switch()
1151 cfo_ave_diff = (rtldm->cfo_ave_pre >= cfo_ave) ? in rtl8723be_dm_dynamic_atc_switch()
1152 (rtldm->cfo_ave_pre - cfo_ave) : in rtl8723be_dm_dynamic_atc_switch()
1153 (cfo_ave - rtldm->cfo_ave_pre); in rtl8723be_dm_dynamic_atc_switch()
1161 rtldm->cfo_ave_pre = cfo_ave; in rtl8723be_dm_dynamic_atc_switch()
1163 if (cfo_ave >= -rtldm->cfo_threshold && in rtl8723be_dm_dynamic_atc_switch()
1164 cfo_ave <= rtldm->cfo_threshold && rtldm->is_freeze == 0) { in rtl8723be_dm_dynamic_atc_switch()
1173 if (cfo_ave > rtldm->cfo_threshold && rtldm->crystal_cap < 0x3f) in rtl8723be_dm_dynamic_atc_switch()
[all …]
/Linux-v6.1/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Ddm.c2618 int cfo_khz_a, cfo_khz_b, cfo_ave = 0, adjust_xtal = 0; in rtl8821ae_dm_dynamic_atc_switch() local
2667 cfo_ave = cfo_khz_a; in rtl8821ae_dm_dynamic_atc_switch()
2669 cfo_ave = (cfo_khz_a + cfo_khz_b) >> 1; in rtl8821ae_dm_dynamic_atc_switch()
2673 cfo_khz_a, cfo_khz_b, cfo_ave); in rtl8821ae_dm_dynamic_atc_switch()
2676 cfo_ave_diff = (rtldm->cfo_ave_pre >= cfo_ave) ? in rtl8821ae_dm_dynamic_atc_switch()
2677 (rtldm->cfo_ave_pre - cfo_ave) : in rtl8821ae_dm_dynamic_atc_switch()
2678 (cfo_ave - rtldm->cfo_ave_pre); in rtl8821ae_dm_dynamic_atc_switch()
2688 rtldm->cfo_ave_pre = cfo_ave; in rtl8821ae_dm_dynamic_atc_switch()
2693 if (cfo_ave >= -rtldm->cfo_threshold && in rtl8821ae_dm_dynamic_atc_switch()
2694 cfo_ave <= rtldm->cfo_threshold && in rtl8821ae_dm_dynamic_atc_switch()
[all …]