Lines Matching refs:strength
204 int bytes_per_step = DIV_ROUND_UP(BITS_PER_STEP_RS * chip->ecc.strength, in tegra_nand_ooblayout_rs_ecc()
231 int bytes_per_step = DIV_ROUND_UP(BITS_PER_STEP_BCH * chip->ecc.strength, in tegra_nand_ooblayout_bch_ecc()
729 chip->ecc.strength); in tegra_nand_read_page_hwecc()
837 static int tegra_nand_get_strength(struct nand_chip *chip, const int *strength, in tegra_nand_get_strength() argument
852 strength_sel = strength[strength_len - i - 1]; in tegra_nand_get_strength()
854 strength_sel = strength[i]; in tegra_nand_get_strength()
856 if (strength_sel < chip->base.eccreq.strength) in tegra_nand_get_strength()
874 const int *strength; in tegra_nand_select_strength() local
881 strength = rs_strength_bootable; in tegra_nand_select_strength()
884 strength = rs_strength; in tegra_nand_select_strength()
891 strength = bch_strength_bootable; in tegra_nand_select_strength()
894 strength = bch_strength; in tegra_nand_select_strength()
902 return tegra_nand_get_strength(chip, strength, strength_len, in tegra_nand_select_strength()
948 if (!chip->ecc.strength) { in tegra_nand_attach_chip()
953 chip->base.eccreq.strength); in tegra_nand_attach_chip()
957 chip->ecc.strength = ret; in tegra_nand_attach_chip()
965 bits_per_step = BITS_PER_STEP_RS * chip->ecc.strength; in tegra_nand_attach_chip()
969 switch (chip->ecc.strength) { in tegra_nand_attach_chip()
981 chip->ecc.strength); in tegra_nand_attach_chip()
986 bits_per_step = BITS_PER_STEP_BCH * chip->ecc.strength; in tegra_nand_attach_chip()
989 switch (chip->ecc.strength) { in tegra_nand_attach_chip()
1004 chip->ecc.strength); in tegra_nand_attach_chip()
1015 chip->ecc.strength); in tegra_nand_attach_chip()