Lines Matching refs:snr
411 u16 *snr) in mxl111sf_demod_calc_snr() argument
416 *snr = 0; in mxl111sf_demod_calc_snr()
425 *snr = CALCULATE_SNR(val1 | ((val2 & 0x03) << 8)); in mxl111sf_demod_calc_snr()
430 static int mxl111sf_demod_read_snr(struct dvb_frontend *fe, u16 *snr) in mxl111sf_demod_read_snr() argument
434 int ret = mxl111sf_demod_calc_snr(state, snr); in mxl111sf_demod_read_snr()
438 *snr /= 10; /* 0.1 dB */ in mxl111sf_demod_read_snr()
484 u16 snr; in mxl111sf_demod_read_signal_strength() local
486 mxl111sf_demod_calc_snr(state, &snr); in mxl111sf_demod_read_signal_strength()
491 *signal_strength = (snr >= 1300) ? in mxl111sf_demod_read_signal_strength()
492 min(65535, snr * 44) : snr * 38; in mxl111sf_demod_read_signal_strength()
495 *signal_strength = (snr >= 1500) ? in mxl111sf_demod_read_signal_strength()
496 min(65535, snr * 38) : snr * 33; in mxl111sf_demod_read_signal_strength()
499 *signal_strength = (snr >= 2000) ? in mxl111sf_demod_read_signal_strength()
500 min(65535, snr * 29) : snr * 25; in mxl111sf_demod_read_signal_strength()