Home
last modified time | relevance | path

Searched refs:sm_order (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/mtd/tests/
H A Dmtd_nandecctest.c122 bool sm_order = IS_ENABLED(CONFIG_MTD_NAND_ECC_SW_HAMMING_SMC); in no_bit_error_verify() local
126 ecc_sw_hamming_calculate(error_data, size, calc_ecc, sm_order); in no_bit_error_verify()
128 sm_order); in no_bit_error_verify()
152 bool sm_order = IS_ENABLED(CONFIG_MTD_NAND_ECC_SW_HAMMING_SMC); in single_bit_error_correct() local
156 ecc_sw_hamming_calculate(error_data, size, calc_ecc, sm_order); in single_bit_error_correct()
158 sm_order); in single_bit_error_correct()
189 bool sm_order = IS_ENABLED(CONFIG_MTD_NAND_ECC_SW_HAMMING_SMC); in double_bit_error_detect() local
193 ecc_sw_hamming_calculate(error_data, size, calc_ecc, sm_order); in double_bit_error_detect()
195 sm_order); in double_bit_error_detect()
251 bool sm_order = IS_ENABLED(CONFIG_MTD_NAND_ECC_SW_HAMMING_SMC); in nand_ecc_test_run() local
[all …]
/linux/include/linux/mtd/
H A Dnand-ecc-sw-hamming.h29 unsigned int sm_order; member
37 unsigned char *code, bool sm_order);
43 bool sm_order);
59 unsigned char *code, bool sm_order) in ecc_sw_hamming_calculate() argument
74 unsigned int step_size, bool sm_order) in ecc_sw_hamming_correct() argument
/linux/drivers/mtd/nand/
H A Decc-sw-hamming.c116 unsigned char *code, bool sm_order) in ecc_sw_hamming_calculate() argument
312 if (sm_order) { in ecc_sw_hamming_calculate()
367 bool sm_order = engine_conf ? engine_conf->sm_order : false; in nand_ecc_sw_hamming_calculate() local
369 return ecc_sw_hamming_calculate(buf, step_size, code, sm_order); in nand_ecc_sw_hamming_calculate()
375 bool sm_order) in ecc_sw_hamming_correct() argument
386 if (sm_order) { in ecc_sw_hamming_correct()
460 bool sm_order = engine_conf ? engine_conf->sm_order : false; in nand_ecc_sw_hamming_correct() local
463 sm_order); in nand_ecc_sw_hamming_correct()
/linux/drivers/mtd/
H A Dsm_ftl.c219 bool sm_order = IS_ENABLED(CONFIG_MTD_NAND_ECC_SW_HAMMING_SMC); in sm_correct_sector() local
222 ecc_sw_hamming_calculate(buffer, SM_SMALL_PAGE, ecc, sm_order); in sm_correct_sector()
224 sm_order) < 0) in sm_correct_sector()
229 ecc_sw_hamming_calculate(buffer, SM_SMALL_PAGE, ecc, sm_order); in sm_correct_sector()
231 sm_order) < 0) in sm_correct_sector()
373 bool sm_order = IS_ENABLED(CONFIG_MTD_NAND_ECC_SW_HAMMING_SMC); in sm_write_block() local
402 sm_order); in sm_write_block()
406 sm_order); in sm_write_block()
/linux/drivers/mtd/nand/raw/
H A Dfsmc_nand.c458 bool sm_order = chip->ecc.options & NAND_ECC_SOFT_HAMMING_SM_ORDER; in fsmc_correct_ecc1() local
461 chip->ecc.size, sm_order); in fsmc_correct_ecc1()
H A Dnand_base.c5780 engine_conf->sm_order = true; in rawnand_sw_hamming_init()