Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/net/wireless/realtek/rtw89/
Dphy.c2605 cfo->pre_cfo_avg[i] = cfo->cfo_avg[i]; in rtw89_phy_average_cfo_calc()
2624 s32 cfo_avg = 0; in rtw89_phy_multi_sta_cfo_calc() local
2642 cfo_avg = phy_div(cfo_khz_all, (s32)cfo_cnt_all); in rtw89_phy_multi_sta_cfo_calc()
2645 cfo_khz_all, cfo_cnt_all, cfo_avg); in rtw89_phy_multi_sta_cfo_calc()
2646 target_cfo = cfo_avg; in rtw89_phy_multi_sta_cfo_calc()
2653 cfo->cfo_avg[i] = phy_div(cfo->cfo_tail[i], in rtw89_phy_multi_sta_cfo_calc()
2655 cfo_khz_all += cfo->cfo_avg[i]; in rtw89_phy_multi_sta_cfo_calc()
2658 cfo->cfo_avg[i]); in rtw89_phy_multi_sta_cfo_calc()
2661 cfo_avg = phy_div(cfo_khz_all, (s32)sta_cnt); in rtw89_phy_multi_sta_cfo_calc()
2664 cfo_khz_all, sta_cnt, cfo_avg); in rtw89_phy_multi_sta_cfo_calc()
[all …]
Dcore.h4063 s32 cfo_avg[CFO_TRACK_MAX_USER]; member
/linux-6.6.21/drivers/net/wireless/realtek/rtw88/
Drtw8822c.c4306 s32 cfo_avg, cfo_path_sum = 0, cfo_rpt_sum; in rtw8822c_cfo_calc_avg() local
4313 cfo_avg = cfo_rpt_sum / cfo->cfo_cnt[i]; in rtw8822c_cfo_calc_avg()
4315 cfo_avg = 0; in rtw8822c_cfo_calc_avg()
4317 cfo_path_sum += cfo_avg; in rtw8822c_cfo_calc_avg()
4328 static void rtw8822c_cfo_need_adjust(struct rtw_dev *rtwdev, s32 cfo_avg) in rtw8822c_cfo_need_adjust() argument
4334 if (abs(cfo_avg) > CFO_TRK_ENABLE_TH) in rtw8822c_cfo_need_adjust()
4337 if (abs(cfo_avg) <= CFO_TRK_STOP_TH) in rtw8822c_cfo_need_adjust()
4353 s32 cfo_avg = 0; in rtw8822c_cfo_track() local
4364 cfo_avg = rtw8822c_cfo_calc_avg(rtwdev, path_num); in rtw8822c_cfo_track()
4365 rtw8822c_cfo_need_adjust(rtwdev, cfo_avg); in rtw8822c_cfo_track()
[all …]