Home
last modified time | relevance | path

Searched refs:ecc_strength (Results 1 – 12 of 12) sorted by relevance

/Linux-v5.4/drivers/mtd/nand/raw/
Dmtk_ecc.c46 const u8 *ecc_strength; member
171 if (ecc->caps->ecc_strength[i] == config->strength) in mtk_ecc_config()
427 const u8 *ecc_strength = ecc->caps->ecc_strength; in mtk_ecc_adjust_strength() local
431 if (*p <= ecc_strength[i]) { in mtk_ecc_adjust_strength()
433 *p = ecc_strength[i]; in mtk_ecc_adjust_strength()
434 else if (*p != ecc_strength[i]) in mtk_ecc_adjust_strength()
435 *p = ecc_strength[i - 1]; in mtk_ecc_adjust_strength()
440 *p = ecc_strength[ecc->caps->num_ecc_strength - 1]; in mtk_ecc_adjust_strength()
452 .ecc_strength = ecc_strength_mt2701,
462 .ecc_strength = ecc_strength_mt2712,
[all …]
Dnand_base.c4941 int ecc_mode, ecc_algo, ecc_strength, ecc_step; in nand_dt_init() local
4957 ecc_strength = of_get_nand_ecc_strength(dn); in nand_dt_init()
4966 if (ecc_strength >= 0) in nand_dt_init()
4967 chip->ecc.strength = ecc_strength; in nand_dt_init()
5705 mtd->ecc_strength = ecc->strength; in nand_scan_tail()
5801 mtd->bitflip_threshold = DIV_ROUND_UP(mtd->ecc_strength * 3, 4); in nand_scan_tail()
Dmarvell_nand.c2459 chip->ecc.strength = pdata->ecc_strength; in marvell_nand_attach_chip()
/Linux-v5.4/drivers/mtd/nand/raw/gpmi-nand/
Dgpmi-nand.c220 geo->ecc_strength, in gpmi_dump_info()
242 return geo->ecc_strength <= this->devdata->bch_max_ecc_strength; in gpmi_check_ecc()
252 unsigned int ecc_strength, in set_geometry_by_ecc_info() argument
275 geo->ecc_strength = round_up(ecc_strength, 2); in set_geometry_by_ecc_info()
341 (geo->gf_len * geo->ecc_strength * geo->ecc_chunk_count) / 8; in set_geometry_by_ecc_info()
354 (geo->ecc_strength * geo->gf_len * (geo->ecc_chunk_count - 1) in set_geometry_by_ecc_info()
384 int ecc_strength; in get_ecc_strength() local
386 ecc_strength = ((mtd->oobsize - geo->metadata_size) * 8) in get_ecc_strength()
390 return round_down(ecc_strength, 2); in get_ecc_strength()
421 geo->ecc_strength = get_ecc_strength(this); in legacy_set_geometry()
[all …]
Dgpmi-nand.h48 unsigned int ecc_strength; member
/Linux-v5.4/include/linux/platform_data/
Dmtd-nand-pxa3xx.h19 int ecc_strength, ecc_step_size; member
/Linux-v5.4/Documentation/ABI/testing/
Dsysfs-class-mtd125 What: /sys/class/mtd/mtdX/ecc_strength
152 If not, then the default value is ecc_strength.
168 ecc_strength, -EUCLEAN is never returned by the read operations.
174 i.e., devices for which ecc_strength is zero.
/Linux-v5.4/drivers/mtd/
Dmtdcore.c227 return snprintf(buf, PAGE_SIZE, "%u\n", mtd->ecc_strength); in mtd_ecc_strength_show()
229 static DEVICE_ATTR(ecc_strength, S_IRUGO, mtd_ecc_strength_show, NULL);
640 mtd->bitflip_threshold = mtd->ecc_strength; in add_mtd_device()
1264 if (mtd->ecc_strength == 0) in mtd_read_oob()
Dmtdpart.c537 slave->mtd.ecc_strength = parent->ecc_strength; in allocate_partition()
/Linux-v5.4/include/linux/mtd/
Dmtd.h264 unsigned int ecc_strength; member
/Linux-v5.4/drivers/mtd/devices/
Ddocg3.c1779 mtd->ecc_strength = DOC_ECC_BCH_T; in doc_set_driver_info()
/Linux-v5.4/drivers/mtd/nand/onenand/
Donenand_base.c3943 mtd->ecc_strength = 1; in onenand_scan()