Searched refs:bitflip_threshold (Results 1 – 5 of 5) sorted by relevance
/linux-4.1.27/drivers/mtd/ |
D | mtdcore.c | 244 return snprintf(buf, PAGE_SIZE, "%u\n", mtd->bitflip_threshold); in mtd_bitflip_threshold_show() 252 unsigned int bitflip_threshold; in mtd_bitflip_threshold_store() local 255 retval = kstrtouint(buf, 0, &bitflip_threshold); in mtd_bitflip_threshold_store() 259 mtd->bitflip_threshold = bitflip_threshold; in mtd_bitflip_threshold_store() 262 static DEVICE_ATTR(bitflip_threshold, S_IRUGO | S_IWUSR, 400 if (mtd->bitflip_threshold == 0) in add_mtd_device() 401 mtd->bitflip_threshold = mtd->ecc_strength; in add_mtd_device() 888 return ret_code >= mtd->bitflip_threshold ? -EUCLEAN : 0; in mtd_read() 946 return ret_code >= mtd->bitflip_threshold ? -EUCLEAN : 0; in mtd_read_oob()
|
D | mtdpart.c | 539 slave->mtd.bitflip_threshold = master->bitflip_threshold; in allocate_partition()
|
/linux-4.1.27/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-4.1.27/include/linux/mtd/ |
D | mtd.h | 164 unsigned int bitflip_threshold; member
|
/linux-4.1.27/drivers/mtd/nand/ |
D | nand_base.c | 4193 if (!mtd->bitflip_threshold) in nand_scan_tail() 4194 mtd->bitflip_threshold = DIV_ROUND_UP(mtd->ecc_strength * 3, 4); in nand_scan_tail()
|