Lines Matching defs:strength
242 static int rk_nfc_hw_ecc_setup(struct nand_chip *chip, u32 strength)
248 if (strength == nfc->cfg->ecc_strengths[i]) {
260 nfc->cur_ecc = strength;
304 if (nfc->cur_ecc != ecc->strength)
305 rk_nfc_hw_ecc_setup(chip, ecc->strength);
445 rknand->boot_ecc != ecc->strength) {
448 * a different ECC strength is in use for the boot blocks.
566 if (rknand->boot_ecc != ecc->strength)
599 if (boot_rom_mode && rknand->boot_ecc != ecc->strength)
600 rk_nfc_hw_ecc_setup(chip, ecc->strength);
630 rknand->boot_ecc != ecc->strength) {
633 * a different ECC strength is in use for the boot blocks.
707 if (rknand->boot_ecc != ecc->strength)
765 if (boot_rom_mode && rknand->boot_ecc != ecc->strength)
766 rk_nfc_hw_ecc_setup(chip, ecc->strength);
836 if (!ecc->size || !ecc->strength ||
837 ecc->strength > nfc_max_strength) {
856 dev_err(nfc->dev, "unsupported ECC strength\n");
860 ecc->strength = strengths[i];
863 ecc->bytes = DIV_ROUND_UP(ecc->strength * fls(8 * chip->ecc.size), 8);
933 ret = ofnode_read_u32(node, "nand-ecc-strength", &tmp);
934 ecc->strength = ret ? 0 : tmp;
975 ret = ofnode_read_u32(node, "rockchip,boot-ecc-strength", &tmp);
976 rknand->boot_ecc = ret ? ecc->strength : tmp;