Lines Matching refs:rf_gain_limit
135 s16 rf_gain_limit; /* take-over-point: where to split between bb and rf gain */ member
932 if (top_delta >= ((s16) (state->rf_ramp[0] << WBD_ALPHA) - state->rf_gain_limit)) /* overflow */ in dib0090_gain_apply()
933 state->rf_gain_limit = state->rf_ramp[0] << WBD_ALPHA; in dib0090_gain_apply()
935 state->rf_gain_limit += top_delta; in dib0090_gain_apply()
937 if (state->rf_gain_limit < 0) /*underflow */ in dib0090_gain_apply()
938 state->rf_gain_limit = 0; in dib0090_gain_apply()
941 gain = ((state->rf_gain_limit >> WBD_ALPHA) + state->bb_ramp[0]) << GAIN_ALPHA; in dib0090_gain_apply()
954 if (gain > (state->rf_gain_limit >> WBD_ALPHA)) { in dib0090_gain_apply()
955 rf = state->rf_gain_limit >> WBD_ALPHA; in dib0090_gain_apply()
1195 state->rf_gain_limit = state->rf_ramp[0] << WBD_ALPHA; in dib0090_gain_control()
1218 if (wbd_error < 0 && state->rf_gain_limit > 0 && !state->identity.p1g) { in dib0090_gain_control()
1301 (u32) state->rf_gain_limit >> WBD_ALPHA, (s32) 200 + adc - (state->current_gain >> GAIN_ALPHA)); in dib0090_gain_control()
1313 void dib0090_get_current_gain(struct dvb_frontend *fe, u16 * rf, u16 * bb, u16 * rf_gain_limit, u16… in dib0090_get_current_gain() argument
1320 if (rf_gain_limit) in dib0090_get_current_gain()
1321 *rf_gain_limit = state->rf_gain_limit; in dib0090_get_current_gain()