Searched refs:bitflip_threshold (Results 1 – 12 of 12) sorted by relevance
/openbmc/u-boot/drivers/mtd/ |
H A D | mtdcore.c | 344 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 D | mtdpart.c | 760 slave->bitflip_threshold = master->bitflip_threshold; in allocate_partition()
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-mtd | 136 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 D | mtdcore.c | 271 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 D | mtdpart.c | 204 child->bitflip_threshold = parent->bitflip_threshold; in allocate_partition()
|
/openbmc/linux/drivers/mtd/nand/raw/ |
H A D | nand_toshiba.c | 88 max_bitflips = mtd->bitflip_threshold; in toshiba_nand_benand_eccstatus()
|
H A D | nand_base.c | 6547 if (!mtd->bitflip_threshold) in nand_scan_tail() 6548 mtd->bitflip_threshold = DIV_ROUND_UP(mtd->ecc_strength * 3, 4); in nand_scan_tail()
|
/openbmc/u-boot/cmd/ |
H A D | mtd.c | 170 mtd->bitflip_threshold); in mtd_show_device()
|
/openbmc/u-boot/include/linux/mtd/ |
H A D | mtd.h | 201 unsigned int bitflip_threshold; member
|
/openbmc/linux/include/linux/mtd/ |
H A D | mtd.h | 288 unsigned int bitflip_threshold; member
|
/openbmc/linux/drivers/mtd/nand/raw/brcmnand/ |
H A D | brcmnand.c | 2336 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 D | nand_base.c | 4593 if (!mtd->bitflip_threshold) in nand_scan_tail() 4594 mtd->bitflip_threshold = DIV_ROUND_UP(mtd->ecc_strength * 3, 4); in nand_scan_tail()
|