Lines Matching defs:tx
73 r92c_iq_calib_chain(struct rtwn_softc *sc, int chain, uint16_t tx[2],
115 tx[0] = MS(rtwn_bb_read(sc, R92C_TX_POWER_IQK_BEFORE(chain)),
117 tx[1] = MS(rtwn_bb_read(sc, R92C_TX_POWER_IQK_AFTER(chain)),
119 if (tx[0] == 0x142 || tx[1] == 0x042)
136 r92c_iq_calib_run(struct rtwn_softc *sc, int n, uint16_t tx[2][2],
240 tx[chain], rx[chain]);
245 tx[chain][0] = 0xff;
246 tx[chain][1] = 0xff;
263 "%s: results for run %d chain %d: tx[0] 0x%x, "
264 "tx[1] 0x%x, rx[0] 0x%x, rx[1] 0x%x\n", __func__, n, chain,
265 tx[chain][0], tx[chain][1], rx[chain][0], rx[chain][1]);
332 r92c_iq_calib_write_results(struct rtwn_softc *sc, uint16_t tx[2],
338 if (tx[0] == 0xff || tx[1] == 0xff)
343 x = tx[0];
351 y = tx[1];
384 uint16_t tx[RTWN_IQ_CAL_NRUN][2][2], rx[RTWN_IQ_CAL_NRUN][2][2];
389 r92c_iq_calib_run(sc, n, tx[n], rx[n], &vals);
395 valid = r92c_iq_calib_compare_results(sc, tx[n - 1],
396 rx[n - 1], tx[n], rx[n]);
402 r92c_iq_calib_write_results(sc, tx[n][0], rx[n][0], 0);
404 r92c_iq_calib_write_results(sc, tx[n][1], rx[n][1], 1);