Lines Matching refs:ecc_strength
137 static inline uint32_t mx28_nand_ecc_size_in_bits(uint32_t ecc_strength) in mx28_nand_ecc_size_in_bits() argument
139 return ecc_strength * MXS_NAND_BITS_PER_ECC_LEVEL; in mx28_nand_ecc_size_in_bits()
145 int ecc_strength; in mx28_nand_get_ecc_strength() local
155 ecc_strength = ((page_oob_size - MXS_NAND_METADATA_SIZE) * 8) in mx28_nand_get_ecc_strength()
159 return round_down(ecc_strength, 2); in mx28_nand_get_ecc_strength()
163 uint32_t ecc_strength) in mx28_nand_get_mark_offset() argument
173 chunk_ecc_size_in_bits = mx28_nand_ecc_size_in_bits(ecc_strength); in mx28_nand_get_mark_offset()
213 uint32_t ecc_strength; in mx28_nand_mark_byte_offset() local
214 ecc_strength = mx28_nand_get_ecc_strength(nand_writesize, nand_oobsize); in mx28_nand_mark_byte_offset()
215 return mx28_nand_get_mark_offset(nand_writesize, ecc_strength) >> 3; in mx28_nand_mark_byte_offset()
220 uint32_t ecc_strength; in mx28_nand_mark_bit_offset() local
221 ecc_strength = mx28_nand_get_ecc_strength(nand_writesize, nand_oobsize); in mx28_nand_mark_bit_offset()
222 return mx28_nand_get_mark_offset(nand_writesize, ecc_strength) & 0x7; in mx28_nand_mark_bit_offset()