Home
last modified time | relevance | path

Searched refs:engine_conf (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/mtd/nand/
A Decc-sw-bch.c86 bch_free(engine_conf->bch); in nand_ecc_sw_bch_cleanup()
87 kfree(engine_conf->errloc); in nand_ecc_sw_bch_cleanup()
121 if (!engine_conf->bch) in nand_ecc_sw_bch_init()
125 engine_conf->errloc = kmalloc_array(t, sizeof(*engine_conf->errloc), in nand_ecc_sw_bch_init()
127 if (!engine_conf->eccmask || !engine_conf->errloc) { in nand_ecc_sw_bch_init()
230 engine_conf = kzalloc(sizeof(*engine_conf), GFP_KERNEL); in nand_ecc_sw_bch_init_ctx()
231 if (!engine_conf) in nand_ecc_sw_bch_init_ctx()
241 if (!engine_conf->calc_buf || !engine_conf->code_buf) { in nand_ecc_sw_bch_init_ctx()
271 kfree(engine_conf); in nand_ecc_sw_bch_init_ctx()
281 if (engine_conf) { in nand_ecc_sw_bch_cleanup_ctx()
[all …]
A Decc-sw-hamming.c367 bool sm_order = engine_conf ? engine_conf->sm_order : false; in nand_ecc_sw_hamming_calculate()
460 bool sm_order = engine_conf ? engine_conf->sm_order : false; in nand_ecc_sw_hamming_correct()
499 engine_conf = kzalloc(sizeof(*engine_conf), GFP_KERNEL); in nand_ecc_sw_hamming_init_ctx()
500 if (!engine_conf) in nand_ecc_sw_hamming_init_ctx()
507 engine_conf->code_size = 3; in nand_ecc_sw_hamming_init_ctx()
510 if (!engine_conf->calc_buf || !engine_conf->code_buf) { in nand_ecc_sw_hamming_init_ctx()
523 kfree(engine_conf->calc_buf); in nand_ecc_sw_hamming_init_ctx()
524 kfree(engine_conf->code_buf); in nand_ecc_sw_hamming_init_ctx()
526 kfree(engine_conf); in nand_ecc_sw_hamming_init_ctx()
536 if (engine_conf) { in nand_ecc_sw_hamming_cleanup_ctx()
[all …]
/linux/drivers/mtd/nand/spi/
A Dcore.c260 struct spinand_ondie_ecc_conf *engine_conf; in spinand_ondie_ecc_init_ctx() local
266 engine_conf = kzalloc(sizeof(*engine_conf), GFP_KERNEL); in spinand_ondie_ecc_init_ctx()
267 if (!engine_conf) in spinand_ondie_ecc_init_ctx()
270 nand->ecc.ctx.priv = engine_conf; in spinand_ondie_ecc_init_ctx()
300 struct spinand_ondie_ecc_conf *engine_conf = nand->ecc.ctx.priv; in spinand_ondie_ecc_finish_io_req() local
313 ret = spinand_check_ecc_status(spinand, engine_conf->status); in spinand_ondie_ecc_finish_io_req()
335 struct spinand_ondie_ecc_conf *engine_conf = nand->ecc.ctx.priv; in spinand_ondie_ecc_save_status() local
338 engine_conf) in spinand_ondie_ecc_save_status()
339 engine_conf->status = status; in spinand_ondie_ecc_save_status()
/linux/drivers/mtd/nand/raw/
A Dnand_base.c5443 struct nand_ecc_sw_hamming_conf *engine_conf; in rawnand_sw_hamming_init() local
5456 engine_conf = base->ecc.ctx.priv; in rawnand_sw_hamming_init()
5459 engine_conf->sm_order = true; in rawnand_sw_hamming_init()

Completed in 18 milliseconds