Home
last modified time | relevance | path

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

/linux-4.4.14/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.4.14/include/linux/platform_data/
Dmtd-nand-pxa3xx.h38 int ecc_strength, ecc_step_size; member
/linux-4.4.14/drivers/mtd/nand/
Dpxa3xx_nand.c1589 uint16_t ecc_strength, ecc_step; in pxa3xx_nand_scan() local
1656 if (pdata->ecc_strength && pdata->ecc_step_size) { in pxa3xx_nand_scan()
1657 ecc_strength = pdata->ecc_strength; in pxa3xx_nand_scan()
1660 ecc_strength = chip->ecc_strength_ds; in pxa3xx_nand_scan()
1665 if (ecc_strength < 1 && ecc_step < 1) { in pxa3xx_nand_scan()
1666 ecc_strength = 1; in pxa3xx_nand_scan()
1670 ret = pxa_ecc_init(info, &chip->ecc, ecc_strength, in pxa3xx_nand_scan()
1873 pdata->ecc_strength = of_get_nand_ecc_strength(np); in pxa3xx_nand_probe_dt()
1874 if (pdata->ecc_strength < 0) in pxa3xx_nand_probe_dt()
1875 pdata->ecc_strength = 0; in pxa3xx_nand_probe_dt()
Dnand_base.c3943 int ecc_mode, ecc_strength, ecc_step; in nand_dt_init() local
3952 ecc_strength = of_get_nand_ecc_strength(dn); in nand_dt_init()
3955 if ((ecc_step >= 0 && !(ecc_strength >= 0)) || in nand_dt_init()
3956 (!(ecc_step >= 0) && ecc_strength >= 0)) { in nand_dt_init()
3964 if (ecc_strength >= 0) in nand_dt_init()
3965 chip->ecc.strength = ecc_strength; in nand_dt_init()
4367 mtd->ecc_strength = ecc->strength; in nand_scan_tail()
4375 mtd->bitflip_threshold = DIV_ROUND_UP(mtd->ecc_strength * 3, 4); in nand_scan_tail()
/linux-4.4.14/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.4.14/drivers/mtd/
Dmtdcore.c238 return snprintf(buf, PAGE_SIZE, "%u\n", mtd->ecc_strength); in mtd_ecc_strength_show()
240 static DEVICE_ATTR(ecc_strength, S_IRUGO, mtd_ecc_strength_show, NULL);
414 mtd->bitflip_threshold = mtd->ecc_strength; in add_mtd_device()
930 if (mtd->ecc_strength == 0) in mtd_read()
988 if (mtd->ecc_strength == 0) in mtd_read_oob()
Dmtdpart.c538 slave->mtd.ecc_strength = master->ecc_strength; in allocate_partition()
/linux-4.4.14/include/linux/mtd/
Dmtd.h177 unsigned int ecc_strength; member
/linux-4.4.14/drivers/mtd/devices/
Ddocg3.c1863 mtd->ecc_strength = DOC_ECC_BCH_T; in doc_set_driver_info()
/linux-4.4.14/drivers/mtd/onenand/
Donenand_base.c4061 mtd->ecc_strength = 1; in onenand_scan()