Lines Matching refs:agc
1168 struct dibx000_agc_config *agc = NULL;
1177 if (state->cfg.agc[i].band_caps & band) {
1178 agc = &state->cfg.agc[i];
1182 if (agc == NULL) {
1187 state->current_agc = agc;
1190 dib8000_write_word(state, 76, agc->setup);
1191 dib8000_write_word(state, 77, agc->inv_gain);
1192 dib8000_write_word(state, 78, agc->time_stabiliz);
1193 dib8000_write_word(state, 101, (agc->alpha_level << 12) | agc->thlock);
1196 dib8000_write_word(state, 102, (agc->alpha_mant << 5) | agc->alpha_exp);
1197 dib8000_write_word(state, 103, (agc->beta_mant << 6) | agc->beta_exp);
1200 state->wbd_ref != 0 ? state->wbd_ref : agc->wbd_ref, agc->wbd_sel, !agc->perform_agc_softsplit, agc->wbd_sel);
1206 dib8000_write_word(state, 106, agc->wbd_ref);
1210 dib8000_write_word(state, 922, reg | (agc->wbd_sel << 2));
1213 dib8000_write_word(state, 107, (agc->wbd_alpha << 9) | (agc->perform_agc_softsplit << 8));
1214 dib8000_write_word(state, 108, agc->agc1_max);
1215 dib8000_write_word(state, 109, agc->agc1_min);
1216 dib8000_write_word(state, 110, agc->agc2_max);
1217 dib8000_write_word(state, 111, agc->agc2_min);
1218 dib8000_write_word(state, 112, (agc->agc1_pt1 << 8) | agc->agc1_pt2);
1219 dib8000_write_word(state, 113, (agc->agc1_slope1 << 8) | agc->agc1_slope2);
1220 dib8000_write_word(state, 114, (agc->agc2_pt1 << 8) | agc->agc2_pt2);
1221 dib8000_write_word(state, 115, (agc->agc2_slope1 << 8) | agc->agc2_slope2);
1223 dib8000_write_word(state, 75, agc->agc1_pt3);
1227 (agc->wbd_inv << 4) | (agc->wbd_sel << 2));
1241 u16 agc, split_offset;
1247 agc = dib8000_read_word(state, 390);
1249 if (agc > state->current_agc->split.min_thres)
1251 else if (agc < state->current_agc->split.max_thres)
1255 (agc - state->current_agc->split.min_thres) /