Searched refs:ecc_matrix (Results 1 – 1 of 1) sorted by relevance
170 static const struct arasan_ecc_matrix ecc_matrix[] = { variable1138 for (i = 0; i < ARRAY_SIZE(ecc_matrix); i++) { in arasan_nand_ecc_init()1139 if ((ecc_matrix[i].pagesize == mtd->writesize) && in arasan_nand_ecc_init()1140 (ecc_matrix[i].ecc_codeword_size >= in arasan_nand_ecc_init()1142 if (ecc_matrix[i].eccbits >= in arasan_nand_ecc_init()1155 ecc_matrix[found].eccsize; in arasan_nand_ecc_init()1158 (ecc_matrix[found].eccsize << ARASAN_NAND_ECC_SIZE_SHIFT) | in arasan_nand_ecc_init()1159 (ecc_matrix[found].bch << ARASAN_NAND_ECC_BCH_SHIFT); in arasan_nand_ecc_init()1162 if (ecc_matrix[found].bch) { in arasan_nand_ecc_init()1165 regval |= (ecc_matrix[found].bchval << in arasan_nand_ecc_init()[all …]