Lines Matching refs:ecc_strength
138 static inline uint32_t mx28_nand_ecc_size_in_bits(uint32_t ecc_strength) in mx28_nand_ecc_size_in_bits() argument
140 return ecc_strength * MXS_NAND_BITS_PER_ECC_LEVEL; in mx28_nand_ecc_size_in_bits()
146 int ecc_strength; in mx28_nand_get_ecc_strength() local
156 ecc_strength = ((page_oob_size - MXS_NAND_METADATA_SIZE) * 8) in mx28_nand_get_ecc_strength()
160 return round_down(ecc_strength, 2); in mx28_nand_get_ecc_strength()
164 uint32_t ecc_strength) in mx28_nand_get_mark_offset() argument
174 chunk_ecc_size_in_bits = mx28_nand_ecc_size_in_bits(ecc_strength); in mx28_nand_get_mark_offset()
214 uint32_t ecc_strength; in mx28_nand_mark_byte_offset() local
215 ecc_strength = mx28_nand_get_ecc_strength(nand_writesize, nand_oobsize); in mx28_nand_mark_byte_offset()
216 return mx28_nand_get_mark_offset(nand_writesize, ecc_strength) >> 3; in mx28_nand_mark_byte_offset()
221 uint32_t ecc_strength; in mx28_nand_mark_bit_offset() local
222 ecc_strength = mx28_nand_get_ecc_strength(nand_writesize, nand_oobsize); in mx28_nand_mark_bit_offset()
223 return mx28_nand_get_mark_offset(nand_writesize, ecc_strength) & 0x7; in mx28_nand_mark_bit_offset()