Lines Matching refs:iqk_info

793 	struct rtw89_iqk_info *iqk_info = &rtwdev->iqk;
796 switch (iqk_info->iqk_band[path]) {
817 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk;
837 (((0x8 + iqk_info->iqk_bw[path]) & 0xf) << 8);
845 (((0xb + iqk_info->iqk_bw[path]) & 0xf) << 8);
872 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk;
878 switch (iqk_info->iqk_band[path]) {
913 iqk_info->nb_rxcfir[path] = 0x40000002;
916 iqk_info->is_wb_rxiqk[path] = false;
918 iqk_info->nb_rxcfir[path] = 0x40000000;
921 iqk_info->is_wb_rxiqk[path] = true;
930 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk;
935 switch (iqk_info->iqk_band[path]) {
968 iqk_info->nb_rxcfir[path] =
971 iqk_info->nb_rxcfir[path] = 0x40000002;
978 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk;
980 if (iqk_info->iqk_bw[path] == RTW89_CHANNEL_WIDTH_80) {
1017 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk;
1023 switch (iqk_info->iqk_band[path]) {
1064 iqk_info->nb_txcfir[path] = 0x40000002;
1067 iqk_info->is_wb_txiqk[path] = false;
1069 iqk_info->nb_txcfir[path] = 0x40000000;
1072 iqk_info->is_wb_txiqk[path] = true;
1080 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk;
1084 switch (iqk_info->iqk_band[path]) {
1117 iqk_info->nb_txcfir[path] =
1121 iqk_info->nb_txcfir[path] = 0x40000002;
1128 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk;
1134 if (iqk_info->iqk_band[path] == RTW89_BAND_2G)
1148 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk;
1160 ch = (iqk_info->iqk_times / 2) % RTW89_IQK_CHS_NR;
1167 iqk_info->lok_idac[ch][path] = tmp;
1178 iqk_info->lok_vbuf[ch][path] = tmp;
1182 iqk_info->lok_idac[ch][path]);
1185 iqk_info->lok_vbuf[ch][path]);
1192 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk;
1197 switch (iqk_info->iqk_band[path]) {
1210 switch (iqk_info->iqk_band[path]) {
1223 iqk_info->lok_cor_fail[0][path] = tmp;
1225 switch (iqk_info->iqk_band[path]) {
1239 switch (iqk_info->iqk_band[path]) {
1253 iqk_info->lok_fin_fail[0][path] = tmp;
1255 switch (iqk_info->iqk_band[path]) {
1274 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk;
1276 switch (iqk_info->iqk_band[path]) {
1317 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk;
1321 flag = iqk_info->lok_cor_fail[0][path];
1323 flag = iqk_info->lok_fin_fail[0][path];
1325 flag = iqk_info->iqk_tx_fail[0][path];
1327 flag = iqk_info->iqk_rx_fail[0][path];
1331 iqk_info->bp_iqkenable[path] = tmp;
1333 iqk_info->bp_txkresult[path] = tmp;
1335 iqk_info->bp_rxkresult[path] = tmp;
1337 rtw89_phy_write32_mask(rtwdev, R_IQKINF2, B_IQKINF2_KCNT, iqk_info->iqk_times);
1341 iqk_info->iqk_fail_cnt++;
1343 iqk_info->iqk_fail_cnt);
1348 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk;
1369 if (iqk_info->is_nbiqk)
1370 iqk_info->iqk_tx_fail[0][path] = _iqk_nbtxk(rtwdev, phy_idx, path);
1372 iqk_info->iqk_tx_fail[0][path] = _txk_group_sel(rtwdev, phy_idx, path);
1377 if (iqk_info->is_nbiqk)
1378 iqk_info->iqk_rx_fail[0][path] = _iqk_nbrxk(rtwdev, phy_idx, path);
1380 iqk_info->iqk_rx_fail[0][path] = _rxk_group_sel(rtwdev, phy_idx, path);
1388 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk;
1395 if (iqk_info->iqk_mcc_ch[idx][path] == 0) {
1403 idx = iqk_info->iqk_table_idx[path] + 1;
1412 iqk_info->iqk_band[path] = chan->band_type;
1413 iqk_info->iqk_bw[path] = chan->band_width;
1414 iqk_info->iqk_ch[path] = chan->channel;
1415 iqk_info->iqk_mcc_ch[idx][path] = chan->channel;
1416 iqk_info->iqk_table_idx[path] = idx;
1423 iqk_info->iqk_times, idx);
1425 idx, path, iqk_info->iqk_mcc_ch[idx][path]);
1428 iqk_info->syn1to2 = 0x1;
1430 iqk_info->syn1to2 = 0x0;
1433 "[IQK]S%x, iqk_info->syn1to2= 0x%x\n", path,
1434 iqk_info->syn1to2);
1439 iqk_info->iqk_band[path]);
1442 iqk_info->iqk_bw[path]);
1444 iqk_info->iqk_ch[path]);
1454 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk;
1458 iqk_info->nb_txcfir[path]);
1460 iqk_info->nb_rxcfir[path]);
1508 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk;
1511 idx = iqk_info->iqk_table_idx[path];
1554 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk;
1558 if (iqk_info->is_iqk_init)
1562 iqk_info->is_iqk_init = true;
1563 iqk_info->is_nbiqk = false;
1564 iqk_info->iqk_fft_en = false;
1565 iqk_info->iqk_sram_en = false;
1566 iqk_info->iqk_cfir_en = false;
1567 iqk_info->iqk_xym_en = false;
1568 iqk_info->iqk_times = 0x0;
1571 iqk_info->iqk_channel[idx] = 0x0;
1573 iqk_info->lok_cor_fail[idx][path] = false;
1574 iqk_info->lok_fin_fail[idx][path] = false;
1575 iqk_info->iqk_tx_fail[idx][path] = false;
1576 iqk_info->iqk_rx_fail[idx][path] = false;
1577 iqk_info->iqk_mcc_ch[idx][path] = 0x0;
1578 iqk_info->iqk_table_idx[path] = 0x0;
1613 struct rtw89_iqk_info *iqk_info = &rtwdev->iqk;
1622 iqk_info->iqk_times++;
1623 iqk_info->version = RTW8852B_IQK_VER;
1625 rtw89_debug(rtwdev, RTW89_DBG_RFK, "[IQK]Test Ver 0x%x\n", iqk_info->version);