Home
last modified time | relevance | path

Searched refs:RFREG_MASK (Results 1 – 15 of 15) sorted by relevance

/linux-6.1.9/drivers/net/wireless/realtek/rtw88/
Drtw8723d.c79 lc_cal = rtw_read_rf(rtwdev, RF_PATH_A, RF_CFGCH, RFREG_MASK); in rtw8723d_lck()
81 rtw_write_rf(rtwdev, RF_PATH_A, RF_CFGCH, RFREG_MASK, lc_cal | BIT_LCK); in rtw8723d_lck()
89 rtw_write_rf(rtwdev, RF_PATH_A, RF_CFGCH, RFREG_MASK, lc_cal); in rtw8723d_lck()
448 rf_cfgch_a = rtw_read_rf(rtwdev, RF_PATH_A, RF_CFGCH, RFREG_MASK); in rtw8723d_set_channel_rf()
449 rf_cfgch_b = rtw_read_rf(rtwdev, RF_PATH_B, RF_CFGCH, RFREG_MASK); in rtw8723d_set_channel_rf()
468 rtw_write_rf(rtwdev, RF_PATH_A, RF_CFGCH, RFREG_MASK, rf_cfgch_a); in rtw8723d_set_channel_rf()
469 rtw_write_rf(rtwdev, RF_PATH_B, RF_CFGCH, RFREG_MASK, rf_cfgch_b); in rtw8723d_set_channel_rf()
971 rtw_write_rf(rtwdev, RF_PATH_A, iqk_cfg->reg_lutwe, RFREG_MASK, 0x80000); in rtw8723d_iqk_tx_path()
972 rtw_write_rf(rtwdev, RF_PATH_A, RF_LUTWA, RFREG_MASK, 0x00004); in rtw8723d_iqk_tx_path()
973 rtw_write_rf(rtwdev, RF_PATH_A, RF_LUTWD1, RFREG_MASK, 0x0005d); in rtw8723d_iqk_tx_path()
[all …]
Drtw8822c.c111 val = rtw_read_rf(rtwdev, path, reg, RFREG_MASK); in rtw8822c_dac_backup_reg()
132 rtw_write_rf(rtwdev, path, reg, RFREG_MASK, val); in rtw8822c_dac_restore_reg()
349 rf_a = rtw_read_rf(rtwdev, RF_PATH_A, 0x0, RFREG_MASK); in rtw8822c_dac_cal_rf_mode()
350 rf_b = rtw_read_rf(rtwdev, RF_PATH_B, 0x0, RFREG_MASK); in rtw8822c_dac_cal_rf_mode()
407 rtw_write_rf(rtwdev, RF_PATH_A, 0x0, RFREG_MASK, 0x10000); in rtw8822c_dac_cal_adc()
408 rtw_write_rf(rtwdev, RF_PATH_B, 0x0, RFREG_MASK, 0x10000); in rtw8822c_dac_cal_adc()
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()
1009 rtw_write_rf(rtwdev, _path, 0x33, RFREG_MASK, _seq); \ in rtw8822c_set_power_trim()
[all …]
Drtw8822b.c497 rf_reg18 = rtw_read_rf(rtwdev, RF_PATH_A, 0x18, RFREG_MASK); in rtw8822b_set_channel_rf()
543 rtw_write_rf(rtwdev, RF_PATH_A, 0x18, RFREG_MASK, rf_reg18); in rtw8822b_set_channel_rf()
545 rtw_write_rf(rtwdev, RF_PATH_B, 0x18, RFREG_MASK, rf_reg18); in rtw8822b_set_channel_rf()
795 rtw_write_rf(rtwdev, RF_PATH_A, RF_LUTWE, RFREG_MASK, 0x80000); in rtw8822b_config_trx_mode()
796 rtw_write_rf(rtwdev, RF_PATH_A, RF_LUTWA, RFREG_MASK, 0x00001); in rtw8822b_config_trx_mode()
799 rf_reg33 = rtw_read_rf(rtwdev, RF_PATH_A, 0x33, RFREG_MASK); in rtw8822b_config_trx_mode()
808 rtw_write_rf(rtwdev, RF_PATH_A, RF_LUTWE, RFREG_MASK, 0x80000); in rtw8822b_config_trx_mode()
809 rtw_write_rf(rtwdev, RF_PATH_A, RF_LUTWA, RFREG_MASK, 0x00001); in rtw8822b_config_trx_mode()
810 rtw_write_rf(rtwdev, RF_PATH_A, RF_LUTWD1, RFREG_MASK, 0x00034); in rtw8822b_config_trx_mode()
811 rtw_write_rf(rtwdev, RF_PATH_A, RF_LUTWD0, RFREG_MASK, 0x4080c); in rtw8822b_config_trx_mode()
[all …]
Dphy.h175 #define RFREG_MASK 0xfffff macro
Drtw8821c.c282 rf_reg18 = rtw_read_rf(rtwdev, RF_PATH_A, 0x18, RFREG_MASK); in rtw8821c_set_channel_rf()
323 rtw_write_rf(rtwdev, RF_PATH_A, 0x18, RFREG_MASK, rf_reg18); in rtw8821c_set_channel_rf()
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()
1873 {0x1, RFREG_MASK, RTW_REG_DOMAIN_RF_A},
Dphy.c909 mask &= RFREG_MASK; in rtw_phy_read_rf()
982 mask &= RFREG_MASK; in rtw_phy_write_rf_reg_sipi()
984 if (mask != RFREG_MASK) { in rtw_phy_write_rf_reg_sipi()
985 old_data = chip->ops->read_rf(rtwdev, rf_path, addr, RFREG_MASK); in rtw_phy_write_rf_reg_sipi()
1021 mask &= RFREG_MASK; in rtw_phy_write_rf_reg()
1737 rtw_write_rf(rtwdev, tbl->rf_path, addr, RFREG_MASK, data); in rtw_phy_cfg_rf()
Ddebug.c1030 val = rtw_read_rf(rtwdev, path, RF_GAINTX, RFREG_MASK); in dump_gapk_status()
Dmain.h32 #define RFREG_MASK 0xfffff macro
/linux-6.1.9/drivers/net/wireless/realtek/rtw89/
Drtw8852a_rfk.c56 rtw8852a_backup_rf_regs[i], RFREG_MASK); in _rfk_backup_rf_reg()
84 RFREG_MASK, backup_rf_reg_val[i]); in _rfk_restore_rf_reg()
505 rf0_0 = rtw89_read_rf(rtwdev, RF_PATH_A, RR_MOD, RFREG_MASK); in _dac_cal()
506 rf1_0 = rtw89_read_rf(rtwdev, RF_PATH_B, RR_MOD, RFREG_MASK); in _dac_cal()
510 rtw89_write_rf(rtwdev, RF_PATH_A, RR_MOD, RFREG_MASK, 0x30001); in _dac_cal()
511 rtw89_write_rf(rtwdev, RF_PATH_B, RR_MOD, RFREG_MASK, 0x30001); in _dac_cal()
517 rtw89_write_rf(rtwdev, RF_PATH_A, RR_MOD, RFREG_MASK, 0x40001); in _dac_cal()
518 rtw89_write_rf(rtwdev, RF_PATH_B, RR_MOD, RFREG_MASK, 0x40001); in _dac_cal()
519 rtw89_write_rf(rtwdev, RF_PATH_A, RR_MODOPT, RFREG_MASK, 0x0); in _dac_cal()
520 rtw89_write_rf(rtwdev, RF_PATH_B, RR_MODOPT, RFREG_MASK, 0x0); in _dac_cal()
[all …]
Drtw8852c.c2628 rtw89_write_rf(rtwdev, path, RR_LUTWE, RFREG_MASK, 0x20000); in rtw8852c_set_trx_mask()
2629 rtw89_write_rf(rtwdev, path, RR_LUTWA, RFREG_MASK, group); in rtw8852c_set_trx_mask()
2630 rtw89_write_rf(rtwdev, path, RR_LUTWD0, RFREG_MASK, val); in rtw8852c_set_trx_mask()
2631 rtw89_write_rf(rtwdev, path, RR_LUTWE, RFREG_MASK, 0x0); in rtw8852c_set_trx_mask()
2652 rtw89_write_rf(rtwdev, RF_PATH_A, RR_WLSEL, RFREG_MASK, 0x0); in rtw8852c_btc_init_cfg()
2653 rtw89_write_rf(rtwdev, RF_PATH_B, RR_WLSEL, RFREG_MASK, 0x0); in rtw8852c_btc_init_cfg()
2843 rtw89_write_rf(rtwdev, RF_PATH_B, RR_LUTWE, RFREG_MASK, 0x80000); in rtw8852c_btc_wl_s1_standby()
2844 rtw89_write_rf(rtwdev, RF_PATH_B, RR_LUTWA, RFREG_MASK, 0x1); in rtw8852c_btc_wl_s1_standby()
2845 rtw89_write_rf(rtwdev, RF_PATH_B, RR_LUTWD1, RFREG_MASK, 0x620); in rtw8852c_btc_wl_s1_standby()
2850 RFREG_MASK, 0x179c); in rtw8852c_btc_wl_s1_standby()
[all …]
Drtw8852a.c775 val = rtw89_read_rf(rtwdev, path, RR_CFGCH, RFREG_MASK); in rtw8852a_ch_setting()
784 rtw89_write_rf(rtwdev, path, RR_CFGCH, RFREG_MASK, val); in rtw8852a_ch_setting()
922 val = rtw89_read_rf(rtwdev, path, RR_CFGCH, RFREG_MASK); in rtw8852a_bw_setting()
958 rtw89_write_rf(rtwdev, path, RR_CFGCH, RFREG_MASK, val); in rtw8852a_bw_setting()
2048 rtw89_write_rf(rtwdev, RF_PATH_B, RR_LUTWE, RFREG_MASK, 0x80000); in rtw8852a_btc_wl_s1_standby()
2049 rtw89_write_rf(rtwdev, RF_PATH_B, RR_LUTWA, RFREG_MASK, 0x1); in rtw8852a_btc_wl_s1_standby()
2050 rtw89_write_rf(rtwdev, RF_PATH_B, RR_LUTWD1, RFREG_MASK, 0x1); in rtw8852a_btc_wl_s1_standby()
2055 RFREG_MASK, 0xa2d7c); in rtw8852a_btc_wl_s1_standby()
2058 RFREG_MASK, 0xa2020); in rtw8852a_btc_wl_s1_standby()
2060 rtw89_write_rf(rtwdev, RF_PATH_B, RR_LUTWE, RFREG_MASK, 0x0); in rtw8852a_btc_wl_s1_standby()
[all …]
Drtw8852c_rfk.c99 rtw8852c_backup_rf_regs[i], RFREG_MASK); in _rfk_backup_rf_reg()
126 RFREG_MASK, backup_rf_reg_val[i]); in _rfk_restore_rf_reg()
558 rf0_0 = rtw89_read_rf(rtwdev, RF_PATH_A, RR_MOD, RFREG_MASK); in _dac_cal()
559 rf1_0 = rtw89_read_rf(rtwdev, RF_PATH_B, RR_MOD, RFREG_MASK); in _dac_cal()
564 rtw89_write_rf(rtwdev, RF_PATH_A, RR_MOD, RFREG_MASK, 0x337e1); in _dac_cal()
565 rtw89_write_rf(rtwdev, RF_PATH_B, RR_MOD, RFREG_MASK, 0x337e1); in _dac_cal()
572 rtw89_write_rf(rtwdev, RF_PATH_A, RR_MODOPT, RFREG_MASK, 0x0); in _dac_cal()
573 rtw89_write_rf(rtwdev, RF_PATH_B, RR_MODOPT, RFREG_MASK, 0x0); in _dac_cal()
580 rtw89_write_rf(rtwdev, RF_PATH_A, RR_MOD, RFREG_MASK, rf0_0); in _dac_cal()
581 rtw89_write_rf(rtwdev, RF_PATH_B, RR_MOD, RFREG_MASK, rf1_0); in _dac_cal()
[all …]
Dphy.c667 mask &= RFREG_MASK; in rtw89_phy_read_rf()
690 mask &= RFREG_MASK; in rtw89_phy_read_rf_a()
739 mask &= RFREG_MASK; in rtw89_phy_write_rf()
766 data &= RFREG_MASK; in rtw89_phy_write_rf_a()
767 mask &= RFREG_MASK; in rtw89_phy_write_rf_a()
769 if (mask != RFREG_MASK) { in rtw89_phy_write_rf_a()
771 rtw89_phy_write32_mask(rtwdev, R_SWSI_BIT_MASK_V1, RFREG_MASK, in rtw89_phy_write_rf_a()
774 data = (data << bit_shift) & RFREG_MASK; in rtw89_phy_write_rf_a()
1149 rtw89_write_rf(rtwdev, rf_path, reg->addr, RFREG_MASK, reg->data); in rtw89_phy_config_rf_reg_v1()
Ddebug.c324 addr + offset, RFREG_MASK); in rtw89_debug_priv_rf_reg_dump_get()
Dcore.h28 #define RFREG_MASK 0xfffff macro