snr 341 drivers/atm/solos-pci.c char *str, *state_str, *snr, *attn; snr 393 drivers/atm/solos-pci.c snr = next_string(skb); snr 394 drivers/atm/solos-pci.c if (!snr) snr 402 drivers/atm/solos-pci.c snr[0]?", SNR ":"", snr, attn[0]?", Attn ":"", attn); snr 9 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/M0205.h u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz); snr 11 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/M0205.h u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz, snr 5 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/M0209.h u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz); snr 5 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/perf.h u8 *cnt, u8 *len, u8 *snr, u8 *ssz); snr 7 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/rammap.h u8 *cnt, u8 *len, u8 *snr, u8 *ssz); snr 7 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/timing.h u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz); snr 30 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) snr 45 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c *snr = nvbios_rd08(bios, data + 0x04); snr 59 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz, snr 62 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c u32 data = nvbios_M0205Te(bios, ver, hdr, cnt, len, snr, ssz); snr 78 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c u8 snr, ssz; snr 79 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c u32 data = nvbios_M0205Te(bios, ver, hdr, cnt, len, &snr, &ssz); snr 81 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c data = data + *hdr + idx * (*len + (snr * ssz)); snr 83 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c *cnt = snr; snr 30 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) snr 45 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c *snr = 1; snr 61 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c u8 snr, ssz; snr 62 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c u32 data = nvbios_M0209Te(bios, ver, hdr, cnt, len, &snr, &ssz); snr 64 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c data = data + *hdr + idx * (*len + (snr * ssz)); snr 66 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c *cnt = snr; snr 30 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) snr 46 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c *snr = nvbios_rd08(bios, boost + 4); snr 62 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c u8 snr, ssz; snr 63 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c u32 data = nvbios_boostTe(bios, ver, hdr, cnt, len, &snr, &ssz); snr 65 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c data = data + *hdr + (idx * (*len + (snr * ssz))); snr 67 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c *cnt = snr; snr 31 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c u8 *cnt, u8 *len, u8 *snr, u8 *ssz) snr 45 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c *snr = nvbios_rd08(bios, perf + 4); snr 52 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c *snr = nvbios_rd08(bios, perf + 4); snr 68 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c *snr = 0; snr 82 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c u8 snr, ssz; snr 83 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c u32 perf = nvbios_perf_table(bios, ver, hdr, cnt, len, &snr, &ssz); snr 85 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c perf = perf + *hdr + (idx * (*len + (snr * ssz))); snr 87 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c *cnt = snr; snr 205 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c u8 ver, hdr, cnt, len, snr, ssz; snr 206 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c u32 perf = nvbios_perf_table(bios, &ver, &hdr, &cnt, &len, &snr, &ssz); snr 30 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c u8 *cnt, u8 *len, u8 *snr, u8 *ssz) snr 47 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c *snr = nvbios_rd08(bios, rammap + 4); snr 63 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c u8 snr, ssz; snr 64 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c u32 rammap = nvbios_rammapTe(bios, ver, hdr, cnt, len, &snr, &ssz); snr 66 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c rammap = rammap + *hdr + (idx * (*len + (snr * ssz))); snr 68 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c *cnt = snr; snr 30 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) snr 49 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c *snr = 0; snr 56 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c *snr = nvbios_rd08(bios, timing + 4); snr 72 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c u8 snr, ssz; snr 73 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c u32 timing = nvbios_timingTe(bios, ver, hdr, cnt, len, &snr, &ssz); snr 75 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c timing += *hdr + idx * (*len + (snr * ssz)); snr 77 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c *cnt = snr; snr 1402 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c u8 ver, hdr, cnt, len, snr, ssz; snr 1417 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data = nvbios_rammapTe(bios, &ver, &hdr, &cnt, &len, &snr, &ssz); snr 36 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp100.c u8 ver, hdr, cnt, len, snr, ssz; snr 51 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp100.c data = nvbios_rammapTe(bios, &ver, &hdr, &cnt, &len, &snr, &ssz); snr 165 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c u8 ver, hdr, cnt, len, snr, ssz; snr 181 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c nvbios_M0205Tp(bios, &ver, &hdr, &cnt, &len, &snr, &ssz, &M0205T); snr 1036 drivers/media/common/siano/smscoreapi.h u32 snr; snr 243 drivers/media/common/siano/smsdvb-main.c c->cnr.stat[0].svalue = p->snr * 1000; snr 800 drivers/media/common/siano/smsdvb-main.c static int smsdvb_read_snr(struct dvb_frontend *fe, u16 *snr) snr 811 drivers/media/common/siano/smsdvb-main.c *snr = ((u32)c->cnr.stat[0].svalue) / 100; snr 65 drivers/media/common/siano/smsdvb.h u32 snr; snr 793 drivers/media/dvb-frontends/af9013.c static int af9013_read_snr(struct dvb_frontend *fe, u16 *snr) snr 797 drivers/media/dvb-frontends/af9013.c *snr = state->dvbv3_snr; snr 818 drivers/media/dvb-frontends/af9033.c static int af9033_read_snr(struct dvb_frontend *fe, u16 *snr) snr 833 drivers/media/dvb-frontends/af9033.c *snr = div_s64(c->cnr.stat[0].svalue, 100); snr 836 drivers/media/dvb-frontends/af9033.c *snr = div_s64(c->cnr.stat[0].svalue, 1000); snr 846 drivers/media/dvb-frontends/af9033.c *snr = *snr * 0xffff / 23; snr 849 drivers/media/dvb-frontends/af9033.c *snr = *snr * 0xffff / 26; snr 852 drivers/media/dvb-frontends/af9033.c *snr = *snr * 0xffff / 32; snr 859 drivers/media/dvb-frontends/af9033.c *snr = 0; snr 43 drivers/media/dvb-frontends/af9033_priv.h u8 snr; snr 353 drivers/media/dvb-frontends/as102_fe.c static int as102_fe_read_snr(struct dvb_frontend *fe, u16 *snr) snr 357 drivers/media/dvb-frontends/as102_fe.c *snr = state->demod_stats.mer; snr 397 drivers/media/dvb-frontends/atbm8830.c static int atbm8830_read_snr(struct dvb_frontend *fe, u16 *snr) snr 400 drivers/media/dvb-frontends/atbm8830.c *snr = 0; snr 216 drivers/media/dvb-frontends/au8522_dig.c u16 *snr) snr 223 drivers/media/dvb-frontends/au8522_dig.c *snr = tab[i].data; snr 228 drivers/media/dvb-frontends/au8522_dig.c dprintk("%s() snr=%d\n", __func__, *snr); snr 692 drivers/media/dvb-frontends/au8522_dig.c static int au8522_led_status(struct au8522_state *state, const u16 *snr) snr 711 drivers/media/dvb-frontends/au8522_dig.c if (*snr >= strong) snr 717 drivers/media/dvb-frontends/au8522_dig.c (((strong < *snr) ? (*snr - strong) : (strong - *snr)) <= 10)) snr 725 drivers/media/dvb-frontends/au8522_dig.c static int au8522_read_snr(struct dvb_frontend *fe, u16 *snr) snr 736 drivers/media/dvb-frontends/au8522_dig.c snr); snr 741 drivers/media/dvb-frontends/au8522_dig.c snr); snr 746 drivers/media/dvb-frontends/au8522_dig.c snr); snr 749 drivers/media/dvb-frontends/au8522_dig.c au8522_led_status(state, snr); snr 764 drivers/media/dvb-frontends/au8522_dig.c u16 snr; snr 766 drivers/media/dvb-frontends/au8522_dig.c int ret = au8522_read_snr(fe, &snr); snr 776 drivers/media/dvb-frontends/au8522_dig.c tmp = (snr * ((1 << 24) / 10)); snr 353 drivers/media/dvb-frontends/bcm3510.c static int bcm3510_read_snr(struct dvb_frontend* fe, u16* snr) snr 358 drivers/media/dvb-frontends/bcm3510.c *snr = st->status1.SNR_EST0*1000 + ((st->status1.SNR_EST1*1000) >> 8); snr 294 drivers/media/dvb-frontends/cx22700.c static int cx22700_read_snr(struct dvb_frontend* fe, u16* snr) snr 300 drivers/media/dvb-frontends/cx22700.c *snr = ~rs_ber; snr 517 drivers/media/dvb-frontends/cx22702.c static int cx22702_read_snr(struct dvb_frontend *fe, u16 *snr) snr 531 drivers/media/dvb-frontends/cx22702.c *snr = ~rs_ber; snr 485 drivers/media/dvb-frontends/cx24110.c static int cx24110_read_snr(struct dvb_frontend* fe, u16* snr) snr 496 drivers/media/dvb-frontends/cx24110.c *snr = state->lastesn0; snr 740 drivers/media/dvb-frontends/cx24116.c static int cx24116_read_snr_pct(struct dvb_frontend *fe, u16 *snr) snr 755 drivers/media/dvb-frontends/cx24116.c *snr = 0xffff; snr 757 drivers/media/dvb-frontends/cx24116.c *snr = snr_tab[(snr_reading & 0xf0) >> 4] + snr 761 drivers/media/dvb-frontends/cx24116.c snr_reading, *snr); snr 770 drivers/media/dvb-frontends/cx24116.c static int cx24116_read_snr_esno(struct dvb_frontend *fe, u16 *snr) snr 776 drivers/media/dvb-frontends/cx24116.c *snr = cx24116_readreg(state, CX24116_REG_QUALITY8) << 8 | snr 779 drivers/media/dvb-frontends/cx24116.c dprintk("%s: raw 0x%04x\n", __func__, *snr); snr 784 drivers/media/dvb-frontends/cx24116.c static int cx24116_read_snr(struct dvb_frontend *fe, u16 *snr) snr 787 drivers/media/dvb-frontends/cx24116.c return cx24116_read_snr_esno(fe, snr); snr 789 drivers/media/dvb-frontends/cx24116.c return cx24116_read_snr_pct(fe, snr); snr 814 drivers/media/dvb-frontends/cx24117.c static int cx24117_read_snr(struct dvb_frontend *fe, u16 *snr) snr 826 drivers/media/dvb-frontends/cx24117.c *snr = (buf[0] << 8) | buf[1]; snr 830 drivers/media/dvb-frontends/cx24117.c __func__, state->demod, *snr); snr 322 drivers/media/dvb-frontends/cx24120.c static int cx24120_read_snr(struct dvb_frontend *fe, u16 *snr) snr 327 drivers/media/dvb-frontends/cx24120.c *snr = 0; snr 329 drivers/media/dvb-frontends/cx24120.c *snr = div_s64(c->cnr.stat[0].svalue, 100); snr 886 drivers/media/dvb-frontends/cx24123.c static int cx24123_read_snr(struct dvb_frontend *fe, u16 *snr) snr 892 drivers/media/dvb-frontends/cx24123.c *snr = 65535 - (((u16)cx24123_readreg(state, 0x18) << 8) | snr 895 drivers/media/dvb-frontends/cx24123.c dprintk("read S/N index = %d\n", *snr); snr 233 drivers/media/dvb-frontends/cxd2820r_core.c static int cxd2820r_read_snr(struct dvb_frontend *fe, u16 *snr) snr 242 drivers/media/dvb-frontends/cxd2820r_core.c *snr = div_s64(c->cnr.stat[0].svalue, 100); snr 244 drivers/media/dvb-frontends/cxd2820r_core.c *snr = 0; snr 1669 drivers/media/dvb-frontends/cxd2841er.c u8 delsys, u32 *snr) snr 1731 drivers/media/dvb-frontends/cxd2841er.c *snr = res; snr 1740 drivers/media/dvb-frontends/cxd2841er.c static int cxd2841er_read_snr_c(struct cxd2841er_priv *priv, u32 *snr) snr 1746 drivers/media/dvb-frontends/cxd2841er.c *snr = 0; snr 1775 drivers/media/dvb-frontends/cxd2841er.c *snr = -95 * (int32_t)sony_log(reg) + 95941; snr 1782 drivers/media/dvb-frontends/cxd2841er.c *snr = -88 * (int32_t)sony_log(reg) + 86999; snr 1791 drivers/media/dvb-frontends/cxd2841er.c static int cxd2841er_read_snr_t(struct cxd2841er_priv *priv, u32 *snr) snr 1796 drivers/media/dvb-frontends/cxd2841er.c *snr = 0; snr 1816 drivers/media/dvb-frontends/cxd2841er.c *snr = 100 * ((INTLOG10X100(reg) - INTLOG10X100(5350 - reg)) + 285); snr 1820 drivers/media/dvb-frontends/cxd2841er.c static int cxd2841er_read_snr_t2(struct cxd2841er_priv *priv, u32 *snr) snr 1825 drivers/media/dvb-frontends/cxd2841er.c *snr = 0; snr 1845 drivers/media/dvb-frontends/cxd2841er.c *snr = 100 * ((INTLOG10X100(reg) - INTLOG10X100(12600 - reg)) + 320); snr 1849 drivers/media/dvb-frontends/cxd2841er.c static int cxd2841er_read_snr_i(struct cxd2841er_priv *priv, u32 *snr) snr 1854 drivers/media/dvb-frontends/cxd2841er.c *snr = 0; snr 1873 drivers/media/dvb-frontends/cxd2841er.c *snr = 10000 * (intlog10(reg) >> 24) - 9031; snr 1281 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt2_mon.c u32 reg_value, int *snr) snr 1283 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt2_mon.c if (!tnr_dmd || !snr) snr 1292 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt2_mon.c *snr = intlog10(reg_value) - intlog10(12600 - reg_value); snr 1293 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt2_mon.c *snr = (*snr + 839) / 1678 + 32000; snr 1299 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt2_mon.c int *snr) snr 1304 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt2_mon.c if (!tnr_dmd || !snr) snr 1307 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt2_mon.c *snr = -1000 * 1000; snr 1323 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt2_mon.c ret = dvbt2_calc_snr(tnr_dmd, reg_value, snr); snr 1329 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt2_mon.c cxd2880_tnrdmd_dvbt2_mon_snr_diver(tnr_dmd, snr, &snr_main, snr 1337 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt2_mon.c *tnr_dmd, int *snr, snr 1344 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt2_mon.c if (!tnr_dmd || !snr || !snr_main || !snr_sub) snr 1347 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt2_mon.c *snr = -1000 * 1000; snr 1386 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt2_mon.c return dvbt2_calc_snr(tnr_dmd, reg_value_sum, snr); snr 91 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt2_mon.h int *snr); snr 94 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt2_mon.h *tnr_dmd, int *snr, snr 434 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c u32 reg_value, int *snr) snr 436 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c if (!tnr_dmd || !snr) snr 445 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c *snr = intlog10(reg_value) - intlog10(5350 - reg_value); snr 446 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c *snr = (*snr + 839) / 1678 + 28500; snr 452 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c int *snr) snr 457 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c if (!tnr_dmd || !snr) snr 460 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c *snr = -1000 * 1000; snr 476 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c ret = dvbt_calc_snr(tnr_dmd, reg_value, snr); snr 482 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c cxd2880_tnrdmd_dvbt_mon_snr_diver(tnr_dmd, snr, &snr_main, snr 490 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c *tnr_dmd, int *snr, snr 497 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c if (!tnr_dmd || !snr || !snr_main || !snr_sub) snr 500 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c *snr = -1000 * 1000; snr 539 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c return dvbt_calc_snr(tnr_dmd, reg_value_sum, snr); snr 57 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.h int *snr); snr 60 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.h *tnr_dmd, int *snr, snr 603 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c static int cxd2880_read_snr(struct dvb_frontend *fe, u16 *snr) snr 610 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c if (!fe || !snr) { snr 634 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c *snr = snrvalue; snr 1416 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c u16 snr = 0; snr 1594 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c ret = cxd2880_read_snr(fe, &snr); snr 1598 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c c->cnr.stat[0].svalue = snr; snr 1617 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c u16 snr = 0; snr 1788 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c ret = cxd2880_read_snr(fe, &snr); snr 1792 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c c->cnr.stat[0].svalue = snr; snr 652 drivers/media/dvb-frontends/dib3000mb.c static int dib3000mb_read_snr(struct dvb_frontend* fe, u16 *snr) snr 658 drivers/media/dvb-frontends/dib3000mb.c *snr = (sigpow << 8) / ((icipow > 0) ? icipow : 1); snr 813 drivers/media/dvb-frontends/dib3000mc.c static int dib3000mc_read_snr(struct dvb_frontend* fe, u16 *snr) snr 815 drivers/media/dvb-frontends/dib3000mc.c *snr = 0x0000; snr 1306 drivers/media/dvb-frontends/dib7000m.c static int dib7000m_read_snr(struct dvb_frontend* fe, u16 *snr) snr 1308 drivers/media/dvb-frontends/dib7000m.c *snr = 0x0000; snr 1654 drivers/media/dvb-frontends/dib7000p.c static int dib7000p_read_snr(struct dvb_frontend *fe, u16 *snr) snr 1660 drivers/media/dvb-frontends/dib7000p.c *snr = result / ((1 << 24) / 10); snr 1901 drivers/media/dvb-frontends/dib7000p.c u32 time_us = 0, val, snr; snr 1934 drivers/media/dvb-frontends/dib7000p.c snr = dib7000p_get_snr(demod); snr 1935 drivers/media/dvb-frontends/dib7000p.c if (snr) snr 1936 drivers/media/dvb-frontends/dib7000p.c snr = (1000L * snr) >> 24; snr 1938 drivers/media/dvb-frontends/dib7000p.c snr = 0; snr 1939 drivers/media/dvb-frontends/dib7000p.c c->cnr.stat[0].svalue = snr; snr 3867 drivers/media/dvb-frontends/dib8000.c static int dib8000_read_snr(struct dvb_frontend *fe, u16 * snr) snr 3879 drivers/media/dvb-frontends/dib8000.c *snr = snr_master / ((1 << 24) / 10); snr 3882 drivers/media/dvb-frontends/dib8000.c *snr = 0; snr 4103 drivers/media/dvb-frontends/dib8000.c u32 time_us = 0, snr, val; snr 4136 drivers/media/dvb-frontends/dib8000.c snr = dib8000_get_snr(fe); snr 4139 drivers/media/dvb-frontends/dib8000.c snr += dib8000_get_snr(state->fe[i]); snr 4141 drivers/media/dvb-frontends/dib8000.c snr = snr >> 16; snr 4143 drivers/media/dvb-frontends/dib8000.c if (snr) { snr 4144 drivers/media/dvb-frontends/dib8000.c snr = 10 * intlog10(snr); snr 4145 drivers/media/dvb-frontends/dib8000.c snr = (1000L * snr) >> 24; snr 4147 drivers/media/dvb-frontends/dib8000.c snr = 0; snr 4149 drivers/media/dvb-frontends/dib8000.c c->cnr.stat[0].svalue = snr; snr 2320 drivers/media/dvb-frontends/dib9000.c static int dib9000_read_snr(struct dvb_frontend *fe, u16 * snr) snr 2336 drivers/media/dvb-frontends/dib9000.c *snr = snr_master / ((1 << 24) / 10); snr 2338 drivers/media/dvb-frontends/dib9000.c *snr = 0; snr 12042 drivers/media/dvb-frontends/drx39xyj/drxj.c static int drx39xxj_read_snr(struct dvb_frontend *fe, u16 *snr) snr 12048 drivers/media/dvb-frontends/drx39xyj/drxj.c *snr = 0; snr 12054 drivers/media/dvb-frontends/drx39xyj/drxj.c *snr = tmp64; snr 2833 drivers/media/dvb-frontends/drxd_hard.c static int drxd_read_snr(struct dvb_frontend *fe, u16 * snr) snr 2835 drivers/media/dvb-frontends/drxd_hard.c *snr = 0; snr 6663 drivers/media/dvb-frontends/drxk_hard.c static int drxk_read_snr(struct dvb_frontend *fe, u16 *snr) snr 6680 drivers/media/dvb-frontends/drxk_hard.c *snr = snr2 & 0xffff; snr 533 drivers/media/dvb-frontends/ds3000.c static int ds3000_read_snr(struct dvb_frontend *fe, u16 *snr) snr 566 drivers/media/dvb-frontends/ds3000.c *snr = 0x0000; snr 573 drivers/media/dvb-frontends/ds3000.c *snr = snr_value * 8 * 655; snr 576 drivers/media/dvb-frontends/ds3000.c snr_reading, *snr); snr 584 drivers/media/dvb-frontends/ds3000.c *snr = 0x0000; snr 591 drivers/media/dvb-frontends/ds3000.c *snr = 0xffff; snr 601 drivers/media/dvb-frontends/ds3000.c *snr = snr_value * 5 * 655; snr 606 drivers/media/dvb-frontends/ds3000.c *snr = -(dvbs2_snr_tab[snr_reading - 1] / 1000); snr 609 drivers/media/dvb-frontends/ds3000.c snr_reading, *snr); snr 46 drivers/media/dvb-frontends/dvb_dummy_fe.c static int dvb_dummy_fe_read_snr(struct dvb_frontend* fe, u16* snr) snr 48 drivers/media/dvb-frontends/dvb_dummy_fe.c *snr = 0; snr 251 drivers/media/dvb-frontends/ec100.c static int ec100_read_snr(struct dvb_frontend *fe, u16 *snr) snr 253 drivers/media/dvb-frontends/ec100.c *snr = 0; snr 34 drivers/media/dvb-frontends/gp8psk-fe.c u16 snr; snr 61 drivers/media/dvb-frontends/gp8psk-fe.c st->snr = (buf[1]) << 8 | buf[0]; snr 101 drivers/media/dvb-frontends/gp8psk-fe.c static int gp8psk_fe_read_snr(struct dvb_frontend* fe, u16 *snr) snr 106 drivers/media/dvb-frontends/gp8psk-fe.c *snr = st->snr; snr 117 drivers/media/dvb-frontends/gp8psk-fe.c if (st->snr > 0xf00) snr 120 drivers/media/dvb-frontends/gp8psk-fe.c *strength = (st->snr << 4) + st->snr; /* snr*17 */ snr 401 drivers/media/dvb-frontends/l64781.c static int l64781_read_snr(struct dvb_frontend* fe, u16* snr) snr 406 drivers/media/dvb-frontends/l64781.c *snr = (avg_quality << 8) | avg_quality; /* not exact, but...*/ snr 1215 drivers/media/dvb-frontends/lg2160.c static int lg2160_read_snr(struct dvb_frontend *fe, u16 *snr) snr 1221 drivers/media/dvb-frontends/lg2160.c *snr = 0; snr 1232 drivers/media/dvb-frontends/lg2160.c *snr = 0; snr 1235 drivers/media/dvb-frontends/lg2160.c *snr = ((snr1 >> 4) * 100) + ((snr1 & 0x0f) * 10) + (snr2 >> 4); snr 1237 drivers/media/dvb-frontends/lg2160.c *snr = (snr2 | (snr1 << 8)); snr 1243 drivers/media/dvb-frontends/lg2160.c static int lg2161_read_snr(struct dvb_frontend *fe, u16 *snr) snr 1249 drivers/media/dvb-frontends/lg2160.c *snr = 0; snr 1260 drivers/media/dvb-frontends/lg2160.c *snr = 0; snr 1263 drivers/media/dvb-frontends/lg2160.c *snr = ((snr1 >> 4) * 100) + ((snr1 & 0x0f) * 10) + (snr2 & 0x0f); snr 1280 drivers/media/dvb-frontends/lg2160.c u16 snr; snr 1285 drivers/media/dvb-frontends/lg2160.c ret = fe->ops.read_snr(fe, &snr); snr 1290 drivers/media/dvb-frontends/lg2160.c if (state->snr >= 8960 * 0x10000) snr 1293 drivers/media/dvb-frontends/lg2160.c *strength = state->snr / 8960; snr 51 drivers/media/dvb-frontends/lgdt3305.c u32 snr; snr 983 drivers/media/dvb-frontends/lgdt3305.c static int lgdt3305_read_snr(struct dvb_frontend *fe, u16 *snr) snr 1019 drivers/media/dvb-frontends/lgdt3305.c state->snr = calculate_snr(noise, c); snr 1021 drivers/media/dvb-frontends/lgdt3305.c *snr = (state->snr / ((1 << 24) / 10)); snr 1023 drivers/media/dvb-frontends/lgdt3305.c state->snr >> 24, (((state->snr >> 8) & 0xffff) * 100) >> 16); snr 1039 drivers/media/dvb-frontends/lgdt3305.c u16 snr; snr 1044 drivers/media/dvb-frontends/lgdt3305.c ret = fe->ops.read_snr(fe, &snr); snr 1049 drivers/media/dvb-frontends/lgdt3305.c if (state->snr >= 8960 * 0x10000) snr 1052 drivers/media/dvb-frontends/lgdt3305.c *strength = state->snr / 8960; snr 71 drivers/media/dvb-frontends/lgdt3306a.c u32 snr; snr 1544 drivers/media/dvb-frontends/lgdt3306a.c u32 snr; snr 1558 drivers/media/dvb-frontends/lgdt3306a.c snr = lgdt3306a_calculate_snr_x100(state); snr 1559 drivers/media/dvb-frontends/lgdt3306a.c dbg_info("cnt=%d errors=%d snr=%d\n", cnt, packet_error, snr); snr 1561 drivers/media/dvb-frontends/lgdt3306a.c if ((snr >= 1500) && (packet_error < 0xff)) snr 1574 drivers/media/dvb-frontends/lgdt3306a.c u32 snr; snr 1585 drivers/media/dvb-frontends/lgdt3306a.c snr = lgdt3306a_calculate_snr_x100(state); snr 1586 drivers/media/dvb-frontends/lgdt3306a.c dbg_info("cnt=%d errors=%d snr=%d\n", cnt, packet_error, snr); snr 1588 drivers/media/dvb-frontends/lgdt3306a.c if ((snr >= 1500) && (packet_error < 0xff)) snr 1645 drivers/media/dvb-frontends/lgdt3306a.c static int lgdt3306a_read_snr(struct dvb_frontend *fe, u16 *snr) snr 1649 drivers/media/dvb-frontends/lgdt3306a.c state->snr = lgdt3306a_calculate_snr_x100(state); snr 1651 drivers/media/dvb-frontends/lgdt3306a.c *snr = state->snr/10; snr 1664 drivers/media/dvb-frontends/lgdt3306a.c u16 snr; /* snr_x10 */ snr 1692 drivers/media/dvb-frontends/lgdt3306a.c ret = fe->ops.read_snr(fe, &snr); snr 1696 drivers/media/dvb-frontends/lgdt3306a.c if (state->snr <= (ref_snr - 100)) snr 1698 drivers/media/dvb-frontends/lgdt3306a.c else if (state->snr <= ref_snr) snr 1701 drivers/media/dvb-frontends/lgdt3306a.c str = state->snr - ref_snr; snr 57 drivers/media/dvb-frontends/lgdt330x.c u32 snr; /* Result of last SNR calculation */ snr 526 drivers/media/dvb-frontends/lgdt330x.c state->snr = 0; snr 531 drivers/media/dvb-frontends/lgdt330x.c state->snr = calculate_snr(noise, c); snr 534 drivers/media/dvb-frontends/lgdt330x.c state->snr >> 24, (((state->snr >> 8) & 0xffff) * 100) >> 16); snr 572 drivers/media/dvb-frontends/lgdt330x.c state->snr = 0; snr 576 drivers/media/dvb-frontends/lgdt330x.c state->snr = calculate_snr(noise, c); snr 579 drivers/media/dvb-frontends/lgdt330x.c state->snr >> 24, (((state->snr >> 8) & 0xffff) * 100) >> 16); snr 584 drivers/media/dvb-frontends/lgdt330x.c static int lgdt330x_read_snr(struct dvb_frontend *fe, u16 *snr) snr 588 drivers/media/dvb-frontends/lgdt330x.c *snr = (state->snr) >> 16; /* Convert from 8.24 fixed-point to 8.8 */ snr 601 drivers/media/dvb-frontends/lgdt330x.c u16 snr; snr 604 drivers/media/dvb-frontends/lgdt330x.c ret = fe->ops.read_snr(fe, &snr); snr 609 drivers/media/dvb-frontends/lgdt330x.c if (state->snr >= 8960 * 0x10000) snr 612 drivers/media/dvb-frontends/lgdt330x.c *strength = state->snr / 8960; snr 695 drivers/media/dvb-frontends/lgdt330x.c p->cnr.stat[0].svalue = (((u64)state->snr) * 1000) >> 24; snr 801 drivers/media/dvb-frontends/lgdt330x.c p->cnr.stat[0].svalue = (((u64)state->snr) * 1000) >> 24; snr 282 drivers/media/dvb-frontends/lgs8gl5.c lgs8gl5_read_snr(struct dvb_frontend *fe, u16 *snr) snr 286 drivers/media/dvb-frontends/lgs8gl5.c *snr = (level & REG_STRENGTH_MASK) << 8; snr 863 drivers/media/dvb-frontends/lgs8gxx.c static int lgs8gxx_read_snr(struct dvb_frontend *fe, u16 *snr) snr 867 drivers/media/dvb-frontends/lgs8gxx.c *snr = 0; snr 874 drivers/media/dvb-frontends/lgs8gxx.c *snr = 256 - t; snr 875 drivers/media/dvb-frontends/lgs8gxx.c *snr <<= 8; snr 876 drivers/media/dvb-frontends/lgs8gxx.c dprintk("snr=0x%x\n", *snr); snr 934 drivers/media/dvb-frontends/m88ds3103.c static int m88ds3103_read_snr(struct dvb_frontend *fe, u16 *snr) snr 939 drivers/media/dvb-frontends/m88ds3103.c *snr = div_s64(c->cnr.stat[0].svalue, 100); snr 941 drivers/media/dvb-frontends/m88ds3103.c *snr = 0; snr 507 drivers/media/dvb-frontends/m88rs2000.c static int m88rs2000_read_snr(struct dvb_frontend *fe, u16 *snr) snr 511 drivers/media/dvb-frontends/m88rs2000.c *snr = 512 * m88rs2000_readreg(state, 0x65); snr 1750 drivers/media/dvb-frontends/mb86a16.c static int mb86a16_read_snr(struct dvb_frontend *fe, u16 *snr) snr 1757 drivers/media/dvb-frontends/mb86a16.c *snr = 0; snr 1765 drivers/media/dvb-frontends/mb86a16.c *snr = cnr_tab[i].cn_val; snr 1769 drivers/media/dvb-frontends/mb86a16.c q_level = (*snr * 100) / (high_tide - low_tide); snr 1770 drivers/media/dvb-frontends/mb86a16.c dprintk(verbose, MB86A16_ERROR, 1, "SNR (Quality) = [%d dB], Level=%d %%", *snr, q_level); snr 1771 drivers/media/dvb-frontends/mb86a16.c *snr = (0xffff - 0xff) + *snr; snr 505 drivers/media/dvb-frontends/mt312.c static int mt312_read_snr(struct dvb_frontend *fe, u16 *snr) snr 515 drivers/media/dvb-frontends/mt312.c *snr = 0xFFFF - ((((buf[0] & 0x7f) << 8) | buf[1]) << 1); snr 474 drivers/media/dvb-frontends/mt352.c static int mt352_read_snr(struct dvb_frontend* fe, u16* snr) snr 479 drivers/media/dvb-frontends/mt352.c *snr = (_snr << 8) | _snr; snr 817 drivers/media/dvb-frontends/nxt200x.c static int nxt200x_read_snr(struct dvb_frontend* fe, u16* snr) snr 846 drivers/media/dvb-frontends/nxt200x.c *snr = snrdb * (0xFFFF/32000); snr 504 drivers/media/dvb-frontends/nxt6000.c static int nxt6000_read_snr(struct dvb_frontend* fe, u16* snr) snr 508 drivers/media/dvb-frontends/nxt6000.c *snr = nxt6000_readreg( state, OFDM_CHC_SNR) / 8; snr 52 drivers/media/dvb-frontends/or51132.c u32 snr; /* Result of last SNR calculation */ snr 458 drivers/media/dvb-frontends/or51132.c static int or51132_read_snr(struct dvb_frontend* fe, u16* snr) snr 501 drivers/media/dvb-frontends/or51132.c state->snr = calculate_snr(noise, c) - usK; snr 502 drivers/media/dvb-frontends/or51132.c *snr = (state->snr) >> 16; snr 505 drivers/media/dvb-frontends/or51132.c state->snr >> 24, (((state->snr>>8) & 0xffff) * 100) >> 16); snr 516 drivers/media/dvb-frontends/or51132.c u16 snr; snr 519 drivers/media/dvb-frontends/or51132.c ret = fe->ops.read_snr(fe, &snr); snr 524 drivers/media/dvb-frontends/or51132.c if (state->snr >= 8960 * 0x10000) snr 527 drivers/media/dvb-frontends/or51132.c *strength = state->snr / 8960; snr 52 drivers/media/dvb-frontends/or51211.c u32 snr; /* Result of last SNR calculation */ snr 281 drivers/media/dvb-frontends/or51211.c static int or51211_read_snr(struct dvb_frontend* fe, u16* snr) snr 301 drivers/media/dvb-frontends/or51211.c state->snr = calculate_snr(rec_buf[0], 89599047); snr 302 drivers/media/dvb-frontends/or51211.c *snr = (state->snr) >> 16; snr 305 drivers/media/dvb-frontends/or51211.c state->snr >> 24, (((state->snr>>8) & 0xffff) * 100) >> 16); snr 316 drivers/media/dvb-frontends/or51211.c u16 snr; snr 319 drivers/media/dvb-frontends/or51211.c ret = fe->ops.read_snr(fe, &snr); snr 324 drivers/media/dvb-frontends/or51211.c if (state->snr >= 8960 * 0x10000) snr 327 drivers/media/dvb-frontends/or51211.c *strength = state->snr / 8960; snr 499 drivers/media/dvb-frontends/rtl2830.c static int rtl2830_read_snr(struct dvb_frontend *fe, u16 *snr) snr 504 drivers/media/dvb-frontends/rtl2830.c *snr = div_s64(c->cnr.stat[0].svalue, 100); snr 506 drivers/media/dvb-frontends/rtl2830.c *snr = 0; snr 754 drivers/media/dvb-frontends/rtl2832.c static int rtl2832_read_snr(struct dvb_frontend *fe, u16 *snr) snr 760 drivers/media/dvb-frontends/rtl2832.c *snr = div_s64(c->cnr.stat[0].svalue, 100); snr 762 drivers/media/dvb-frontends/rtl2832.c *snr = 0; snr 798 drivers/media/dvb-frontends/s5h1409.c static int s5h1409_qam256_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v) snr 805 drivers/media/dvb-frontends/s5h1409.c *snr = qam256_snr_tab[i].data; snr 813 drivers/media/dvb-frontends/s5h1409.c static int s5h1409_qam64_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v) snr 820 drivers/media/dvb-frontends/s5h1409.c *snr = qam64_snr_tab[i].data; snr 828 drivers/media/dvb-frontends/s5h1409.c static int s5h1409_vsb_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v) snr 835 drivers/media/dvb-frontends/s5h1409.c *snr = vsb_snr_tab[i].data; snr 840 drivers/media/dvb-frontends/s5h1409.c dprintk("%s() snr=%d\n", __func__, *snr); snr 844 drivers/media/dvb-frontends/s5h1409.c static int s5h1409_read_snr(struct dvb_frontend *fe, u16 *snr) snr 853 drivers/media/dvb-frontends/s5h1409.c return s5h1409_qam64_lookup_snr(fe, snr, reg); snr 856 drivers/media/dvb-frontends/s5h1409.c return s5h1409_qam256_lookup_snr(fe, snr, reg); snr 859 drivers/media/dvb-frontends/s5h1409.c return s5h1409_vsb_lookup_snr(fe, snr, reg); snr 877 drivers/media/dvb-frontends/s5h1409.c u16 snr; snr 879 drivers/media/dvb-frontends/s5h1409.c int ret = s5h1409_read_snr(fe, &snr); snr 889 drivers/media/dvb-frontends/s5h1409.c tmp = (snr * ((1 << 24) / 10)); snr 712 drivers/media/dvb-frontends/s5h1411.c static int s5h1411_qam256_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v) snr 719 drivers/media/dvb-frontends/s5h1411.c *snr = qam256_snr_tab[i].data; snr 727 drivers/media/dvb-frontends/s5h1411.c static int s5h1411_qam64_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v) snr 734 drivers/media/dvb-frontends/s5h1411.c *snr = qam64_snr_tab[i].data; snr 742 drivers/media/dvb-frontends/s5h1411.c static int s5h1411_vsb_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v) snr 749 drivers/media/dvb-frontends/s5h1411.c *snr = vsb_snr_tab[i].data; snr 754 drivers/media/dvb-frontends/s5h1411.c dprintk("%s() snr=%d\n", __func__, *snr); snr 758 drivers/media/dvb-frontends/s5h1411.c static int s5h1411_read_snr(struct dvb_frontend *fe, u16 *snr) snr 767 drivers/media/dvb-frontends/s5h1411.c return s5h1411_qam64_lookup_snr(fe, snr, reg); snr 770 drivers/media/dvb-frontends/s5h1411.c return s5h1411_qam256_lookup_snr(fe, snr, reg); snr 774 drivers/media/dvb-frontends/s5h1411.c return s5h1411_vsb_lookup_snr(fe, snr, reg); snr 792 drivers/media/dvb-frontends/s5h1411.c u16 snr; snr 794 drivers/media/dvb-frontends/s5h1411.c int ret = s5h1411_read_snr(fe, &snr); snr 804 drivers/media/dvb-frontends/s5h1411.c tmp = (snr * ((1 << 24) / 10)); snr 303 drivers/media/dvb-frontends/s5h1432.c static int s5h1432_read_snr(struct dvb_frontend *fe, u16 *snr) snr 799 drivers/media/dvb-frontends/si2165.c static int si2165_read_snr(struct dvb_frontend *fe, u16 *snr) snr 804 drivers/media/dvb-frontends/si2165.c *snr = div_s64(c->cnr.stat[0].svalue, 100); snr 806 drivers/media/dvb-frontends/si2165.c *snr = 0; snr 607 drivers/media/dvb-frontends/si21xx.c static int si21_read_snr(struct dvb_frontend *fe, u16 *snr) snr 614 drivers/media/dvb-frontends/si21xx.c *snr = (xsnr > 0xffff) ? 0xffff : (xsnr < 0) ? 0 : xsnr; snr 478 drivers/media/dvb-frontends/sp887x.c static int sp887x_read_snr(struct dvb_frontend* fe, u16* snr) snr 483 drivers/media/dvb-frontends/sp887x.c *snr = (snr12 << 4) | (snr12 >> 8); snr 992 drivers/media/dvb-frontends/stb0899_drv.c static int stb0899_read_snr(struct dvb_frontend *fe, u16 *snr) snr 1001 drivers/media/dvb-frontends/stb0899_drv.c *snr = 0; snr 1012 drivers/media/dvb-frontends/stb0899_drv.c *snr = stb0899_table_lookup(stb0899_cn_tab, ARRAY_SIZE(stb0899_cn_tab) - 1, val); snr 1014 drivers/media/dvb-frontends/stb0899_drv.c buf[0], buf[1], val, *snr); snr 1036 drivers/media/dvb-frontends/stb0899_drv.c *snr = val; snr 412 drivers/media/dvb-frontends/stv0288.c static int stv0288_read_snr(struct dvb_frontend *fe, u16 *snr) snr 419 drivers/media/dvb-frontends/stv0288.c *snr = (xsnr > 0xffff) ? 0xffff : (xsnr < 0) ? 0 : xsnr; snr 420 drivers/media/dvb-frontends/stv0288.c dprintk("stv0288_read_snr %d\n", *snr); snr 372 drivers/media/dvb-frontends/stv0297.c static int stv0297_read_snr(struct dvb_frontend *fe, u16 * snr) snr 378 drivers/media/dvb-frontends/stv0297.c *snr = SNR[1] << 8 | SNR[0]; snr 530 drivers/media/dvb-frontends/stv0299.c static int stv0299_read_snr(struct dvb_frontend* fe, u16* snr) snr 537 drivers/media/dvb-frontends/stv0299.c *snr = (xsnr > 0xffff) ? 0xffff : (xsnr < 0) ? 0 : xsnr; snr 1455 drivers/media/dvb-frontends/stv0367.c static int stv0367ter_read_snr(struct dvb_frontend *fe, u16 *snr) snr 1459 drivers/media/dvb-frontends/stv0367.c *snr = snrval / 1000; snr 2782 drivers/media/dvb-frontends/stv0367.c static int stv0367cab_read_snr(struct dvb_frontend *fe, u16 *snr) snr 2832 drivers/media/dvb-frontends/stv0367.c *snr = (noisepercentage * 65535) / 100; snr 752 drivers/media/dvb-frontends/stv0900_core.c static int stv0900_read_snr(struct dvb_frontend *fe, u16 *snr) snr 763 drivers/media/dvb-frontends/stv0900_core.c *snr = snrlcl; snr 352 drivers/media/dvb-frontends/tda10021.c static int tda10021_read_snr(struct dvb_frontend* fe, u16* snr) snr 357 drivers/media/dvb-frontends/tda10021.c *snr = (quality << 8) | quality; snr 420 drivers/media/dvb-frontends/tda10023.c static int tda10023_read_snr(struct dvb_frontend* fe, u16* snr) snr 425 drivers/media/dvb-frontends/tda10023.c *snr = (quality << 8) | quality; snr 984 drivers/media/dvb-frontends/tda10048.c static int tda10048_read_snr(struct dvb_frontend *fe, u16 *snr) snr 995 drivers/media/dvb-frontends/tda10048.c *snr = snr_tab[i].data; snr 1104 drivers/media/dvb-frontends/tda1004x.c static int tda1004x_read_snr(struct dvb_frontend* fe, u16 * snr) snr 1117 drivers/media/dvb-frontends/tda1004x.c *snr = ((tmp << 8) | tmp); snr 1118 drivers/media/dvb-frontends/tda1004x.c dprintk("%s: snr=0x%x\n", __func__, *snr); snr 500 drivers/media/dvb-frontends/tda10071.c static int tda10071_read_snr(struct dvb_frontend *fe, u16 *snr) snr 505 drivers/media/dvb-frontends/tda10071.c *snr = div_s64(c->cnr.stat[0].svalue, 100); snr 507 drivers/media/dvb-frontends/tda10071.c *snr = 0; snr 586 drivers/media/dvb-frontends/tda10086.c static int tda10086_read_snr(struct dvb_frontend* fe, u16 * snr) snr 594 drivers/media/dvb-frontends/tda10086.c *snr = (_snr << 8) | _snr; snr 292 drivers/media/dvb-frontends/tda8083.c static int tda8083_read_snr(struct dvb_frontend* fe, u16* snr) snr 297 drivers/media/dvb-frontends/tda8083.c *snr = (_snr << 8) | _snr; snr 278 drivers/media/dvb-frontends/ves1820.c static int ves1820_read_snr(struct dvb_frontend* fe, u16* snr) snr 283 drivers/media/dvb-frontends/ves1820.c *snr = (quality << 8) | quality; snr 353 drivers/media/dvb-frontends/ves1x93.c static int ves1x93_read_snr(struct dvb_frontend* fe, u16* snr) snr 358 drivers/media/dvb-frontends/ves1x93.c *snr = (_snr << 8) | _snr; snr 504 drivers/media/dvb-frontends/zl10353.c static int zl10353_read_snr(struct dvb_frontend *fe, u16 *snr) snr 513 drivers/media/dvb-frontends/zl10353.c *snr = 10 * _snr / 8; snr 122 drivers/media/firewire/firedtv-fe.c static int fdtv_read_snr(struct dvb_frontend *fe, u16 *snr) snr 131 drivers/media/firewire/firedtv-fe.c *snr = stat.carrier_noise_ratio * 257; snr 1568 drivers/media/pci/bt8xx/dst.c static int dst_read_snr(struct dvb_frontend *fe, u16 *snr) snr 1573 drivers/media/pci/bt8xx/dst.c *snr = state->decode_snr; snr 2912 drivers/media/pci/ddbridge/ddbridge-core.c char snr[32]; snr 2916 drivers/media/pci/ddbridge/ddbridge-core.c if (i2c_read_regs(&dev->i2c[num].adap, 0x10, 0x10, snr, 16) < 0) snr 2918 drivers/media/pci/ddbridge/ddbridge-core.c snr[16] = 0; snr 2922 drivers/media/pci/ddbridge/ddbridge-core.c 0x57, 0x100, snr, 32) < 0) snr 2924 drivers/media/pci/ddbridge/ddbridge-core.c 0x50, 0x100, snr, 32) < 0) snr 2926 drivers/media/pci/ddbridge/ddbridge-core.c snr[31] = 0; /* in case it is not terminated on EEPROM */ snr 2928 drivers/media/pci/ddbridge/ddbridge-core.c return sprintf(buf, "%s\n", snr); snr 2935 drivers/media/pci/ddbridge/ddbridge-core.c char snr[16]; snr 2937 drivers/media/pci/ddbridge/ddbridge-core.c ddbridge_flashread(dev, 0, snr, 0x10, 15); snr 2938 drivers/media/pci/ddbridge/ddbridge-core.c snr[15] = 0; /* in case it is not terminated on EEPROM */ snr 2939 drivers/media/pci/ddbridge/ddbridge-core.c return sprintf(buf, "%s\n", snr); snr 2946 drivers/media/pci/ddbridge/ddbridge-core.c unsigned char snr[32]; snr 2952 drivers/media/pci/ddbridge/ddbridge-core.c 0x50, 0x0000, snr, 32) < 0 || snr 2953 drivers/media/pci/ddbridge/ddbridge-core.c snr[0] == 0xff) snr 2955 drivers/media/pci/ddbridge/ddbridge-core.c snr[31] = 0; /* in case it is not terminated on EEPROM */ snr 2956 drivers/media/pci/ddbridge/ddbridge-core.c return sprintf(buf, "%s\n", snr); snr 3085 drivers/media/pci/ddbridge/ddbridge-core.c __ATTR_MRO(snr, bsnr_show), snr 1526 drivers/media/tuners/xc4000.c u16 snr = 0; snr 1527 drivers/media/tuners/xc4000.c if (xc4000_readreg(priv, XREG_SNR, &snr) == 0) { snr 1530 drivers/media/tuners/xc4000.c __func__, *freq, snr); snr 548 drivers/media/tuners/xc5000.c static int xc_get_analogsnr(struct xc5000_priv *priv, u16 *snr) snr 550 drivers/media/tuners/xc5000.c return xc5000_readreg(priv, XREG_SNR, snr); snr 631 drivers/media/tuners/xc5000.c u16 snr; snr 670 drivers/media/tuners/xc5000.c xc_get_analogsnr(priv, &snr); snr 671 drivers/media/tuners/xc5000.c dprintk(1, "*** Unweighted analog SNR = %d dB\n", snr & 0x3f); snr 910 drivers/media/usb/dvb-usb-v2/lmedm04.c static int dm04_read_snr(struct dvb_frontend *fe, u16 *snr) snr 916 drivers/media/usb/dvb-usb-v2/lmedm04.c return st->fe_read_snr(fe, snr); snr 919 drivers/media/usb/dvb-usb-v2/lmedm04.c *snr = (u16)c->cnr.stat[0].uvalue; snr 921 drivers/media/usb/dvb-usb-v2/lmedm04.c *snr = 0; snr 398 drivers/media/usb/dvb-usb-v2/mxl111sf-demod.c u16 *snr) snr 403 drivers/media/usb/dvb-usb-v2/mxl111sf-demod.c *snr = 0; snr 412 drivers/media/usb/dvb-usb-v2/mxl111sf-demod.c *snr = CALCULATE_SNR(val1 | ((val2 & 0x03) << 8)); snr 417 drivers/media/usb/dvb-usb-v2/mxl111sf-demod.c static int mxl111sf_demod_read_snr(struct dvb_frontend *fe, u16 *snr) snr 421 drivers/media/usb/dvb-usb-v2/mxl111sf-demod.c int ret = mxl111sf_demod_calc_snr(state, snr); snr 425 drivers/media/usb/dvb-usb-v2/mxl111sf-demod.c *snr /= 10; /* 0.1 dB */ snr 472 drivers/media/usb/dvb-usb-v2/mxl111sf-demod.c u16 snr; snr 474 drivers/media/usb/dvb-usb-v2/mxl111sf-demod.c ret = mxl111sf_demod_calc_snr(state, &snr); snr 483 drivers/media/usb/dvb-usb-v2/mxl111sf-demod.c *signal_strength = (snr >= 1300) ? snr 484 drivers/media/usb/dvb-usb-v2/mxl111sf-demod.c min(65535, snr * 44) : snr * 38; snr 487 drivers/media/usb/dvb-usb-v2/mxl111sf-demod.c *signal_strength = (snr >= 1500) ? snr 488 drivers/media/usb/dvb-usb-v2/mxl111sf-demod.c min(65535, snr * 38) : snr * 33; snr 491 drivers/media/usb/dvb-usb-v2/mxl111sf-demod.c *signal_strength = (snr >= 2000) ? snr 492 drivers/media/usb/dvb-usb-v2/mxl111sf-demod.c min(65535, snr * 29) : snr * 25; snr 522 drivers/media/usb/dvb-usb/af9005-fe.c static int af9005_fe_read_snr(struct dvb_frontend *fe, u16 * snr) snr 198 drivers/media/usb/dvb-usb/cinergyT2-fe.c static int cinergyt2_fe_read_snr(struct dvb_frontend *fe, u16 *snr) snr 202 drivers/media/usb/dvb-usb/cinergyT2-fe.c *snr = (state->status.snr << 8) | state->status.snr; snr 60 drivers/media/usb/dvb-usb/cinergyT2.h uint8_t snr; snr 104 drivers/media/usb/dvb-usb/dtt200u-fe.c static int dtt200u_fe_read_snr(struct dvb_frontend* fe, u16 *snr) snr 114 drivers/media/usb/dvb-usb/dtt200u-fe.c *snr = ~((state->data[0] << 8) | state->data[0]); snr 32 drivers/media/usb/dvb-usb/vp702x-fe.c u8 snr; snr 51 drivers/media/usb/dvb-usb/vp702x-fe.c st->snr = buf[0]; snr 117 drivers/media/usb/dvb-usb/vp702x-fe.c static int vp702x_fe_read_snr(struct dvb_frontend* fe, u16 *snr) snr 123 drivers/media/usb/dvb-usb/vp702x-fe.c _snr = (st->snr & 0x1f) * 0xff / 0x1f; snr 124 drivers/media/usb/dvb-usb/vp702x-fe.c *snr = (_snr << 8) | _snr; snr 79 drivers/media/usb/dvb-usb/vp7045-fe.c static int vp7045_fe_read_snr(struct dvb_frontend* fe, u16 *snr) snr 83 drivers/media/usb/dvb-usb/vp7045-fe.c *snr = (_snr << 8) | _snr; snr 782 drivers/mfd/si476x-cmd.c report->snr = resp[7]; snr 1209 drivers/mfd/si476x-cmd.c report->snr = resp[7]; snr 1263 drivers/mfd/si476x-cmd.c report->snr = resp[7]; snr 1319 drivers/mfd/si476x-cmd.c report->snr = resp[7]; snr 818 drivers/net/wireless/ath/ath10k/wmi-tlv.c arg->snr = ev->snr; snr 1646 drivers/net/wireless/ath/ath10k/wmi-tlv.h __le32 snr; snr 2257 drivers/net/wireless/ath/ath10k/wmi.c arg->snr = ev_hdr->snr; snr 2301 drivers/net/wireless/ath/ath10k/wmi.c arg->snr = ev_hdr->snr; snr 2453 drivers/net/wireless/ath/ath10k/wmi.c u32 snr; snr 2467 drivers/net/wireless/ath/ath10k/wmi.c snr = __le32_to_cpu(arg.snr); snr 2514 drivers/net/wireless/ath/ath10k/wmi.c status->signal = snr + ATH10K_DEFAULT_NOISE_FLOOR; snr 3373 drivers/net/wireless/ath/ath10k/wmi.h __le32 snr; snr 3397 drivers/net/wireless/ath/ath10k/wmi.h __le32 snr; snr 6768 drivers/net/wireless/ath/ath10k/wmi.h __le32 snr; snr 1105 drivers/net/wireless/ath/ath6kl/wmi.c bih->ch, bih->snr, bih->snr - 95, bih->bssid, snr 1146 drivers/net/wireless/ath/ath6kl/wmi.c (bih->snr - 95) * 100, GFP_ATOMIC); snr 1675 drivers/net/wireless/ath/ath6kl/wmi.c s16 snr; snr 1684 drivers/net/wireless/ath/ath6kl/wmi.c snr = reply->snr; snr 1695 drivers/net/wireless/ath/ath6kl/wmi.c if (snr < sq_thresh->upper_threshold[0]) { snr 1698 drivers/net/wireless/ath/ath6kl/wmi.c snr); snr 1699 drivers/net/wireless/ath/ath6kl/wmi.c } else if ((snr < sq_thresh->upper_threshold[1]) && snr 1700 drivers/net/wireless/ath/ath6kl/wmi.c (snr >= sq_thresh->upper_threshold[0])) { snr 1702 drivers/net/wireless/ath/ath6kl/wmi.c } else if ((snr < sq_thresh->upper_threshold[2]) && snr 1703 drivers/net/wireless/ath/ath6kl/wmi.c (snr >= sq_thresh->upper_threshold[1])) { snr 1705 drivers/net/wireless/ath/ath6kl/wmi.c } else if ((snr < sq_thresh->upper_threshold[3]) && snr 1706 drivers/net/wireless/ath/ath6kl/wmi.c (snr >= sq_thresh->upper_threshold[2])) { snr 1708 drivers/net/wireless/ath/ath6kl/wmi.c } else if (snr >= sq_thresh->upper_threshold[3]) { snr 1713 drivers/net/wireless/ath/ath6kl/wmi.c if (snr > sq_thresh->lower_threshold[0]) { snr 1717 drivers/net/wireless/ath/ath6kl/wmi.c } else if ((snr > sq_thresh->lower_threshold[1]) && snr 1718 drivers/net/wireless/ath/ath6kl/wmi.c (snr <= sq_thresh->lower_threshold[0])) { snr 1720 drivers/net/wireless/ath/ath6kl/wmi.c } else if ((snr > sq_thresh->lower_threshold[2]) && snr 1721 drivers/net/wireless/ath/ath6kl/wmi.c (snr <= sq_thresh->lower_threshold[1])) { snr 1723 drivers/net/wireless/ath/ath6kl/wmi.c } else if ((snr > sq_thresh->lower_threshold[3]) && snr 1724 drivers/net/wireless/ath/ath6kl/wmi.c (snr <= sq_thresh->lower_threshold[2])) { snr 1726 drivers/net/wireless/ath/ath6kl/wmi.c } else if (snr <= sq_thresh->lower_threshold[3]) { snr 1732 drivers/net/wireless/ath/ath6kl/wmi.c lower_snr_threshold = ath6kl_wmi_get_lower_threshold(snr, sq_thresh, snr 1734 drivers/net/wireless/ath/ath6kl/wmi.c upper_snr_threshold = ath6kl_wmi_get_upper_threshold(snr, sq_thresh, snr 1745 drivers/net/wireless/ath/ath6kl/wmi.c snr, new_threshold, snr 1677 drivers/net/wireless/ath/ath6kl/wmi.h u8 snr; /* note: rssi = snr - 95 dBm */ snr 1752 drivers/net/wireless/ath/ath6kl/wmi.h s8 snr; snr 1900 drivers/net/wireless/ath/ath6kl/wmi.h u8 snr; snr 1874 drivers/net/wireless/ath/wil6210/debugfs.c basic->rssi, basic->sqi, basic->snr, per, snr 4093 drivers/net/wireless/ath/wil6210/wmi.h __le16 snr; snr 19 drivers/net/wireless/marvell/libertas/cmd.c #define CAL_RSSI(snr, nf) ((s32)((s32)(snr) + CAL_NF(nf))) snr 132 drivers/net/wireless/marvell/libertas/cmd.h int lbs_get_rssi(struct lbs_private *priv, s8 *snr, s8 *nf); snr 340 drivers/net/wireless/marvell/libertas/host.h u8 snr; snr 955 drivers/net/wireless/marvell/libertas/host.h __le32 snr; snr 247 drivers/net/wireless/marvell/libertas/rx.c radiotap_hdr.antsignal = prxpd->snr + prxpd->nf; snr 291 drivers/net/wireless/marvell/libertas_tf/libertas_tf.h u8 snr; snr 509 drivers/net/wireless/marvell/libertas_tf/main.c stats.signal = prxpd->snr - prxpd->nf; snr 304 drivers/net/wireless/marvell/mwifiex/debugfs.c value = atomic_read(&phist_data->snr[i]); snr 254 drivers/net/wireless/marvell/mwifiex/decl.h atomic_t snr[MWIFIEX_MAX_SNR]; snr 703 drivers/net/wireless/marvell/mwifiex/fw.h s8 snr; snr 750 drivers/net/wireless/marvell/mwifiex/fw.h s8 snr; snr 1640 drivers/net/wireless/marvell/mwifiex/main.h u8 *mac, s8 snr, s8 nflr); snr 1672 drivers/net/wireless/marvell/mwifiex/main.h void mwifiex_hist_data_set(struct mwifiex_private *priv, u8 rx_rate, s8 snr, snr 1676 drivers/net/wireless/marvell/mwifiex/main.h u8 rx_rate, s8 snr, s8 nflr); snr 166 drivers/net/wireless/marvell/mwifiex/sta_rx.c mwifiex_hist_data_add(priv, adj_rx_rate, local_rx_pd->snr, snr 249 drivers/net/wireless/marvell/mwifiex/sta_rx.c local_rx_pd->snr, snr 1395 drivers/net/wireless/marvell/mwifiex/tdls.c u8 *mac, s8 snr, s8 nflr) snr 1405 drivers/net/wireless/marvell/mwifiex/tdls.c peer->rssi = nflr - snr; snr 359 drivers/net/wireless/marvell/mwifiex/util.c addr2, rx_pd->nf, rx_pd->snr); snr 362 drivers/net/wireless/marvell/mwifiex/util.c rx_pd->snr, snr 429 drivers/net/wireless/marvell/mwifiex/util.c CAL_RSSI(rx_pd->snr, rx_pd->nf), skb->data, pkt_len, snr 696 drivers/net/wireless/marvell/mwifiex/util.c u8 rx_rate, s8 snr, s8 nflr) snr 702 drivers/net/wireless/marvell/mwifiex/util.c mwifiex_hist_data_set(priv, rx_rate, snr, nflr); snr 706 drivers/net/wireless/marvell/mwifiex/util.c void mwifiex_hist_data_set(struct mwifiex_private *priv, u8 rx_rate, s8 snr, snr 711 drivers/net/wireless/marvell/mwifiex/util.c s8 rssi = snr - nflr; snr 715 drivers/net/wireless/marvell/mwifiex/util.c atomic_inc(&phist_data->snr[snr + 128]); snr 730 drivers/net/wireless/marvell/mwifiex/util.c atomic_set(&phist_data->snr[ix], 0); snr 37 drivers/net/wireless/mediatek/mt7601u/mac.h u8 snr; snr 271 drivers/net/wireless/mediatek/mt7601u/trace.h __entry->rxwi.snr, __entry->rxwi.ant, snr 65 drivers/net/wireless/ti/wl1251/rx.c wl->noise = desc->rssi - desc->snr / 2; snr 103 drivers/net/wireless/ti/wl1251/rx.h u8 snr; /* in dB */ snr 77 drivers/net/wireless/ti/wlcore/rx.c wl->noise = desc->rssi - (desc->snr >> 1); snr 126 drivers/net/wireless/ti/wlcore/rx.h u8 snr; snr 83 include/linux/mfd/si476x-reports.h __s8 snr; snr 469 include/media/dvb_frontend.h int (*read_snr)(struct dvb_frontend* fe, u16* snr);