Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/net/wireless/realtek/rtw89/
Drtw8851b_rfk.c500 rf0_0 = rtw89_read_rf(rtwdev, RF_PATH_A, RR_MOD, RFREG_MASK); in _dac_cal()
505 rtw89_write_rf(rtwdev, RF_PATH_A, RR_MOD, RFREG_MASK, 0x337e1); in _dac_cal()
511 rtw89_write_rf(rtwdev, RF_PATH_A, RR_MOD, RFREG_MASK, 0x40001); in _dac_cal()
548 rtw89_write_rf(rtwdev, path, RR_LUTWA, RFREG_MASK, rf_mode); in _rxbb_ofst_swap()
549 rtw89_write_rf(rtwdev, path, RR_LUTWD0, RFREG_MASK, val); in _rxbb_ofst_swap()
589 rf_reg5 = rtw89_read_rf(rtwdev, path, RR_RSV1, RFREG_MASK); in _rx_dck()
599 rtw89_write_rf(rtwdev, path, RR_RSV1, RFREG_MASK, rf_reg5); in _rx_dck()
787 rtw89_write_rf(rtwdev, path, RR_RXKPLL, RFREG_MASK, 0x80013); in _rxk_2g_group_sel()
789 rf_0 = rtw89_read_rf(rtwdev, path, RR_MOD, RFREG_MASK); in _rxk_2g_group_sel()
860 rtw89_write_rf(rtwdev, path, RR_RXKPLL, RFREG_MASK, 0x80013); in _rxk_5g_group_sel()
[all …]
Drtw8852b_rfk.c197 rtw8852b_backup_rf_regs[i], RFREG_MASK); in _rfk_backup_rf_reg()
225 RFREG_MASK, backup_rf_reg_val[i]); in _rfk_restore_rf_reg()
312 rf_reg5 = rtw89_read_rf(rtwdev, path, RR_RSV1, RFREG_MASK); in _rx_dck()
325 rtw89_write_rf(rtwdev, path, RR_RSV1, RFREG_MASK, rf_reg5); in _rx_dck()
343 rf_reg5 = rtw89_read_rf(rtwdev, path, RR_RSV1, RFREG_MASK); in _rck()
349 rtw89_read_rf(rtwdev, path, RR_MOD, RFREG_MASK)); in _rck()
352 rtw89_write_rf(rtwdev, path, RR_RCKC, RFREG_MASK, 0x00240); in _rck()
362 rtw89_write_rf(rtwdev, path, RR_RCKC, RFREG_MASK, rck_val); in _rck()
363 rtw89_write_rf(rtwdev, path, RR_RSV1, RFREG_MASK, rf_reg5); in _rck()
366 rtw89_read_rf(rtwdev, path, RR_RCKC, RFREG_MASK)); in _rck()
[all …]
Drtw8852b.c2138 rtw89_write_rf(rtwdev, path, RR_LUTWE, RFREG_MASK, 0x20000); in rtw8852b_set_trx_mask()
2139 rtw89_write_rf(rtwdev, path, RR_LUTWA, RFREG_MASK, group); in rtw8852b_set_trx_mask()
2140 rtw89_write_rf(rtwdev, path, RR_LUTWD0, RFREG_MASK, val); in rtw8852b_set_trx_mask()
2141 rtw89_write_rf(rtwdev, path, RR_LUTWE, RFREG_MASK, 0x0); in rtw8852b_set_trx_mask()
2162 rtw89_write_rf(rtwdev, RF_PATH_A, RR_WLSEL, RFREG_MASK, 0x0); in rtw8852b_btc_init_cfg()
2163 rtw89_write_rf(rtwdev, RF_PATH_B, RR_WLSEL, RFREG_MASK, 0x0); in rtw8852b_btc_init_cfg()
2298 rtw89_write_rf(rtwdev, RF_PATH_B, RR_LUTWE, RFREG_MASK, 0x80000); in rtw8852b_btc_wl_s1_standby()
2299 rtw89_write_rf(rtwdev, RF_PATH_B, RR_LUTWA, RFREG_MASK, 0x1); in rtw8852b_btc_wl_s1_standby()
2300 rtw89_write_rf(rtwdev, RF_PATH_B, RR_LUTWD1, RFREG_MASK, 0x31); in rtw8852b_btc_wl_s1_standby()
2304 rtw89_write_rf(rtwdev, RF_PATH_B, RR_LUTWD0, RFREG_MASK, 0x179); in rtw8852b_btc_wl_s1_standby()
[all …]
Drtw8852c.c2390 rtw89_write_rf(rtwdev, path, RR_LUTWE, RFREG_MASK, 0x20000); in rtw8852c_set_trx_mask()
2391 rtw89_write_rf(rtwdev, path, RR_LUTWA, RFREG_MASK, group); in rtw8852c_set_trx_mask()
2392 rtw89_write_rf(rtwdev, path, RR_LUTWD0, RFREG_MASK, val); in rtw8852c_set_trx_mask()
2393 rtw89_write_rf(rtwdev, path, RR_LUTWE, RFREG_MASK, 0x0); in rtw8852c_set_trx_mask()
2414 rtw89_write_rf(rtwdev, RF_PATH_A, RR_WLSEL, RFREG_MASK, 0x0); in rtw8852c_btc_init_cfg()
2415 rtw89_write_rf(rtwdev, RF_PATH_B, RR_WLSEL, RFREG_MASK, 0x0); in rtw8852c_btc_init_cfg()
2596 rtw89_write_rf(rtwdev, RF_PATH_B, RR_LUTWE, RFREG_MASK, 0x80000); in rtw8852c_btc_wl_s1_standby()
2597 rtw89_write_rf(rtwdev, RF_PATH_B, RR_LUTWA, RFREG_MASK, 0x1); in rtw8852c_btc_wl_s1_standby()
2598 rtw89_write_rf(rtwdev, RF_PATH_B, RR_LUTWD1, RFREG_MASK, 0x620); in rtw8852c_btc_wl_s1_standby()
2603 RFREG_MASK, 0x179c); in rtw8852c_btc_wl_s1_standby()
[all …]
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 …]
Drtw8852a.c793 val = rtw89_read_rf(rtwdev, path, RR_CFGCH, RFREG_MASK); in rtw8852a_ch_setting()
802 rtw89_write_rf(rtwdev, path, RR_CFGCH, RFREG_MASK, val); in rtw8852a_ch_setting()
940 val = rtw89_read_rf(rtwdev, path, RR_CFGCH, RFREG_MASK); in rtw8852a_bw_setting()
976 rtw89_write_rf(rtwdev, path, RR_CFGCH, RFREG_MASK, val); in rtw8852a_bw_setting()
1920 rtw89_write_rf(rtwdev, RF_PATH_B, RR_LUTWE, RFREG_MASK, 0x80000); in rtw8852a_btc_wl_s1_standby()
1921 rtw89_write_rf(rtwdev, RF_PATH_B, RR_LUTWA, RFREG_MASK, 0x1); in rtw8852a_btc_wl_s1_standby()
1922 rtw89_write_rf(rtwdev, RF_PATH_B, RR_LUTWD1, RFREG_MASK, 0x1); in rtw8852a_btc_wl_s1_standby()
1927 RFREG_MASK, 0xa2d7c); in rtw8852a_btc_wl_s1_standby()
1930 RFREG_MASK, 0xa2020); in rtw8852a_btc_wl_s1_standby()
1932 rtw89_write_rf(rtwdev, RF_PATH_B, RR_LUTWE, RFREG_MASK, 0x0); in rtw8852a_btc_wl_s1_standby()
[all …]
Drtw8852c_rfk.c114 rtw8852c_backup_rf_regs[i], RFREG_MASK); in _rfk_backup_rf_reg()
141 RFREG_MASK, backup_rf_reg_val[i]); in _rfk_restore_rf_reg()
595 rf0_0 = rtw89_read_rf(rtwdev, RF_PATH_A, RR_MOD, RFREG_MASK); in _dac_cal()
596 rf1_0 = rtw89_read_rf(rtwdev, RF_PATH_B, RR_MOD, RFREG_MASK); in _dac_cal()
601 rtw89_write_rf(rtwdev, RF_PATH_A, RR_MOD, RFREG_MASK, 0x337e1); in _dac_cal()
602 rtw89_write_rf(rtwdev, RF_PATH_B, RR_MOD, RFREG_MASK, 0x337e1); in _dac_cal()
609 rtw89_write_rf(rtwdev, RF_PATH_A, RR_MODOPT, RFREG_MASK, 0x0); in _dac_cal()
610 rtw89_write_rf(rtwdev, RF_PATH_B, RR_MODOPT, RFREG_MASK, 0x0); in _dac_cal()
617 rtw89_write_rf(rtwdev, RF_PATH_A, RR_MOD, RFREG_MASK, rf0_0); in _dac_cal()
618 rtw89_write_rf(rtwdev, RF_PATH_B, RR_MOD, RFREG_MASK, rf1_0); in _dac_cal()
[all …]
Drtw8851b.c1953 rtw89_write_rf(rtwdev, path, RR_LUTWA, RFREG_MASK, group); in rtw8851b_set_trx_mask()
1954 rtw89_write_rf(rtwdev, path, RR_LUTWD0, RFREG_MASK, val); in rtw8851b_set_trx_mask()
1987 rtw89_write_rf(rtwdev, path, RR_WLSEL, RFREG_MASK, 0x0); in rtw8851b_btc_init_cfg()
1990 rtw89_write_rf(rtwdev, path, RR_LUTWE, RFREG_MASK, BIT(17)); in rtw8851b_btc_init_cfg()
2007 rtw89_write_rf(rtwdev, path, RR_LUTWE, RFREG_MASK, 0); in rtw8851b_btc_init_cfg()
2135 rtw89_write_rf(rtwdev, ant->btg_pos, RR_LUTWE, RFREG_MASK, 0x80000); in rtw8851b_btc_wl_s1_standby()
2136 rtw89_write_rf(rtwdev, ant->btg_pos, RR_LUTWA, RFREG_MASK, 0x1); in rtw8851b_btc_wl_s1_standby()
2137 rtw89_write_rf(rtwdev, ant->btg_pos, RR_LUTWD1, RFREG_MASK, 0x110); in rtw8851b_btc_wl_s1_standby()
2141 rtw89_write_rf(rtwdev, ant->btg_pos, RR_LUTWD0, RFREG_MASK, 0x179c); in rtw8851b_btc_wl_s1_standby()
2143 rtw89_write_rf(rtwdev, ant->btg_pos, RR_LUTWD0, RFREG_MASK, 0x208); in rtw8851b_btc_wl_s1_standby()
[all …]
Dphy.c685 mask &= RFREG_MASK; in rtw89_phy_read_rf()
708 mask &= RFREG_MASK; in rtw89_phy_read_rf_a()
757 mask &= RFREG_MASK; in rtw89_phy_write_rf()
784 data &= RFREG_MASK; in rtw89_phy_write_rf_a()
785 mask &= RFREG_MASK; in rtw89_phy_write_rf_a()
787 if (mask != RFREG_MASK) { in rtw89_phy_write_rf_a()
789 rtw89_phy_write32_mask(rtwdev, R_SWSI_BIT_MASK_V1, RFREG_MASK, in rtw89_phy_write_rf_a()
792 data = (data << bit_shift) & RFREG_MASK; in rtw89_phy_write_rf_a()
1196 rtw89_write_rf(rtwdev, rf_path, reg->addr, RFREG_MASK, reg->data); in rtw89_phy_config_rf_reg_v1()
Ddebug.c358 addr + offset, RFREG_MASK); in rtw89_debug_priv_rf_reg_dump_get()
Dcore.h30 #define RFREG_MASK 0xfffff macro
/linux-6.6.21/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()
466 rf_cfgch_a = rtw_read_rf(rtwdev, RF_PATH_A, RF_CFGCH, RFREG_MASK); in rtw8723d_set_channel_rf()
467 rf_cfgch_b = rtw_read_rf(rtwdev, RF_PATH_B, RF_CFGCH, RFREG_MASK); in rtw8723d_set_channel_rf()
486 rtw_write_rf(rtwdev, RF_PATH_A, RF_CFGCH, RFREG_MASK, rf_cfgch_a); in rtw8723d_set_channel_rf()
487 rtw_write_rf(rtwdev, RF_PATH_B, RF_CFGCH, RFREG_MASK, rf_cfgch_b); in rtw8723d_set_channel_rf()
989 rtw_write_rf(rtwdev, RF_PATH_A, iqk_cfg->reg_lutwe, RFREG_MASK, 0x80000); in rtw8723d_iqk_tx_path()
990 rtw_write_rf(rtwdev, RF_PATH_A, RF_LUTWA, RFREG_MASK, 0x00004); in rtw8723d_iqk_tx_path()
991 rtw_write_rf(rtwdev, RF_PATH_A, RF_LUTWD1, RFREG_MASK, 0x0005d); in rtw8723d_iqk_tx_path()
[all …]
Drtw8822c.c129 val = rtw_read_rf(rtwdev, path, reg, RFREG_MASK); in rtw8822c_dac_backup_reg()
150 rtw_write_rf(rtwdev, path, reg, RFREG_MASK, val); in rtw8822c_dac_restore_reg()
367 rf_a = rtw_read_rf(rtwdev, RF_PATH_A, 0x0, RFREG_MASK); in rtw8822c_dac_cal_rf_mode()
368 rf_b = rtw_read_rf(rtwdev, RF_PATH_B, 0x0, RFREG_MASK); in rtw8822c_dac_cal_rf_mode()
425 rtw_write_rf(rtwdev, RF_PATH_A, 0x0, RFREG_MASK, 0x10000); in rtw8822c_dac_cal_adc()
426 rtw_write_rf(rtwdev, RF_PATH_B, 0x0, RFREG_MASK, 0x10000); in rtw8822c_dac_cal_adc()
1016 rtw_write_rf(rtwdev, RF_PATH_A, 0xb8, RFREG_MASK, 0xC4440); in rtw8822c_rf_x2_check()
1017 rtw_write_rf(rtwdev, RF_PATH_A, 0xba, RFREG_MASK, 0x6840D); in rtw8822c_rf_x2_check()
1018 rtw_write_rf(rtwdev, RF_PATH_A, 0xb8, RFREG_MASK, 0x80440); in rtw8822c_rf_x2_check()
1027 rtw_write_rf(rtwdev, _path, 0x33, RFREG_MASK, _seq); \ in rtw8822c_set_power_trim()
[all …]
Drtw8822b.c515 rf_reg18 = rtw_read_rf(rtwdev, RF_PATH_A, 0x18, RFREG_MASK); in rtw8822b_set_channel_rf()
561 rtw_write_rf(rtwdev, RF_PATH_A, 0x18, RFREG_MASK, rf_reg18); in rtw8822b_set_channel_rf()
563 rtw_write_rf(rtwdev, RF_PATH_B, 0x18, RFREG_MASK, rf_reg18); in rtw8822b_set_channel_rf()
813 rtw_write_rf(rtwdev, RF_PATH_A, RF_LUTWE, RFREG_MASK, 0x80000); in rtw8822b_config_trx_mode()
814 rtw_write_rf(rtwdev, RF_PATH_A, RF_LUTWA, RFREG_MASK, 0x00001); in rtw8822b_config_trx_mode()
817 rf_reg33 = rtw_read_rf(rtwdev, RF_PATH_A, 0x33, RFREG_MASK); in rtw8822b_config_trx_mode()
826 rtw_write_rf(rtwdev, RF_PATH_A, RF_LUTWE, RFREG_MASK, 0x80000); in rtw8822b_config_trx_mode()
827 rtw_write_rf(rtwdev, RF_PATH_A, RF_LUTWA, RFREG_MASK, 0x00001); in rtw8822b_config_trx_mode()
828 rtw_write_rf(rtwdev, RF_PATH_A, RF_LUTWD1, RFREG_MASK, 0x00034); in rtw8822b_config_trx_mode()
829 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.c315 rf_reg18 = rtw_read_rf(rtwdev, RF_PATH_A, 0x18, RFREG_MASK); in rtw8821c_set_channel_rf()
355 rtw_write_rf(rtwdev, RF_PATH_A, 0x18, RFREG_MASK, rf_reg18); in rtw8821c_set_channel_rf()
760 rf_reg = rtw_read_rf(rtwdev, RF_PATH_A, RF_DTXLOK, RFREG_MASK); in rtw8821c_do_iqk()
765 rtw_write_rf(rtwdev, RF_PATH_A, RF_DTXLOK, RFREG_MASK, 0x0); in rtw8821c_do_iqk()
1913 {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.c1071 val = rtw_read_rf(rtwdev, path, RF_GAINTX, RFREG_MASK); in dump_gapk_status()
Dmain.h32 #define RFREG_MASK 0xfffff macro