/drivers/media/dvb-frontends/ |
D | au8522_dig.c | 228 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() 704 static int au8522_led_status(struct au8522_state *state, const u16 *snr) in au8522_led_status() argument 723 if (*snr >= strong) in au8522_led_status() 729 (((strong < *snr) ? (*snr - strong) : (strong - *snr)) <= 10)) in au8522_led_status() 737 static int au8522_read_snr(struct dvb_frontend *fe, u16 *snr) in au8522_read_snr() argument 748 snr); in au8522_read_snr() 753 snr); in au8522_read_snr() 758 snr); in au8522_read_snr() [all …]
|
D | lgdt330x.c | 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 [all …]
|
D | or51211.c | 62 u32 snr; /* Result of last SNR claculation */ member 291 static int or51211_read_snr(struct dvb_frontend* fe, u16* snr) in or51211_read_snr() argument 311 state->snr = calculate_snr(rec_buf[0], 89599047); in or51211_read_snr() 312 *snr = (state->snr) >> 16; in or51211_read_snr() 315 state->snr >> 24, (((state->snr>>8) & 0xffff) * 100) >> 16); in or51211_read_snr() 326 u16 snr; in or51211_read_signal_strength() local 329 ret = fe->ops.read_snr(fe, &snr); in or51211_read_signal_strength() 334 if (state->snr >= 8960 * 0x10000) in or51211_read_signal_strength() 337 *strength = state->snr / 8960; in or51211_read_signal_strength()
|
D | or51132.c | 63 u32 snr; /* Result of last SNR calculation */ member 469 static int or51132_read_snr(struct dvb_frontend* fe, u16* snr) in or51132_read_snr() argument 512 state->snr = calculate_snr(noise, c) - usK; in or51132_read_snr() 513 *snr = (state->snr) >> 16; in or51132_read_snr() 516 state->snr >> 24, (((state->snr>>8) & 0xffff) * 100) >> 16); in or51132_read_snr() 527 u16 snr; in or51132_read_signal_strength() local 530 ret = fe->ops.read_snr(fe, &snr); in or51132_read_signal_strength() 535 if (state->snr >= 8960 * 0x10000) in or51132_read_signal_strength() 538 *strength = state->snr / 8960; in or51132_read_signal_strength()
|
D | s5h1411.c | 724 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 …]
|
D | s5h1409.c | 810 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 …]
|
D | gp8psk-fe.c | 37 u16 snr; member 64 st->snr = (buf[1]) << 8 | buf[0]; in gp8psk_fe_update_status() 104 static int gp8psk_fe_read_snr(struct dvb_frontend* fe, u16 *snr) in gp8psk_fe_read_snr() argument 109 *snr = st->snr; in gp8psk_fe_read_snr() 120 if (st->snr > 0xf00) in gp8psk_fe_read_signal_strength() 123 *strength = (st->snr << 4) + st->snr; /* snr*17 */ in gp8psk_fe_read_signal_strength()
|
D | lgdt3306a.c | 68 u32 snr; member 1512 u32 snr; in lgdt3306a_vsb_lock_poll() local 1526 snr = lgdt3306a_calculate_snr_x100(state); in lgdt3306a_vsb_lock_poll() 1527 dbg_info("cnt=%d errors=%d snr=%d\n", cnt, packet_error, snr); in lgdt3306a_vsb_lock_poll() 1529 if ((snr >= 1500) && (packet_error < 0xff)) in lgdt3306a_vsb_lock_poll() 1542 u32 snr; in lgdt3306a_qam_lock_poll() local 1553 snr = lgdt3306a_calculate_snr_x100(state); in lgdt3306a_qam_lock_poll() 1554 dbg_info("cnt=%d errors=%d snr=%d\n", cnt, packet_error, snr); in lgdt3306a_qam_lock_poll() 1556 if ((snr >= 1500) && (packet_error < 0xff)) in lgdt3306a_qam_lock_poll() 1612 static int lgdt3306a_read_snr(struct dvb_frontend *fe, u16 *snr) in lgdt3306a_read_snr() argument [all …]
|
D | lg2160.c | 1235 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 …]
|
D | ds3000.c | 547 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()
|
D | lgdt3305.c | 61 u32 snr; member 993 static int lgdt3305_read_snr(struct dvb_frontend *fe, u16 *snr) in lgdt3305_read_snr() argument 1029 state->snr = calculate_snr(noise, c); in lgdt3305_read_snr() 1031 *snr = (state->snr / ((1 << 24) / 10)); in lgdt3305_read_snr() 1033 state->snr >> 24, (((state->snr >> 8) & 0xffff) * 100) >> 16); in lgdt3305_read_snr() 1049 u16 snr; in lgdt3305_read_signal_strength() local 1054 ret = fe->ops.read_snr(fe, &snr); in lgdt3305_read_signal_strength() 1059 if (state->snr >= 8960 * 0x10000) in lgdt3305_read_signal_strength() 1062 *strength = state->snr / 8960; in lgdt3305_read_signal_strength()
|
D | af9033.c | 827 static int af9033_read_snr(struct dvb_frontend *fe, u16 *snr) in af9033_read_snr() argument 842 *snr = div_s64(c->cnr.stat[0].svalue, 100); in af9033_read_snr() 845 *snr = div_s64(c->cnr.stat[0].svalue, 1000); in af9033_read_snr() 855 *snr = *snr * 0xffff / 23; in af9033_read_snr() 858 *snr = *snr * 0xffff / 26; in af9033_read_snr() 861 *snr = *snr * 0xffff / 32; in af9033_read_snr() 868 *snr = 0; in af9033_read_snr()
|
D | cx24116.c | 756 static int cx24116_read_snr_pct(struct dvb_frontend *fe, u16 *snr) in cx24116_read_snr_pct() argument 771 *snr = 0xffff; in cx24116_read_snr_pct() 773 *snr = snr_tab[(snr_reading & 0xf0) >> 4] + in cx24116_read_snr_pct() 777 snr_reading, *snr); in cx24116_read_snr_pct() 786 static int cx24116_read_snr_esno(struct dvb_frontend *fe, u16 *snr) in cx24116_read_snr_esno() argument 792 *snr = cx24116_readreg(state, CX24116_REG_QUALITY8) << 8 | in cx24116_read_snr_esno() 795 dprintk("%s: raw 0x%04x\n", __func__, *snr); in cx24116_read_snr_esno() 800 static int cx24116_read_snr(struct dvb_frontend *fe, u16 *snr) in cx24116_read_snr() argument 803 return cx24116_read_snr_esno(fe, snr); in cx24116_read_snr() 805 return cx24116_read_snr_pct(fe, snr); in cx24116_read_snr()
|
/drivers/media/usb/dvb-usb-v2/ |
D | mxl111sf-demod.c | 407 u16 *snr) in mxl111sf_demod_calc_snr() argument 412 *snr = 0; in mxl111sf_demod_calc_snr() 421 *snr = CALCULATE_SNR(val1 | ((val2 & 0x03) << 8)); in mxl111sf_demod_calc_snr() 426 static int mxl111sf_demod_read_snr(struct dvb_frontend *fe, u16 *snr) in mxl111sf_demod_read_snr() argument 430 int ret = mxl111sf_demod_calc_snr(state, snr); in mxl111sf_demod_read_snr() 434 *snr /= 10; /* 0.1 dB */ in mxl111sf_demod_read_snr() 480 u16 snr; in mxl111sf_demod_read_signal_strength() local 482 mxl111sf_demod_calc_snr(state, &snr); in mxl111sf_demod_read_signal_strength() 487 *signal_strength = (snr >= 1300) ? in mxl111sf_demod_read_signal_strength() 488 min(65535, snr * 44) : snr * 38; in mxl111sf_demod_read_signal_strength() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | M0205.c | 30 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()
|
D | perf.c | 31 u8 *cnt, u8 *len, u8 *snr, u8 *ssz) in nvbios_perf_table() argument 45 *snr = nvbios_rd08(bios, perf + 4); in nvbios_perf_table() 52 *snr = nvbios_rd08(bios, perf + 4); in nvbios_perf_table() 68 *snr = 0; in nvbios_perf_table() 82 u8 snr, ssz; in nvbios_perf_entry() local 83 u32 perf = nvbios_perf_table(bios, ver, hdr, cnt, len, &snr, &ssz); in nvbios_perf_entry() 85 perf = perf + *hdr + (idx * (*len + (snr * ssz))); in nvbios_perf_entry() 87 *cnt = snr; in nvbios_perf_entry() 204 u8 ver, hdr, cnt, len, snr, ssz; in nvbios_perf_fan_parse() local 205 u32 perf = nvbios_perf_table(bios, &ver, &hdr, &cnt, &len, &snr, &ssz); in nvbios_perf_fan_parse()
|
D | boost.c | 30 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 u32 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()
|
D | M0209.c | 30 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()
|
D | timing.c | 30 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 u32 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()
|
D | rammap.c | 30 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 u32 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/net/wireless/marvell/mwifiex/ |
D | util.c | 357 addr2, rx_pd->nf, rx_pd->snr); in mwifiex_parse_mgmt_packet() 360 rx_pd->snr, in mwifiex_parse_mgmt_packet() 427 CAL_RSSI(rx_pd->snr, rx_pd->nf), skb->data, pkt_len, in mwifiex_process_mgmt_packet() 697 u8 rx_rate, s8 snr, s8 nflr) in mwifiex_hist_data_add() argument 703 mwifiex_hist_data_set(priv, rx_rate, snr, nflr); in mwifiex_hist_data_add() 707 void mwifiex_hist_data_set(struct mwifiex_private *priv, u8 rx_rate, s8 snr, in mwifiex_hist_data_set() argument 712 s8 rssi = snr - nflr; in mwifiex_hist_data_set() 716 atomic_inc(&phist_data->snr[snr + 128]); in mwifiex_hist_data_set() 731 atomic_set(&phist_data->snr[ix], 0); in mwifiex_hist_data_reset()
|
/drivers/media/usb/dvb-usb/ |
D | cinergyT2-fe.c | 208 static int cinergyt2_fe_read_snr(struct dvb_frontend *fe, u16 *snr) in cinergyt2_fe_read_snr() argument 212 *snr = (state->status.snr << 8) | state->status.snr; in cinergyt2_fe_read_snr()
|
D | vp702x-fe.c | 36 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()
|
/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ |
D | M0205.h | 9 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz); 11 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz,
|
/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
D | ramgp100.c | 36 u8 ver, hdr, cnt, len, snr, ssz; in gp100_ram_init() local 51 data = nvbios_rammapTe(bios, &ver, &hdr, &cnt, &len, &snr, &ssz); in gp100_ram_init()
|