Home
last modified time | relevance | path

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

123456

/drivers/pinctrl/bcm/
Dpinctrl-cygnus-gpio.c422 unsigned strength) in cygnus_gpio_set_strength() argument
430 if (strength < 2 || strength > 16 || (strength % 2)) in cygnus_gpio_set_strength()
445 strength); in cygnus_gpio_set_strength()
448 strength = (strength / 2) - 1; in cygnus_gpio_set_strength()
452 val |= ((strength >> i) & 0x1) << shift; in cygnus_gpio_set_strength()
462 u16 *strength) in cygnus_gpio_get_strength() argument
481 *strength = 0; in cygnus_gpio_get_strength()
485 *strength += (val << i); in cygnus_gpio_get_strength()
490 *strength = (*strength + 1) * 2; in cygnus_gpio_get_strength()
/drivers/media/dvb-frontends/
Dts2020.c156 c->strength.len = 1; in ts2020_init()
157 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in ts2020_init()
158 c->strength.stat[0].uvalue = 0; in ts2020_init()
447 ret = ts2020_get_tuner_gain(priv->fe, &c->strength.stat[0].svalue); in ts2020_stat_work()
451 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in ts2020_stat_work()
468 unsigned strength; in ts2020_read_signal_strength() local
474 if (c->strength.stat[0].scale == FE_SCALE_NOT_AVAILABLE) { in ts2020_read_signal_strength()
479 gain = c->strength.stat[0].svalue; in ts2020_read_signal_strength()
484 strength = 0; in ts2020_read_signal_strength()
487 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()
458 static int rtl2830_read_signal_strength(struct dvb_frontend *fe, u16 *strength) in rtl2830_read_signal_strength() argument
462 if (c->strength.stat[0].scale == FE_SCALE_RELATIVE) in rtl2830_read_signal_strength()
463 *strength = c->strength.stat[0].uvalue; in rtl2830_read_signal_strength()
465 *strength = 0; in rtl2830_read_signal_strength()
533 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in rtl2830_stat_work()
534 c->strength.stat[0].uvalue = u16tmp; in rtl2830_stat_work()
536 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_stat_work()
Dcxd2820r_priv.h87 int cxd2820r_read_signal_strength_c(struct dvb_frontend *fe, u16 *strength);
110 int cxd2820r_read_signal_strength_t(struct dvb_frontend *fe, u16 *strength);
133 int cxd2820r_read_signal_strength_t2(struct dvb_frontend *fe, u16 *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()
Daf9033.c459 c->strength.len = 1; in af9033_init()
460 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_init()
918 static int af9033_read_signal_strength(struct dvb_frontend *fe, u16 *strength) in af9033_read_signal_strength() argument
932 *strength = u8tmp * 0xffff / 100; in af9033_read_signal_strength()
962 *strength = tmp * 0xffff / 100; in af9033_read_signal_strength()
1083 c->strength.len = 1; in af9033_stat_work()
1084 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in af9033_stat_work()
1085 c->strength.stat[0].svalue = tmp; in af9033_stat_work()
1087 c->strength.len = 1; in af9033_stat_work()
1088 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_stat_work()
Dec100.c245 static int ec100_read_signal_strength(struct dvb_frontend *fe, u16 *strength) in ec100_read_signal_strength() argument
253 *strength = 0; in ec100_read_signal_strength()
257 *strength = ((tmp << 8) | tmp); in ec100_read_signal_strength()
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.c54 static int dvb_dummy_fe_read_signal_strength(struct dvb_frontend* fe, u16* strength) in dvb_dummy_fe_read_signal_strength() argument
56 *strength = 0; in dvb_dummy_fe_read_signal_strength()
/drivers/mtd/nand/
Dhisi504_nand.c558 switch (chip->ecc.strength) { in hisi_nand_read_page_hwecc()
643 int size, strength, ecc_bits; in hisi_nfc_ecc_probe() local
650 strength = of_get_nand_ecc_strength(np); in hisi_nfc_ecc_probe()
656 if ((size == 1024) && ((strength != 8) && (strength != 16) && in hisi_nfc_ecc_probe()
657 (strength != 24) && (strength != 40))) { in hisi_nfc_ecc_probe()
663 chip->ecc.strength = strength; in hisi_nfc_ecc_probe()
669 switch (chip->ecc.strength) { in hisi_nfc_ecc_probe()
680 dev_err(dev, "not support strength: %d\n", chip->ecc.strength); in hisi_nfc_ecc_probe()
Dpxa3xx_nand.c1514 int strength, int ecc_stepsize, int page_size) in pxa_ecc_init() argument
1516 if (strength == 1 && ecc_stepsize == 512 && page_size == 2048) { in pxa_ecc_init()
1522 ecc->strength = 1; in pxa_ecc_init()
1524 } else if (strength == 1 && ecc_stepsize == 512 && page_size == 512) { in pxa_ecc_init()
1530 ecc->strength = 1; in pxa_ecc_init()
1536 } else if (strength == 4 && ecc_stepsize == 512 && page_size == 2048) { in pxa_ecc_init()
1544 ecc->strength = 16; in pxa_ecc_init()
1546 } else if (strength == 4 && ecc_stepsize == 512 && page_size == 4096) { in pxa_ecc_init()
1554 ecc->strength = 16; in pxa_ecc_init()
1560 } else if (strength == 8 && ecc_stepsize == 512 && page_size == 4096) { in pxa_ecc_init()
[all …]
/drivers/media/tuners/
Dfc0012.c353 static int fc0012_get_rf_strength(struct dvb_frontend *fe, u16 *strength) in fc0012_get_rf_strength() argument
398 *strength = 255; /* 100% */ in fc0012_get_rf_strength()
400 *strength = 0; in fc0012_get_rf_strength()
402 *strength = (power + 95) * 255 / 140; in fc0012_get_rf_strength()
404 *strength |= *strength << 8; in fc0012_get_rf_strength()
Dfc0013.c513 static int fc0013_get_rf_strength(struct dvb_frontend *fe, u16 *strength) in fc0013_get_rf_strength() argument
558 *strength = 255; /* 100% */ in fc0013_get_rf_strength()
560 *strength = 0; in fc0013_get_rf_strength()
562 *strength = (power + 95) * 255 / 140; in fc0013_get_rf_strength()
564 *strength |= *strength << 8; in fc0013_get_rf_strength()
Dsi2157.c211 c->strength.len = 1; in si2157_init()
212 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in si2157_init()
395 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in si2157_stat_work()
396 c->strength.stat[0].svalue = (s8) cmd.args[3] * 1000; in si2157_stat_work()
401 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in si2157_stat_work()
Dtea5761.c253 static int tea5761_get_rf_strength(struct dvb_frontend *fe, u16 *strength) in tea5761_get_rf_strength() argument
257 *strength = 0; in tea5761_get_rf_strength()
260 *strength = tea5761_signal(fe, buffer); in tea5761_get_rf_strength()
Dtea5767.c337 static int tea5767_get_rf_strength(struct dvb_frontend *fe, u16 *strength) in tea5767_get_rf_strength() argument
341 *strength = 0; in tea5767_get_rf_strength()
344 *strength = tea5767_signal(fe, buffer); in tea5767_get_rf_strength()
/drivers/pinctrl/uniphier/
Dpinctrl-uniphier-core.c179 u16 *strength) in uniphier_conf_pin_drive_get() argument
200 *strength = 4; in uniphier_conf_pin_drive_get()
203 *strength = 5; in uniphier_conf_pin_drive_get()
206 *strength = 8; in uniphier_conf_pin_drive_get()
227 *strength = supported_strength[(val >> shift) & mask]; in uniphier_conf_pin_drive_get()
363 u16 strength) in uniphier_conf_pin_drive_set() argument
390 if (supported_strength[val] > strength) in uniphier_conf_pin_drive_set()
397 strength, pin->number, pin->name); in uniphier_conf_pin_drive_set()
/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()
787 static int smsdvb_read_signal_strength(struct dvb_frontend *fe, u16 *strength) in smsdvb_read_signal_strength() argument
791 s32 power = (s32) c->strength.stat[0].uvalue; in smsdvb_read_signal_strength()
799 *strength = 0; in smsdvb_read_signal_strength()
[all …]
/drivers/media/usb/dvb-usb/
Dfriio-fe.c239 u16 *strength) in jdvbt90502_read_signal_strength() argument
244 *strength = 0; in jdvbt90502_read_signal_strength()
257 *strength = (rbuf[3] << 8) + rbuf[4]; in jdvbt90502_read_signal_strength()
259 *strength = 0xffff; in jdvbt90502_read_signal_strength()
Dgp8psk-fe.c97 static int gp8psk_fe_read_signal_strength(struct dvb_frontend* fe, u16 *strength) in gp8psk_fe_read_signal_strength() argument
105 *strength = 0xffff; in gp8psk_fe_read_signal_strength()
107 *strength = (st->snr << 4) + st->snr; /* snr*17 */ in gp8psk_fe_read_signal_strength()
Dvp7045-fe.c73 static int vp7045_fe_read_signal_strength(struct dvb_frontend* fe, u16 *strength) in vp7045_fe_read_signal_strength() argument
79 *strength = ~signal; in vp7045_fe_read_signal_strength()
Ddtt200u-fe.c66 static int dtt200u_fe_read_signal_strength(struct dvb_frontend* fe, u16 *strength) in dtt200u_fe_read_signal_strength() argument
71 *strength = (b << 8) | b; in dtt200u_fe_read_signal_strength()
/drivers/pinctrl/qcom/
Dpinctrl-spmi-gpio.c123 unsigned int strength; member
343 arg = pad->strength; in pmic_gpio_config_get()
417 pad->strength = arg; in pmic_gpio_config_set()
437 val |= pad->strength << PMIC_GPIO_REG_OUT_STRENGTH_SHIFT; in pmic_gpio_config_set()
501 seq_printf(s, " %-7s", strengths[pad->strength]); in pmic_gpio_config_dbg_show()
693 pad->strength = val >> PMIC_GPIO_REG_OUT_STRENGTH_SHIFT; in pmic_gpio_populate()
694 pad->strength &= PMIC_GPIO_REG_OUT_STRENGTH_MASK; in pmic_gpio_populate()
/drivers/media/usb/dvb-usb-v2/
Dlmedm04.c285 c->strength.len = 1; in lme2510_update_stats()
286 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lme2510_update_stats()
307 c->strength.len = 1; in lme2510_update_stats()
308 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in lme2510_update_stats()
309 c->strength.stat[0].uvalue = (u64)s_tmp; in lme2510_update_stats()
950 static int dm04_read_signal_strength(struct dvb_frontend *fe, u16 *strength) in dm04_read_signal_strength() argument
956 return st->fe_read_signal_strength(fe, strength); in dm04_read_signal_strength()
958 if (c->strength.stat[0].scale == FE_SCALE_RELATIVE) in dm04_read_signal_strength()
959 *strength = (u16)c->strength.stat[0].uvalue; in dm04_read_signal_strength()
961 *strength = 0; in dm04_read_signal_strength()
/drivers/media/dvb-core/
Ddvb_frontend.h272 int (*get_rf_strength)(struct dvb_frontend *fe, u16 *strength);
451 int (*read_signal_strength)(struct dvb_frontend* fe, u16* strength);
630 struct dtv_fe_stats strength; member

123456