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()
9008 if (ch_idx == 0) { in rt2800_rxiq_calibration()
9311 static void rt2800_write_dc(struct rt2x00_dev *rt2x00dev, u8 ch_idx, u8 alc, u8 iorq, u8 dc) in rt2800_write_dc() argument
9319 if (ch_idx == 0) in rt2800_write_dc()
9329 static void rt2800_loft_search(struct rt2x00_dev *rt2x00dev, u8 ch_idx, in rt2800_loft_search() argument
9350 rt2800_write_dc(rt2x00dev, ch_idx, 0, iorq, idx0); in rt2800_loft_search()
9356 rt2800_write_dc(rt2x00dev, ch_idx, 0, iorq, idx1); in rt2800_loft_search()
9376 rt2800_write_dc(rt2x00dev, ch_idx, 0, iorq, idxf[iorq]); in rt2800_loft_search()
9380 dc_result[ch_idx][alc_idx][0] = idxf[0]; in rt2800_loft_search()
9381 dc_result[ch_idx][alc_idx][1] = idxf[1]; in rt2800_loft_search()
9384 static void rt2800_iq_search(struct rt2x00_dev *rt2x00dev, u8 ch_idx, u8 *ges, u8 *pes) in rt2800_iq_search() argument
9416 bbp = (ch_idx == 0) ? ((gop == 0) ? 0x28 : 0x29) : in rt2800_iq_search()
9428 bbp = (ch_idx == 0) ? (gop == 0) ? 0x28 : 0x29 : in rt2800_iq_search()
9450 bbp = (ch_idx == 0) ? (gop == 0) ? 0x28 : 0x29 : in rt2800_iq_search()
9482 bbp = (ch_idx == 0) ? 0x28 : 0x46; in rt2800_iq_search()
9486 bbp = (ch_idx == 0) ? 0x29 : 0x47; in rt2800_iq_search()
9504 ges[ch_idx] = gerr & 0x0F; in rt2800_iq_search()
9505 pes[ch_idx] = perr & 0x3F; in rt2800_iq_search()
9564 u8 bbp = 0, ch_idx = 0, rf_alc_idx = 0, idx = 0; in rt2800_loft_iq_calibration() local
9600 for (ch_idx = 0; ch_idx < 2; ch_idx++) in rt2800_loft_iq_calibration()
9601 rt2800_rf_configstore(rt2x00dev, rf_store, ch_idx); in rt2800_loft_iq_calibration()
9616 for (ch_idx = 0; ch_idx < 2; ch_idx++) { in rt2800_loft_iq_calibration()
9626 if (ch_idx == 0) in rt2800_loft_iq_calibration()
9633 if (ch_idx == 0) in rt2800_loft_iq_calibration()
9642 if (ch_idx == 0) in rt2800_loft_iq_calibration()
9647 vga_gain[ch_idx] = 18; in rt2800_loft_iq_calibration()
9661 rt2800_write_dc(rt2x00dev, ch_idx, 0, 1, 0x21); in rt2800_loft_iq_calibration()
9662 for (; vga_gain[ch_idx] > 0; in rt2800_loft_iq_calibration()
9663 vga_gain[ch_idx] = vga_gain[ch_idx] - 2) { in rt2800_loft_iq_calibration()
9664 rfvalue = rfvga_gain_table[vga_gain[ch_idx]]; in rt2800_loft_iq_calibration()
9667 rt2800_write_dc(rt2x00dev, ch_idx, 0, 1, 0x00); in rt2800_loft_iq_calibration()
9668 rt2800_write_dc(rt2x00dev, ch_idx, 0, 0, 0x00); in rt2800_loft_iq_calibration()
9670 rt2800_write_dc(rt2x00dev, ch_idx, 0, 0, 0x21); in rt2800_loft_iq_calibration()
9677 rt2800_write_dc(rt2x00dev, ch_idx, 0, 0, 0x00); in rt2800_loft_iq_calibration()
9678 rt2800_write_dc(rt2x00dev, ch_idx, 0, 1, 0x00); in rt2800_loft_iq_calibration()
9680 rt2x00_dbg(rt2x00dev, "Used VGA %d %x\n", vga_gain[ch_idx], in rt2800_loft_iq_calibration()
9681 rfvga_gain_table[vga_gain[ch_idx]]); in rt2800_loft_iq_calibration()
9683 if (vga_gain[ch_idx] < 0) in rt2800_loft_iq_calibration()
9684 vga_gain[ch_idx] = 0; in rt2800_loft_iq_calibration()
9687 rfvalue = rfvga_gain_table[vga_gain[ch_idx]]; in rt2800_loft_iq_calibration()
9692 rt2800_loft_search(rt2x00dev, ch_idx, rf_alc_idx, loft_dc_search_result); in rt2800_loft_iq_calibration()
9821 for (ch_idx = 0; ch_idx < 2; ch_idx++) in rt2800_loft_iq_calibration()
9822 rt2800_rf_configstore(rt2x00dev, rf_store, ch_idx); in rt2800_loft_iq_calibration()
9832 for (ch_idx = 0; ch_idx < 2; ch_idx++) { in rt2800_loft_iq_calibration()
9836 if (ch_idx == 0) { in rt2800_loft_iq_calibration()
9861 bbp = (ch_idx == 0) ? 0x28 : 0x46; in rt2800_loft_iq_calibration()
9875 for (; vga_gain[ch_idx] < 19; vga_gain[ch_idx] = (vga_gain[ch_idx] + count_step)) { in rt2800_loft_iq_calibration()
9876 rfvalue = rfvga_gain_table[vga_gain[ch_idx]]; in rt2800_loft_iq_calibration()
9880 bbp = (ch_idx == 0) ? 0x29 : 0x47; in rt2800_loft_iq_calibration()
9887 bbp = (ch_idx == 0) ? 0x29 : 0x47; in rt2800_loft_iq_calibration()
9899 if (vga_gain[ch_idx] != 0) in rt2800_loft_iq_calibration()
9900 vga_gain[ch_idx] = vga_gain[ch_idx] - 1; in rt2800_loft_iq_calibration()
9909 if (vga_gain[ch_idx] > 18) in rt2800_loft_iq_calibration()
9910 vga_gain[ch_idx] = 18; in rt2800_loft_iq_calibration()
9911 rt2x00_dbg(rt2x00dev, "Used VGA %d %x\n", vga_gain[ch_idx], in rt2800_loft_iq_calibration()
9912 rfvga_gain_table[vga_gain[ch_idx]]); in rt2800_loft_iq_calibration()
9914 bbp = (ch_idx == 0) ? 0x29 : 0x47; in rt2800_loft_iq_calibration()
9918 rt2800_iq_search(rt2x00dev, ch_idx, ger, per); in rt2800_loft_iq_calibration()