Searched refs:cfo_avg (Results 1 – 3 of 3) sorted by relevance
/linux-6.1.9/drivers/net/wireless/realtek/rtw89/ |
D | phy.c | 2312 cfo->pre_cfo_avg[i] = cfo->cfo_avg[i]; in rtw89_phy_average_cfo_calc() 2329 s32 cfo_avg = 0; in rtw89_phy_multi_sta_cfo_calc() local 2347 cfo_avg = phy_div(cfo_khz_all, (s32)cfo_cnt_all); in rtw89_phy_multi_sta_cfo_calc() 2350 cfo_khz_all, cfo_cnt_all, cfo_avg); in rtw89_phy_multi_sta_cfo_calc() 2351 target_cfo = cfo_avg; in rtw89_phy_multi_sta_cfo_calc() 2358 cfo->cfo_avg[i] = phy_div(cfo->cfo_tail[i], in rtw89_phy_multi_sta_cfo_calc() 2360 cfo_khz_all += cfo->cfo_avg[i]; in rtw89_phy_multi_sta_cfo_calc() 2363 cfo->cfo_avg[i]); in rtw89_phy_multi_sta_cfo_calc() 2366 cfo_avg = phy_div(cfo_khz_all, (s32)sta_cnt); in rtw89_phy_multi_sta_cfo_calc() 2369 cfo_khz_all, sta_cnt, cfo_avg); in rtw89_phy_multi_sta_cfo_calc() [all …]
|
D | core.h | 3149 s32 cfo_avg[CFO_TRACK_MAX_USER]; member
|
/linux-6.1.9/drivers/net/wireless/realtek/rtw88/ |
D | rtw8822c.c | 4288 s32 cfo_avg, cfo_path_sum = 0, cfo_rpt_sum; in rtw8822c_cfo_calc_avg() local 4295 cfo_avg = cfo_rpt_sum / cfo->cfo_cnt[i]; in rtw8822c_cfo_calc_avg() 4297 cfo_avg = 0; in rtw8822c_cfo_calc_avg() 4299 cfo_path_sum += cfo_avg; in rtw8822c_cfo_calc_avg() 4310 static void rtw8822c_cfo_need_adjust(struct rtw_dev *rtwdev, s32 cfo_avg) in rtw8822c_cfo_need_adjust() argument 4316 if (abs(cfo_avg) > CFO_TRK_ENABLE_TH) in rtw8822c_cfo_need_adjust() 4319 if (abs(cfo_avg) <= CFO_TRK_STOP_TH) in rtw8822c_cfo_need_adjust() 4335 s32 cfo_avg = 0; in rtw8822c_cfo_track() local 4346 cfo_avg = rtw8822c_cfo_calc_avg(rtwdev, path_num); in rtw8822c_cfo_track() 4347 rtw8822c_cfo_need_adjust(rtwdev, cfo_avg); in rtw8822c_cfo_track() [all …]
|