Lines Matching refs:s16
133 s16 wbd_target; /* in dB */
135 s16 rf_gain_limit; /* take-over-point: where to split between bb and rf gain */
136 s16 current_gain; /* keeps the currently programmed gain */
151 s16 adc_diff;
152 s16 min_adc_diff;
174 s16 temperature;
857 s16 range;
858 s16 slope;
860 static u16 slopes_to_scale(const struct slope *slopes, u8 num, s16 val)
882 static s16 dib0090_wbd_to_db(struct dib0090_state *state, u16 wbd)
890 return -640 + (s16) slopes_to_scale(dib0090_wbd_slopes, ARRAY_SIZE(dib0090_wbd_slopes), wbd);
916 static void dib0090_gain_apply(struct dib0090_state *state, s16 gain_delta, s16 top_delta, u8 force)
932 if (top_delta >= ((s16) (state->rf_ramp[0] << WBD_ALPHA) - state->rf_gain_limit)) /* overflow */
942 if (gain_delta >= ((s16) gain - state->current_gain)) /* overflow */
1158 s16 wbd_error = 0, adc_error = 0;
1200 s16 wbd = 0, i, cnt;
1236 adc_error = (s16) (((s32) ADC_TARGET) - adc);
2080 s16 adc_target;
2184 s16 val;
2206 state->temperature = ((s16) ((val - state->adc_diff) * 180) >> 8) + 55;