Lines Matching refs:RF_PATH_A

111 	ewma_thermal_init(&dm_info->avg_thermal[RF_PATH_A]);  in rtw8821c_pwrtrack_init()
112 dm_info->delta_power_index[RF_PATH_A] = 0; in rtw8821c_pwrtrack_init()
113 dm_info->delta_power_index_last[RF_PATH_A] = 0; in rtw8821c_pwrtrack_init()
282 rf_reg18 = rtw_read_rf(rtwdev, RF_PATH_A, 0x18, RFREG_MASK); in rtw8821c_set_channel_rf()
316 rtw_write_rf(rtwdev, RF_PATH_A, RF_LUTDBG, BIT(6), 0x1); in rtw8821c_set_channel_rf()
317 rtw_write_rf(rtwdev, RF_PATH_A, 0x64, 0xf, 0xf); in rtw8821c_set_channel_rf()
320 rtw_write_rf(rtwdev, RF_PATH_A, RF_LUTDBG, BIT(6), 0x0); in rtw8821c_set_channel_rf()
323 rtw_write_rf(rtwdev, RF_PATH_A, 0x18, RFREG_MASK, rf_reg18); in rtw8821c_set_channel_rf()
325 rtw_write_rf(rtwdev, RF_PATH_A, RF_XTALX2, BIT(19), 0); in rtw8821c_set_channel_rf()
326 rtw_write_rf(rtwdev, RF_PATH_A, RF_XTALX2, BIT(19), 1); in rtw8821c_set_channel_rf()
527 pkt_stat->rx_power[RF_PATH_A] = rx_power; in query_phy_status_page0()
529 dm_info->rssi[RF_PATH_A] = pkt_stat->rssi; in query_phy_status_page0()
555 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1()
557 dm_info->rssi[RF_PATH_A] = pkt_stat->rssi; in query_phy_status_page1()
559 pkt_stat->signal_power = max(pkt_stat->rx_power[RF_PATH_A], in query_phy_status_page1()
728 rf_reg = rtw_read_rf(rtwdev, RF_PATH_A, RF_DTXLOK, RFREG_MASK); in rtw8821c_do_iqk()
733 rtw_write_rf(rtwdev, RF_PATH_A, RF_DTXLOK, RFREG_MASK, 0x0); in rtw8821c_do_iqk()
952 s8 delta_pwr_idx = dm_info->delta_power_index[RF_PATH_A]; in rtw8821c_txagc_swing_offset()
1021 tx_pwr_idx = rtw_phy_get_tx_power_index(rtwdev, RF_PATH_A, tx_rate, in rtw8821c_pwrtrack_set()
1043 thermal_value = rtw_read_rf(rtwdev, RF_PATH_A, RF_T_METER, 0xfc00); in rtw8821c_phy_pwrtrack()
1045 rtw_phy_pwrtrack_avg(rtwdev, thermal_value, RF_PATH_A); in rtw8821c_phy_pwrtrack()
1050 RF_PATH_A)) in rtw8821c_phy_pwrtrack()
1053 delta = rtw_phy_pwrtrack_get_delta(rtwdev, RF_PATH_A); in rtw8821c_phy_pwrtrack()
1057 dm_info->delta_power_index[RF_PATH_A] = in rtw8821c_phy_pwrtrack()
1058 rtw_phy_pwrtrack_get_pwridx(rtwdev, &swing_table, RF_PATH_A, in rtw8821c_phy_pwrtrack()
1059 RF_PATH_A, delta); in rtw8821c_phy_pwrtrack()
1060 if (dm_info->delta_power_index[RF_PATH_A] == in rtw8821c_phy_pwrtrack()
1061 dm_info->delta_power_index_last[RF_PATH_A]) in rtw8821c_phy_pwrtrack()
1064 dm_info->delta_power_index_last[RF_PATH_A] = in rtw8821c_phy_pwrtrack()
1065 dm_info->delta_power_index[RF_PATH_A]; in rtw8821c_phy_pwrtrack()
1082 rtw_write_rf(rtwdev, RF_PATH_A, RF_T_METER, in rtw8821c_pwr_track()
1130 dm_info->cck_pd_lv[RTW_CHANNEL_WIDTH_20][RF_PATH_A], new_lvl); in rtw8821c_phy_cck_pd_set()
1132 if (dm_info->cck_pd_lv[RTW_CHANNEL_WIDTH_20][RF_PATH_A] == new_lvl) in rtw8821c_phy_cck_pd_set()
1145 dm_info->cck_pd_lv[RTW_CHANNEL_WIDTH_20][RF_PATH_A] = new_lvl; in rtw8821c_phy_cck_pd_set()