Lines Matching refs:snr
67 u32 snr; /* Result of last SNR calculation */ member
602 static int lgdt3302_read_snr(struct dvb_frontend* fe, u16* snr) in lgdt3302_read_snr() argument
637 state->snr = calculate_snr(noise, c); in lgdt3302_read_snr()
638 *snr = (state->snr) >> 16; /* Convert from 8.24 fixed-point to 8.8 */ in lgdt3302_read_snr()
641 state->snr >> 24, (((state->snr>>8) & 0xffff) * 100) >> 16); in lgdt3302_read_snr()
646 static int lgdt3303_read_snr(struct dvb_frontend* fe, u16* snr) in lgdt3303_read_snr() argument
681 state->snr = calculate_snr(noise, c); in lgdt3303_read_snr()
682 *snr = (state->snr) >> 16; /* Convert from 8.24 fixed-point to 8.8 */ in lgdt3303_read_snr()
685 state->snr >> 24, (((state->snr >> 8) & 0xffff) * 100) >> 16); in lgdt3303_read_snr()
696 u16 snr; in lgdt330x_read_signal_strength() local
699 ret = fe->ops.read_snr(fe, &snr); in lgdt330x_read_signal_strength()
704 if (state->snr >= 8960 * 0x10000) in lgdt330x_read_signal_strength()
707 *strength = state->snr / 8960; in lgdt330x_read_signal_strength()