Lines Matching refs:ecc_level
172 unsigned int ecc_level; member
716 acc_control |= host->hwcfg.ecc_level in brcmnand_set_ecc_enabled()
888 cfg->ecc_level == 15; in is_hamming_ecc()
891 cfg->ecc_level == 15) || in is_hamming_ecc()
892 (cfg->spare_area_size == 28 && cfg->ecc_level == 16)); in is_hamming_ecc()
899 static struct nand_ecclayout *brcmnand_create_layout(int ecc_level, in brcmnand_create_layout() argument
957 req = DIV_ROUND_UP(ecc_level * 14, 8); in brcmnand_create_layout()
1008 unsigned int ecc_level = p->ecc_level; in brcmstb_choose_ecc_layout() local
1011 ecc_level <<= 1; in brcmstb_choose_ecc_layout()
1013 layout = brcmnand_create_layout(ecc_level, host); in brcmstb_choose_ecc_layout()
2058 tmp |= cfg->ecc_level << NAND_ACC_CONTROL_ECC_SHIFT; in brcmnand_set_cfg()
2086 sprintf(buf, ", BCH-%u (1KiB sector)", cfg->ecc_level << 1); in brcmnand_print_cfg()
2088 sprintf(buf, ", BCH-%u", cfg->ecc_level); in brcmnand_print_cfg()
2171 cfg->ecc_level = 15; in brcmnand_setup_dev()
2173 cfg->ecc_level = chip->ecc.strength; in brcmnand_setup_dev()
2187 cfg->ecc_level = chip->ecc.strength >> 1; in brcmnand_setup_dev()