Lines Matching refs:snr
712 static int s5h1411_qam256_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v) in s5h1411_qam256_lookup_snr() argument
719 *snr = qam256_snr_tab[i].data; in s5h1411_qam256_lookup_snr()
727 static int s5h1411_qam64_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v) in s5h1411_qam64_lookup_snr() argument
734 *snr = qam64_snr_tab[i].data; in s5h1411_qam64_lookup_snr()
742 static int s5h1411_vsb_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v) in s5h1411_vsb_lookup_snr() argument
749 *snr = vsb_snr_tab[i].data; in s5h1411_vsb_lookup_snr()
754 dprintk("%s() snr=%d\n", __func__, *snr); in s5h1411_vsb_lookup_snr()
758 static int s5h1411_read_snr(struct dvb_frontend *fe, u16 *snr) in s5h1411_read_snr() argument
767 return s5h1411_qam64_lookup_snr(fe, snr, reg); in s5h1411_read_snr()
770 return s5h1411_qam256_lookup_snr(fe, snr, reg); in s5h1411_read_snr()
774 return s5h1411_vsb_lookup_snr(fe, snr, reg); in s5h1411_read_snr()
792 u16 snr; in s5h1411_read_signal_strength() local
794 int ret = s5h1411_read_snr(fe, &snr); in s5h1411_read_signal_strength()
804 tmp = (snr * ((1 << 24) / 10)); in s5h1411_read_signal_strength()