Lines Matching refs:agc

267 		/* dem, cfg, iqc, sad, agc */
749 struct dibx000_agc_config *agc = NULL;
756 if (state->cfg.agc[i].band_caps & band) {
757 agc = &state->cfg.agc[i];
761 if (agc == NULL) {
766 state->current_agc = agc;
769 dib7000p_write_word(state, 75, agc->setup);
770 dib7000p_write_word(state, 76, agc->inv_gain);
771 dib7000p_write_word(state, 77, agc->time_stabiliz);
772 dib7000p_write_word(state, 100, (agc->alpha_level << 12) | agc->thlock);
775 dib7000p_write_word(state, 101, (agc->alpha_mant << 5) | agc->alpha_exp);
776 dib7000p_write_word(state, 102, (agc->beta_mant << 6) | agc->beta_exp);
780 state->wbd_ref != 0 ? state->wbd_ref : agc->wbd_ref, agc->wbd_sel, !agc->perform_agc_softsplit, agc->wbd_sel);
783 dib7000p_write_word(state, 105, (agc->wbd_inv << 12) | state->wbd_ref);
785 dib7000p_write_word(state, 105, (agc->wbd_inv << 12) | agc->wbd_ref);
787 dib7000p_write_word(state, 106, (agc->wbd_sel << 13) | (agc->wbd_alpha << 9) | (agc->perform_agc_softsplit << 8));
789 dib7000p_write_word(state, 107, agc->agc1_max);
790 dib7000p_write_word(state, 108, agc->agc1_min);
791 dib7000p_write_word(state, 109, agc->agc2_max);
792 dib7000p_write_word(state, 110, agc->agc2_min);
793 dib7000p_write_word(state, 111, (agc->agc1_pt1 << 8) | agc->agc1_pt2);
794 dib7000p_write_word(state, 112, agc->agc1_pt3);
795 dib7000p_write_word(state, 113, (agc->agc1_slope1 << 8) | agc->agc1_slope2);
796 dib7000p_write_word(state, 114, (agc->agc2_pt1 << 8) | agc->agc2_pt2);
797 dib7000p_write_word(state, 115, (agc->agc2_slope1 << 8) | agc->agc2_slope2);