Lines Matching refs:wbd
408 static s16 dib0090_wbd_to_db(struct dib0090_state *state, u16 wbd)
410 wbd &= 0x3ff;
411 if (wbd < state->wbd_offset)
412 wbd = 0;
414 wbd -= state->wbd_offset;
416 return -640 + (s16) slopes_to_scale(dib0090_wbd_slopes, ARRAY_SIZE(dib0090_wbd_slopes), wbd);
435 dprintk("wbd-target: %d dB", (u32) state->wbd_target);
672 s16 wbd;
677 /* read and calc the wbd power */
678 wbd = dib0090_wbd_to_db(state, wbd_val);
679 wbd_error = state->wbd_target - wbd;
764 (u32) fe->id, (u32) *tune_state, (u32) adc, (u32) adc_error, (u32) wbd, (u32) wbd_error, (u32) wbd_val,
890 state->reset = 3; /* enable iq-offset-calibration and wbd-calibration when tuning next time */