Home
last modified time | relevance | path

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

/Linux-v6.6/Documentation/ABI/testing/
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
/Linux-v6.6/drivers/mtd/
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);
701 if (mtd->bitflip_threshold == 0) in add_mtd_device()
702 mtd->bitflip_threshold = mtd->ecc_strength; in add_mtd_device()
1725 return ret_code >= mtd->bitflip_threshold ? -EUCLEAN : 0; in mtd_read_oob()
Dmtdpart.c204 child->bitflip_threshold = parent->bitflip_threshold; in allocate_partition()
/Linux-v6.6/drivers/mtd/nand/raw/
Dnand_toshiba.c88 max_bitflips = mtd->bitflip_threshold; in toshiba_nand_benand_eccstatus()
Dnand_base.c6456 if (!mtd->bitflip_threshold) in nand_scan_tail()
6457 mtd->bitflip_threshold = DIV_ROUND_UP(mtd->ecc_strength * 3, 4); in nand_scan_tail()
/Linux-v6.6/include/linux/mtd/
Dmtd.h288 unsigned int bitflip_threshold; member
/Linux-v6.6/drivers/mtd/nand/raw/brcmnand/
Dbrcmnand.c2336 return max(mtd->bitflip_threshold, corrected); in brcmnand_read()
2809 mtd->bitflip_threshold = 1; in brcmnand_attach_chip()