Home
last modified time | relevance | path

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

/external/u-boot/drivers/mtd/
Dmtdcore.c330 return snprintf(buf, PAGE_SIZE, "%u\n", mtd->bitflip_threshold); in mtd_bitflip_threshold_show()
338 unsigned int bitflip_threshold; in mtd_bitflip_threshold_store() local
341 retval = kstrtouint(buf, 0, &bitflip_threshold); in mtd_bitflip_threshold_store()
345 mtd->bitflip_threshold = bitflip_threshold; in mtd_bitflip_threshold_store()
348 static DEVICE_ATTR(bitflip_threshold, S_IRUGO | S_IWUSR,
430 if (mtd->bitflip_threshold == 0) in add_mtd_device()
431 mtd->bitflip_threshold = mtd->ecc_strength; in add_mtd_device()
945 return ret_code >= mtd->bitflip_threshold ? -EUCLEAN : 0; in mtd_read()
1003 return ret_code >= mtd->bitflip_threshold ? -EUCLEAN : 0; in mtd_read_oob()
Dmtdpart.c568 slave->mtd.bitflip_threshold = master->bitflip_threshold; in allocate_partition()
/external/u-boot/include/linux/mtd/
Dmtd.h201 unsigned int bitflip_threshold; member
/external/u-boot/drivers/mtd/nand/
Dnand_base.c4645 if (!mtd->bitflip_threshold) in nand_scan_tail()
4646 mtd->bitflip_threshold = DIV_ROUND_UP(mtd->ecc_strength * 3, 4); in nand_scan_tail()