Searched refs:bitflip_threshold (Results 1 - 12 of 12) sorted by relevance
/kernel/linux/linux-5.10/drivers/mtd/ |
H A D | mtdcore.c | 272 return snprintf(buf, PAGE_SIZE, "%u\n", mtd->bitflip_threshold); in mtd_bitflip_threshold_show() 280 unsigned int bitflip_threshold; in mtd_bitflip_threshold_store() local 283 retval = kstrtouint(buf, 0, &bitflip_threshold); in mtd_bitflip_threshold_store() 287 mtd->bitflip_threshold = bitflip_threshold; in mtd_bitflip_threshold_store() 290 static DEVICE_ATTR(bitflip_threshold, S_IRUGO | S_IWUSR, 660 if (mtd->bitflip_threshold == 0) in add_mtd_device() 661 mtd->bitflip_threshold = mtd->ecc_strength; in add_mtd_device() 1471 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()
|
/kernel/linux/linux-6.6/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); variable 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()
|
H A D | mtdpart.c | 204 child->bitflip_threshold = parent->bitflip_threshold; in allocate_partition()
|
/kernel/linux/linux-5.10/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 | 5844 * Initialize bitflip_threshold to its default prior scan_bbt() call. in nand_scan_tail() 5845 * scan_bbt() might invoke mtd_read(), thus bitflip_threshold must be in nand_scan_tail() 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()
|
/kernel/linux/linux-6.6/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 | 6513 * Initialize bitflip_threshold to its default prior scan_bbt() call. in nand_scan_tail() 6514 * scan_bbt() might invoke mtd_read(), thus bitflip_threshold must be in nand_scan_tail() 6517 if (!mtd->bitflip_threshold) in nand_scan_tail() 6518 mtd->bitflip_threshold = DIV_ROUND_UP(mtd->ecc_strength * 3, 4); in nand_scan_tail()
|
/kernel/linux/linux-5.10/include/linux/mtd/ |
H A D | mtd.h | 285 unsigned int bitflip_threshold; member
|
/kernel/linux/linux-6.6/include/linux/mtd/ |
H A D | mtd.h | 288 unsigned int bitflip_threshold; member
|
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/brcmnand/ |
H A D | brcmnand.c | 2279 return max(mtd->bitflip_threshold, corrected); in brcmnand_read() 2748 mtd->bitflip_threshold = 1; in brcmnand_attach_chip()
|
/kernel/linux/linux-6.6/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()
|
Completed in 35 milliseconds