Lines Matching full:rs
63 struct r12a_softc *rs = sc->sc_priv; in r12a_parse_rom_common() local
68 rs->crystalcap = RTWN_GET_ROM_VAR(rom->crystalcap, in r12a_parse_rom_common()
70 rs->tx_bbswing_2g = RTWN_GET_ROM_VAR(rom->tx_bbswing_2g, 0); in r12a_parse_rom_common()
71 rs->tx_bbswing_5g = RTWN_GET_ROM_VAR(rom->tx_bbswing_5g, 0); in r12a_parse_rom_common()
82 rs->cck_tx_pwr[i][j] = in r12a_parse_rom_common()
85 rs->ht40_tx_pwr_2g[i][j] = in r12a_parse_rom_common()
89 rs->cck_tx_pwr[i][j] = RTWN_GET_ROM_VAR(pwr_2g->cck[j], in r12a_parse_rom_common()
92 rs->cck_tx_pwr_diff_2g[i][0] = 0; in r12a_parse_rom_common()
93 rs->ofdm_tx_pwr_diff_2g[i][0] = RTWN_SIGN4TO8( in r12a_parse_rom_common()
95 rs->bw20_tx_pwr_diff_2g[i][0] = RTWN_SIGN4TO8( in r12a_parse_rom_common()
97 rs->bw40_tx_pwr_diff_2g[i][0] = 0; in r12a_parse_rom_common()
100 rs->cck_tx_pwr_diff_2g[i][j] = RTWN_SIGN4TO8( in r12a_parse_rom_common()
102 rs->ofdm_tx_pwr_diff_2g[i][j] = RTWN_SIGN4TO8( in r12a_parse_rom_common()
104 rs->bw20_tx_pwr_diff_2g[i][j] = RTWN_SIGN4TO8( in r12a_parse_rom_common()
106 rs->bw40_tx_pwr_diff_2g[i][j] = RTWN_SIGN4TO8( in r12a_parse_rom_common()
111 rs->ht40_tx_pwr_5g[i][j] = in r12a_parse_rom_common()
116 rs->ofdm_tx_pwr_diff_5g[i][0] = RTWN_SIGN4TO8( in r12a_parse_rom_common()
118 rs->ofdm_tx_pwr_diff_5g[i][1] = RTWN_SIGN4TO8( in r12a_parse_rom_common()
120 rs->ofdm_tx_pwr_diff_5g[i][2] = RTWN_SIGN4TO8( in r12a_parse_rom_common()
122 rs->ofdm_tx_pwr_diff_5g[i][3] = RTWN_SIGN4TO8( in r12a_parse_rom_common()
125 rs->bw20_tx_pwr_diff_5g[i][0] = RTWN_SIGN4TO8( in r12a_parse_rom_common()
127 rs->bw40_tx_pwr_diff_5g[i][0] = 0; in r12a_parse_rom_common()
130 rs->bw20_tx_pwr_diff_5g[i][j] = RTWN_SIGN4TO8( in r12a_parse_rom_common()
132 rs->bw40_tx_pwr_diff_5g[i][j] = RTWN_SIGN4TO8( in r12a_parse_rom_common()
137 rs->bw80_tx_pwr_diff_5g[i][j] = RTWN_SIGN4TO8( in r12a_parse_rom_common()
139 rs->bw160_tx_pwr_diff_5g[i][j] = RTWN_SIGN4TO8( in r12a_parse_rom_common()
144 rs->regulatory = MS(rom->rf_board_opt, R92C_ROM_RF1_REGULATORY); in r12a_parse_rom_common()
145 rs->board_type = in r12a_parse_rom_common()
149 __func__, rs->regulatory); in r12a_parse_rom_common()
155 struct r12a_softc *rs = sc->sc_priv; in r12a_parse_rom() local
164 rs->ext_pa_2g = R12A_ROM_IS_PA_EXT_2GHZ(pa_type); in r12a_parse_rom()
165 rs->ext_pa_5g = R12A_ROM_IS_PA_EXT_5GHZ(pa_type); in r12a_parse_rom()
166 rs->ext_lna_2g = R21A_ROM_IS_LNA_EXT(lna_type_2g); in r12a_parse_rom()
167 rs->ext_lna_5g = R21A_ROM_IS_LNA_EXT(lna_type_5g); in r12a_parse_rom()
168 rs->bt_coex = (MS(rom->rf_board_opt, R92C_ROM_RF1_BOARD_TYPE) == in r12a_parse_rom()
170 rs->bt_ant_num = (rom->rf_bt_opt & R12A_RF_BT_OPT_ANT_NUM); in r12a_parse_rom()
172 if (rs->ext_pa_2g) { in r12a_parse_rom()
173 rs->type_pa_2g = in r12a_parse_rom()
177 if (rs->ext_pa_5g) { in r12a_parse_rom()
178 rs->type_pa_5g = in r12a_parse_rom()
182 if (rs->ext_lna_2g) { in r12a_parse_rom()
183 rs->type_lna_2g = in r12a_parse_rom()
187 if (rs->ext_lna_5g) { in r12a_parse_rom()
188 rs->type_lna_5g = in r12a_parse_rom()
194 if (rs->ext_lna_5g) { in r12a_parse_rom()
195 if (rs->ext_pa_5g) { in r12a_parse_rom()
196 if (rs->ext_pa_2g && rs->ext_lna_2g) in r12a_parse_rom()
197 rs->rfe_type = 3; in r12a_parse_rom()
199 rs->rfe_type = 0; in r12a_parse_rom()
201 rs->rfe_type = 2; in r12a_parse_rom()
203 rs->rfe_type = 4; in r12a_parse_rom()
205 rs->rfe_type = rom->rfe_option & 0x3f; in r12a_parse_rom()
208 if (rs->rfe_type == 4 && in r12a_parse_rom()
209 rs->ext_pa_2g && rs->ext_lna_2g && in r12a_parse_rom()
210 rs->ext_pa_5g && rs->ext_lna_5g) in r12a_parse_rom()
211 rs->rfe_type = 0; in r12a_parse_rom()