Home
last modified time | relevance | path

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

/drivers/mtd/nand/raw/
Dmtk_ecc.c47 const u8 *ecc_strength; member
172 if (ecc->caps->ecc_strength[i] == config->strength) in mtk_ecc_config()
428 const u8 *ecc_strength = ecc->caps->ecc_strength; in mtk_ecc_adjust_strength() local
432 if (*p <= ecc_strength[i]) { in mtk_ecc_adjust_strength()
434 *p = ecc_strength[i]; in mtk_ecc_adjust_strength()
435 else if (*p != ecc_strength[i]) in mtk_ecc_adjust_strength()
436 *p = ecc_strength[i - 1]; in mtk_ecc_adjust_strength()
441 *p = ecc_strength[ecc->caps->num_ecc_strength - 1]; in mtk_ecc_adjust_strength()
454 .ecc_strength = ecc_strength_mt2701,
465 .ecc_strength = ecc_strength_mt2712,
[all …]
Dintel-nand-controller.c447 static const u8 ecc_strength[] = { 1, 1, 4, 8, 24, 32, 40, 60, }; variable
482 if (ecc_strength_ds == ecc_strength[val]) in ebu_nand_attach_chip()
Dnand_base.c6198 mtd->ecc_strength = ecc->strength; in nand_scan_tail()
6302 mtd->bitflip_threshold = DIV_ROUND_UP(mtd->ecc_strength * 3, 4); in nand_scan_tail()
Dmarvell_nand.c2528 chip->ecc.strength = pdata->ecc_strength; in marvell_nand_attach_chip()
/drivers/mtd/nand/raw/gpmi-nand/
Dgpmi-nand.c229 geo->ecc_strength, in gpmi_dump_info()
251 return geo->ecc_strength <= this->devdata->bch_max_ecc_strength; in gpmi_check_ecc()
261 unsigned int ecc_strength, in set_geometry_by_ecc_info() argument
284 geo->ecc_strength = round_up(ecc_strength, 2); in set_geometry_by_ecc_info()
350 (geo->gf_len * geo->ecc_strength * geo->ecc_chunk_count) / 8; in set_geometry_by_ecc_info()
363 (geo->ecc_strength * geo->gf_len * (geo->ecc_chunk_count - 1) in set_geometry_by_ecc_info()
393 int ecc_strength; in get_ecc_strength() local
395 ecc_strength = ((mtd->oobsize - geo->metadata_size) * 8) in get_ecc_strength()
399 return round_down(ecc_strength, 2); in get_ecc_strength()
430 geo->ecc_strength = get_ecc_strength(this); in legacy_set_geometry()
[all …]
Dgpmi-nand.h48 unsigned int ecc_strength; member
/drivers/mtd/
Dmtdpart.c196 child->ecc_strength = parent->ecc_strength; in allocate_partition()
Dmtdcore.c231 return sysfs_emit(buf, "%u\n", mtd->ecc_strength); in mtd_ecc_strength_show()
233 MTD_DEVICE_ATTR_RO(ecc_strength);
630 mtd->bitflip_threshold = mtd->ecc_strength; in add_mtd_device()
1599 if (mtd->ecc_strength == 0) in mtd_read_oob()
/drivers/mtd/nand/spi/
Dcore.c1250 mtd->ecc_strength = nanddev_get_ecc_conf(nand)->strength; in spinand_init()
/drivers/mtd/devices/
Ddocg3.c1779 mtd->ecc_strength = DOC_ECC_BCH_T; in doc_set_driver_info()
/drivers/mtd/nand/onenand/
Donenand_base.c3933 mtd->ecc_strength = 1; in onenand_scan()