Searched refs:bitflip_threshold (Results 1 – 14 of 14) sorted by relevance
| /OK3568_Linux_fs/u-boot/drivers/mtd/ |
| H A D | mtdcore.c | 345 return snprintf(buf, PAGE_SIZE, "%u\n", mtd->bitflip_threshold); in mtd_bitflip_threshold_show() 353 unsigned int bitflip_threshold; in mtd_bitflip_threshold_store() local 356 retval = kstrtouint(buf, 0, &bitflip_threshold); in mtd_bitflip_threshold_store() 360 mtd->bitflip_threshold = bitflip_threshold; in mtd_bitflip_threshold_store() 363 static DEVICE_ATTR(bitflip_threshold, S_IRUGO | S_IWUSR, 447 if (mtd->bitflip_threshold == 0) in add_mtd_device() 448 mtd->bitflip_threshold = mtd->ecc_strength; in add_mtd_device() 982 return ret_code >= mtd->bitflip_threshold ? -EUCLEAN : 0; in mtd_read() 1099 return ret_code >= mtd->bitflip_threshold ? -EUCLEAN : 0; in mtd_read_oob()
|
| H A D | mtdpart.c | 761 slave->bitflip_threshold = master->bitflip_threshold; in allocate_partition()
|
| /OK3568_Linux_fs/kernel/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
|
| /OK3568_Linux_fs/kernel/drivers/mtd/ |
| H A D | mtdcore.c | 237 return snprintf(buf, PAGE_SIZE, "%u\n", mtd->bitflip_threshold); in mtd_bitflip_threshold_show() 245 unsigned int bitflip_threshold; in mtd_bitflip_threshold_store() local 248 retval = kstrtouint(buf, 0, &bitflip_threshold); in mtd_bitflip_threshold_store() 252 mtd->bitflip_threshold = bitflip_threshold; in mtd_bitflip_threshold_store() 255 static DEVICE_ATTR(bitflip_threshold, S_IRUGO | S_IWUSR, 625 if (mtd->bitflip_threshold == 0) in add_mtd_device() 626 mtd->bitflip_threshold = mtd->ecc_strength; in add_mtd_device() 1434 return ret_code >= mtd->bitflip_threshold ? -EUCLEAN : 0; in mtd_read_oob()
|
| H A D | mtdpart.c | 197 child->bitflip_threshold = parent->bitflip_threshold; in allocate_partition()
|
| /OK3568_Linux_fs/kernel/drivers/rkflash/ |
| H A D | sfc_nand_mtd.c | 368 nand->mtd.bitflip_threshold = 2; in sfc_nand_mtd_init() 375 nand->mtd.bitflip_threshold = 1; in sfc_nand_mtd_init()
|
| /OK3568_Linux_fs/kernel/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 | 5848 if (!mtd->bitflip_threshold) in nand_scan_tail() 5849 mtd->bitflip_threshold = DIV_ROUND_UP(mtd->ecc_strength * 3, 4); in nand_scan_tail()
|
| /OK3568_Linux_fs/u-boot/cmd/ |
| H A D | mtd.c | 156 mtd->bitflip_threshold); in mtd_show_device()
|
| /OK3568_Linux_fs/u-boot/include/linux/mtd/ |
| H A D | mtd.h | 206 unsigned int bitflip_threshold; member
|
| /OK3568_Linux_fs/kernel/include/linux/mtd/ |
| H A D | mtd.h | 285 unsigned int bitflip_threshold; member
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/brcmnand/ |
| H A D | brcmnand.c | 1796 return max(mtd->bitflip_threshold, corrected); in brcmnand_read() 2332 mtd->bitflip_threshold = 1; in brcmnand_init_cs()
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/brcmnand/ |
| H A D | brcmnand.c | 2221 return max(mtd->bitflip_threshold, corrected); in brcmnand_read() 2687 mtd->bitflip_threshold = 1; in brcmnand_attach_chip()
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/ |
| H A D | nand_base.c | 5286 if (!mtd->bitflip_threshold) in nand_scan_tail() 5287 mtd->bitflip_threshold = DIV_ROUND_UP(mtd->ecc_strength * 3, 4); in nand_scan_tail()
|