Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/mtd/nand/
Decc-sw-bch.c26 struct nand_ecc_sw_bch_conf *engine_conf = nand->ecc.ctx.priv; in nand_ecc_sw_bch_calculate() local
29 memset(code, 0, engine_conf->code_size); in nand_ecc_sw_bch_calculate()
30 bch_encode(engine_conf->bch, buf, nand->ecc.ctx.conf.step_size, code); in nand_ecc_sw_bch_calculate()
33 for (i = 0; i < engine_conf->code_size; i++) in nand_ecc_sw_bch_calculate()
34 code[i] ^= engine_conf->eccmask[i]; in nand_ecc_sw_bch_calculate()
52 struct nand_ecc_sw_bch_conf *engine_conf = nand->ecc.ctx.priv; in nand_ecc_sw_bch_correct() local
54 unsigned int *errloc = engine_conf->errloc; in nand_ecc_sw_bch_correct()
57 count = bch_decode(engine_conf->bch, NULL, step_size, read_ecc, in nand_ecc_sw_bch_correct()
84 struct nand_ecc_sw_bch_conf *engine_conf = nand->ecc.ctx.priv; in nand_ecc_sw_bch_cleanup() local
86 bch_free(engine_conf->bch); in nand_ecc_sw_bch_cleanup()
[all …]
Decc-sw-hamming.c365 struct nand_ecc_sw_hamming_conf *engine_conf = nand->ecc.ctx.priv; in nand_ecc_sw_hamming_calculate() local
367 bool sm_order = engine_conf ? engine_conf->sm_order : false; in nand_ecc_sw_hamming_calculate()
458 struct nand_ecc_sw_hamming_conf *engine_conf = nand->ecc.ctx.priv; in nand_ecc_sw_hamming_correct() local
460 bool sm_order = engine_conf ? engine_conf->sm_order : false; in nand_ecc_sw_hamming_correct()
470 struct nand_ecc_sw_hamming_conf *engine_conf; in nand_ecc_sw_hamming_init_ctx() local
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()
503 ret = nand_ecc_init_req_tweaking(&engine_conf->req_ctx, nand); in nand_ecc_sw_hamming_init_ctx()
507 engine_conf->code_size = 3; in nand_ecc_sw_hamming_init_ctx()
508 engine_conf->calc_buf = kzalloc(mtd->oobsize, GFP_KERNEL); in nand_ecc_sw_hamming_init_ctx()
[all …]
/linux-6.1.9/drivers/mtd/nand/spi/
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-6.1.9/drivers/mtd/nand/raw/
Dnand_base.c5518 struct nand_ecc_sw_hamming_conf *engine_conf; in rawnand_sw_hamming_init() local
5531 engine_conf = base->ecc.ctx.priv; in rawnand_sw_hamming_init()
5534 engine_conf->sm_order = true; in rawnand_sw_hamming_init()