Lines Matching refs:strength
219 if (chip->ecc.strength == FMC2_ECC_BCH8) { in stm32_fmc2_setup()
222 } else if (chip->ecc.strength == FMC2_ECC_BCH4) { in stm32_fmc2_setup()
319 if (chip->ecc.strength != FMC2_ECC_HAM) { in stm32_fmc2_hwctl()
452 if (chip->ecc.strength == FMC2_ECC_BCH8) { in stm32_fmc2_bch_calculate()
534 int eccstrength = chip->ecc.strength; in stm32_fmc2_read_page()
814 if (chip->ecc.strength == FMC2_ECC_HAM) { in stm32_fmc2_nand_callbacks_setup()
828 if (chip->ecc.strength == FMC2_ECC_BCH8) in stm32_fmc2_nand_callbacks_setup()
835 static int stm32_fmc2_calc_ecc_bytes(int step_size, int strength) in stm32_fmc2_calc_ecc_bytes() argument
838 if (strength == FMC2_ECC_HAM) in stm32_fmc2_calc_ecc_bytes()
842 if (strength == FMC2_ECC_BCH8) in stm32_fmc2_calc_ecc_bytes()
1013 chip->ecc.strength = FMC2_ECC_BCH8; in stm32_fmc2_probe()