Lines Matching refs:RF_PATH_A
48 efuse->thermal_meter[RF_PATH_A] = map->path_a_thermal; in rtw8822c_read_efuse()
222 case RF_PATH_A: in rtw8822c_get_path_write_addr()
241 case RF_PATH_A: in rtw8822c_get_path_read_addr()
349 rf_a = rtw_read_rf(rtwdev, RF_PATH_A, 0x0, RFREG_MASK); in rtw8822c_dac_cal_rf_mode()
388 case RF_PATH_A: in rtw8822c_dac_cal_adc()
407 rtw_write_rf(rtwdev, RF_PATH_A, 0x0, RFREG_MASK, 0x10000); in rtw8822c_dac_cal_adc()
464 if (path == RF_PATH_A) { in rtw8822c_dac_cal_step1()
677 dm_info->dack_dck[RF_PATH_A][0][0] = val; in rtw8822c_dac_cal_backup_dck()
679 dm_info->dack_dck[RF_PATH_A][0][1] = val; in rtw8822c_dac_cal_backup_dck()
681 dm_info->dack_dck[RF_PATH_A][1][0] = val; in rtw8822c_dac_cal_backup_dck()
683 dm_info->dack_dck[RF_PATH_A][1][1] = val; in rtw8822c_dac_cal_backup_dck()
709 rtw8822c_dac_cal_backup_path(rtwdev, RF_PATH_A); in rtw8822c_dac_cal_backup()
731 val = dm_info->dack_dck[RF_PATH_A][0][0]; in rtw8822c_dac_cal_restore_dck()
733 val = dm_info->dack_dck[RF_PATH_A][0][1]; in rtw8822c_dac_cal_restore_dck()
737 val = dm_info->dack_dck[RF_PATH_A][1][0]; in rtw8822c_dac_cal_restore_dck()
739 val = dm_info->dack_dck[RF_PATH_A][1][1]; in rtw8822c_dac_cal_restore_dck()
874 if (!rtw8822c_dac_cal_restore_path(rtwdev, RF_PATH_A)) in __rtw8822c_dac_cal_restore()
889 if (dm_info->dack_msbk[RF_PATH_A][0][0] == 0 && in rtw8822c_dac_cal_restore()
890 dm_info->dack_msbk[RF_PATH_A][1][0] == 0 && in rtw8822c_dac_cal_restore()
943 rtw8822c_dac_cal_adc(rtwdev, RF_PATH_A, &adc_ic_a, &adc_qc_a); in rtw8822c_rf_dac_cal()
945 rtw8822c_dac_cal_step1(rtwdev, RF_PATH_A); in rtw8822c_rf_dac_cal()
946 rtw8822c_dac_cal_step2(rtwdev, RF_PATH_A, &ic, &qc); in rtw8822c_rf_dac_cal()
950 rtw8822c_dac_cal_step3(rtwdev, RF_PATH_A, adc_ic_a, adc_qc_a, in rtw8822c_rf_dac_cal()
956 rtw8822c_dac_cal_step4(rtwdev, RF_PATH_A); in rtw8822c_rf_dac_cal()
996 x2k_busy = rtw_read_rf(rtwdev, RF_PATH_A, 0xb8, BIT(15)); in rtw8822c_rf_x2_check()
998 rtw_write_rf(rtwdev, RF_PATH_A, 0xb8, RFREG_MASK, 0xC4440); in rtw8822c_rf_x2_check()
999 rtw_write_rf(rtwdev, RF_PATH_A, 0xba, RFREG_MASK, 0x6840D); in rtw8822c_rf_x2_check()
1000 rtw_write_rf(rtwdev, RF_PATH_A, 0xb8, RFREG_MASK, 0x80440); in rtw8822c_rf_x2_check()
1053 bb_gain[RF_PATH_A][i] = FIELD_GET(PPG_2G_A_MASK, pg_pwr); in rtw8822c_power_trim()
1202 reg_rf0_a = (u8)rtw_read_rf(rtwdev, RF_PATH_A, in check_rf_status()
1242 if (path == RF_PATH_A) { in rtw8822c_txgapk_bb_dpk()
1267 if (path == RF_PATH_A) { in rtw8822c_txgapk_afe_dpk()
1303 if (path == RF_PATH_A) { in rtw8822c_txgapk_afe_dpk_restore()
1349 if (path == RF_PATH_A) { in rtw8822c_txgapk_bb_dpk_restore()
1833 for (path = RF_PATH_A; path < RTW_RF_PATH_MAX; path++) { in rtw8822c_pwrtrack_init()
2189 rf_reg18 = rtw_read_rf(rtwdev, RF_PATH_A, 0x18, RFREG_MASK); in rtw8822c_set_channel_rf()
2222 rtw_write_rf(rtwdev, RF_PATH_A, RF_LUTWE2, 0x04, 0x01); in rtw8822c_set_channel_rf()
2223 rtw_write_rf(rtwdev, RF_PATH_A, RF_LUTWA, 0x1f, 0x12); in rtw8822c_set_channel_rf()
2224 rtw_write_rf(rtwdev, RF_PATH_A, RF_LUTWD0, 0xfffff, rf_rxbb); in rtw8822c_set_channel_rf()
2225 rtw_write_rf(rtwdev, RF_PATH_A, RF_LUTWE2, 0x04, 0x00); in rtw8822c_set_channel_rf()
2232 rtw_write_rf(rtwdev, RF_PATH_A, RF_CFGCH, RFREG_MASK, rf_reg18); in rtw8822c_set_channel_rf()
2541 rx_power[RF_PATH_A] = GET_PHY_STAT_P0_PWDB_A(phy_status); in query_phy_status_page0()
2548 rx_power[RF_PATH_A] += (l_bnd - gain_a) << 1; in query_phy_status_page0()
2550 rx_power[RF_PATH_A] -= (gain_a - u_bnd) << 1; in query_phy_status_page0()
2556 rx_power[RF_PATH_A] -= 110; in query_phy_status_page0()
2564 pkt_stat->rx_power[RF_PATH_A] = rx_power[RF_PATH_A]; in query_phy_status_page0()
2574 pkt_stat->signal_power = max(pkt_stat->rx_power[RF_PATH_A], in query_phy_status_page0()
2606 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1()
2610 pkt_stat->signal_power = max3(pkt_stat->rx_power[RF_PATH_A], in query_phy_status_page1()
2616 pkt_stat->rx_evm[RF_PATH_A] = GET_PHY_STAT_P1_RXEVM_A(phy_status); in query_phy_status_page1()
2619 pkt_stat->rx_snr[RF_PATH_A] = GET_PHY_STAT_P1_RXSNR_A(phy_status); in query_phy_status_page1()
2622 pkt_stat->cfo_tail[RF_PATH_A] = GET_PHY_STAT_P1_CFO_TAIL_A(phy_status); in query_phy_status_page1()
2628 if (path == RF_PATH_A) { in query_phy_status_page1()
2760 u8 pwr_ref_cck[2] = {hal->tx_pwr_tbl[RF_PATH_A][DESC_RATE11M], in rtw8822c_set_tx_power_index()
2762 u8 pwr_ref_ofdm[2] = {hal->tx_pwr_tbl[RF_PATH_A][DESC_RATEMCS7], in rtw8822c_set_tx_power_index()
2772 pwr_a = hal->tx_pwr_tbl[RF_PATH_A][rate]; in rtw8822c_set_tx_power_index()
2906 rtw_write_rf(rtwdev, RF_PATH_A, RF_SYN_CTRL, RFREG_MASK, 0x80010); in rtw8822c_do_lck()
2907 rtw_write_rf(rtwdev, RF_PATH_A, RF_SYN_PFD, RFREG_MASK, 0x1F0FA); in rtw8822c_do_lck()
2909 rtw_write_rf(rtwdev, RF_PATH_A, RF_AAC_CTRL, RFREG_MASK, 0x80000); in rtw8822c_do_lck()
2910 rtw_write_rf(rtwdev, RF_PATH_A, RF_SYN_AAC, RFREG_MASK, 0x80001); in rtw8822c_do_lck()
2912 true, rtwdev, RF_PATH_A, RF_AAC_CTRL, 0x1000); in rtw8822c_do_lck()
2913 rtw_write_rf(rtwdev, RF_PATH_A, RF_SYN_PFD, RFREG_MASK, 0x1F0F8); in rtw8822c_do_lck()
2916 rtw_write_rf(rtwdev, RF_PATH_A, RF_FAST_LCK, RFREG_MASK, 0x0f000); in rtw8822c_do_lck()
2917 rtw_write_rf(rtwdev, RF_PATH_A, RF_FAST_LCK, RFREG_MASK, 0x4f000); in rtw8822c_do_lck()
2919 rtw_write_rf(rtwdev, RF_PATH_A, RF_FAST_LCK, RFREG_MASK, 0x0f000); in rtw8822c_do_lck()
3105 rtw_write_rf(rtwdev, RF_PATH_A, RF_RCKD, RFREG_MASK, 0x22); in rtw8822c_coex_cfg_wl_rx_gain()
3106 rtw_write_rf(rtwdev, RF_PATH_A, RF_RCK, RFREG_MASK, 0x36); in rtw8822c_coex_cfg_wl_rx_gain()
3114 rtw_write_rf(rtwdev, RF_PATH_A, RF_RCKD, RFREG_MASK, 0x20); in rtw8822c_coex_cfg_wl_rx_gain()
3115 rtw_write_rf(rtwdev, RF_PATH_A, RF_RCK, RFREG_MASK, 0x0); in rtw8822c_coex_cfg_wl_rx_gain()
3235 rf_reg_bak[i][RF_PATH_A] = rtw_read_rf(rtwdev, RF_PATH_A, in rtw8822c_dpk_backup_rf_registers()
3249 rtw_write_rf(rtwdev, RF_PATH_A, rf_reg[i], RFREG_MASK, in rtw8822c_dpk_reload_rf_registers()
3250 rf_reg_bak[i][RF_PATH_A]); in rtw8822c_dpk_reload_rf_registers()
3262 reg = rtw_read_rf(rtwdev, RF_PATH_A, 0x18, RFREG_MASK); in rtw8822c_dpk_information()
3313 reg_a = (u8)rtw_read_rf(rtwdev, RF_PATH_A, 0x00, 0xf0000); in rtw8822c_dpk_tx_pause()
3767 if (path == RF_PATH_A) { in rtw8822c_dpk_get_coef()
3905 if (path == RF_PATH_A) { in rtw8822c_dpk_cal_gs()
3943 if (path == RF_PATH_A) in rtw8822c_dpk_cal_gs()
3954 if (path == RF_PATH_A) in rtw8822c_dpk_cal_gs()
4070 rtw8822c_dpk_calibrate(rtwdev, RF_PATH_A); in rtw8822c_dpk_path_select()
4072 rtw8822c_dpk_on(rtwdev, RF_PATH_A); in rtw8822c_dpk_path_select()
4089 if (test_bit(RF_PATH_A, dpk_info->dpk_path_ok)) { in rtw8822c_dpk_enable_disable()
4091 rtw_write8(rtwdev, REG_DPD_CTL0_S0, dpk_info->dpk_gs[RF_PATH_A]); in rtw8822c_dpk_enable_disable()
4104 if (!test_bit(RF_PATH_A, dpk_info->dpk_path_ok) && in rtw8822c_dpk_reload_data()
4126 if (path == RF_PATH_A) in rtw8822c_dpk_reload_data()
4143 channel = (u8)(rtw_read_rf(rtwdev, RF_PATH_A, 0x18, RFREG_MASK) & 0xff); in rtw8822c_dpk_reload()
4175 for (path = RF_PATH_A; path < DPK_RF_PATH_NUM; path++) in rtw8822c_do_dpk()
4449 case RF_PATH_A: in rtw8822c_pwrtrack_set()
4511 rtw_write_rf(rtwdev, RF_PATH_A, RF_T_METER, BIT(19), 0x01); in rtw8822c_pwr_track()
4512 rtw_write_rf(rtwdev, RF_PATH_A, RF_T_METER, BIT(19), 0x00); in rtw8822c_pwr_track()
4513 rtw_write_rf(rtwdev, RF_PATH_A, RF_T_METER, BIT(19), 0x01); in rtw8822c_pwr_track()