Home
last modified time | relevance | path

Searched refs:strength (Results 1 – 25 of 82) sorted by relevance

1234

/linux-4.19.296/drivers/media/dvb-frontends/
Dcxd2820r_c.c190 unsigned int strength; in cxd2820r_read_status_c() local
199 strength = utmp << 6 | utmp >> 4; in cxd2820r_read_status_c()
201 c->strength.len = 1; in cxd2820r_read_status_c()
202 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in cxd2820r_read_status_c()
203 c->strength.stat[0].uvalue = strength; in cxd2820r_read_status_c()
205 c->strength.len = 1; in cxd2820r_read_status_c()
206 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2820r_read_status_c()
Dcxd2820r_t2.c320 unsigned int strength; in cxd2820r_read_status_t2() local
329 strength = utmp << 4 | utmp >> 8; in cxd2820r_read_status_t2()
331 c->strength.len = 1; in cxd2820r_read_status_t2()
332 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in cxd2820r_read_status_t2()
333 c->strength.stat[0].uvalue = strength; in cxd2820r_read_status_t2()
335 c->strength.len = 1; in cxd2820r_read_status_t2()
336 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2820r_read_status_t2()
Dcxd2820r_t.c295 unsigned int strength; in cxd2820r_read_status_t() local
304 strength = utmp << 4 | utmp >> 8; in cxd2820r_read_status_t()
306 c->strength.len = 1; in cxd2820r_read_status_t()
307 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in cxd2820r_read_status_t()
308 c->strength.stat[0].uvalue = strength; in cxd2820r_read_status_t()
310 c->strength.len = 1; in cxd2820r_read_status_t()
311 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2820r_read_status_t()
Dts2020.c155 c->strength.len = 1; in ts2020_init()
156 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in ts2020_init()
157 c->strength.stat[0].uvalue = 0; in ts2020_init()
446 ret = ts2020_get_tuner_gain(priv->fe, &c->strength.stat[0].svalue); in ts2020_stat_work()
450 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in ts2020_stat_work()
467 unsigned strength; in ts2020_read_signal_strength() local
473 if (c->strength.stat[0].scale == FE_SCALE_NOT_AVAILABLE) { in ts2020_read_signal_strength()
478 gain = c->strength.stat[0].svalue; in ts2020_read_signal_strength()
483 strength = 0; in ts2020_read_signal_strength()
486 strength = 0 + div64_s64((85000 + gain) * 3, 1000); in ts2020_read_signal_strength()
[all …]
Drtl2830.c130 c->strength.len = 1; in rtl2830_init()
131 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_init()
433 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in rtl2830_read_status()
434 c->strength.stat[0].uvalue = utmp; in rtl2830_read_status()
436 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_read_status()
539 static int rtl2830_read_signal_strength(struct dvb_frontend *fe, u16 *strength) in rtl2830_read_signal_strength() argument
543 if (c->strength.stat[0].scale == FE_SCALE_RELATIVE) in rtl2830_read_signal_strength()
544 *strength = c->strength.stat[0].uvalue; in rtl2830_read_signal_strength()
546 *strength = 0; in rtl2830_read_signal_strength()
Dmn88443x.c286 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88443x_s_read_status()
294 c->strength.len = 1; in mn88443x_s_read_status()
295 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in mn88443x_s_read_status()
296 c->strength.stat[0].uvalue = agc; in mn88443x_s_read_status()
489 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88443x_t_read_status()
498 c->strength.len = 1; in mn88443x_t_read_status()
499 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in mn88443x_t_read_status()
500 c->strength.stat[0].uvalue = agc; in mn88443x_t_read_status()
Daf9033.c293 c->strength.len = 1; in af9033_init()
294 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_init()
679 c->strength.len = 1; in af9033_read_status()
680 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in af9033_read_status()
681 c->strength.stat[0].svalue = tmp; in af9033_read_status()
683 c->strength.len = 1; in af9033_read_status()
684 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_read_status()
877 static int af9033_read_signal_strength(struct dvb_frontend *fe, u16 *strength) in af9033_read_signal_strength() argument
895 *strength = utmp * 0xffff / 100; in af9033_read_signal_strength()
925 *strength = tmp * 0xffff / 100; in af9033_read_signal_strength()
Dec100.c241 static int ec100_read_signal_strength(struct dvb_frontend *fe, u16 *strength) in ec100_read_signal_strength() argument
249 *strength = 0; in ec100_read_signal_strength()
253 *strength = ((tmp << 8) | tmp); in ec100_read_signal_strength()
Dtda10071.c421 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in tda10071_read_status()
422 c->strength.stat[0].svalue = (int) (uitmp - 256) * 1000; in tda10071_read_status()
424 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in tda10071_read_status()
525 static int tda10071_read_signal_strength(struct dvb_frontend *fe, u16 *strength) in tda10071_read_signal_strength() argument
530 if (c->strength.stat[0].scale == FE_SCALE_DECIBEL) { in tda10071_read_signal_strength()
531 uitmp = div_s64(c->strength.stat[0].svalue, 1000) + 256; in tda10071_read_signal_strength()
534 *strength = (uitmp-181) * 0xffff / (236-181); in tda10071_read_signal_strength()
536 *strength = 0; in tda10071_read_signal_strength()
1034 c->strength.len = 1; in tda10071_init()
1035 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in tda10071_init()
Ds921.c390 static int s921_read_signal_strength(struct dvb_frontend *fe, u16 *strength) in s921_read_signal_strength() argument
401 *strength = (status & FE_HAS_LOCK) ? 0xffff : 0; in s921_read_signal_strength()
403 dprintk("strength = 0x%04x\n", *strength); in s921_read_signal_strength()
Ddvb_dummy_fe.c50 static int dvb_dummy_fe_read_signal_strength(struct dvb_frontend* fe, u16* strength) in dvb_dummy_fe_read_signal_strength() argument
52 *strength = 0; in dvb_dummy_fe_read_signal_strength()
Dgp8psk-fe.c113 static int gp8psk_fe_read_signal_strength(struct dvb_frontend* fe, u16 *strength) in gp8psk_fe_read_signal_strength() argument
121 *strength = 0xffff; in gp8psk_fe_read_signal_strength()
123 *strength = (st->snr << 4) + st->snr; /* snr*17 */ in gp8psk_fe_read_signal_strength()
Dcxd2841er.c1996 s32 strength; in cxd2841er_read_signal_strength() local
2002 strength = cxd2841er_read_agc_gain_t_t2(priv, in cxd2841er_read_signal_strength()
2004 p->strength.stat[0].scale = FE_SCALE_DECIBEL; in cxd2841er_read_signal_strength()
2006 p->strength.stat[0].uvalue = strength * 366 / 100 - 89520; in cxd2841er_read_signal_strength()
2011 strength = cxd2841er_read_agc_gain_c(priv, in cxd2841er_read_signal_strength()
2013 p->strength.stat[0].scale = FE_SCALE_DECIBEL; in cxd2841er_read_signal_strength()
2019 p->strength.stat[0].uvalue = strength * 4045 / 1000 - 85224; in cxd2841er_read_signal_strength()
2022 strength = cxd2841er_read_agc_gain_i(priv, p->delivery_system); in cxd2841er_read_signal_strength()
2023 p->strength.stat[0].scale = FE_SCALE_DECIBEL; in cxd2841er_read_signal_strength()
2028 p->strength.stat[0].uvalue = strength * 3775 / 1000 - 90185; in cxd2841er_read_signal_strength()
[all …]
Dmn88473.c333 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in mn88473_read_status()
334 c->strength.stat[0].uvalue = utmp1; in mn88473_read_status()
336 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88473_read_status()
540 c->strength.len = 1; in mn88473_init()
541 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88473_init()
/linux-4.19.296/include/media/i2c/
Dov772x.h26 unsigned char strength; member
46 .strength = (s & OV772X_EDGE_STRENGTH_MASK) | \
/linux-4.19.296/drivers/media/tuners/
Dfc0012.c348 static int fc0012_get_rf_strength(struct dvb_frontend *fe, u16 *strength) in fc0012_get_rf_strength() argument
393 *strength = 255; /* 100% */ in fc0012_get_rf_strength()
395 *strength = 0; in fc0012_get_rf_strength()
397 *strength = (power + 95) * 255 / 140; in fc0012_get_rf_strength()
399 *strength |= *strength << 8; in fc0012_get_rf_strength()
Dfc0013.c508 static int fc0013_get_rf_strength(struct dvb_frontend *fe, u16 *strength) in fc0013_get_rf_strength() argument
553 *strength = 255; /* 100% */ in fc0013_get_rf_strength()
555 *strength = 0; in fc0013_get_rf_strength()
557 *strength = (power + 95) * 255 / 140; in fc0013_get_rf_strength()
559 *strength |= *strength << 8; in fc0013_get_rf_strength()
Dtea5761.c250 static int tea5761_get_rf_strength(struct dvb_frontend *fe, u16 *strength) in tea5761_get_rf_strength() argument
254 *strength = 0; in tea5761_get_rf_strength()
257 *strength = tea5761_signal(fe, buffer); in tea5761_get_rf_strength()
Dsi2157.c234 c->strength.len = 1; in si2157_init()
235 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in si2157_init()
418 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in si2157_stat_work()
419 c->strength.stat[0].svalue = (s8) cmd.args[3] * 1000; in si2157_stat_work()
424 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in si2157_stat_work()
Dtea5767.c336 static int tea5767_get_rf_strength(struct dvb_frontend *fe, u16 *strength) in tea5767_get_rf_strength() argument
340 *strength = 0; in tea5767_get_rf_strength()
343 *strength = tea5767_signal(fe, buffer); in tea5767_get_rf_strength()
/linux-4.19.296/drivers/media/dvb-frontends/cxd2880/
Dcxd2880_top.c561 u16 *strength) in cxd2880_read_signal_strength() argument
568 if (!fe || !strength) { in cxd2880_read_signal_strength()
595 *strength = ((level + 840) * 0xffff) / (-240 + 840); in cxd2880_read_signal_strength()
1417 int strength = 0; in cxd2880_get_frontend_t() local
1582 ret = cxd2880_tnrdmd_mon_rf_lvl(&priv->tnrdmd, &strength); in cxd2880_get_frontend_t()
1585 c->strength.len = 1; in cxd2880_get_frontend_t()
1586 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in cxd2880_get_frontend_t()
1587 c->strength.stat[0].svalue = strength; in cxd2880_get_frontend_t()
1589 c->strength.len = 1; in cxd2880_get_frontend_t()
1590 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2880_get_frontend_t()
[all …]
/linux-4.19.296/drivers/media/common/siano/
Dsmsdvb-main.c145 c->strength.len = 1; in smsdvb_stats_not_ready()
147 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in smsdvb_stats_not_ready()
251 c->strength.stat[0].uvalue = p->in_band_power * 1000; in smsdvb_update_per_slices()
309 c->strength.stat[0].uvalue = p->in_band_pwr * 1000; in smsdvb_update_dvb_stats()
351 c->strength.stat[0].uvalue = ((s32)p->transmission_mode) * 1000; in smsdvb_update_isdbt_stats()
376 c->strength.stat[0].uvalue = p->in_band_pwr * 1000; in smsdvb_update_isdbt_stats()
460 c->strength.stat[0].uvalue = p->in_band_pwr * 1000; in smsdvb_update_isdbt_stats_ex()
788 static int smsdvb_read_signal_strength(struct dvb_frontend *fe, u16 *strength) in smsdvb_read_signal_strength() argument
792 s32 power = (s32) c->strength.stat[0].uvalue; in smsdvb_read_signal_strength()
800 *strength = 0; in smsdvb_read_signal_strength()
[all …]
/linux-4.19.296/drivers/media/usb/dvb-usb-v2/
Dlmedm04.c275 c->strength.len = 1; in lme2510_update_stats()
276 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lme2510_update_stats()
297 c->strength.len = 1; in lme2510_update_stats()
298 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in lme2510_update_stats()
299 c->strength.stat[0].uvalue = (u64)s_tmp; in lme2510_update_stats()
941 static int dm04_read_signal_strength(struct dvb_frontend *fe, u16 *strength) in dm04_read_signal_strength() argument
947 return st->fe_read_signal_strength(fe, strength); in dm04_read_signal_strength()
949 if (c->strength.stat[0].scale == FE_SCALE_RELATIVE) in dm04_read_signal_strength()
950 *strength = (u16)c->strength.stat[0].uvalue; in dm04_read_signal_strength()
952 *strength = 0; in dm04_read_signal_strength()
Dmxl111sf-tuner.c364 static int mxl111sf_get_rf_strength(struct dvb_frontend *fe, u16 *strength) in mxl111sf_get_rf_strength() argument
370 *strength = 0; in mxl111sf_get_rf_strength()
382 *strength = val1 | ((val2 & 0x07) << 8); in mxl111sf_get_rf_strength()
/linux-4.19.296/include/media/
Ddvb_frontend.h248 int (*get_rf_strength)(struct dvb_frontend *fe, u16 *strength);
467 int (*read_signal_strength)(struct dvb_frontend* fe, u16* strength);
649 struct dtv_fe_stats strength; member

1234