Lines Matching refs:s16
149 s16 wbd_target; /* in dB */
151 s16 rf_gain_limit; /* take-over-point: where to split between bb and rf gain */
152 s16 current_gain; /* keeps the currently programmed gain */
167 s16 adc_diff;
168 s16 min_adc_diff;
190 s16 temperature;
867 s16 range;
868 s16 slope;
870 static u16 slopes_to_scale(const struct slope *slopes, u8 num, s16 val) in slopes_to_scale()
892 static s16 dib0090_wbd_to_db(struct dib0090_state *state, u16 wbd) in dib0090_wbd_to_db()
900 return -640 + (s16) slopes_to_scale(dib0090_wbd_slopes, ARRAY_SIZE(dib0090_wbd_slopes), wbd); in dib0090_wbd_to_db()
926 static void dib0090_gain_apply(struct dib0090_state *state, s16 gain_delta, s16 top_delta, u8 force) in dib0090_gain_apply()
942 if (top_delta >= ((s16) (state->rf_ramp[0] << WBD_ALPHA) - state->rf_gain_limit)) /* overflow */ in dib0090_gain_apply()
952 if (gain_delta >= ((s16) gain - state->current_gain)) /* overflow */ in dib0090_gain_apply()
1162 s16 wbd_error = 0, adc_error = 0; in dib0090_gain_control()
1204 s16 wbd = 0, i, cnt; in dib0090_gain_control()
1240 adc_error = (s16) (((s32) ADC_TARGET) - adc); in dib0090_gain_control()
2080 s16 adc_target; in dib0090_captrim_search()
2183 s16 val; in dib0090_get_temperature()
2205 state->temperature = ((s16) ((val - state->adc_diff) * 180) >> 8) + 55; in dib0090_get_temperature()