Lines Matching refs:current_agc
51 struct dibx000_agc_config *current_agc;
723 state->current_agc = NULL;
793 if (state->current_band == band && state->current_agc != NULL)
808 state->current_agc = agc;
856 if (!state->current_agc || !state->current_agc->perform_agc_softsplit || state->current_agc->split.max == 0)
862 if (agc > state->current_agc->split.min_thres)
863 split_offset = state->current_agc->split.min;
864 else if (agc < state->current_agc->split.max_thres)
865 split_offset = state->current_agc->split.max;
867 split_offset = state->current_agc->split.max *
868 (agc - state->current_agc->split.min_thres) / (state->current_agc->split.max_thres - state->current_agc->split.min_thres);