Home
last modified time | relevance | path

Searched refs:bitflip_threshold (Results 1 – 12 of 12) sorted by relevance

/openbmc/u-boot/drivers/mtd/
H A Dmtdcore.c344 return snprintf(buf, PAGE_SIZE, "%u\n", mtd->bitflip_threshold); in mtd_bitflip_threshold_show()
352 unsigned int bitflip_threshold; in mtd_bitflip_threshold_store() local
355 retval = kstrtouint(buf, 0, &bitflip_threshold); in mtd_bitflip_threshold_store()
359 mtd->bitflip_threshold = bitflip_threshold; in mtd_bitflip_threshold_store()
362 static DEVICE_ATTR(bitflip_threshold, S_IRUGO | S_IWUSR,
446 if (mtd->bitflip_threshold == 0) in add_mtd_device()
447 mtd->bitflip_threshold = mtd->ecc_strength; in add_mtd_device()
981 return ret_code >= mtd->bitflip_threshold ? -EUCLEAN : 0; in mtd_read()
1098 return ret_code >= mtd->bitflip_threshold ? -EUCLEAN : 0; in mtd_read_oob()
H A Dmtdpart.c760 slave->bitflip_threshold = master->bitflip_threshold; in allocate_partition()
/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-class-mtd136 What: /sys/class/mtd/mtdX/bitflip_threshold
161 bitflip_threshold. Users are discouraged from doing this,
164 bitflip_threshold should be low enough to detect genuine erase
167 bitflips occur. Note that if bitflip_threshold exceeds
169 Conversely, if bitflip_threshold is zero, -EUCLEAN is always
/openbmc/linux/drivers/mtd/
H A Dmtdcore.c271 return sysfs_emit(buf, "%u\n", mtd->bitflip_threshold); in mtd_bitflip_threshold_show()
279 unsigned int bitflip_threshold; in mtd_bitflip_threshold_store() local
282 retval = kstrtouint(buf, 0, &bitflip_threshold); in mtd_bitflip_threshold_store()
286 mtd->bitflip_threshold = bitflip_threshold; in mtd_bitflip_threshold_store()
289 MTD_DEVICE_ATTR_RW(bitflip_threshold);
702 if (mtd->bitflip_threshold == 0) in add_mtd_device()
703 mtd->bitflip_threshold = mtd->ecc_strength; in add_mtd_device()
1729 return ret_code >= mtd->bitflip_threshold ? -EUCLEAN : 0; in mtd_read_oob()
H A Dmtdpart.c204 child->bitflip_threshold = parent->bitflip_threshold; in allocate_partition()
/openbmc/linux/drivers/mtd/nand/raw/
H A Dnand_toshiba.c88 max_bitflips = mtd->bitflip_threshold; in toshiba_nand_benand_eccstatus()
H A Dnand_base.c6533 if (!mtd->bitflip_threshold) in nand_scan_tail()
6534 mtd->bitflip_threshold = DIV_ROUND_UP(mtd->ecc_strength * 3, 4); in nand_scan_tail()
/openbmc/u-boot/cmd/
H A Dmtd.c170 mtd->bitflip_threshold); in mtd_show_device()
/openbmc/u-boot/include/linux/mtd/
H A Dmtd.h201 unsigned int bitflip_threshold; member
/openbmc/linux/include/linux/mtd/
H A Dmtd.h288 unsigned int bitflip_threshold; member
/openbmc/linux/drivers/mtd/nand/raw/brcmnand/
H A Dbrcmnand.c2336 return max(mtd->bitflip_threshold, corrected); in brcmnand_read()
2809 mtd->bitflip_threshold = 1; in brcmnand_attach_chip()
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dnand_base.c4593 if (!mtd->bitflip_threshold) in nand_scan_tail()
4594 mtd->bitflip_threshold = DIV_ROUND_UP(mtd->ecc_strength * 3, 4); in nand_scan_tail()