Home
last modified time | relevance | path

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

/drivers/mtd/nand/raw/
Dnand_hynix.c500 u8 ecc_level = (chip->id.data[4] >> 4) & 0x7; in hynix_nand_extract_ecc_requirements() local
506 switch (ecc_level) { in hynix_nand_extract_ecc_requirements()
547 if (ecc_level < 5) { in hynix_nand_extract_ecc_requirements()
549 requirements.strength = 1 << ecc_level; in hynix_nand_extract_ecc_requirements()
550 } else if (ecc_level < 7) { in hynix_nand_extract_ecc_requirements()
551 if (ecc_level == 5) in hynix_nand_extract_ecc_requirements()
567 if (!ecc_level) { in hynix_nand_extract_ecc_requirements()
570 } else if (ecc_level < 5) { in hynix_nand_extract_ecc_requirements()
572 requirements.strength = 1 << (ecc_level - 1); in hynix_nand_extract_ecc_requirements()
576 (8 * (ecc_level - 5)); in hynix_nand_extract_ecc_requirements()
/drivers/mtd/nand/raw/brcmnand/
Dbrcmnand.c297 unsigned int ecc_level; member
1004 acc_control |= host->hwcfg.ecc_level << ctrl->ecc_level_shift; in brcmnand_set_ecc_enabled()
1176 cfg->ecc_level == 15; in is_hamming_ecc()
1179 cfg->ecc_level == 15) || in is_hamming_ecc()
1180 (cfg->spare_area_size == 28 && cfg->ecc_level == 16)); in is_hamming_ecc()
1328 unsigned int ecc_level = p->ecc_level; in brcmstb_choose_ecc_layout() local
1333 ecc_level <<= 1; in brcmstb_choose_ecc_layout()
1347 ecc->bytes = DIV_ROUND_UP(ecc_level * 14, 8); in brcmstb_choose_ecc_layout()
2604 tmp |= cfg->ecc_level << ctrl->ecc_level_shift; in brcmnand_set_cfg()
2632 sprintf(buf, ", BCH-%u (1KiB sector)", cfg->ecc_level << 1); in brcmnand_print_cfg()
[all …]