Searched refs:cfo_ave (Results 1 – 3 of 3) sorted by relevance
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
H A D | dm.c | 670 int cfo_khz_a , cfo_khz_b , cfo_ave = 0, adjust_xtal = 0; in rtl92ee_dm_dynamic_atc_switch() local 706 cfo_ave = cfo_khz_a; in rtl92ee_dm_dynamic_atc_switch() 708 cfo_ave = (int)(cfo_khz_a + cfo_khz_b) >> 1; in rtl92ee_dm_dynamic_atc_switch() 710 cfo_ave_diff = (rtldm->cfo_ave_pre >= cfo_ave) ? in rtl92ee_dm_dynamic_atc_switch() 711 (rtldm->cfo_ave_pre - cfo_ave) : in rtl92ee_dm_dynamic_atc_switch() 712 (cfo_ave - rtldm->cfo_ave_pre); in rtl92ee_dm_dynamic_atc_switch() 720 rtldm->cfo_ave_pre = cfo_ave; in rtl92ee_dm_dynamic_atc_switch() 722 if (cfo_ave >= -rtldm->cfo_threshold && in rtl92ee_dm_dynamic_atc_switch() 723 cfo_ave <= rtldm->cfo_threshold && rtldm->is_freeze == 0) { in rtl92ee_dm_dynamic_atc_switch() 732 if (cfo_ave > rtldm->cfo_threshold && rtldm->crystal_cap < 0x3f) in rtl92ee_dm_dynamic_atc_switch() [all …]
|
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
H A D | dm.c | 1113 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/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
H A D | dm.c | 2616 int cfo_khz_a, cfo_khz_b, cfo_ave = 0, adjust_xtal = 0; in rtl8821ae_dm_dynamic_atc_switch() local 2665 cfo_ave = cfo_khz_a; in rtl8821ae_dm_dynamic_atc_switch() 2667 cfo_ave = (cfo_khz_a + cfo_khz_b) >> 1; in rtl8821ae_dm_dynamic_atc_switch() 2671 cfo_khz_a, cfo_khz_b, cfo_ave); in rtl8821ae_dm_dynamic_atc_switch() 2674 cfo_ave_diff = (rtldm->cfo_ave_pre >= cfo_ave) ? in rtl8821ae_dm_dynamic_atc_switch() 2675 (rtldm->cfo_ave_pre - cfo_ave) : in rtl8821ae_dm_dynamic_atc_switch() 2676 (cfo_ave - rtldm->cfo_ave_pre); in rtl8821ae_dm_dynamic_atc_switch() 2686 rtldm->cfo_ave_pre = cfo_ave; in rtl8821ae_dm_dynamic_atc_switch() 2691 if (cfo_ave >= -rtldm->cfo_threshold && in rtl8821ae_dm_dynamic_atc_switch() 2692 cfo_ave <= rtldm->cfo_threshold && in rtl8821ae_dm_dynamic_atc_switch() [all …]
|