Lines Matching defs:ch_idx

8770 	u8 ch_idx;
8883 for (ch_idx = 0; ch_idx < 2; ch_idx = ch_idx + 1) {
8884 if (ch_idx == 0) {
9039 if (ch_idx == 0) {
9342 static void rt2800_write_dc(struct rt2x00_dev *rt2x00dev, u8 ch_idx, u8 alc, u8 iorq, u8 dc)
9350 if (ch_idx == 0)
9360 static void rt2800_loft_search(struct rt2x00_dev *rt2x00dev, u8 ch_idx,
9381 rt2800_write_dc(rt2x00dev, ch_idx, 0, iorq, idx0);
9387 rt2800_write_dc(rt2x00dev, ch_idx, 0, iorq, idx1);
9407 rt2800_write_dc(rt2x00dev, ch_idx, 0, iorq, idxf[iorq]);
9411 dc_result[ch_idx][alc_idx][0] = idxf[0];
9412 dc_result[ch_idx][alc_idx][1] = idxf[1];
9415 static void rt2800_iq_search(struct rt2x00_dev *rt2x00dev, u8 ch_idx, u8 *ges, u8 *pes)
9447 bbp = (ch_idx == 0) ? ((gop == 0) ? 0x28 : 0x29) :
9459 bbp = (ch_idx == 0) ? (gop == 0) ? 0x28 : 0x29 :
9481 bbp = (ch_idx == 0) ? (gop == 0) ? 0x28 : 0x29 :
9513 bbp = (ch_idx == 0) ? 0x28 : 0x46;
9517 bbp = (ch_idx == 0) ? 0x29 : 0x47;
9535 ges[ch_idx] = gerr & 0x0F;
9536 pes[ch_idx] = perr & 0x3F;
9595 u8 bbp = 0, ch_idx = 0, rf_alc_idx = 0, idx = 0;
9631 for (ch_idx = 0; ch_idx < 2; ch_idx++)
9632 rt2800_rf_configstore(rt2x00dev, rf_store, ch_idx);
9647 for (ch_idx = 0; ch_idx < 2; ch_idx++) {
9657 if (ch_idx == 0)
9664 if (ch_idx == 0)
9673 if (ch_idx == 0)
9678 vga_gain[ch_idx] = 18;
9692 rt2800_write_dc(rt2x00dev, ch_idx, 0, 1, 0x21);
9693 for (; vga_gain[ch_idx] > 0;
9694 vga_gain[ch_idx] = vga_gain[ch_idx] - 2) {
9695 rfvalue = rfvga_gain_table[vga_gain[ch_idx]];
9698 rt2800_write_dc(rt2x00dev, ch_idx, 0, 1, 0x00);
9699 rt2800_write_dc(rt2x00dev, ch_idx, 0, 0, 0x00);
9701 rt2800_write_dc(rt2x00dev, ch_idx, 0, 0, 0x21);
9708 rt2800_write_dc(rt2x00dev, ch_idx, 0, 0, 0x00);
9709 rt2800_write_dc(rt2x00dev, ch_idx, 0, 1, 0x00);
9711 rt2x00_dbg(rt2x00dev, "Used VGA %d %x\n", vga_gain[ch_idx],
9712 rfvga_gain_table[vga_gain[ch_idx]]);
9715 rfvalue = rfvga_gain_table[vga_gain[ch_idx]];
9720 rt2800_loft_search(rt2x00dev, ch_idx, rf_alc_idx, loft_dc_search_result);
9849 for (ch_idx = 0; ch_idx < 2; ch_idx++)
9850 rt2800_rf_configstore(rt2x00dev, rf_store, ch_idx);
9860 for (ch_idx = 0; ch_idx < 2; ch_idx++) {
9864 if (ch_idx == 0) {
9889 bbp = (ch_idx == 0) ? 0x28 : 0x46;
9903 for (; vga_gain[ch_idx] < 19; vga_gain[ch_idx] = (vga_gain[ch_idx] + count_step)) {
9904 rfvalue = rfvga_gain_table[vga_gain[ch_idx]];
9908 bbp = (ch_idx == 0) ? 0x29 : 0x47;
9915 bbp = (ch_idx == 0) ? 0x29 : 0x47;
9927 if (vga_gain[ch_idx] != 0)
9928 vga_gain[ch_idx] = vga_gain[ch_idx] - 1;
9937 if (vga_gain[ch_idx] > 18)
9938 vga_gain[ch_idx] = 18;
9939 rt2x00_dbg(rt2x00dev, "Used VGA %d %x\n", vga_gain[ch_idx],
9940 rfvga_gain_table[vga_gain[ch_idx]]);
9942 bbp = (ch_idx == 0) ? 0x29 : 0x47;
9946 rt2800_iq_search(rt2x00dev, ch_idx, ger, per);