/linux-6.12.1/drivers/net/wireless/realtek/rtw89/ |
D | rtw8922a_rfk.c | 81 rtw89_write_rf(rtwdev, path, RR_SMD, RR_VCO2, 0x0); in rtw8922a_ctl_band_ch_bw() 83 rtw89_write_rf(rtwdev, path, RR_SMD, RR_VCO2, 0x1); in rtw8922a_ctl_band_ch_bw() 125 rtw89_write_rf(rtwdev, path, rf_addr[i], in rtw8922a_ctl_band_ch_bw() 135 rtw89_write_rf(rtwdev, RF_PATH_A, RR_LUTWE, RFREG_MASK, 0x80000); in rtw8922a_ctl_band_ch_bw() 136 rtw89_write_rf(rtwdev, RF_PATH_A, RR_LUTWA, RFREG_MASK, 0x00003); in rtw8922a_ctl_band_ch_bw() 137 rtw89_write_rf(rtwdev, RF_PATH_A, RR_LUTWD1, RFREG_MASK, 0x0c990); in rtw8922a_ctl_band_ch_bw() 138 rtw89_write_rf(rtwdev, RF_PATH_A, RR_LUTWD0, RFREG_MASK, 0xebe38); in rtw8922a_ctl_band_ch_bw() 139 rtw89_write_rf(rtwdev, RF_PATH_A, RR_LUTWE, RFREG_MASK, 0x00000); in rtw8922a_ctl_band_ch_bw() 141 rtw89_write_rf(rtwdev, RF_PATH_A, RR_LUTWE, RFREG_MASK, 0x80000); in rtw8922a_ctl_band_ch_bw() 142 rtw89_write_rf(rtwdev, RF_PATH_A, RR_LUTWA, RFREG_MASK, 0x00003); in rtw8922a_ctl_band_ch_bw() [all …]
|
D | rtw8852c_rfk.c | 142 rtw89_write_rf(rtwdev, rf_path, rtw8852c_backup_rf_regs[i], in _rfk_restore_rf_reg() 602 rtw89_write_rf(rtwdev, RF_PATH_A, RR_RSV1, RR_RSV1_RST, 0x0); in _dac_cal() 603 rtw89_write_rf(rtwdev, RF_PATH_B, RR_RSV1, RR_RSV1_RST, 0x0); in _dac_cal() 604 rtw89_write_rf(rtwdev, RF_PATH_A, RR_MOD, RFREG_MASK, 0x337e1); in _dac_cal() 605 rtw89_write_rf(rtwdev, RF_PATH_B, RR_MOD, RFREG_MASK, 0x337e1); in _dac_cal() 612 rtw89_write_rf(rtwdev, RF_PATH_A, RR_MODOPT, RFREG_MASK, 0x0); in _dac_cal() 613 rtw89_write_rf(rtwdev, RF_PATH_B, RR_MODOPT, RFREG_MASK, 0x0); in _dac_cal() 620 rtw89_write_rf(rtwdev, RF_PATH_A, RR_MOD, RFREG_MASK, rf0_0); in _dac_cal() 621 rtw89_write_rf(rtwdev, RF_PATH_B, RR_MOD, RFREG_MASK, rf1_0); in _dac_cal() 622 rtw89_write_rf(rtwdev, RF_PATH_A, RR_RSV1, RR_RSV1_RST, 0x1); in _dac_cal() [all …]
|
D | rtw8852b_rfk.c | 225 rtw89_write_rf(rtwdev, rf_path, rtw8852b_backup_rf_regs[i], in _rfk_restore_rf_reg() 238 rtw89_write_rf(rtwdev, path, RR_RSV1, RR_RSV1_RST, 0x1); in _rfk_rf_direct_cntrl() 240 rtw89_write_rf(rtwdev, path, RR_RSV1, RR_RSV1_RST, 0x0); in _rfk_rf_direct_cntrl() 247 rtw89_write_rf(rtwdev, path, RR_BBDC, RR_BBDC_SEL, 0x1); in _rfk_drf_direct_cntrl() 249 rtw89_write_rf(rtwdev, path, RR_BBDC, RR_BBDC_SEL, 0x0); in _rfk_drf_direct_cntrl() 297 rtw89_write_rf(rtwdev, path, RR_DCK1, RR_DCK1_CLR, 0x0); in _set_rx_dck() 298 rtw89_write_rf(rtwdev, path, RR_DCK, RR_DCK_LV, 0x0); in _set_rx_dck() 299 rtw89_write_rf(rtwdev, path, RR_DCK, RR_DCK_LV, 0x1); in _set_rx_dck() 321 rtw89_write_rf(rtwdev, path, RR_RSV1, RR_RSV1_RST, 0x0); in _rx_dck() 322 rtw89_write_rf(rtwdev, path, RR_DCK, RR_DCK_FINE, 0x0); in _rx_dck() [all …]
|
D | rtw8852a_rfk.c | 83 rtw89_write_rf(rtwdev, rf_path, rtw8852a_backup_rf_regs[i], in _rfk_restore_rf_reg() 509 rtw89_write_rf(rtwdev, RF_PATH_A, RR_RSV1, RR_RSV1_RST, 0x0); in _dac_cal() 510 rtw89_write_rf(rtwdev, RF_PATH_B, RR_RSV1, RR_RSV1_RST, 0x0); in _dac_cal() 511 rtw89_write_rf(rtwdev, RF_PATH_A, RR_MOD, RFREG_MASK, 0x30001); in _dac_cal() 512 rtw89_write_rf(rtwdev, RF_PATH_B, RR_MOD, RFREG_MASK, 0x30001); in _dac_cal() 518 rtw89_write_rf(rtwdev, RF_PATH_A, RR_MOD, RFREG_MASK, 0x40001); in _dac_cal() 519 rtw89_write_rf(rtwdev, RF_PATH_B, RR_MOD, RFREG_MASK, 0x40001); in _dac_cal() 520 rtw89_write_rf(rtwdev, RF_PATH_A, RR_MODOPT, RFREG_MASK, 0x0); in _dac_cal() 521 rtw89_write_rf(rtwdev, RF_PATH_B, RR_MODOPT, RFREG_MASK, 0x0); in _dac_cal() 527 rtw89_write_rf(rtwdev, RF_PATH_A, RR_MOD, RFREG_MASK, rf0_0); in _dac_cal() [all …]
|
D | rtw8851b_rfk.c | 152 rtw89_write_rf(rtwdev, path, RR_RSV1, RR_RSV1_RST, 0x1); in _rfk_rf_direct_cntrl() 154 rtw89_write_rf(rtwdev, path, RR_RSV1, RR_RSV1_RST, 0x0); in _rfk_rf_direct_cntrl() 161 rtw89_write_rf(rtwdev, path, RR_BBDC, RR_BBDC_SEL, 0x1); in _rfk_drf_direct_cntrl() 163 rtw89_write_rf(rtwdev, path, RR_BBDC, RR_BBDC_SEL, 0x0); in _rfk_drf_direct_cntrl() 505 rtw89_write_rf(rtwdev, RF_PATH_A, RR_MOD, RFREG_MASK, 0x337e1); in _dac_cal() 506 rtw89_write_rf(rtwdev, RF_PATH_A, RR_RSV1, RR_RSV1_RST, 0x0); in _dac_cal() 511 rtw89_write_rf(rtwdev, RF_PATH_A, RR_MOD, RFREG_MASK, 0x40001); in _dac_cal() 516 rtw89_write_rf(rtwdev, RF_PATH_A, RR_RSV1, RR_RSV1_RST, 0x1); in _dac_cal() 548 rtw89_write_rf(rtwdev, path, RR_LUTWE2, RR_LUTWE2_DIS, 0x1); in _rxbb_ofst_swap() 549 rtw89_write_rf(rtwdev, path, RR_LUTWA, RFREG_MASK, rf_mode); in _rxbb_ofst_swap() [all …]
|
D | rtw8852bt_rfk.c | 138 rtw89_write_rf(rtwdev, path, RR_TM, RR_TM_TRI, 0x1); in _rfk_get_thermal() 139 rtw89_write_rf(rtwdev, path, RR_TM, RR_TM_TRI, 0x0); in _rfk_get_thermal() 140 rtw89_write_rf(rtwdev, path, RR_TM, RR_TM_TRI, 0x1); in _rfk_get_thermal() 224 rtw89_write_rf(rtwdev, rf_path, rtw8852bt_backup_rf_regs[i], in _rfk_reload_rf_reg() 372 rtw89_write_rf(rtwdev, path, RR_DCK1, RR_DCK1_CLR, 0x0); in _set_rx_dck() 373 rtw89_write_rf(rtwdev, path, RR_DCK, RR_DCK_LV, 0x0); in _set_rx_dck() 374 rtw89_write_rf(rtwdev, path, RR_DCK, RR_DCK_LV, 0x1); in _set_rx_dck() 396 rtw89_write_rf(rtwdev, path, RR_RSV1, RR_RSV1_RST, 0x0); in _rx_dck() 397 rtw89_write_rf(rtwdev, path, RR_DCK, RR_DCK_FINE, 0x0); in _rx_dck() 398 rtw89_write_rf(rtwdev, path, RR_MOD, RR_MOD_MASK, RR_MOD_V_RX); in _rx_dck() [all …]
|
D | rtw8852b_common.c | 357 rtw89_write_rf(rtwdev, i, RR_TM2, RR_TM2_OFF, val); in rtw8852bx_thermal_trim() 407 rtw89_write_rf(rtwdev, i, RR_BIASA, RR_BIASA_TXG, pabias_2g); in rtw8852bx_pa_bias_trim() 408 rtw89_write_rf(rtwdev, i, RR_BIASA, RR_BIASA_TXA, pabias_5g); in rtw8852bx_pa_bias_trim() 1743 rtw89_write_rf(rtwdev, rf_path, RR_TM, RR_TM_TRI, 0x1); in __rtw8852bx_get_thermal() 1744 rtw89_write_rf(rtwdev, rf_path, RR_TM, RR_TM_TRI, 0x0); in __rtw8852bx_get_thermal() 1745 rtw89_write_rf(rtwdev, rf_path, RR_TM, RR_TM_TRI, 0x1); in __rtw8852bx_get_thermal() 1755 rtw89_write_rf(rtwdev, path, RR_LUTWE, RFREG_MASK, 0x20000); in rtw8852bx_set_trx_mask() 1756 rtw89_write_rf(rtwdev, path, RR_LUTWA, RFREG_MASK, group); in rtw8852bx_set_trx_mask() 1757 rtw89_write_rf(rtwdev, path, RR_LUTWD0, RFREG_MASK, val); in rtw8852bx_set_trx_mask() 1758 rtw89_write_rf(rtwdev, path, RR_LUTWE, RFREG_MASK, 0x0); in rtw8852bx_set_trx_mask() [all …]
|
D | rtw8852a.c | 670 rtw89_write_rf(rtwdev, i, RR_TM2, RR_TM2_OFF, val); in rtw8852a_thermal_trim() 720 rtw89_write_rf(rtwdev, i, RR_BIASA, RR_BIASA_TXG, pabias_2g); in rtw8852a_pa_bias_trim() 721 rtw89_write_rf(rtwdev, i, RR_BIASA, RR_BIASA_TXA, pabias_5g); in rtw8852a_pa_bias_trim() 835 rtw89_write_rf(rtwdev, path, RR_CFGCH, RFREG_MASK, val); in rtw8852a_ch_setting() 1009 rtw89_write_rf(rtwdev, path, RR_CFGCH, RFREG_MASK, val); in rtw8852a_bw_setting() 1676 rtw89_write_rf(rtwdev, rf_path, RR_TM, RR_TM_TRI, 0x1); in rtw8852a_get_thermal() 1677 rtw89_write_rf(rtwdev, rf_path, RR_TM, RR_TM_TRI, 0x0); in rtw8852a_get_thermal() 1678 rtw89_write_rf(rtwdev, rf_path, RR_TM, RR_TM_TRI, 0x1); in rtw8852a_get_thermal() 1742 rtw89_write_rf(rtwdev, path, RR_LUTWE, 0xfffff, 0x20000); in rtw8852a_set_trx_mask() 1743 rtw89_write_rf(rtwdev, path, RR_LUTWA, 0xfffff, group); in rtw8852a_set_trx_mask() [all …]
|
D | rtw8852c.c | 601 rtw89_write_rf(rtwdev, i, RR_TM2, RR_TM2_OFF, val); in rtw8852c_thermal_trim() 651 rtw89_write_rf(rtwdev, i, RR_BIASA, RR_BIASA_TXG, pabias_2g); in rtw8852c_pa_bias_trim() 652 rtw89_write_rf(rtwdev, i, RR_BIASA, RR_BIASA_TXA, pabias_5g); in rtw8852c_pa_bias_trim() 2380 rtw89_write_rf(rtwdev, rf_path, RR_TM, RR_TM_TRI, 0x1); in rtw8852c_get_thermal() 2381 rtw89_write_rf(rtwdev, rf_path, RR_TM, RR_TM_TRI, 0x0); in rtw8852c_get_thermal() 2382 rtw89_write_rf(rtwdev, rf_path, RR_TM, RR_TM_TRI, 0x1); in rtw8852c_get_thermal() 2493 rtw89_write_rf(rtwdev, path, RR_LUTWE, RFREG_MASK, 0x20000); in rtw8852c_set_trx_mask() 2494 rtw89_write_rf(rtwdev, path, RR_LUTWA, RFREG_MASK, group); in rtw8852c_set_trx_mask() 2495 rtw89_write_rf(rtwdev, path, RR_LUTWD0, RFREG_MASK, val); in rtw8852c_set_trx_mask() 2496 rtw89_write_rf(rtwdev, path, RR_LUTWE, RFREG_MASK, 0x0); in rtw8852c_set_trx_mask() [all …]
|
D | rtw8922a.c | 726 rtw89_write_rf(rtwdev, i, RR_BIASA, RR_BIASA_TXG_V1, pabias_2g); in rtw8922a_pa_bias_trim() 727 rtw89_write_rf(rtwdev, i, RR_BIASA, RR_BIASA_TXA_V1, pabias_5g); in rtw8922a_pa_bias_trim() 768 rtw89_write_rf(rtwdev, i, RR_BIASA, RR_BIASD_TXG_V1, pad_bias_2g); in rtw8922a_pad_bias_trim() 769 rtw89_write_rf(rtwdev, i, RR_BIASA, RR_BIASD_TXA_V1, pad_bias_5g); in rtw8922a_pad_bias_trim() 2216 rtw89_write_rf(rtwdev, rf_path, RR_TM, RR_TM_TRI, 0x1); in rtw8922a_get_thermal() 2217 rtw89_write_rf(rtwdev, rf_path, RR_TM, RR_TM_TRI, 0x0); in rtw8922a_get_thermal() 2218 rtw89_write_rf(rtwdev, rf_path, RR_TM, RR_TM_TRI, 0x1); in rtw8922a_get_thermal() 2275 rtw89_write_rf(rtwdev, path, RR_LUTWA, RFREG_MASK, group); in rtw8922a_set_trx_mask() 2276 rtw89_write_rf(rtwdev, path, RR_LUTWD0, RFREG_MASK, val); in rtw8922a_set_trx_mask() 2299 rtw89_write_rf(rtwdev, path, RR_LUTWE, RFREG_MASK, BIT(17)); in rtw8922a_btc_init_cfg() [all …]
|
D | rtw8851b.c | 629 rtw89_write_rf(rtwdev, i, RR_TM2, RR_TM2_OFF, val); in rtw8851b_thermal_trim() 679 rtw89_write_rf(rtwdev, i, RR_BIASA, RR_BIASA_TXG, pabias_2g); in rtw8851b_pa_bias_trim() 680 rtw89_write_rf(rtwdev, i, RR_BIASA, RR_BIASA_TXA, pabias_5g); in rtw8851b_pa_bias_trim() 1929 rtw89_write_rf(rtwdev, rf_path, RR_TM, RR_TM_TRI, 0x1); in rtw8851b_get_thermal() 1930 rtw89_write_rf(rtwdev, rf_path, RR_TM, RR_TM_TRI, 0x0); in rtw8851b_get_thermal() 1931 rtw89_write_rf(rtwdev, rf_path, RR_TM, RR_TM_TRI, 0x1); in rtw8851b_get_thermal() 2027 rtw89_write_rf(rtwdev, path, RR_LUTWA, RFREG_MASK, group); in rtw8851b_set_trx_mask() 2028 rtw89_write_rf(rtwdev, path, RR_LUTWD0, RFREG_MASK, val); in rtw8851b_set_trx_mask() 2069 rtw89_write_rf(rtwdev, path, RR_WLSEL, RFREG_MASK, 0x0); in rtw8851b_btc_init_cfg() 2072 rtw89_write_rf(rtwdev, path, RR_LUTWE, RFREG_MASK, BIT(17)); in rtw8851b_btc_init_cfg() [all …]
|
D | phy.c | 1439 rtw89_write_rf(rtwdev, rf_path, reg->addr, 0xfffff, reg->data); in rtw89_phy_config_rf_reg() 1450 rtw89_write_rf(rtwdev, rf_path, reg->addr, RFREG_MASK, reg->data); in rtw89_phy_config_rf_reg_v1() 6096 rtw89_write_rf(rtwdev, def->path, def->addr, def->mask, def->data); in _rfk_write_rf()
|
D | debug.c | 360 rtw89_write_rf(rtwdev, path, addr, mask, val); in rtw89_debug_priv_write_rf_set()
|
D | core.h | 5936 rtw89_write_rf(struct rtw89_dev *rtwdev, enum rtw89_rf_path rf_path, in rtw89_write_rf() function
|