Lines Matching refs:wbd
882 static s16 dib0090_wbd_to_db(struct dib0090_state *state, u16 wbd) in dib0090_wbd_to_db() argument
884 wbd &= 0x3ff; in dib0090_wbd_to_db()
885 if (wbd < state->wbd_offset) in dib0090_wbd_to_db()
886 wbd = 0; in dib0090_wbd_to_db()
888 wbd -= state->wbd_offset; in dib0090_wbd_to_db()
890 return -640 + (s16) slopes_to_scale(dib0090_wbd_slopes, ARRAY_SIZE(dib0090_wbd_slopes), wbd); in dib0090_wbd_to_db()
1200 s16 wbd = 0, i, cnt; in dib0090_gain_control() local
1212 wbd += dib0090_wbd_to_db(state, wbd_val); in dib0090_gain_control()
1214 wbd /= cnt; in dib0090_gain_control()
1215 wbd_error = state->wbd_target - wbd; in dib0090_gain_control()
1300 (u32) *tune_state, (u32) adc, (u32) adc_error, (u32) wbd, (u32) wbd_error, (u32) wbd_val, in dib0090_gain_control()
1334 const struct dib0090_wbd_slope *wbd = state->current_wbd_table; in dib0090_get_wbd_target() local
1336 while (f_MHz > wbd->max_freq) in dib0090_get_wbd_target()
1337 wbd++; in dib0090_get_wbd_target()
1339 dprintk("using wbd-table-entry with max freq %d\n", wbd->max_freq); in dib0090_get_wbd_target()
1347 if (wbd->wbd_gain != 0) in dib0090_get_wbd_target()
1348 state->wbdmux |= (wbd->wbd_gain << 13); in dib0090_get_wbd_target()
1354 wbd_thot = wbd->offset_hot - (((u32) wbd->slope_hot * f_MHz) >> 6); in dib0090_get_wbd_target()
1355 wbd_tcold = wbd->offset_cold - (((u32) wbd->slope_cold * f_MHz) >> 6); in dib0090_get_wbd_target()
1779 const struct dib0090_wbd_slope *wbd = state->current_wbd_table; in dib0090_wbd_calibration() local
1783 while (state->current_rf / 1000 > wbd->max_freq) in dib0090_wbd_calibration()
1784 wbd++; in dib0090_wbd_calibration()
1785 if (wbd->wbd_gain != 0) in dib0090_wbd_calibration()
1786 wbd_gain = wbd->wbd_gain; in dib0090_wbd_calibration()
2457 const struct dib0090_wbd_slope *wbd = state->current_wbd_table; in dib0090_tune() local
2459 while (state->current_rf / 1000 > wbd->max_freq) in dib0090_tune()
2460 wbd++; in dib0090_tune()
2476 if (wbd->wbd_gain != 0) in dib0090_tune()
2477 c = wbd->wbd_gain; in dib0090_tune()
2619 if (config->wbd == NULL) in dib0090_register()
2622 st->current_wbd_table = config->wbd; in dib0090_register()