Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
H A 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()
741 else if ((cfo_ave < -rtlpriv->dm.cfo_threshold) && in rtl92ee_dm_dynamic_atc_switch()
759 if (cfo_ave < CFO_THRESHOLD_ATC && in rtl92ee_dm_dynamic_atc_switch()
[all …]
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
H A 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()
1175 else if ((cfo_ave < -rtlpriv->dm.cfo_threshold) && in rtl8723be_dm_dynamic_atc_switch()
1193 if (cfo_ave < CFO_THRESHOLD_ATC && in rtl8723be_dm_dynamic_atc_switch()
[all …]
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
H A 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 …]