Searched refs:cfo_avg (Results 1 – 3 of 3) sorted by relevance
/linux/drivers/net/wireless/realtek/rtw89/ |
H A D | phy.c | 4238 cfo->pre_cfo_avg[i] = cfo->cfo_avg[i]; in rtw89_phy_average_cfo_calc() 4257 s32 cfo_avg = 0; in rtw89_phy_multi_sta_cfo_calc() local 4275 cfo_avg = phy_div(cfo_khz_all, (s32)cfo_cnt_all); in rtw89_phy_multi_sta_cfo_calc() 4278 cfo_khz_all, cfo_cnt_all, cfo_avg); in rtw89_phy_multi_sta_cfo_calc() 4279 target_cfo = cfo_avg; in rtw89_phy_multi_sta_cfo_calc() 4286 cfo->cfo_avg[i] = phy_div(cfo->cfo_tail[i], in rtw89_phy_multi_sta_cfo_calc() 4288 cfo_khz_all += cfo->cfo_avg[i]; in rtw89_phy_multi_sta_cfo_calc() 4291 cfo->cfo_avg[i]); in rtw89_phy_multi_sta_cfo_calc() 4294 cfo_avg = phy_div(cfo_khz_all, (s32)sta_cnt); in rtw89_phy_multi_sta_cfo_calc() 4297 cfo_khz_all, sta_cnt, cfo_avg); in rtw89_phy_multi_sta_cfo_calc() [all …]
|
H A D | core.h | 5013 s32 cfo_avg[CFO_TRACK_MAX_USER]; member
|
/linux/drivers/net/wireless/realtek/rtw88/ |
H A D | rtw8822c.c | 4268 s32 cfo_avg, cfo_path_sum = 0, cfo_rpt_sum; in rtw8822c_cfo_calc_avg() local 4275 cfo_avg = cfo_rpt_sum / cfo->cfo_cnt[i]; in rtw8822c_cfo_calc_avg() 4277 cfo_avg = 0; in rtw8822c_cfo_calc_avg() 4279 cfo_path_sum += cfo_avg; in rtw8822c_cfo_calc_avg() 4290 static void rtw8822c_cfo_need_adjust(struct rtw_dev *rtwdev, s32 cfo_avg) in rtw8822c_cfo_need_adjust() argument 4296 if (abs(cfo_avg) > CFO_TRK_ENABLE_TH) in rtw8822c_cfo_need_adjust() 4299 if (abs(cfo_avg) <= CFO_TRK_STOP_TH) in rtw8822c_cfo_need_adjust() 4315 s32 cfo_avg = 0; in rtw8822c_cfo_track() local 4326 cfo_avg = rtw8822c_cfo_calc_avg(rtwdev, path_num); in rtw8822c_cfo_track() 4327 rtw8822c_cfo_need_adjust(rtwdev, cfo_avg); in rtw8822c_cfo_track() [all …]
|