Home
last modified time | relevance | path

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

/u-boot/tools/
A Dmxsboot.c137 static inline uint32_t mx28_nand_ecc_size_in_bits(uint32_t ecc_strength) in mx28_nand_ecc_size_in_bits() argument
139 return ecc_strength * MXS_NAND_BITS_PER_ECC_LEVEL; in mx28_nand_ecc_size_in_bits()
145 int ecc_strength; in mx28_nand_get_ecc_strength() local
155 ecc_strength = ((page_oob_size - MXS_NAND_METADATA_SIZE) * 8) in mx28_nand_get_ecc_strength()
159 return round_down(ecc_strength, 2); in mx28_nand_get_ecc_strength()
163 uint32_t ecc_strength) in mx28_nand_get_mark_offset() argument
173 chunk_ecc_size_in_bits = mx28_nand_ecc_size_in_bits(ecc_strength); in mx28_nand_get_mark_offset()
213 uint32_t ecc_strength; in mx28_nand_mark_byte_offset() local
215 return mx28_nand_get_mark_offset(nand_writesize, ecc_strength) >> 3; in mx28_nand_mark_byte_offset()
220 uint32_t ecc_strength; in mx28_nand_mark_bit_offset() local
[all …]
A Dsunxi-spl-image-builder.c22 int ecc_strength; member
118 int eccbytes = DIV_ROUND_UP(info->ecc_strength * 14, 8); in write_page()
245 bch = init_bch(14, info->ecc_strength, BCH_PRIMITIVE_POLY); in create_image()
371 if (valid_ecc_strengths[i] == info->ecc_strength) in check_image_info()
377 info->ecc_strength); in check_image_info()
381 eccbytes = DIV_ROUND_UP(info->ecc_strength * 14, 8); in check_image_info()
435 info.ecc_strength = strtol(optarg, &endptr, 0); in main()
/u-boot/drivers/mtd/nand/raw/
A Dmxs_nand.c131 (geo->gf_len * geo->ecc_strength + in mxs_nand_bbm_in_data_chunk()
135 (geo->gf_len * geo->ecc_strength + in mxs_nand_bbm_in_data_chunk()
141 geo->ecc_strength, *chunk_num); in mxs_nand_bbm_in_data_chunk()
150 unsigned int ecc_strength, in mxs_nand_calc_ecc_layout_by_info() argument
170 geo->ecc_strength = round_up(ecc_strength, 2); in mxs_nand_calc_ecc_layout_by_info()
225 geo->ecc_strength = min(round_down(geo->ecc_strength, 2), in mxs_nand_legacy_calc_ecc_layout()
270 geo->ecc_strength += 2; in mxs_nand_calc_ecc_for_large_oob()
275 if (geo->ecc_strength > max_ecc) { in mxs_nand_calc_ecc_for_large_oob()
283 geo->gf_len * geo->ecc_strength in mxs_nand_calc_ecc_for_large_oob()
632 if (threshold > geo->ecc_strength) in mxs_nand_erased_page()
[all …]
A Dsunxi_nand_spl.c89 int ecc_strength; member
261 int oob_chunk_sz = ecc_bytes[conf->ecc_strength]; in nand_read_page()
282 writel((rand_seed << 16) | (conf->ecc_strength << 12) | in nand_read_page()
392 for (conf->ecc_strength = max_ecc_strength; in nand_detect_ecc_config()
393 conf->ecc_strength >= 0; in nand_detect_ecc_config()
394 conf->ecc_strength--) { in nand_detect_ecc_config()
A Dpxa3xx_nand.h56 int ecc_strength, ecc_step_size; member
A Dpxa3xx_nand.c1675 uint16_t ecc_strength, ecc_step; in pxa3xx_nand_scan() local
1718 if (pdata->ecc_strength && pdata->ecc_step_size) { in pxa3xx_nand_scan()
1719 ecc_strength = pdata->ecc_strength; in pxa3xx_nand_scan()
1722 ecc_strength = chip->ecc_strength_ds; in pxa3xx_nand_scan()
1727 if (ecc_strength < 1 && ecc_step < 1) { in pxa3xx_nand_scan()
1728 ecc_strength = 1; in pxa3xx_nand_scan()
1732 ret = pxa_ecc_init(info, &chip->ecc, ecc_strength, in pxa3xx_nand_scan()
1877 pdata->ecc_strength = dev_read_u32_default(dev, "nand-ecc-strength", 0); in pxa3xx_nand_probe_dt()
A Dcortina_nand.c1174 int ecc_strength; in fdt_decode_nand() local
1180 ecc_strength = dev_read_u32_default(dev, "nand-ecc-strength", 16); in fdt_decode_nand()
1184 switch (ecc_strength) { in fdt_decode_nand()
A Dnand_base.c4582 int ret, ecc_mode = -1, ecc_strength, ecc_step; in nand_dt_init() local
4610 ecc_strength = fdtdec_get_int(blob, node, "nand-ecc-strength", -1); in nand_dt_init()
4613 if ((ecc_step >= 0 && !(ecc_strength >= 0)) || in nand_dt_init()
4614 (!(ecc_step >= 0) && ecc_strength >= 0)) { in nand_dt_init()
4622 if (ecc_strength >= 0) in nand_dt_init()
4623 chip->ecc.strength = ecc_strength; in nand_dt_init()
5285 mtd->ecc_strength = ecc->strength; in nand_scan_tail()
5293 mtd->bitflip_threshold = DIV_ROUND_UP(mtd->ecc_strength * 3, 4); in nand_scan_tail()
/u-boot/include/
A Dmxs_nand.h32 unsigned int ecc_strength; member
/u-boot/cmd/
A Dmtd.c168 if (mtd->ecc_strength) { in mtd_show_device()
169 printf(" - ECC strength: %u bits\n", mtd->ecc_strength); in mtd_show_device()
/u-boot/drivers/mtd/
A Dmtdcore.c334 return snprintf(buf, PAGE_SIZE, "%u\n", mtd->ecc_strength); in mtd_ecc_strength_show()
336 static DEVICE_ATTR(ecc_strength, S_IRUGO, mtd_ecc_strength_show, NULL);
447 mtd->bitflip_threshold = mtd->ecc_strength; in add_mtd_device()
979 if (mtd->ecc_strength == 0) in mtd_read()
1096 if (mtd->ecc_strength == 0) in mtd_read_oob()
A Dmtdpart.c762 slave->ecc_strength = master->ecc_strength; in allocate_partition()
/u-boot/include/linux/mtd/
A Dmtd.h221 unsigned int ecc_strength; member

Completed in 32 milliseconds