Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/mtd/nand/gpmi-nand/
Dgpmi-nand.c111 int ecc_strength; in get_ecc_strength() local
113 ecc_strength = ((mtd->oobsize - geo->metadata_size) * 8) in get_ecc_strength()
117 return round_down(ecc_strength, 2); in get_ecc_strength()
130 return geo->ecc_strength <= this->devdata->bch_max_ecc_strength; in gpmi_check_ecc()
164 geo->ecc_strength = round_up(chip->ecc_strength_ds, 2); in set_geometry_by_ecc_info()
230 (geo->gf_len * geo->ecc_strength * geo->ecc_chunk_count) / 8; in set_geometry_by_ecc_info()
249 (geo->ecc_strength * geo->gf_len * (geo->ecc_chunk_count - 1) in set_geometry_by_ecc_info()
285 geo->ecc_strength = get_ecc_strength(this); in legacy_set_geometry()
289 geo->ecc_strength, in legacy_set_geometry()
359 (geo->ecc_strength * geo->gf_len * (geo->ecc_chunk_count - 1) in legacy_set_geometry()
[all …]
Dgpmi-lib.c236 geo->ecc_strength, in gpmi_dump_info()
256 unsigned int ecc_strength; in bch_set_geometry() local
267 ecc_strength = bch_geo->ecc_strength >> 1; in bch_set_geometry()
290 | BF_BCH_FLASH0LAYOUT0_ECC0(ecc_strength, this) in bch_set_geometry()
296 | BF_BCH_FLASH0LAYOUT1_ECCN(ecc_strength, this) in bch_set_geometry()
Dgpmi-nand.h57 unsigned int ecc_strength; member
/linux-4.1.27/include/linux/platform_data/
Dmtd-nand-pxa3xx.h62 int ecc_strength, ecc_step_size; member
/linux-4.1.27/drivers/mtd/nand/
Dpxa3xx_nand.c1473 uint16_t ecc_strength, ecc_step; in pxa3xx_nand_scan() local
1573 if (pdata->ecc_strength && pdata->ecc_step_size) { in pxa3xx_nand_scan()
1574 ecc_strength = pdata->ecc_strength; in pxa3xx_nand_scan()
1577 ecc_strength = chip->ecc_strength_ds; in pxa3xx_nand_scan()
1582 if (ecc_strength < 1 && ecc_step < 1) { in pxa3xx_nand_scan()
1583 ecc_strength = 1; in pxa3xx_nand_scan()
1587 ret = pxa_ecc_init(info, &chip->ecc, ecc_strength, in pxa3xx_nand_scan()
1792 pdata->ecc_strength = of_get_nand_ecc_strength(np); in pxa3xx_nand_probe_dt()
1793 if (pdata->ecc_strength < 0) in pxa3xx_nand_probe_dt()
1794 pdata->ecc_strength = 0; in pxa3xx_nand_probe_dt()
Dnand_base.c4186 mtd->ecc_strength = ecc->strength; in nand_scan_tail()
4194 mtd->bitflip_threshold = DIV_ROUND_UP(mtd->ecc_strength * 3, 4); in nand_scan_tail()
/linux-4.1.27/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-4.1.27/drivers/mtd/
Dmtdcore.c234 return snprintf(buf, PAGE_SIZE, "%u\n", mtd->ecc_strength); in mtd_ecc_strength_show()
236 static DEVICE_ATTR(ecc_strength, S_IRUGO, mtd_ecc_strength_show, NULL);
401 mtd->bitflip_threshold = mtd->ecc_strength; in add_mtd_device()
886 if (mtd->ecc_strength == 0) in mtd_read()
944 if (mtd->ecc_strength == 0) in mtd_read_oob()
Dmtdpart.c538 slave->mtd.ecc_strength = master->ecc_strength; in allocate_partition()
/linux-4.1.27/include/linux/mtd/
Dmtd.h177 unsigned int ecc_strength; member
/linux-4.1.27/drivers/mtd/devices/
Ddocg3.c1852 mtd->ecc_strength = DOC_ECC_BCH_T; in doc_set_driver_info()
/linux-4.1.27/drivers/mtd/onenand/
Donenand_base.c4061 mtd->ecc_strength = 1; in onenand_scan()