Lines Matching refs:iqk_cfg

875 				       const struct rtw_8723d_iqk_cfg *iqk_cfg)  in rtw8723d_iqk_check_tx_failed()  argument
898 iqk_cfg->name); in rtw8723d_iqk_check_tx_failed()
904 const struct rtw_8723d_iqk_cfg *iqk_cfg) in rtw8723d_iqk_check_rx_failed() argument
928 iqk_cfg->name); in rtw8723d_iqk_check_rx_failed()
934 const struct rtw_8723d_iqk_cfg *iqk_cfg) in rtw8723d_iqk_one_shot() argument
936 u32 pts = (tx ? iqk_cfg->val_iqkpts : 0xf9000000); in rtw8723d_iqk_one_shot()
945 iqk_cfg->name, tx ? "TX" : "RX", in rtw8723d_iqk_one_shot()
948 iqk_cfg->name, tx ? "TX" : "RX", in rtw8723d_iqk_one_shot()
956 rtw_warn(rtwdev, "%s %s IQK isn't done\n", iqk_cfg->name, in rtw8723d_iqk_one_shot()
961 const struct rtw_8723d_iqk_cfg *iqk_cfg, in rtw8723d_iqk_txrx_path_post() argument
970 rtw_write_rf(rtwdev, RF_PATH_A, iqk_cfg->reg_padlut, 0x800, 0x0); in rtw8723d_iqk_txrx_path_post()
976 const struct rtw_8723d_iqk_cfg *iqk_cfg, in rtw8723d_iqk_tx_path() argument
981 rtw_dbg(rtwdev, RTW_DBG_RFK, "[IQK] path %s TXIQK!!\n", iqk_cfg->name); in rtw8723d_iqk_tx_path()
983 iqk_cfg->name, in rtw8723d_iqk_tx_path()
986 rtw_write32(rtwdev, REG_BB_SEL_BTG, iqk_cfg->val_bb_sel_btg); in rtw8723d_iqk_tx_path()
989 rtw_write_rf(rtwdev, RF_PATH_A, iqk_cfg->reg_lutwe, RFREG_MASK, 0x80000); in rtw8723d_iqk_tx_path()
993 rtw_write_rf(rtwdev, RF_PATH_A, iqk_cfg->reg_lutwe, RFREG_MASK, 0x00000); in rtw8723d_iqk_tx_path()
998 rtw_write32(rtwdev, REG_TXIQK_PI_A_11N, iqk_cfg->val_txiqk_pi); in rtw8723d_iqk_tx_path()
1007 rtw_write_rf(rtwdev, RF_PATH_A, iqk_cfg->reg_padlut, 0x800, 0x1); in rtw8723d_iqk_tx_path()
1008 rtw_write_rf(rtwdev, RF_PATH_A, iqk_cfg->reg_gaintx, 0x600, 0x0); in rtw8723d_iqk_tx_path()
1009 rtw_write_rf(rtwdev, RF_PATH_A, iqk_cfg->reg_gaintx, 0x1E0, 0x3); in rtw8723d_iqk_tx_path()
1013 rtw_write_rf(rtwdev, RF_PATH_A, iqk_cfg->reg_lutwe, 0x10, 0x1); in rtw8723d_iqk_tx_path()
1014 rtw_write_rf(rtwdev, RF_PATH_A, iqk_cfg->reg_bspad, 0x1, 0x1); in rtw8723d_iqk_tx_path()
1016 rtw_write_rf(rtwdev, RF_PATH_A, RF_WLINT, RFREG_MASK, iqk_cfg->val_wlint); in rtw8723d_iqk_tx_path()
1017 rtw_write_rf(rtwdev, RF_PATH_A, RF_WLSEL, RFREG_MASK, iqk_cfg->val_wlsel); in rtw8723d_iqk_tx_path()
1020 iqk_cfg->name, in rtw8723d_iqk_tx_path()
1023 iqk_cfg->name, in rtw8723d_iqk_tx_path()
1026 rtw8723d_iqk_one_shot(rtwdev, true, iqk_cfg); in rtw8723d_iqk_tx_path()
1027 status = rtw8723d_iqk_check_tx_failed(rtwdev, iqk_cfg); in rtw8723d_iqk_tx_path()
1029 rtw8723d_iqk_txrx_path_post(rtwdev, iqk_cfg, backup); in rtw8723d_iqk_tx_path()
1035 const struct rtw_8723d_iqk_cfg *iqk_cfg, in rtw8723d_iqk_rx_path() argument
1042 iqk_cfg->name); in rtw8723d_iqk_rx_path()
1044 iqk_cfg->name, in rtw8723d_iqk_rx_path()
1046 rtw_write32(rtwdev, REG_BB_SEL_BTG, iqk_cfg->val_bb_sel_btg); in rtw8723d_iqk_rx_path()
1066 rtw_write_rf(rtwdev, RF_PATH_A, iqk_cfg->reg_lutwe, RFREG_MASK, 0x80000); in rtw8723d_iqk_rx_path()
1070 rtw_write_rf(rtwdev, RF_PATH_A, iqk_cfg->reg_lutwe, RFREG_MASK, 0x00000); in rtw8723d_iqk_rx_path()
1073 rtw_write_rf(rtwdev, RF_PATH_A, iqk_cfg->reg_padlut, 0x800, 0x1); in rtw8723d_iqk_rx_path()
1074 rtw_write_rf(rtwdev, RF_PATH_A, iqk_cfg->reg_gaintx, 0x600, 0x0); in rtw8723d_iqk_rx_path()
1075 rtw_write_rf(rtwdev, RF_PATH_A, RF_WLINT, RFREG_MASK, iqk_cfg->val_wlint); in rtw8723d_iqk_rx_path()
1076 rtw_write_rf(rtwdev, RF_PATH_A, RF_WLSEL, RFREG_MASK, iqk_cfg->val_wlsel); in rtw8723d_iqk_rx_path()
1079 iqk_cfg->name, in rtw8723d_iqk_rx_path()
1082 iqk_cfg->name, in rtw8723d_iqk_rx_path()
1085 rtw8723d_iqk_one_shot(rtwdev, false, iqk_cfg); in rtw8723d_iqk_rx_path()
1086 status = rtw8723d_iqk_check_tx_failed(rtwdev, iqk_cfg); in rtw8723d_iqk_rx_path()
1101 iqk_cfg->name); in rtw8723d_iqk_rx_path()
1103 iqk_cfg->name, in rtw8723d_iqk_rx_path()
1120 rtw_write_rf(rtwdev, RF_PATH_A, iqk_cfg->reg_lutwe, 0x80000, 0x1); in rtw8723d_iqk_rx_path()
1124 rtw_write_rf(rtwdev, RF_PATH_A, iqk_cfg->reg_lutwe, RFREG_MASK, 0x00000); in rtw8723d_iqk_rx_path()
1127 iqk_cfg->name, in rtw8723d_iqk_rx_path()
1130 iqk_cfg->name, in rtw8723d_iqk_rx_path()
1133 rtw8723d_iqk_one_shot(rtwdev, false, iqk_cfg); in rtw8723d_iqk_rx_path()
1134 status |= rtw8723d_iqk_check_rx_failed(rtwdev, iqk_cfg); in rtw8723d_iqk_rx_path()
1137 rtw8723d_iqk_txrx_path_post(rtwdev, iqk_cfg, backup); in rtw8723d_iqk_rx_path()