Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/mtd/
H A Dmtdcore.c344 return snprintf(buf, PAGE_SIZE, "%u\n", mtd->bitflip_threshold); in mtd_bitflip_threshold_show()
352 unsigned int bitflip_threshold; in mtd_bitflip_threshold_store() local
355 retval = kstrtouint(buf, 0, &bitflip_threshold); in mtd_bitflip_threshold_store()
359 mtd->bitflip_threshold = bitflip_threshold; in mtd_bitflip_threshold_store()
362 static DEVICE_ATTR(bitflip_threshold, S_IRUGO | S_IWUSR,
446 if (mtd->bitflip_threshold == 0) in add_mtd_device()
447 mtd->bitflip_threshold = mtd->ecc_strength; in add_mtd_device()
981 return ret_code >= mtd->bitflip_threshold ? -EUCLEAN : 0; in mtd_read()
1098 return ret_code >= mtd->bitflip_threshold ? -EUCLEAN : 0; in mtd_read_oob()
H A Dmtdpart.c760 slave->bitflip_threshold = master->bitflip_threshold; in allocate_partition()
/openbmc/u-boot/cmd/
H A Dmtd.c170 mtd->bitflip_threshold); in mtd_show_device()
/openbmc/u-boot/include/linux/mtd/
H A Dmtd.h201 unsigned int bitflip_threshold; member
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dnand_base.c4593 if (!mtd->bitflip_threshold) in nand_scan_tail()
4594 mtd->bitflip_threshold = DIV_ROUND_UP(mtd->ecc_strength * 3, 4); in nand_scan_tail()