Lines Matching defs:engine_conf

365 	struct nand_ecc_sw_hamming_conf *engine_conf = nand->ecc.ctx.priv;
367 bool sm_order = engine_conf ? engine_conf->sm_order : false;
458 struct nand_ecc_sw_hamming_conf *engine_conf = nand->ecc.ctx.priv;
460 bool sm_order = engine_conf ? engine_conf->sm_order : false;
470 struct nand_ecc_sw_hamming_conf *engine_conf;
499 engine_conf = kzalloc(sizeof(*engine_conf), GFP_KERNEL);
500 if (!engine_conf)
503 ret = nand_ecc_init_req_tweaking(&engine_conf->req_ctx, nand);
507 engine_conf->code_size = 3;
508 engine_conf->calc_buf = kzalloc(mtd->oobsize, GFP_KERNEL);
509 engine_conf->code_buf = kzalloc(mtd->oobsize, GFP_KERNEL);
510 if (!engine_conf->calc_buf || !engine_conf->code_buf) {
515 nand->ecc.ctx.priv = engine_conf;
517 nand->ecc.ctx.total = nand->ecc.ctx.nsteps * engine_conf->code_size;
522 nand_ecc_cleanup_req_tweaking(&engine_conf->req_ctx);
523 kfree(engine_conf->calc_buf);
524 kfree(engine_conf->code_buf);
526 kfree(engine_conf);
534 struct nand_ecc_sw_hamming_conf *engine_conf = nand->ecc.ctx.priv;
536 if (engine_conf) {
537 nand_ecc_cleanup_req_tweaking(&engine_conf->req_ctx);
538 kfree(engine_conf->calc_buf);
539 kfree(engine_conf->code_buf);
540 kfree(engine_conf);
548 struct nand_ecc_sw_hamming_conf *engine_conf = nand->ecc.ctx.priv;
551 int eccbytes = engine_conf->code_size;
554 u8 *ecccalc = engine_conf->calc_buf;
566 nand_ecc_tweak_req(&engine_conf->req_ctx, req);
585 struct nand_ecc_sw_hamming_conf *engine_conf = nand->ecc.ctx.priv;
589 int eccbytes = engine_conf->code_size;
591 u8 *ecccalc = engine_conf->calc_buf;
592 u8 *ecccode = engine_conf->code_buf;
607 nand_ecc_restore_req(&engine_conf->req_ctx, req);
636 nand_ecc_restore_req(&engine_conf->req_ctx, req);