Searched refs:ecc_strength (Results 1 – 11 of 11) sorted by relevance
/external/u-boot/tools/ |
D | mxsboot.c | 137 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 214 ecc_strength = mx28_nand_get_ecc_strength(nand_writesize, nand_oobsize); in mx28_nand_mark_byte_offset() 215 return mx28_nand_get_mark_offset(nand_writesize, ecc_strength) >> 3; in mx28_nand_mark_byte_offset() [all …]
|
D | sunxi-spl-image-builder.c | 22 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()
|
/external/u-boot/drivers/mtd/nand/ |
D | sunxi_nand_spl.c | 87 int ecc_strength; member 259 int oob_chunk_sz = ecc_bytes[conf->ecc_strength]; in nand_read_page() 280 writel((rand_seed << 16) | (conf->ecc_strength << 12) | in nand_read_page() 390 for (conf->ecc_strength = max_ecc_strength; in nand_detect_ecc_config() 391 conf->ecc_strength >= 0; in nand_detect_ecc_config() 392 conf->ecc_strength--) { in nand_detect_ecc_config()
|
D | mxs_nand.c | 118 uint32_t chunk_ecc_size_in_bits = geo->ecc_strength * geo->gf_len; in mxs_nand_calc_mark_offset() 165 unsigned int ecc_strength, in mxs_nand_calc_ecc_layout_by_info() argument 183 geo->ecc_strength = round_up(ecc_strength, 2); in mxs_nand_calc_ecc_layout_by_info() 189 if (geo->ecc_strength > nand_info->max_ecc_strength_supported) in mxs_nand_calc_ecc_layout_by_info() 230 geo->ecc_strength = ((mtd->oobsize - MXS_NAND_METADATA_SIZE) * 8) in mxs_nand_calc_ecc_layout() 233 geo->ecc_strength = min(round_down(geo->ecc_strength, 2), in mxs_nand_calc_ecc_layout() 1018 tmp |= (geo->ecc_strength >> 1) << BCH_FLASHLAYOUT0_ECC0_OFFSET; in mxs_nand_setup_ecc() 1026 tmp |= (geo->ecc_strength >> 1) << BCH_FLASHLAYOUT1_ECCN_OFFSET; in mxs_nand_setup_ecc() 1249 nand->ecc.strength = nand_info->bch_geometry.ecc_strength; in mxs_nand_init_ctrl()
|
D | pxa3xx_nand.c | 1374 uint16_t ecc_strength, ecc_step; in pxa3xx_nand_scan() local 1436 if (pdata->ecc_strength && pdata->ecc_step_size) { in pxa3xx_nand_scan() 1437 ecc_strength = pdata->ecc_strength; in pxa3xx_nand_scan() 1440 ecc_strength = chip->ecc_strength_ds; in pxa3xx_nand_scan() 1445 if (ecc_strength < 1 && ecc_step < 1) { in pxa3xx_nand_scan() 1446 ecc_strength = 1; in pxa3xx_nand_scan() 1450 ret = pxa_ecc_init(info, &chip->ecc, ecc_strength, in pxa3xx_nand_scan() 1579 pdata->ecc_strength = fdtdec_get_int(blob, node, in pxa3xx_nand_probe_dt()
|
D | pxa3xx_nand.h | 56 int ecc_strength, ecc_step_size; member
|
D | mxs_nand.h | 30 unsigned int ecc_strength; member
|
D | nand_base.c | 3937 int ret, ecc_mode = -1, ecc_strength, ecc_step; in nand_dt_init() local 3965 ecc_strength = fdtdec_get_int(blob, node, "nand-ecc-strength", -1); in nand_dt_init() 3968 if ((ecc_step >= 0 && !(ecc_strength >= 0)) || in nand_dt_init() 3969 (!(ecc_step >= 0) && ecc_strength >= 0)) { in nand_dt_init() 3977 if (ecc_strength >= 0) in nand_dt_init() 3978 chip->ecc.strength = ecc_strength; in nand_dt_init() 4638 mtd->ecc_strength = ecc->strength; in nand_scan_tail() 4646 mtd->bitflip_threshold = DIV_ROUND_UP(mtd->ecc_strength * 3, 4); in nand_scan_tail()
|
/external/u-boot/drivers/mtd/ |
D | mtdcore.c | 320 return snprintf(buf, PAGE_SIZE, "%u\n", mtd->ecc_strength); in mtd_ecc_strength_show() 322 static DEVICE_ATTR(ecc_strength, S_IRUGO, mtd_ecc_strength_show, NULL); 431 mtd->bitflip_threshold = mtd->ecc_strength; in add_mtd_device() 943 if (mtd->ecc_strength == 0) in mtd_read() 1001 if (mtd->ecc_strength == 0) in mtd_read_oob()
|
D | mtdpart.c | 567 slave->mtd.ecc_strength = master->ecc_strength; in allocate_partition()
|
/external/u-boot/include/linux/mtd/ |
D | mtd.h | 221 unsigned int ecc_strength; member
|