Lines Matching refs:ch_idx

8731 	u8 ch_idx;  in rt2800_rxiq_calibration()  local
8844 for (ch_idx = 0; ch_idx < 2; ch_idx = ch_idx + 1) { in rt2800_rxiq_calibration()
8845 if (ch_idx == 0) { in rt2800_rxiq_calibration()
9006 if (ch_idx == 0) { in rt2800_rxiq_calibration()
9309 static void rt2800_write_dc(struct rt2x00_dev *rt2x00dev, u8 ch_idx, u8 alc, u8 iorq, u8 dc) in rt2800_write_dc() argument
9317 if (ch_idx == 0) in rt2800_write_dc()
9327 static void rt2800_loft_search(struct rt2x00_dev *rt2x00dev, u8 ch_idx, in rt2800_loft_search() argument
9348 rt2800_write_dc(rt2x00dev, ch_idx, 0, iorq, idx0); in rt2800_loft_search()
9354 rt2800_write_dc(rt2x00dev, ch_idx, 0, iorq, idx1); in rt2800_loft_search()
9374 rt2800_write_dc(rt2x00dev, ch_idx, 0, iorq, idxf[iorq]); in rt2800_loft_search()
9378 dc_result[ch_idx][alc_idx][0] = idxf[0]; in rt2800_loft_search()
9379 dc_result[ch_idx][alc_idx][1] = idxf[1]; in rt2800_loft_search()
9382 static void rt2800_iq_search(struct rt2x00_dev *rt2x00dev, u8 ch_idx, u8 *ges, u8 *pes) in rt2800_iq_search() argument
9414 bbp = (ch_idx == 0) ? ((gop == 0) ? 0x28 : 0x29) : in rt2800_iq_search()
9426 bbp = (ch_idx == 0) ? (gop == 0) ? 0x28 : 0x29 : in rt2800_iq_search()
9448 bbp = (ch_idx == 0) ? (gop == 0) ? 0x28 : 0x29 : in rt2800_iq_search()
9480 bbp = (ch_idx == 0) ? 0x28 : 0x46; in rt2800_iq_search()
9484 bbp = (ch_idx == 0) ? 0x29 : 0x47; in rt2800_iq_search()
9502 ges[ch_idx] = gerr & 0x0F; in rt2800_iq_search()
9503 pes[ch_idx] = perr & 0x3F; in rt2800_iq_search()
9562 u8 bbp = 0, ch_idx = 0, rf_alc_idx = 0, idx = 0; in rt2800_loft_iq_calibration() local
9598 for (ch_idx = 0; ch_idx < 2; ch_idx++) in rt2800_loft_iq_calibration()
9599 rt2800_rf_configstore(rt2x00dev, rf_store, ch_idx); in rt2800_loft_iq_calibration()
9614 for (ch_idx = 0; ch_idx < 2; ch_idx++) { in rt2800_loft_iq_calibration()
9624 if (ch_idx == 0) in rt2800_loft_iq_calibration()
9631 if (ch_idx == 0) in rt2800_loft_iq_calibration()
9640 if (ch_idx == 0) in rt2800_loft_iq_calibration()
9645 vga_gain[ch_idx] = 18; in rt2800_loft_iq_calibration()
9659 rt2800_write_dc(rt2x00dev, ch_idx, 0, 1, 0x21); in rt2800_loft_iq_calibration()
9660 for (; vga_gain[ch_idx] > 0; in rt2800_loft_iq_calibration()
9661 vga_gain[ch_idx] = vga_gain[ch_idx] - 2) { in rt2800_loft_iq_calibration()
9662 rfvalue = rfvga_gain_table[vga_gain[ch_idx]]; in rt2800_loft_iq_calibration()
9665 rt2800_write_dc(rt2x00dev, ch_idx, 0, 1, 0x00); in rt2800_loft_iq_calibration()
9666 rt2800_write_dc(rt2x00dev, ch_idx, 0, 0, 0x00); in rt2800_loft_iq_calibration()
9668 rt2800_write_dc(rt2x00dev, ch_idx, 0, 0, 0x21); in rt2800_loft_iq_calibration()
9675 rt2800_write_dc(rt2x00dev, ch_idx, 0, 0, 0x00); in rt2800_loft_iq_calibration()
9676 rt2800_write_dc(rt2x00dev, ch_idx, 0, 1, 0x00); in rt2800_loft_iq_calibration()
9678 rt2x00_dbg(rt2x00dev, "Used VGA %d %x\n", vga_gain[ch_idx], in rt2800_loft_iq_calibration()
9679 rfvga_gain_table[vga_gain[ch_idx]]); in rt2800_loft_iq_calibration()
9681 if (vga_gain[ch_idx] < 0) in rt2800_loft_iq_calibration()
9682 vga_gain[ch_idx] = 0; in rt2800_loft_iq_calibration()
9685 rfvalue = rfvga_gain_table[vga_gain[ch_idx]]; in rt2800_loft_iq_calibration()
9690 rt2800_loft_search(rt2x00dev, ch_idx, rf_alc_idx, loft_dc_search_result); in rt2800_loft_iq_calibration()
9819 for (ch_idx = 0; ch_idx < 2; ch_idx++) in rt2800_loft_iq_calibration()
9820 rt2800_rf_configstore(rt2x00dev, rf_store, ch_idx); in rt2800_loft_iq_calibration()
9830 for (ch_idx = 0; ch_idx < 2; ch_idx++) { in rt2800_loft_iq_calibration()
9834 if (ch_idx == 0) { in rt2800_loft_iq_calibration()
9859 bbp = (ch_idx == 0) ? 0x28 : 0x46; in rt2800_loft_iq_calibration()
9873 for (; vga_gain[ch_idx] < 19; vga_gain[ch_idx] = (vga_gain[ch_idx] + count_step)) { in rt2800_loft_iq_calibration()
9874 rfvalue = rfvga_gain_table[vga_gain[ch_idx]]; in rt2800_loft_iq_calibration()
9878 bbp = (ch_idx == 0) ? 0x29 : 0x47; in rt2800_loft_iq_calibration()
9885 bbp = (ch_idx == 0) ? 0x29 : 0x47; in rt2800_loft_iq_calibration()
9897 if (vga_gain[ch_idx] != 0) in rt2800_loft_iq_calibration()
9898 vga_gain[ch_idx] = vga_gain[ch_idx] - 1; in rt2800_loft_iq_calibration()
9907 if (vga_gain[ch_idx] > 18) in rt2800_loft_iq_calibration()
9908 vga_gain[ch_idx] = 18; in rt2800_loft_iq_calibration()
9909 rt2x00_dbg(rt2x00dev, "Used VGA %d %x\n", vga_gain[ch_idx], in rt2800_loft_iq_calibration()
9910 rfvga_gain_table[vga_gain[ch_idx]]); in rt2800_loft_iq_calibration()
9912 bbp = (ch_idx == 0) ? 0x29 : 0x47; in rt2800_loft_iq_calibration()
9916 rt2800_iq_search(rt2x00dev, ch_idx, ger, per); in rt2800_loft_iq_calibration()