Lines Matching refs:ecc_level
297 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()
1391 unsigned int ecc_level = p->ecc_level; in brcmstb_choose_ecc_layout() local
1396 ecc_level <<= 1; in brcmstb_choose_ecc_layout()
1410 ecc->bytes = DIV_ROUND_UP(ecc_level * 14, 8); in brcmstb_choose_ecc_layout()
2626 tmp |= cfg->ecc_level << ctrl->ecc_level_shift; in brcmnand_set_cfg()
2654 sprintf(buf, ", BCH-%u (1KiB sector)", cfg->ecc_level << 1); in brcmnand_print_cfg()
2656 sprintf(buf, ", BCH-%u", cfg->ecc_level); in brcmnand_print_cfg()
2767 cfg->ecc_level = 15; in brcmnand_setup_dev()
2769 cfg->ecc_level = chip->ecc.strength; in brcmnand_setup_dev()
2783 cfg->ecc_level = chip->ecc.strength >> 1; in brcmnand_setup_dev()