Searched refs:snr (Results 1 - 25 of 97) sorted by relevance

1234

/drivers/media/dvb/dvb-usb/
H A Dmxl111sf-demod.c411 u16 *snr)
416 *snr = 0;
425 *snr = CALCULATE_SNR(val1 | ((val2 & 0x03) << 8));
430 static int mxl111sf_demod_read_snr(struct dvb_frontend *fe, u16 *snr) argument
434 int ret = mxl111sf_demod_calc_snr(state, snr);
438 *snr /= 10; /* 0.1 dB */
484 u16 snr; local
486 mxl111sf_demod_calc_snr(state, &snr);
491 *signal_strength = (snr >= 1300) ?
492 min(65535, snr * 4
410 mxl111sf_demod_calc_snr(struct mxl111sf_demod_state *state, u16 *snr) argument
[all...]
H A Dgp8psk-fe.c23 u16 snr; member in struct:gp8psk_fe_state
48 st->snr = (buf[1]) << 8 | buf[0];
87 static int gp8psk_fe_read_snr(struct dvb_frontend* fe, u16 *snr) argument
91 /* snr is reported in dBu*256 */
92 *snr = st->snr;
100 /* snr is reported in dBu*256 */
101 /* snr / 38.4 ~= 100% strength */
102 /* snr * 17 returns 100% strength as 65535 */
103 if (st->snr >
[all...]
H A DcinergyT2-fe.c230 static int cinergyt2_fe_read_snr(struct dvb_frontend *fe, u16 *snr) argument
243 *snr = (status.snr << 8) | status.snr;
H A DcinergyT2.h74 uint8_t snr; member in struct:dvbt_get_status_msg
H A Dvp702x-fe.c36 u8 snr; member in struct:vp702x_fe_state
55 st->snr = buf[0];
120 static int vp702x_fe_read_snr(struct dvb_frontend* fe, u16 *snr) argument
126 _snr = (st->snr & 0x1f) * 0xff / 0x1f;
127 *snr = (_snr << 8) | _snr;
H A Ddtt200u-fe.c74 static int dtt200u_fe_read_snr(struct dvb_frontend* fe, u16 *snr) argument
79 *snr = ~((br << 8) | br);
H A Dvp7045-fe.c82 static int vp7045_fe_read_snr(struct dvb_frontend* fe, u16 *snr) argument
86 *snr = (_snr << 8) | _snr;
/drivers/media/dvb/frontends/
H A Dlgdt330x.c71 u32 snr; /* Result of last SNR calculation */ member in struct:lgdt330x_state
585 We re-write the snr equation as:
604 static int lgdt3302_read_snr(struct dvb_frontend* fe, u16* snr) argument
639 state->snr = calculate_snr(noise, c);
640 *snr = (state->snr) >> 16; /* Convert from 8.24 fixed-point to 8.8 */
642 dprintk("%s: noise = 0x%08x, snr = %d.%02d dB\n", __func__, noise,
643 state->snr >> 24, (((state->snr>>8) & 0xffff) * 100) >> 16);
648 static int lgdt3303_read_snr(struct dvb_frontend* fe, u16* snr) argument
698 u16 snr; local
[all...]
H A Dor51132.c67 u32 snr; /* Result of last SNR calculation */ member in struct:or51132_state
455 We re-write the snr equation as:
475 static int or51132_read_snr(struct dvb_frontend* fe, u16* snr) argument
518 state->snr = calculate_snr(noise, c) - usK;
519 *snr = (state->snr) >> 16;
521 dprintk("%s: noise = 0x%08x, snr = %d.%02d dB\n", __func__, noise,
522 state->snr >> 24, (((state->snr>>8) & 0xffff) * 100) >> 16);
533 u16 snr; local
[all...]
H A Dor51211.c66 u32 snr; /* Result of last SNR claculation */ member in struct:or51211_state
278 We re-write the snr equation as:
297 static int or51211_read_snr(struct dvb_frontend* fe, u16* snr) argument
309 printk(KERN_WARNING "%s: error writing snr reg\n",
319 state->snr = calculate_snr(rec_buf[0], 89599047);
320 *snr = (state->snr) >> 16;
322 dprintk("%s: noise = 0x%02x, snr = %d.%02d dB\n", __func__, rec_buf[0],
323 state->snr >> 24, (((state->snr>>
334 u16 snr; local
[all...]
H A Ds5h1409.c810 static int s5h1409_qam256_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v) argument
817 *snr = qam256_snr_tab[i].data;
825 static int s5h1409_qam64_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v) argument
832 *snr = qam64_snr_tab[i].data;
840 static int s5h1409_vsb_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v) argument
847 *snr = vsb_snr_tab[i].data;
852 dprintk("%s() snr=%d\n", __func__, *snr);
856 static int s5h1409_read_snr(struct dvb_frontend *fe, u16 *snr) argument
865 return s5h1409_qam64_lookup_snr(fe, snr, re
889 u16 snr; local
[all...]
H A Dcxd2820r_priv.h99 int cxd2820r_read_snr_c(struct dvb_frontend *fe, u16 *snr);
122 int cxd2820r_read_snr_t(struct dvb_frontend *fe, u16 *snr);
145 int cxd2820r_read_snr_t2(struct dvb_frontend *fe, u16 *snr);
H A Dau8522_dig.c290 u16 *snr)
297 *snr = tab[i].data;
302 dprintk("%s() snr=%d\n", __func__, *snr);
800 static int au8522_led_status(struct au8522_state *state, const u16 *snr) argument
819 if (*snr >= strong)
825 (((strong < *snr) ? (*snr - strong) : (strong - *snr)) <= 10))
826 /* snr did
289 au8522_mse2snr_lookup(struct mse2snr_tab *tab, int sz, int mse, u16 *snr) argument
833 au8522_read_snr(struct dvb_frontend *fe, u16 *snr) argument
872 u16 snr; local
[all...]
H A Ds5h1411.c724 static int s5h1411_qam256_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v) argument
731 *snr = qam256_snr_tab[i].data;
739 static int s5h1411_qam64_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v) argument
746 *snr = qam64_snr_tab[i].data;
754 static int s5h1411_vsb_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v) argument
761 *snr = vsb_snr_tab[i].data;
766 dprintk("%s() snr=%d\n", __func__, *snr);
770 static int s5h1411_read_snr(struct dvb_frontend *fe, u16 *snr) argument
779 return s5h1411_qam64_lookup_snr(fe, snr, re
804 u16 snr; local
[all...]
H A Ddvb_dummy_fe.c59 static int dvb_dummy_fe_read_snr(struct dvb_frontend* fe, u16* snr) argument
61 *snr = 0;
H A Dcxd2820r_t.c319 int cxd2820r_read_snr_t(struct dvb_frontend *fe, u16 *snr) argument
334 *snr = (intlog10(tmp) - CXD2820R_LOG10_8_24) / ((1 << 24)
337 *snr = 0;
339 dbg("%s: dBx10=%d val=%04x", __func__, *snr, tmp);
H A Dcxd2820r_t2.c353 int cxd2820r_read_snr_t2(struct dvb_frontend *fe, u16 *snr) argument
368 *snr = (intlog10(tmp) - CXD2820R_LOG10_8_24) / ((1 << 24)
371 *snr = 0;
373 dbg("%s: dBx10=%d val=%04x", __func__, *snr, tmp);
H A Dlgdt3305.c65 u32 snr; member in struct:lgdt3305_state
998 static int lgdt3305_read_snr(struct dvb_frontend *fe, u16 *snr) argument
1034 state->snr = calculate_snr(noise, c);
1036 *snr = (state->snr / ((1 << 24) / 10));
1037 lg_dbg("noise = 0x%08x, snr = %d.%02d dB\n", noise,
1038 state->snr >> 24, (((state->snr >> 8) & 0xffff) * 100) >> 16);
1054 u16 snr; local
1059 ret = fe->ops.read_snr(fe, &snr);
[all...]
H A Dcxd2820r_c.c221 int cxd2820r_read_snr_c(struct dvb_frontend *fe, u16 *snr) argument
247 *snr = A * (intlog2(B / tmp) >> 5) / (CXD2820R_LOG2_E_24 >> 5)
250 *snr = 0;
H A Dec100.c255 static int ec100_read_snr(struct dvb_frontend *fe, u16 *snr) argument
257 *snr = 0;
H A Dcx24116.c336 * status 1f | signal c3c0 | snr a333 | ber 00000098 | unc 0 | FE_HAS_LOCK
339 * status 1f | signal c3c0 | snr a333 | ber 00000000 | unc 0 | FE_HAS_LOCK
754 static int cx24116_read_snr_pct(struct dvb_frontend *fe, u16 *snr) argument
769 *snr = 0xffff;
771 *snr = snr_tab[(snr_reading & 0xf0) >> 4] +
775 snr_reading, *snr);
784 static int cx24116_read_snr_esno(struct dvb_frontend *fe, u16 *snr) argument
790 *snr = cx24116_readreg(state, CX24116_REG_QUALITY8) << 8 |
793 dprintk("%s: raw 0x%04x\n", __func__, *snr);
798 static int cx24116_read_snr(struct dvb_frontend *fe, u16 *snr) argument
[all...]
H A Dds3000.c610 /* calculate DS3000 snr value in dB */
611 static int ds3000_read_snr(struct dvb_frontend *fe, u16 *snr) argument
644 *snr = 0x0000;
651 *snr = snr_value * 8 * 655;
654 snr_reading, *snr);
662 *snr = 0x0000;
669 *snr = 0xffff;
679 *snr = snr_value * 5 * 655;
684 *snr = -(dvbs2_snr_tab[snr_reading] / 1000);
687 snr_reading, *snr);
[all...]
/drivers/net/wireless/wl1251/
H A Drx.h117 u8 snr; /* in dB */ member in struct:wl1251_rx_descriptor
/drivers/net/wireless/wl12xx/
H A Drx.h121 u8 snr; member in struct:wl1271_rx_descriptor
/drivers/media/dvb/firewire/
H A Dfiredtv-fe.c126 static int fdtv_read_snr(struct dvb_frontend *fe, u16 *snr) argument
134 /* C/N[dB] = -10 * log10(snr / 65535) */
135 *snr = stat.carrier_noise_ratio * 257;

Completed in 309 milliseconds

1234