Lines Matching refs:iqk_info

745 	struct rtw89_iqk_info *iqk_info = &rtwdev->iqk;  in _iqk_rxk_setting()  local
761 switch (iqk_info->iqk_band[path]) { in _iqk_rxk_setting()
804 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk; in _iqk_one_shot() local
834 (((0x8 + iqk_info->iqk_bw[path]) & 0xf) << 8); in _iqk_one_shot()
843 (((0xb + iqk_info->iqk_bw[path]) & 0xf) << 8); in _iqk_one_shot()
863 if (iqk_info->iqk_xym_en) in _iqk_one_shot()
865 if (iqk_info->iqk_fft_en) in _iqk_one_shot()
867 if (iqk_info->iqk_sram_en) in _iqk_one_shot()
869 if (iqk_info->iqk_cfir_en) { in _iqk_one_shot()
893 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk; in _rxk_group_sel() local
905 switch (iqk_info->iqk_band[path]) { in _rxk_group_sel()
922 rf0 | iqk_info->syn1to2); in _rxk_group_sel()
934 switch (iqk_info->iqk_band[path]) { in _rxk_group_sel()
947 iqk_info->nb_rxcfir[path] = 0x40000000; in _rxk_group_sel()
950 iqk_info->is_wb_rxiqk[path] = true; in _rxk_group_sel()
957 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk; in _iqk_nbrxk() local
968 switch (iqk_info->iqk_band[path]) { in _iqk_nbrxk()
985 rf0 | iqk_info->syn1to2); in _iqk_nbrxk()
996 switch (iqk_info->iqk_band[path]) { in _iqk_nbrxk()
1011 iqk_info->nb_rxcfir[path] = tmp | 0x2; in _iqk_nbrxk()
1013 iqk_info->nb_rxcfir[path] = 0x40000002; in _iqk_nbrxk()
1020 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk; in _iqk_rxclk_setting() local
1022 if (iqk_info->iqk_bw[path] == RTW89_CHANNEL_WIDTH_80) { in _iqk_rxclk_setting()
1050 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk; in _txk_group_sel() local
1056 switch (iqk_info->iqk_band[path]) { in _txk_group_sel()
1090 iqk_info->nb_txcfir[path] = 0x40000000; in _txk_group_sel()
1093 iqk_info->is_wb_txiqk[path] = true; in _txk_group_sel()
1103 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk; in _iqk_nbtxk() local
1112 switch (iqk_info->iqk_band[path]) { in _iqk_nbtxk()
1137 iqk_info->nb_txcfir[path] = tmp | 0x2; in _iqk_nbtxk()
1139 iqk_info->nb_txcfir[path] = 0x40000002; in _iqk_nbtxk()
1149 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk; in _lok_res_table() local
1153 if (iqk_info->iqk_band[path] == RTW89_BAND_2G) in _lok_res_table()
1184 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk; in _iqk_lok() local
1190 switch (iqk_info->iqk_band[path]) { in _iqk_lok()
1205 rf0 | iqk_info->syn1to2); in _iqk_lok()
1214 iqk_info->lok_cor_fail[0][path] = tmp; in _iqk_lok()
1218 iqk_info->lok_fin_fail[0][path] = tmp; in _iqk_lok()
1225 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk; in _iqk_txk_setting() local
1237 switch (iqk_info->iqk_band[path]) { in _iqk_txk_setting()
1251 0x403e0 | iqk_info->syn1to2); in _iqk_txk_setting()
1267 0x403e0 | iqk_info->syn1to2); in _iqk_txk_setting()
1283 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk; in _iqk_info_iqk() local
1290 iqk_info->lok_cor_fail[0][path]); in _iqk_info_iqk()
1292 iqk_info->lok_fin_fail[0][path]); in _iqk_info_iqk()
1294 iqk_info->iqk_tx_fail[0][path]); in _iqk_info_iqk()
1296 iqk_info->iqk_rx_fail[0][path]); in _iqk_info_iqk()
1297 flag = iqk_info->lok_cor_fail[0][path]; in _iqk_info_iqk()
1299 flag = iqk_info->lok_fin_fail[0][path]; in _iqk_info_iqk()
1301 flag = iqk_info->iqk_tx_fail[0][path]; in _iqk_info_iqk()
1303 flag = iqk_info->iqk_rx_fail[0][path]; in _iqk_info_iqk()
1307 iqk_info->bp_iqkenable[path] = tmp; in _iqk_info_iqk()
1309 iqk_info->bp_txkresult[path] = tmp; in _iqk_info_iqk()
1311 iqk_info->bp_rxkresult[path] = tmp; in _iqk_info_iqk()
1314 (u8)iqk_info->iqk_times); in _iqk_info_iqk()
1318 iqk_info->iqk_fail_cnt++; in _iqk_info_iqk()
1320 iqk_info->iqk_fail_cnt); in _iqk_info_iqk()
1326 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk; in _iqk_by_path() local
1340 if (iqk_info->is_nbiqk) in _iqk_by_path()
1341 iqk_info->iqk_tx_fail[0][path] = _iqk_nbtxk(rtwdev, phy_idx, path); in _iqk_by_path()
1343 iqk_info->iqk_tx_fail[0][path] = _txk_group_sel(rtwdev, phy_idx, path); in _iqk_by_path()
1347 if (iqk_info->is_nbiqk || rtwdev->dbcc_en || iqk_info->iqk_band[path] == RTW89_BAND_2G) in _iqk_by_path()
1348 iqk_info->iqk_rx_fail[0][path] = _iqk_nbrxk(rtwdev, phy_idx, path); in _iqk_by_path()
1350 iqk_info->iqk_rx_fail[0][path] = _rxk_group_sel(rtwdev, phy_idx, path); in _iqk_by_path()
1358 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk; in _iqk_get_ch_info() local
1366 if (iqk_info->iqk_mcc_ch[idx][path] == 0) { in _iqk_get_ch_info()
1372 idx = iqk_info->iqk_table_idx[path] + 1; in _iqk_get_ch_info()
1380 iqk_info->iqk_band[path] = chan->band_type; in _iqk_get_ch_info()
1381 iqk_info->iqk_bw[path] = chan->band_width; in _iqk_get_ch_info()
1382 iqk_info->iqk_ch[path] = chan->channel; in _iqk_get_ch_info()
1386 iqk_info->iqk_band[path]); in _iqk_get_ch_info()
1388 path, iqk_info->iqk_bw[path]); in _iqk_get_ch_info()
1390 path, iqk_info->iqk_ch[path]); in _iqk_get_ch_info()
1394 iqk_info->iqk_band[path] == 0 ? "2G" : in _iqk_get_ch_info()
1395 iqk_info->iqk_band[path] == 1 ? "5G" : "6G", in _iqk_get_ch_info()
1396 iqk_info->iqk_ch[path], in _iqk_get_ch_info()
1397 iqk_info->iqk_bw[path] == 0 ? "20M" : in _iqk_get_ch_info()
1398 iqk_info->iqk_bw[path] == 1 ? "40M" : "80M"); in _iqk_get_ch_info()
1400 iqk_info->syn1to2 = 0x1; in _iqk_get_ch_info()
1402 iqk_info->syn1to2 = 0x0; in _iqk_get_ch_info()
1406 (u8)iqk_info->iqk_band[path]); in _iqk_get_ch_info()
1408 (u8)iqk_info->iqk_bw[path]); in _iqk_get_ch_info()
1410 (u8)iqk_info->iqk_ch[path]); in _iqk_get_ch_info()
1423 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk; in _iqk_restore() local
1426 iqk_info->nb_txcfir[path]); in _iqk_restore()
1428 iqk_info->nb_rxcfir[path]); in _iqk_restore()
1471 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk; in _iqk_preset() local
1472 u8 idx = iqk_info->iqk_table_idx[path]; in _iqk_preset()
1518 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk; in _iqk_dbcc() local
1521 iqk_info->iqk_times++; in _iqk_dbcc()
1580 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk; in _iqk_init() local
1584 if (iqk_info->is_iqk_init) in _iqk_init()
1588 iqk_info->is_iqk_init = true; in _iqk_init()
1589 iqk_info->is_nbiqk = false; in _iqk_init()
1590 iqk_info->iqk_fft_en = false; in _iqk_init()
1591 iqk_info->iqk_sram_en = false; in _iqk_init()
1592 iqk_info->iqk_cfir_en = false; in _iqk_init()
1593 iqk_info->iqk_xym_en = false; in _iqk_init()
1594 iqk_info->iqk_times = 0x0; in _iqk_init()
1597 iqk_info->iqk_channel[ch] = 0x0; in _iqk_init()
1599 iqk_info->lok_cor_fail[ch][path] = false; in _iqk_init()
1600 iqk_info->lok_fin_fail[ch][path] = false; in _iqk_init()
1601 iqk_info->iqk_tx_fail[ch][path] = false; in _iqk_init()
1602 iqk_info->iqk_rx_fail[ch][path] = false; in _iqk_init()
1603 iqk_info->iqk_mcc_ch[ch][path] = 0x0; in _iqk_init()
1604 iqk_info->iqk_table_idx[path] = 0x0; in _iqk_init()
1612 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk; in _doiqk() local
1621 iqk_info->iqk_times++; in _doiqk()
1622 iqk_info->version = RTW8852A_IQK_VER; in _doiqk()
1624 rtw89_debug(rtwdev, RTW89_DBG_RFK, "[IQK]Test Ver 0x%x\n", iqk_info->version); in _doiqk()