Home
last modified time | relevance | path

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

1234567

/drivers/mtd/nand/raw/atmel/
Dpmecc.c290 if (req->ecc.strength != ATMEL_PMECC_MAXIMIZE_ECC_STRENGTH) in atmel_pmecc_prepare_user_req()
310 int nbytes, strength = pmecc->caps->strengths[i]; in atmel_pmecc_prepare_user_req() local
312 if (req->ecc.strength != ATMEL_PMECC_MAXIMIZE_ECC_STRENGTH && in atmel_pmecc_prepare_user_req()
313 strength < req->ecc.strength) in atmel_pmecc_prepare_user_req()
316 nbytes = DIV_ROUND_UP(strength * fls(8 * req->ecc.sectorsize), in atmel_pmecc_prepare_user_req()
323 eccstrength = strength; in atmel_pmecc_prepare_user_req()
326 if (req->ecc.strength != ATMEL_PMECC_MAXIMIZE_ECC_STRENGTH) in atmel_pmecc_prepare_user_req()
334 req->ecc.strength = eccstrength; in atmel_pmecc_prepare_user_req()
348 int strength, size, ret; in atmel_pmecc_create_user() local
357 size += ((2 * req->ecc.strength) + 1) * sizeof(u16) * in atmel_pmecc_create_user()
[all …]
/drivers/mtd/nand/raw/
Dnand_samsung.c75 chip->base.eccreq.strength = 1 << extid; in samsung_nand_decode_id()
80 chip->base.eccreq.strength = 24; in samsung_nand_decode_id()
83 chip->base.eccreq.strength = 40; in samsung_nand_decode_id()
86 chip->base.eccreq.strength = 60; in samsung_nand_decode_id()
101 chip->base.eccreq.strength = 1; in samsung_nand_decode_id()
Dnand_hynix.c507 chip->base.eccreq.strength = 0; in hynix_nand_extract_ecc_requirements()
510 chip->base.eccreq.strength = 4; in hynix_nand_extract_ecc_requirements()
513 chip->base.eccreq.strength = 24; in hynix_nand_extract_ecc_requirements()
516 chip->base.eccreq.strength = 32; in hynix_nand_extract_ecc_requirements()
519 chip->base.eccreq.strength = 40; in hynix_nand_extract_ecc_requirements()
522 chip->base.eccreq.strength = 50; in hynix_nand_extract_ecc_requirements()
525 chip->base.eccreq.strength = 60; in hynix_nand_extract_ecc_requirements()
547 chip->base.eccreq.strength = 1 << ecc_level; in hynix_nand_extract_ecc_requirements()
553 chip->base.eccreq.strength = 24; in hynix_nand_extract_ecc_requirements()
567 chip->base.eccreq.strength = 0; in hynix_nand_extract_ecc_requirements()
[all …]
Dnand_micron.c245 if (WARN_ON(nbitflips > chip->ecc.strength)) in micron_nand_on_die_ecc_status_4()
312 if (chip->ecc.strength == 4) in micron_nand_read_page_on_die_ecc()
385 if (chip->base.eccreq.strength != 4 && chip->base.eccreq.strength != 8) in micron_supports_on_die_ecc()
426 if (chip->base.eccreq.strength != 4 && chip->base.eccreq.strength != 8) in micron_supports_on_die_ecc()
483 if (chip->base.eccreq.strength == 4) { in micron_nand_init()
493 if (chip->base.eccreq.strength == 4) in micron_nand_init()
500 chip->ecc.bytes = chip->base.eccreq.strength * 2; in micron_nand_init()
502 chip->ecc.strength = chip->base.eccreq.strength; in micron_nand_init()
Dtegra_nand.c204 int bytes_per_step = DIV_ROUND_UP(BITS_PER_STEP_RS * chip->ecc.strength, in tegra_nand_ooblayout_rs_ecc()
231 int bytes_per_step = DIV_ROUND_UP(BITS_PER_STEP_BCH * chip->ecc.strength, in tegra_nand_ooblayout_bch_ecc()
729 chip->ecc.strength); in tegra_nand_read_page_hwecc()
837 static int tegra_nand_get_strength(struct nand_chip *chip, const int *strength, in tegra_nand_get_strength() argument
852 strength_sel = strength[strength_len - i - 1]; in tegra_nand_get_strength()
854 strength_sel = strength[i]; in tegra_nand_get_strength()
856 if (strength_sel < chip->base.eccreq.strength) in tegra_nand_get_strength()
874 const int *strength; in tegra_nand_select_strength() local
881 strength = rs_strength_bootable; in tegra_nand_select_strength()
884 strength = rs_strength; in tegra_nand_select_strength()
[all …]
Dnand_esmt.c20 chip->base.eccreq.strength = 4; in esmt_nand_decode_id()
23 chip->base.eccreq.strength = 2; in esmt_nand_decode_id()
26 chip->base.eccreq.strength = 1; in esmt_nand_decode_id()
Dnand_toshiba.c80 chip->ecc.strength = 8; in toshiba_nand_benand_init()
127 chip->base.eccreq.strength = 1; in toshiba_nand_decode_id()
130 chip->base.eccreq.strength = 4; in toshiba_nand_decode_id()
133 chip->base.eccreq.strength = 8; in toshiba_nand_decode_id()
Dhisi504_nand.c534 switch (chip->ecc.strength) { in hisi_nand_read_page_hwecc()
639 int size, strength, ecc_bits; in hisi_nfc_ecc_probe() local
645 strength = chip->ecc.strength; in hisi_nfc_ecc_probe()
651 if ((size == 1024) && ((strength != 8) && (strength != 16) && in hisi_nfc_ecc_probe()
652 (strength != 24) && (strength != 40))) { in hisi_nfc_ecc_probe()
658 chip->ecc.strength = strength; in hisi_nfc_ecc_probe()
664 switch (chip->ecc.strength) { in hisi_nfc_ecc_probe()
675 dev_err(dev, "not support strength: %d\n", chip->ecc.strength); in hisi_nfc_ecc_probe()
/drivers/media/dvb-frontends/
Dcxd2820r_c.c177 unsigned int strength; in cxd2820r_read_status_c() local
186 strength = utmp << 6 | utmp >> 4; in cxd2820r_read_status_c()
188 c->strength.len = 1; in cxd2820r_read_status_c()
189 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in cxd2820r_read_status_c()
190 c->strength.stat[0].uvalue = strength; in cxd2820r_read_status_c()
192 c->strength.len = 1; in cxd2820r_read_status_c()
193 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2820r_read_status_c()
Dts2020.c143 c->strength.len = 1; in ts2020_init()
144 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in ts2020_init()
145 c->strength.stat[0].uvalue = 0; in ts2020_init()
437 ret = ts2020_get_tuner_gain(priv->fe, &c->strength.stat[0].svalue); in ts2020_stat_work()
441 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in ts2020_stat_work()
458 unsigned strength; in ts2020_read_signal_strength() local
464 if (c->strength.stat[0].scale == FE_SCALE_NOT_AVAILABLE) { in ts2020_read_signal_strength()
469 gain = c->strength.stat[0].svalue; in ts2020_read_signal_strength()
474 strength = 0; in ts2020_read_signal_strength()
477 strength = 0 + div64_s64((85000 + gain) * 3, 1000); in ts2020_read_signal_strength()
[all …]
Dcxd2820r_t.c282 unsigned int strength; in cxd2820r_read_status_t() local
291 strength = utmp << 4 | utmp >> 8; in cxd2820r_read_status_t()
293 c->strength.len = 1; in cxd2820r_read_status_t()
294 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in cxd2820r_read_status_t()
295 c->strength.stat[0].uvalue = strength; in cxd2820r_read_status_t()
297 c->strength.len = 1; in cxd2820r_read_status_t()
298 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2820r_read_status_t()
Dcxd2820r_t2.c307 unsigned int strength; in cxd2820r_read_status_t2() local
316 strength = utmp << 4 | utmp >> 8; in cxd2820r_read_status_t2()
318 c->strength.len = 1; in cxd2820r_read_status_t2()
319 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in cxd2820r_read_status_t2()
320 c->strength.stat[0].uvalue = strength; in cxd2820r_read_status_t2()
322 c->strength.len = 1; in cxd2820r_read_status_t2()
323 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2820r_read_status_t2()
Drtl2830.c120 c->strength.len = 1; in rtl2830_init()
121 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_init()
423 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in rtl2830_read_status()
424 c->strength.stat[0].uvalue = utmp; in rtl2830_read_status()
426 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_read_status()
529 static int rtl2830_read_signal_strength(struct dvb_frontend *fe, u16 *strength) in rtl2830_read_signal_strength() argument
533 if (c->strength.stat[0].scale == FE_SCALE_RELATIVE) in rtl2830_read_signal_strength()
534 *strength = c->strength.stat[0].uvalue; in rtl2830_read_signal_strength()
536 *strength = 0; in rtl2830_read_signal_strength()
Daf9033.c284 c->strength.len = 1; in af9033_init()
285 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_init()
670 c->strength.len = 1; in af9033_read_status()
671 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in af9033_read_status()
672 c->strength.stat[0].svalue = tmp; in af9033_read_status()
674 c->strength.len = 1; in af9033_read_status()
675 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_read_status()
868 static int af9033_read_signal_strength(struct dvb_frontend *fe, u16 *strength) in af9033_read_signal_strength() argument
886 *strength = utmp * 0xffff / 100; in af9033_read_signal_strength()
916 *strength = tmp * 0xffff / 100; in af9033_read_signal_strength()
/drivers/pinctrl/bcm/
Dpinctrl-nsp-gpio.c391 u32 strength) in nsp_gpio_set_strength() argument
398 if (strength < 2 || strength > 16 || (strength % 2)) in nsp_gpio_set_strength()
404 strength); in nsp_gpio_set_strength()
406 strength = (strength / 2) - 1; in nsp_gpio_set_strength()
410 val |= ((strength >> (i-1)) & 0x1) << shift; in nsp_gpio_set_strength()
420 u16 *strength) in nsp_gpio_get_strength() argument
431 *strength = 0; in nsp_gpio_get_strength()
435 *strength += (val << i); in nsp_gpio_get_strength()
440 *strength = (*strength + 1) * 2; in nsp_gpio_get_strength()
Dpinctrl-iproc-gpio.c545 unsigned strength) in iproc_gpio_set_strength() argument
553 if (strength < 2 || strength > 16 || (strength % 2)) in iproc_gpio_set_strength()
565 strength); in iproc_gpio_set_strength()
568 strength = (strength / 2) - 1; in iproc_gpio_set_strength()
573 val |= ((strength >> i) & 0x1) << shift; in iproc_gpio_set_strength()
582 u16 *strength) in iproc_gpio_get_strength() argument
598 *strength = 0; in iproc_gpio_get_strength()
603 *strength += (val << i); in iproc_gpio_get_strength()
607 *strength = (*strength + 1) * 2; in iproc_gpio_get_strength()
Dpinctrl-ns2-mux.c796 u32 strength) in ns2_pin_set_strength() argument
805 if (strength < 2 || strength > 16 || (strength % 2)) in ns2_pin_set_strength()
812 val |= ((strength / 2) - 1) << pin_data->pin_conf.drive_shift; in ns2_pin_set_strength()
817 pin, strength); in ns2_pin_set_strength()
822 u16 *strength) in ns2_pin_get_strength() argument
831 *strength = (val >> pin_data->pin_conf.drive_shift) & in ns2_pin_get_strength()
833 *strength = (*strength + 1) * 2; in ns2_pin_get_strength()
837 pin, *strength); in ns2_pin_get_strength()
/drivers/input/misc/
Dsc27xx-vibra.c22 u32 strength; member
52 if (info->strength && !info->enabled) in sc27xx_vibra_play_work()
54 else if (info->strength == 0 && info->enabled) in sc27xx_vibra_play_work()
63 info->strength = effect->u.rumble.weak_magnitude; in sc27xx_vibra_play()
/drivers/mtd/nand/spi/
Dmacronix.c87 return nand->eccreq.strength; in mx35lf1ge4ab_ecc_get_status()
89 if (WARN_ON(eccsr > nand->eccreq.strength || !eccsr)) in mx35lf1ge4ab_ecc_get_status()
90 return nand->eccreq.strength; in mx35lf1ge4ab_ecc_get_status()
Dtoshiba.c80 return nand->eccreq.strength; in tc58cxgxsx_ecc_get_status()
84 if (WARN_ON(mbf > nand->eccreq.strength || !mbf)) in tc58cxgxsx_ecc_get_status()
85 return nand->eccreq.strength; in tc58cxgxsx_ecc_get_status()
/drivers/media/tuners/
Dfc0012.c339 static int fc0012_get_rf_strength(struct dvb_frontend *fe, u16 *strength) in fc0012_get_rf_strength() argument
384 *strength = 255; /* 100% */ in fc0012_get_rf_strength()
386 *strength = 0; in fc0012_get_rf_strength()
388 *strength = (power + 95) * 255 / 140; in fc0012_get_rf_strength()
390 *strength |= *strength << 8; in fc0012_get_rf_strength()
Dfc0013.c498 static int fc0013_get_rf_strength(struct dvb_frontend *fe, u16 *strength) in fc0013_get_rf_strength() argument
543 *strength = 255; /* 100% */ in fc0013_get_rf_strength()
545 *strength = 0; in fc0013_get_rf_strength()
547 *strength = (power + 95) * 255 / 140; in fc0013_get_rf_strength()
549 *strength |= *strength << 8; in fc0013_get_rf_strength()
/drivers/mtd/nand/raw/ingenic/
Dingenic_nand_drv.c213 params.strength = nand->chip.ecc.strength; in ingenic_nand_ecc_calculate()
227 params.strength = nand->chip.ecc.strength; in ingenic_nand_ecc_correct()
238 if (chip->ecc.strength == 4) { in ingenic_nand_attach_chip()
243 (chip->ecc.strength / 8); in ingenic_nand_attach_chip()
260 chip->ecc.strength, chip->ecc.size, chip->ecc.bytes); in ingenic_nand_attach_chip()
/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 …]
/drivers/media/common/siano/
Dsmsdvb-main.c134 c->strength.len = 1; in smsdvb_stats_not_ready()
136 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in smsdvb_stats_not_ready()
240 c->strength.stat[0].uvalue = p->in_band_power * 1000; in smsdvb_update_per_slices()
298 c->strength.stat[0].uvalue = p->in_band_pwr * 1000; in smsdvb_update_dvb_stats()
340 c->strength.stat[0].uvalue = ((s32)p->transmission_mode) * 1000; in smsdvb_update_isdbt_stats()
365 c->strength.stat[0].uvalue = p->in_band_pwr * 1000; in smsdvb_update_isdbt_stats()
449 c->strength.stat[0].uvalue = p->in_band_pwr * 1000; in smsdvb_update_isdbt_stats_ex()
777 static int smsdvb_read_signal_strength(struct dvb_frontend *fe, u16 *strength) in smsdvb_read_signal_strength() argument
781 s32 power = (s32) c->strength.stat[0].uvalue; in smsdvb_read_signal_strength()
789 *strength = 0; in smsdvb_read_signal_strength()
[all …]

1234567