Lines Matching +full:k +full:- +full:to +full:- +full:j
1 /*-
15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
63 struct r92e_softc *rs = sc->sc_priv; in r92e_parse_rom()
66 int i, j, k; in r92e_parse_rom() local
68 sc->thermal_meter = rom->thermal_meter; in r92e_parse_rom()
69 rs->crystalcap = RTWN_GET_ROM_VAR(rom->crystalcap, in r92e_parse_rom()
72 for (i = 0; i < sc->ntxchains; i++) { in r92e_parse_rom()
73 struct r92e_tx_pwr_2g *pwr_2g = &rom->tx_pwr[i].pwr_2g; in r92e_parse_rom()
75 &rom->tx_pwr[i].pwr_diff_2g; in r92e_parse_rom()
77 for (j = 0; j < R92E_GROUP_2G - 1; j++) { in r92e_parse_rom()
78 rs->cck_tx_pwr[i][j] = in r92e_parse_rom()
79 RTWN_GET_ROM_VAR(pwr_2g->cck[j], in r92e_parse_rom()
81 rs->ht40_tx_pwr_2g[i][j] = in r92e_parse_rom()
82 RTWN_GET_ROM_VAR(pwr_2g->ht40[j], in r92e_parse_rom()
85 rs->cck_tx_pwr[i][j] = RTWN_GET_ROM_VAR(pwr_2g->cck[j], in r92e_parse_rom()
88 rs->cck_tx_pwr_diff_2g[i][0] = 0; in r92e_parse_rom()
89 rs->ofdm_tx_pwr_diff_2g[i][0] = RTWN_SIGN4TO8( in r92e_parse_rom()
90 MS(pwr_diff_2g->ht20_ofdm, LOW_PART)); in r92e_parse_rom()
91 rs->bw20_tx_pwr_diff_2g[i][0] = RTWN_SIGN4TO8( in r92e_parse_rom()
92 MS(pwr_diff_2g->ht20_ofdm, HIGH_PART)); in r92e_parse_rom()
93 rs->bw40_tx_pwr_diff_2g[i][0] = 0; in r92e_parse_rom()
94 pwr_diff = RTWN_GET_ROM_VAR(pwr_diff_2g->ht20_ofdm, in r92e_parse_rom()
97 rs->ofdm_tx_pwr_diff_2g[i][0] = RTWN_SIGN4TO8( in r92e_parse_rom()
98 MS(pwr_diff_2g->ht20_ofdm, LOW_PART)); in r92e_parse_rom()
99 rs->bw20_tx_pwr_diff_2g[i][0] = RTWN_SIGN4TO8( in r92e_parse_rom()
100 MS(pwr_diff_2g->ht20_ofdm, HIGH_PART)); in r92e_parse_rom()
102 rs->ofdm_tx_pwr_diff_2g[i][0] = in r92e_parse_rom()
103 rs->bw20_tx_pwr_diff_2g[i][0] = pwr_diff; in r92e_parse_rom()
106 for (j = 1, k = 0; k < nitems(pwr_diff_2g->diff123); j++, k++) { in r92e_parse_rom()
108 pwr_diff_2g->diff123[k].ofdm_cck, in r92e_parse_rom()
111 rs->cck_tx_pwr_diff_2g[i][j] = RTWN_SIGN4TO8( in r92e_parse_rom()
112 MS(pwr_diff_2g->diff123[k].ofdm_cck, in r92e_parse_rom()
114 rs->ofdm_tx_pwr_diff_2g[i][j] = RTWN_SIGN4TO8( in r92e_parse_rom()
115 MS(pwr_diff_2g->diff123[k].ofdm_cck, in r92e_parse_rom()
118 rs->cck_tx_pwr_diff_2g[i][j] = in r92e_parse_rom()
119 rs->ofdm_tx_pwr_diff_2g[i][j] = pwr_diff; in r92e_parse_rom()
122 pwr_diff_2g->diff123[k].ht40_ht20, in r92e_parse_rom()
125 rs->bw20_tx_pwr_diff_2g[i][j] = RTWN_SIGN4TO8( in r92e_parse_rom()
126 MS(pwr_diff_2g->diff123[k].ht40_ht20, in r92e_parse_rom()
128 rs->bw40_tx_pwr_diff_2g[i][j] = RTWN_SIGN4TO8( in r92e_parse_rom()
129 MS(pwr_diff_2g->diff123[k].ht40_ht20, in r92e_parse_rom()
132 rs->bw20_tx_pwr_diff_2g[i][j] = in r92e_parse_rom()
133 rs->bw40_tx_pwr_diff_2g[i][j] = pwr_diff; in r92e_parse_rom()
138 rs->regulatory = MS(rom->rf_board_opt, R92C_ROM_RF1_REGULATORY); in r92e_parse_rom()
141 IEEE80211_ADDR_COPY(sc->sc_ic.ic_macaddr, rom->macaddr); in r92e_parse_rom()