/u-boot/drivers/mtd/nand/raw/ |
H A D | pxa3xx_nand.h | 56 int ecc_strength, ecc_step_size; member in struct:pxa3xx_nand_platform_data
|
H A D | mxs_nand.c | 137 (geo->gf_len * geo->ecc_strength + 141 (geo->gf_len * geo->ecc_strength + 147 geo->ecc_strength, *chunk_num); 156 unsigned int ecc_strength, 176 geo->ecc_strength = round_up(ecc_strength, 2); 182 if (geo->ecc_strength > nand_info->max_ecc_strength_supported) 189 (geo->ecc_strength * geo->gf_len * (geo->ecc_chunk_count - 1) 229 geo->ecc_strength = ((mtd->oobsize - MXS_NAND_METADATA_SIZE) * 8) 232 geo->ecc_strength 154 mxs_nand_calc_ecc_layout_by_info(struct bch_geometry *geo, struct mtd_info *mtd, unsigned int ecc_strength, unsigned int ecc_step) argument [all...] |
H A D | sunxi_nand_spl.c | 90 int ecc_strength; member in struct:nfc_config 262 int oob_chunk_sz = ecc_bytes[conf->ecc_strength]; 283 writel((rand_seed << 16) | (conf->ecc_strength << 12) | 393 for (conf->ecc_strength = max_ecc_strength; 394 conf->ecc_strength >= 0; 395 conf->ecc_strength--) {
|
H A D | pxa3xx_nand.c | 1575 uint16_t ecc_strength, ecc_step; local 1619 if (pdata->ecc_strength && pdata->ecc_step_size) { 1620 ecc_strength = pdata->ecc_strength; 1623 ecc_strength = chip->ecc_strength_ds; 1628 if (ecc_strength < 1 && ecc_step < 1) { 1629 ecc_strength = 1; 1633 ret = pxa_ecc_init(info, &chip->ecc, ecc_strength, 1779 pdata->ecc_strength = dev_read_u32_default(dev, "nand-ecc-strength", 0);
|
H A D | cortina_nand.c | 1175 int ecc_strength; local 1181 ecc_strength = dev_read_u32_default(dev, "nand-ecc-strength", 16); 1185 switch (ecc_strength) {
|
H A D | nand_base.c | 4453 int ret, ecc_mode = -1, ecc_strength, ecc_step; local 4498 ecc_strength = ofnode_read_s32_default(node, 4503 if ((ecc_step >= 0 && !(ecc_strength >= 0)) || 4504 (!(ecc_step >= 0) && ecc_strength >= 0)) { 4520 if (ecc_strength >= 0) 4521 chip->ecc.strength = ecc_strength; 5182 mtd->ecc_strength = ecc->strength; 5190 mtd->bitflip_threshold = DIV_ROUND_UP(mtd->ecc_strength * 3, 4);
|
/u-boot/tools/ |
H A D | mxsboot.c | 137 static inline uint32_t mx28_nand_ecc_size_in_bits(uint32_t ecc_strength) argument 139 return ecc_strength * MXS_NAND_BITS_PER_ECC_LEVEL; 145 int ecc_strength; local 155 ecc_strength = ((page_oob_size - MXS_NAND_METADATA_SIZE) * 8) 159 return round_down(ecc_strength, 2); 163 uint32_t ecc_strength) 173 chunk_ecc_size_in_bits = mx28_nand_ecc_size_in_bits(ecc_strength); 213 uint32_t ecc_strength; local 214 ecc_strength = mx28_nand_get_ecc_strength(nand_writesize, nand_oobsize); 215 return mx28_nand_get_mark_offset(nand_writesize, ecc_strength) >> 162 mx28_nand_get_mark_offset(uint32_t page_data_size, uint32_t ecc_strength) argument 220 uint32_t ecc_strength; local [all...] |
H A D | sunxi-spl-image-builder.c | 22 int ecc_strength; member in struct:image_info 118 int eccbytes = DIV_ROUND_UP(info->ecc_strength * 14, 8); 245 bch = init_bch(14, info->ecc_strength, BCH_PRIMITIVE_POLY); 371 if (valid_ecc_strengths[i] == info->ecc_strength) 377 info->ecc_strength); 381 eccbytes = DIV_ROUND_UP(info->ecc_strength * 14, 8); 435 info.ecc_strength = strtol(optarg, &endptr, 0);
|
/u-boot/include/ |
H A D | mxs_nand.h | 19 * @ecc_strength: A number that describes the strength of the ECC 34 unsigned int ecc_strength; member in struct:bch_geometry
|
/u-boot/drivers/mtd/ |
H A D | mtdcore.c | 334 return snprintf(buf, PAGE_SIZE, "%u\n", mtd->ecc_strength); 336 static DEVICE_ATTR(ecc_strength, S_IRUGO, mtd_ecc_strength_show, NULL); 447 mtd->bitflip_threshold = mtd->ecc_strength; 1006 if (mtd->ecc_strength == 0) 1123 if (mtd->ecc_strength == 0)
|
H A D | mtdpart.c | 751 slave->ecc_strength = master->ecc_strength;
|
/u-boot/cmd/ |
H A D | mtd.c | 178 if (mtd->ecc_strength) { 179 printf(" - ECC strength: %u bits\n", mtd->ecc_strength);
|
H A D | nand.c | 424 printf(" ecc strength %8d bits\n", mtd->ecc_strength);
|
/u-boot/include/linux/mtd/ |
H A D | mtd.h | 197 * Settable by driver, else defaults to ecc_strength. User can override 221 unsigned int ecc_strength; member in struct:mtd_info
|