Home
last modified time | relevance | path

Searched refs:ecc_level (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/mtd/nand/raw/
H A Dnand_hynix.c499 u8 ecc_level = (chip->id.data[4] >> 4) & 0x7; in hynix_nand_extract_ecc_requirements() local
505 switch (ecc_level) { in hynix_nand_extract_ecc_requirements()
546 if (ecc_level < 5) { in hynix_nand_extract_ecc_requirements()
548 requirements.strength = 1 << ecc_level; in hynix_nand_extract_ecc_requirements()
549 } else if (ecc_level < 7) { in hynix_nand_extract_ecc_requirements()
550 if (ecc_level == 5) in hynix_nand_extract_ecc_requirements()
566 if (!ecc_level) { in hynix_nand_extract_ecc_requirements()
569 } else if (ecc_level < 5) { in hynix_nand_extract_ecc_requirements()
571 requirements.strength = 1 << (ecc_level - 1); in hynix_nand_extract_ecc_requirements()
575 (8 * (ecc_level - 5)); in hynix_nand_extract_ecc_requirements()
/linux/drivers/mtd/nand/raw/brcmnand/
H A Dbrcmnand.c297 unsigned int ecc_level; member
1020 acc_control |= host->hwcfg.ecc_level << ctrl->ecc_level_shift; in brcmnand_set_ecc_enabled()
1090 int spare_area_size, ecc_level; in brcmnand_get_ecc_settings() local
1095 ecc_level = (acc & brcmnand_ecc_level_mask(ctrl)) >> ctrl->ecc_level_shift; in brcmnand_get_ecc_settings()
1097 chip->ecc.strength = ecc_level * 2; in brcmnand_get_ecc_settings()
1098 else if (spare_area_size == 16 && ecc_level == 15) in brcmnand_get_ecc_settings()
1101 chip->ecc.strength = ecc_level; in brcmnand_get_ecc_settings()
1239 cfg->ecc_level == 15; in is_hamming_ecc()
1242 cfg->ecc_level == 15) || in is_hamming_ecc()
1243 (cfg->spare_area_size == 28 && cfg->ecc_level == 16)); in is_hamming_ecc()
[all …]