Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/mtd/nand/raw/
Dmtk_ecc.c54 const u8 *ecc_strength; member
179 if (ecc->caps->ecc_strength[i] == config->strength) in mtk_ecc_config()
431 const u8 *ecc_strength = ecc->caps->ecc_strength; in mtk_ecc_adjust_strength() local
435 if (*p <= ecc_strength[i]) { in mtk_ecc_adjust_strength()
437 *p = ecc_strength[i]; in mtk_ecc_adjust_strength()
438 else if (*p != ecc_strength[i]) in mtk_ecc_adjust_strength()
439 *p = ecc_strength[i - 1]; in mtk_ecc_adjust_strength()
444 *p = ecc_strength[ecc->caps->num_ecc_strength - 1]; in mtk_ecc_adjust_strength()
456 .ecc_strength = ecc_strength_mt2701,
466 .ecc_strength = ecc_strength_mt2712,
[all …]
Dnand_base.c5917 int ecc_mode, ecc_algo, ecc_strength, ecc_step; in nand_dt_init() local
5933 ecc_strength = of_get_nand_ecc_strength(dn); in nand_dt_init()
5942 if (ecc_strength >= 0) in nand_dt_init()
5943 chip->ecc.strength = ecc_strength; in nand_dt_init()
6625 mtd->ecc_strength = ecc->strength; in nand_scan_tail()
6720 mtd->bitflip_threshold = DIV_ROUND_UP(mtd->ecc_strength * 3, 4); in nand_scan_tail()
Dmarvell_nand.c2347 chip->ecc.strength = pdata->ecc_strength; in marvell_nand_attach_chip()
/Linux-v4.19/drivers/mtd/nand/raw/gpmi-nand/
Dgpmi-nand.c160 int ecc_strength; in get_ecc_strength() local
162 ecc_strength = ((mtd->oobsize - geo->metadata_size) * 8) in get_ecc_strength()
166 return round_down(ecc_strength, 2); in get_ecc_strength()
179 return geo->ecc_strength <= this->devdata->bch_max_ecc_strength; in gpmi_check_ecc()
189 unsigned int ecc_strength, in set_geometry_by_ecc_info() argument
211 geo->ecc_strength = round_up(ecc_strength, 2); in set_geometry_by_ecc_info()
277 (geo->gf_len * geo->ecc_strength * geo->ecc_chunk_count) / 8; in set_geometry_by_ecc_info()
290 (geo->ecc_strength * geo->gf_len * (geo->ecc_chunk_count - 1) in set_geometry_by_ecc_info()
326 geo->ecc_strength = get_ecc_strength(this); in legacy_set_geometry()
331 geo->ecc_strength, in legacy_set_geometry()
[all …]
Dgpmi-lib.c223 geo->ecc_strength, in gpmi_dump_info()
243 unsigned int ecc_strength; in bch_set_geometry() local
255 ecc_strength = bch_geo->ecc_strength >> 1; in bch_set_geometry()
278 | BF_BCH_FLASH0LAYOUT0_ECC0(ecc_strength, this) in bch_set_geometry()
284 | BF_BCH_FLASH0LAYOUT1_ECCN(ecc_strength, this) in bch_set_geometry()
Dgpmi-nand.h48 unsigned int ecc_strength; member
/Linux-v4.19/include/linux/platform_data/
Dmtd-nand-pxa3xx.h19 int ecc_strength, ecc_step_size; member
/Linux-v4.19/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-v4.19/drivers/mtd/
Dmtdcore.c248 return snprintf(buf, PAGE_SIZE, "%u\n", mtd->ecc_strength); in mtd_ecc_strength_show()
250 static DEVICE_ATTR(ecc_strength, S_IRUGO, mtd_ecc_strength_show, NULL);
534 mtd->bitflip_threshold = mtd->ecc_strength; in add_mtd_device()
1063 if (mtd->ecc_strength == 0) in mtd_read()
1183 if (mtd->ecc_strength == 0) in mtd_read_oob()
Dmtdpart.c537 slave->mtd.ecc_strength = parent->ecc_strength; in allocate_partition()
/Linux-v4.19/include/linux/mtd/
Dmtd.h273 unsigned int ecc_strength; member
/Linux-v4.19/drivers/mtd/devices/
Ddocg3.c1793 mtd->ecc_strength = DOC_ECC_BCH_T; in doc_set_driver_info()
/Linux-v4.19/drivers/mtd/nand/onenand/
Donenand_base.c3937 mtd->ecc_strength = 1; in onenand_scan()