Lines Matching refs:RF_PATH_B
61 efuse->thermal_meter[RF_PATH_B] = map->path_b_thermal; in rtw8822c_read_efuse()
243 case RF_PATH_B: in rtw8822c_get_path_write_addr()
262 case RF_PATH_B: in rtw8822c_get_path_read_addr()
368 rf_b = rtw_read_rf(rtwdev, RF_PATH_B, 0x0, RFREG_MASK); in rtw8822c_dac_cal_rf_mode()
409 case RF_PATH_B: in rtw8822c_dac_cal_adc()
419 if (path == RF_PATH_B) in rtw8822c_dac_cal_adc()
426 rtw_write_rf(rtwdev, RF_PATH_B, 0x0, RFREG_MASK, 0x10000); in rtw8822c_dac_cal_adc()
704 dm_info->dack_dck[RF_PATH_B][0][0] = val; in rtw8822c_dac_cal_backup_dck()
706 dm_info->dack_dck[RF_PATH_B][1][0] = val; in rtw8822c_dac_cal_backup_dck()
708 dm_info->dack_dck[RF_PATH_B][0][1] = val; in rtw8822c_dac_cal_backup_dck()
710 dm_info->dack_dck[RF_PATH_B][1][1] = val; in rtw8822c_dac_cal_backup_dck()
732 rtw8822c_dac_cal_backup_path(rtwdev, RF_PATH_B); in rtw8822c_dac_cal_backup()
761 val = dm_info->dack_dck[RF_PATH_B][0][0]; in rtw8822c_dac_cal_restore_dck()
763 val = dm_info->dack_dck[RF_PATH_B][0][1]; in rtw8822c_dac_cal_restore_dck()
767 val = dm_info->dack_dck[RF_PATH_B][1][0]; in rtw8822c_dac_cal_restore_dck()
769 val = dm_info->dack_dck[RF_PATH_B][1][1]; in rtw8822c_dac_cal_restore_dck()
895 if (!rtw8822c_dac_cal_restore_path(rtwdev, RF_PATH_B)) in __rtw8822c_dac_cal_restore()
909 dm_info->dack_msbk[RF_PATH_B][0][0] == 0 && in rtw8822c_dac_cal_restore()
910 dm_info->dack_msbk[RF_PATH_B][1][0] == 0) in rtw8822c_dac_cal_restore()
977 rtw8822c_dac_cal_adc(rtwdev, RF_PATH_B, &adc_ic_b, &adc_qc_b); in rtw8822c_rf_dac_cal()
979 rtw8822c_dac_cal_step1(rtwdev, RF_PATH_B); in rtw8822c_rf_dac_cal()
980 rtw8822c_dac_cal_step2(rtwdev, RF_PATH_B, &ic, &qc); in rtw8822c_rf_dac_cal()
984 rtw8822c_dac_cal_step3(rtwdev, RF_PATH_B, adc_ic_b, adc_qc_b, in rtw8822c_rf_dac_cal()
990 rtw8822c_dac_cal_step4(rtwdev, RF_PATH_B); in rtw8822c_rf_dac_cal()
1072 bb_gain[RF_PATH_B][i] = FIELD_GET(PPG_2G_B_MASK, pg_pwr); in rtw8822c_power_trim()
1222 reg_rf0_b = (u8)rtw_read_rf(rtwdev, RF_PATH_B, in check_rf_status()
1267 } else if (path == RF_PATH_B) { in rtw8822c_txgapk_bb_dpk()
1287 } else if (path == RF_PATH_B) { in rtw8822c_txgapk_afe_dpk()
1323 } else if (path == RF_PATH_B) { in rtw8822c_txgapk_afe_dpk_restore()
1374 } else if (path == RF_PATH_B) { in rtw8822c_txgapk_bb_dpk_restore()
2245 rtw_write_rf(rtwdev, RF_PATH_B, RF_LUTWE2, 0x04, 0x01); in rtw8822c_set_channel_rf()
2246 rtw_write_rf(rtwdev, RF_PATH_B, RF_LUTWA, 0x1f, 0x12); in rtw8822c_set_channel_rf()
2247 rtw_write_rf(rtwdev, RF_PATH_B, RF_LUTWD0, 0xfffff, rf_rxbb); in rtw8822c_set_channel_rf()
2248 rtw_write_rf(rtwdev, RF_PATH_B, RF_LUTWE2, 0x04, 0x00); in rtw8822c_set_channel_rf()
2251 rtw_write_rf(rtwdev, RF_PATH_B, RF_CFGCH, RFREG_MASK, rf_reg18); in rtw8822c_set_channel_rf()
2560 rx_power[RF_PATH_B] = GET_PHY_STAT_P0_PWDB_B(phy_status); in query_phy_status_page0()
2570 rx_power[RF_PATH_B] += (l_bnd - gain_b) << 1; in query_phy_status_page0()
2572 rx_power[RF_PATH_B] -= (gain_b - u_bnd) << 1; in query_phy_status_page0()
2575 rx_power[RF_PATH_B] -= 110; in query_phy_status_page0()
2583 pkt_stat->rx_power[RF_PATH_B] = rx_power[RF_PATH_B]; in query_phy_status_page0()
2625 pkt_stat->rx_power[RF_PATH_B] = GET_PHY_STAT_P1_PWDB_B(phy_status) - 110; in query_phy_status_page1()
2629 pkt_stat->rx_power[RF_PATH_B], in query_phy_status_page1()
2635 pkt_stat->rx_evm[RF_PATH_B] = GET_PHY_STAT_P1_RXEVM_B(phy_status); in query_phy_status_page1()
2638 pkt_stat->rx_snr[RF_PATH_B] = GET_PHY_STAT_P1_RXSNR_B(phy_status); in query_phy_status_page1()
2641 pkt_stat->cfo_tail[RF_PATH_B] = GET_PHY_STAT_P1_CFO_TAIL_B(phy_status); in query_phy_status_page1()
2649 } else if (path == RF_PATH_B) { in query_phy_status_page1()
2779 hal->tx_pwr_tbl[RF_PATH_B][DESC_RATE11M]}; in rtw8822c_set_tx_power_index()
2781 hal->tx_pwr_tbl[RF_PATH_B][DESC_RATEMCS7]}; in rtw8822c_set_tx_power_index()
2791 pwr_b = hal->tx_pwr_tbl[RF_PATH_B][rate]; in rtw8822c_set_tx_power_index()
2932 rtw_write_rf(rtwdev, RF_PATH_B, RF_SYN_CTRL, RFREG_MASK, 0x80010); in rtw8822c_do_lck()
2984 rtw_write_rf(rtwdev, RF_PATH_B, RF_MODOPT, 0xfffff, 0x40000); in rtw8822c_coex_cfg_init()
3008 rtw_write_rf(rtwdev, RF_PATH_B, 0x1, 0xfffff, rf_0x1); in rtw8822c_coex_cfg_gnt_fix()
3125 rtw_write_rf(rtwdev, RF_PATH_B, RF_RCKD, RFREG_MASK, 0x22); in rtw8822c_coex_cfg_wl_rx_gain()
3126 rtw_write_rf(rtwdev, RF_PATH_B, RF_RCK, RFREG_MASK, 0x36); in rtw8822c_coex_cfg_wl_rx_gain()
3134 rtw_write_rf(rtwdev, RF_PATH_B, RF_RCKD, RFREG_MASK, 0x20); in rtw8822c_coex_cfg_wl_rx_gain()
3135 rtw_write_rf(rtwdev, RF_PATH_B, RF_RCK, RFREG_MASK, 0x0); in rtw8822c_coex_cfg_wl_rx_gain()
3255 rf_reg_bak[i][RF_PATH_B] = rtw_read_rf(rtwdev, RF_PATH_B, in rtw8822c_dpk_backup_rf_registers()
3269 rtw_write_rf(rtwdev, RF_PATH_B, rf_reg[i], RFREG_MASK, in rtw8822c_dpk_reload_rf_registers()
3270 rf_reg_bak[i][RF_PATH_B]); in rtw8822c_dpk_reload_rf_registers()
3332 reg_b = (u8)rtw_read_rf(rtwdev, RF_PATH_B, 0x00, 0xf0000); in rtw8822c_dpk_tx_pause()
3788 } else if (path == RF_PATH_B) { in rtw8822c_dpk_get_coef()
4089 rtw8822c_dpk_calibrate(rtwdev, RF_PATH_B); in rtw8822c_dpk_path_select()
4091 rtw8822c_dpk_on(rtwdev, RF_PATH_B); in rtw8822c_dpk_path_select()
4111 if (test_bit(RF_PATH_B, dpk_info->dpk_path_ok)) { in rtw8822c_dpk_enable_disable()
4113 rtw_write8(rtwdev, REG_DPD_CTL0_S1, dpk_info->dpk_gs[RF_PATH_B]); in rtw8822c_dpk_enable_disable()
4123 !test_bit(RF_PATH_B, dpk_info->dpk_path_ok) && in rtw8822c_dpk_reload_data()
4471 case RF_PATH_B: in rtw8822c_pwrtrack_set()
4533 rtw_write_rf(rtwdev, RF_PATH_B, RF_T_METER, BIT(19), 0x01); in rtw8822c_pwr_track()
4534 rtw_write_rf(rtwdev, RF_PATH_B, RF_T_METER, BIT(19), 0x00); in rtw8822c_pwr_track()
4535 rtw_write_rf(rtwdev, RF_PATH_B, RF_T_METER, BIT(19), 0x01); in rtw8822c_pwr_track()