Home
last modified time | relevance | path

Searched refs:snr (Results 1 – 25 of 134) sorted by relevance

123456

/drivers/media/dvb-frontends/
Dau8522_dig.c228 u16 *snr) in au8522_mse2snr_lookup() argument
235 *snr = tab[i].data; in au8522_mse2snr_lookup()
240 dprintk("%s() snr=%d\n", __func__, *snr); in au8522_mse2snr_lookup()
705 static int au8522_led_status(struct au8522_state *state, const u16 *snr) in au8522_led_status() argument
724 if (*snr >= strong) in au8522_led_status()
730 (((strong < *snr) ? (*snr - strong) : (strong - *snr)) <= 10)) in au8522_led_status()
738 static int au8522_read_snr(struct dvb_frontend *fe, u16 *snr) in au8522_read_snr() argument
749 snr); in au8522_read_snr()
754 snr); in au8522_read_snr()
759 snr); in au8522_read_snr()
[all …]
Dlgdt330x.c71 u32 snr; /* Result of last SNR calculation */ member
606 static int lgdt3302_read_snr(struct dvb_frontend* fe, u16* snr) in lgdt3302_read_snr() argument
641 state->snr = calculate_snr(noise, c); in lgdt3302_read_snr()
642 *snr = (state->snr) >> 16; /* Convert from 8.24 fixed-point to 8.8 */ in lgdt3302_read_snr()
645 state->snr >> 24, (((state->snr>>8) & 0xffff) * 100) >> 16); in lgdt3302_read_snr()
650 static int lgdt3303_read_snr(struct dvb_frontend* fe, u16* snr) in lgdt3303_read_snr() argument
685 state->snr = calculate_snr(noise, c); in lgdt3303_read_snr()
686 *snr = (state->snr) >> 16; /* Convert from 8.24 fixed-point to 8.8 */ in lgdt3303_read_snr()
689 state->snr >> 24, (((state->snr >> 8) & 0xffff) * 100) >> 16); in lgdt3303_read_snr()
700 u16 snr; in lgdt330x_read_signal_strength() local
[all …]
Dor51132.c67 u32 snr; /* Result of last SNR calculation */ member
475 static int or51132_read_snr(struct dvb_frontend* fe, u16* snr) in or51132_read_snr() argument
518 state->snr = calculate_snr(noise, c) - usK; in or51132_read_snr()
519 *snr = (state->snr) >> 16; in or51132_read_snr()
522 state->snr >> 24, (((state->snr>>8) & 0xffff) * 100) >> 16); in or51132_read_snr()
533 u16 snr; in or51132_read_signal_strength() local
536 ret = fe->ops.read_snr(fe, &snr); in or51132_read_signal_strength()
541 if (state->snr >= 8960 * 0x10000) in or51132_read_signal_strength()
544 *strength = state->snr / 8960; in or51132_read_signal_strength()
Dor51211.c66 u32 snr; /* Result of last SNR claculation */ member
295 static int or51211_read_snr(struct dvb_frontend* fe, u16* snr) in or51211_read_snr() argument
315 state->snr = calculate_snr(rec_buf[0], 89599047); in or51211_read_snr()
316 *snr = (state->snr) >> 16; in or51211_read_snr()
319 state->snr >> 24, (((state->snr>>8) & 0xffff) * 100) >> 16); in or51211_read_snr()
330 u16 snr; in or51211_read_signal_strength() local
333 ret = fe->ops.read_snr(fe, &snr); in or51211_read_signal_strength()
338 if (state->snr >= 8960 * 0x10000) in or51211_read_signal_strength()
341 *strength = state->snr / 8960; in or51211_read_signal_strength()
Ds5h1411.c724 static int s5h1411_qam256_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v) in s5h1411_qam256_lookup_snr() argument
731 *snr = qam256_snr_tab[i].data; in s5h1411_qam256_lookup_snr()
739 static int s5h1411_qam64_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v) in s5h1411_qam64_lookup_snr() argument
746 *snr = qam64_snr_tab[i].data; in s5h1411_qam64_lookup_snr()
754 static int s5h1411_vsb_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v) in s5h1411_vsb_lookup_snr() argument
761 *snr = vsb_snr_tab[i].data; in s5h1411_vsb_lookup_snr()
766 dprintk("%s() snr=%d\n", __func__, *snr); in s5h1411_vsb_lookup_snr()
770 static int s5h1411_read_snr(struct dvb_frontend *fe, u16 *snr) in s5h1411_read_snr() argument
779 return s5h1411_qam64_lookup_snr(fe, snr, reg); in s5h1411_read_snr()
782 return s5h1411_qam256_lookup_snr(fe, snr, reg); in s5h1411_read_snr()
[all …]
Ds5h1409.c810 static int s5h1409_qam256_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v) in s5h1409_qam256_lookup_snr() argument
817 *snr = qam256_snr_tab[i].data; in s5h1409_qam256_lookup_snr()
825 static int s5h1409_qam64_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v) in s5h1409_qam64_lookup_snr() argument
832 *snr = qam64_snr_tab[i].data; in s5h1409_qam64_lookup_snr()
840 static int s5h1409_vsb_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v) in s5h1409_vsb_lookup_snr() argument
847 *snr = vsb_snr_tab[i].data; in s5h1409_vsb_lookup_snr()
852 dprintk("%s() snr=%d\n", __func__, *snr); in s5h1409_vsb_lookup_snr()
856 static int s5h1409_read_snr(struct dvb_frontend *fe, u16 *snr) in s5h1409_read_snr() argument
865 return s5h1409_qam64_lookup_snr(fe, snr, reg); in s5h1409_read_snr()
868 return s5h1409_qam256_lookup_snr(fe, snr, reg); in s5h1409_read_snr()
[all …]
Dlgdt3306a.c67 u32 snr; member
1509 u32 snr; in lgdt3306a_vsb_lock_poll() local
1523 snr = lgdt3306a_calculate_snr_x100(state); in lgdt3306a_vsb_lock_poll()
1524 dbg_info("cnt=%d errors=%d snr=%d\n", cnt, packet_error, snr); in lgdt3306a_vsb_lock_poll()
1526 if ((snr >= 1500) && (packet_error < 0xff)) in lgdt3306a_vsb_lock_poll()
1539 u32 snr; in lgdt3306a_qam_lock_poll() local
1550 snr = lgdt3306a_calculate_snr_x100(state); in lgdt3306a_qam_lock_poll()
1551 dbg_info("cnt=%d errors=%d snr=%d\n", cnt, packet_error, snr); in lgdt3306a_qam_lock_poll()
1553 if ((snr >= 1500) && (packet_error < 0xff)) in lgdt3306a_qam_lock_poll()
1609 static int lgdt3306a_read_snr(struct dvb_frontend *fe, u16 *snr) in lgdt3306a_read_snr() argument
[all …]
Dds3000.c547 static int ds3000_read_snr(struct dvb_frontend *fe, u16 *snr) in ds3000_read_snr() argument
580 *snr = 0x0000; in ds3000_read_snr()
587 *snr = snr_value * 8 * 655; in ds3000_read_snr()
590 snr_reading, *snr); in ds3000_read_snr()
598 *snr = 0x0000; in ds3000_read_snr()
605 *snr = 0xffff; in ds3000_read_snr()
615 *snr = snr_value * 5 * 655; in ds3000_read_snr()
620 *snr = -(dvbs2_snr_tab[snr_reading - 1] / 1000); in ds3000_read_snr()
623 snr_reading, *snr); in ds3000_read_snr()
Dcxd2820r_priv.h89 int cxd2820r_read_snr_c(struct dvb_frontend *fe, u16 *snr);
112 int cxd2820r_read_snr_t(struct dvb_frontend *fe, u16 *snr);
135 int cxd2820r_read_snr_t2(struct dvb_frontend *fe, u16 *snr);
Dlg2160.c1235 static int lg2160_read_snr(struct dvb_frontend *fe, u16 *snr) in lg2160_read_snr() argument
1241 *snr = 0; in lg2160_read_snr()
1252 *snr = 0; in lg2160_read_snr()
1255 *snr = ((snr1 >> 4) * 100) + ((snr1 & 0x0f) * 10) + (snr2 >> 4); in lg2160_read_snr()
1257 *snr = (snr2 | (snr1 << 8)); in lg2160_read_snr()
1263 static int lg2161_read_snr(struct dvb_frontend *fe, u16 *snr) in lg2161_read_snr() argument
1269 *snr = 0; in lg2161_read_snr()
1280 *snr = 0; in lg2161_read_snr()
1283 *snr = ((snr1 >> 4) * 100) + ((snr1 & 0x0f) * 10) + (snr2 & 0x0f); in lg2161_read_snr()
1300 u16 snr; in lg216x_read_signal_strength()
[all …]
Dlgdt3305.c65 u32 snr; member
997 static int lgdt3305_read_snr(struct dvb_frontend *fe, u16 *snr) in lgdt3305_read_snr() argument
1033 state->snr = calculate_snr(noise, c); in lgdt3305_read_snr()
1035 *snr = (state->snr / ((1 << 24) / 10)); in lgdt3305_read_snr()
1037 state->snr >> 24, (((state->snr >> 8) & 0xffff) * 100) >> 16); in lgdt3305_read_snr()
1053 u16 snr; in lgdt3305_read_signal_strength() local
1058 ret = fe->ops.read_snr(fe, &snr); in lgdt3305_read_signal_strength()
1063 if (state->snr >= 8960 * 0x10000) in lgdt3305_read_signal_strength()
1066 *strength = state->snr / 8960; in lgdt3305_read_signal_strength()
Daf9033.c869 static int af9033_read_snr(struct dvb_frontend *fe, u16 *snr) in af9033_read_snr() argument
881 *snr = div_s64(c->cnr.stat[0].svalue, 100); in af9033_read_snr()
884 *snr = div_s64(c->cnr.stat[0].svalue, 1000); in af9033_read_snr()
894 *snr = *snr * 0xffff / 23; in af9033_read_snr()
897 *snr = *snr * 0xffff / 26; in af9033_read_snr()
900 *snr = *snr * 0xffff / 32; in af9033_read_snr()
907 *snr = 0; in af9033_read_snr()
1153 tmp = snr_lut[i].snr * 1000; in af9033_stat_work()
Dcxd2820r_t.c316 int cxd2820r_read_snr_t(struct dvb_frontend *fe, u16 *snr) in cxd2820r_read_snr_t() argument
331 *snr = (intlog10(tmp) - CXD2820R_LOG10_8_24) / ((1 << 24) in cxd2820r_read_snr_t()
334 *snr = 0; in cxd2820r_read_snr_t()
336 dev_dbg(&priv->i2c->dev, "%s: dBx10=%d val=%04x\n", __func__, *snr, in cxd2820r_read_snr_t()
/drivers/media/usb/dvb-usb-v2/
Dmxl111sf-demod.c411 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()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
DM0205.c30 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) in nvbios_M0205Te() argument
45 *snr = nvbios_rd08(bios, data + 0x04); in nvbios_M0205Te()
59 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz, in nvbios_M0205Tp() argument
62 u32 data = nvbios_M0205Te(bios, ver, hdr, cnt, len, snr, ssz); in nvbios_M0205Tp()
78 u8 snr, ssz; in nvbios_M0205Ee() local
79 u32 data = nvbios_M0205Te(bios, ver, hdr, cnt, len, &snr, &ssz); in nvbios_M0205Ee()
81 data = data + *hdr + idx * (*len + (snr * ssz)); in nvbios_M0205Ee()
83 *cnt = snr; in nvbios_M0205Ee()
Dperf.c30 u8 *cnt, u8 *len, u8 *snr, u8 *ssz) in nvbios_perf_table() argument
44 *snr = nvbios_rd08(bios, perf + 4); in nvbios_perf_table()
51 *snr = nvbios_rd08(bios, perf + 4); in nvbios_perf_table()
67 *snr = 0; in nvbios_perf_table()
81 u8 snr, ssz; in nvbios_perf_entry() local
82 u16 perf = nvbios_perf_table(bios, ver, hdr, cnt, len, &snr, &ssz); in nvbios_perf_entry()
84 perf = perf + *hdr + (idx * (*len + (snr * ssz))); in nvbios_perf_entry()
86 *cnt = snr; in nvbios_perf_entry()
188 u8 ver, hdr, cnt, len, snr, ssz; in nvbios_perf_fan_parse() local
189 u16 perf = nvbios_perf_table(bios, &ver, &hdr, &cnt, &len, &snr, &ssz); in nvbios_perf_fan_parse()
Dboost.c30 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) in nvbios_boostTe() argument
46 *snr = nvbios_rd08(bios, boost + 4); in nvbios_boostTe()
62 u8 snr, ssz; in nvbios_boostEe() local
63 u16 data = nvbios_boostTe(bios, ver, hdr, cnt, len, &snr, &ssz); in nvbios_boostEe()
65 data = data + *hdr + (idx * (*len + (snr * ssz))); in nvbios_boostEe()
67 *cnt = snr; in nvbios_boostEe()
DM0209.c30 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) in nvbios_M0209Te() argument
45 *snr = 1; in nvbios_M0209Te()
61 u8 snr, ssz; in nvbios_M0209Ee() local
62 u32 data = nvbios_M0209Te(bios, ver, hdr, cnt, len, &snr, &ssz); in nvbios_M0209Ee()
64 data = data + *hdr + idx * (*len + (snr * ssz)); in nvbios_M0209Ee()
66 *cnt = snr; in nvbios_M0209Ee()
Dtiming.c30 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) in nvbios_timingTe() argument
49 *snr = 0; in nvbios_timingTe()
56 *snr = nvbios_rd08(bios, timing + 4); in nvbios_timingTe()
72 u8 snr, ssz; in nvbios_timingEe() local
73 u16 timing = nvbios_timingTe(bios, ver, hdr, cnt, len, &snr, &ssz); in nvbios_timingEe()
75 timing += *hdr + idx * (*len + (snr * ssz)); in nvbios_timingEe()
77 *cnt = snr; in nvbios_timingEe()
Drammap.c30 u8 *cnt, u8 *len, u8 *snr, u8 *ssz) in nvbios_rammapTe() argument
47 *snr = nvbios_rd08(bios, rammap + 4); in nvbios_rammapTe()
63 u8 snr, ssz; in nvbios_rammapEe() local
64 u16 rammap = nvbios_rammapTe(bios, ver, hdr, cnt, len, &snr, &ssz); in nvbios_rammapEe()
66 rammap = rammap + *hdr + (idx * (*len + (snr * ssz))); in nvbios_rammapEe()
68 *cnt = snr; in nvbios_rammapEe()
/drivers/media/usb/dvb-usb/
Dgp8psk-fe.c23 u16 snr; member
48 st->snr = (buf[1]) << 8 | buf[0]; in gp8psk_fe_update_status()
88 static int gp8psk_fe_read_snr(struct dvb_frontend* fe, u16 *snr) in gp8psk_fe_read_snr() argument
93 *snr = st->snr; in gp8psk_fe_read_snr()
104 if (st->snr > 0xf00) in gp8psk_fe_read_signal_strength()
107 *strength = (st->snr << 4) + st->snr; /* snr*17 */ in gp8psk_fe_read_signal_strength()
Dvp702x-fe.c36 u8 snr; member
55 st->snr = buf[0]; in vp702x_fe_refresh_state()
121 static int vp702x_fe_read_snr(struct dvb_frontend* fe, u16 *snr) in vp702x_fe_read_snr() argument
127 _snr = (st->snr & 0x1f) * 0xff / 0x1f; in vp702x_fe_read_snr()
128 *snr = (_snr << 8) | _snr; in vp702x_fe_read_snr()
DcinergyT2-fe.c230 static int cinergyt2_fe_read_snr(struct dvb_frontend *fe, u16 *snr) in cinergyt2_fe_read_snr() argument
243 *snr = (status.snr << 8) | status.snr; in cinergyt2_fe_read_snr()
/drivers/net/wireless/mwifiex/
Dutil.c352 addr2, rx_pd->nf, rx_pd->snr); in mwifiex_parse_mgmt_packet()
355 rx_pd->snr, in mwifiex_parse_mgmt_packet()
421 CAL_RSSI(rx_pd->snr, rx_pd->nf), skb->data, pkt_len, in mwifiex_process_mgmt_packet()
691 u8 rx_rate, s8 snr, s8 nflr) in mwifiex_hist_data_add() argument
697 mwifiex_hist_data_set(priv, rx_rate, snr, nflr); in mwifiex_hist_data_add()
701 void mwifiex_hist_data_set(struct mwifiex_private *priv, u8 rx_rate, s8 snr, in mwifiex_hist_data_set() argument
706 s8 rssi = snr - nflr; in mwifiex_hist_data_set()
710 atomic_inc(&phist_data->snr[snr + 128]); in mwifiex_hist_data_set()
725 atomic_set(&phist_data->snr[ix], 0); in mwifiex_hist_data_reset()
/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/
DM0205.h8 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz);
10 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz,

123456