Searched refs:bitflip_threshold (Results 1 – 6 of 6) sorted by relevance
/Linux-v4.19/drivers/mtd/ |
D | mtdcore.c | 258 return snprintf(buf, PAGE_SIZE, "%u\n", mtd->bitflip_threshold); in mtd_bitflip_threshold_show() 266 unsigned int bitflip_threshold; in mtd_bitflip_threshold_store() local 269 retval = kstrtouint(buf, 0, &bitflip_threshold); in mtd_bitflip_threshold_store() 273 mtd->bitflip_threshold = bitflip_threshold; in mtd_bitflip_threshold_store() 276 static DEVICE_ATTR(bitflip_threshold, S_IRUGO | S_IWUSR, 533 if (mtd->bitflip_threshold == 0) in add_mtd_device() 534 mtd->bitflip_threshold = mtd->ecc_strength; in add_mtd_device() 1065 return ret_code >= mtd->bitflip_threshold ? -EUCLEAN : 0; in mtd_read() 1185 return ret_code >= mtd->bitflip_threshold ? -EUCLEAN : 0; in mtd_read_oob()
|
D | mtdpart.c | 538 slave->mtd.bitflip_threshold = parent->bitflip_threshold; in allocate_partition()
|
/Linux-v4.19/Documentation/ABI/testing/ |
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
|
/Linux-v4.19/include/linux/mtd/ |
D | mtd.h | 257 unsigned int bitflip_threshold; member
|
/Linux-v4.19/drivers/mtd/nand/raw/brcmnand/ |
D | brcmnand.c | 1783 return max(mtd->bitflip_threshold, corrected); in brcmnand_read() 2234 mtd->bitflip_threshold = 1; in brcmnand_attach_chip()
|
/Linux-v4.19/drivers/mtd/nand/raw/ |
D | nand_base.c | 6719 if (!mtd->bitflip_threshold) in nand_scan_tail() 6720 mtd->bitflip_threshold = DIV_ROUND_UP(mtd->ecc_strength * 3, 4); in nand_scan_tail()
|