Lines Matching refs:eng
114 static struct mxic_ecc_engine *ext_ecc_eng_to_mxic(struct nand_ecc_engine *eng)
116 return container_of(eng, struct mxic_ecc_engine, external_engine);
119 static struct mxic_ecc_engine *pip_ecc_eng_to_mxic(struct nand_ecc_engine *eng)
121 return container_of(eng, struct mxic_ecc_engine, pipelined_engine);
126 struct nand_ecc_engine *eng = nand->ecc.engine;
128 if (eng->integration == NAND_ECC_ENGINE_INTEGRATION_EXTERNAL)
129 return ext_ecc_eng_to_mxic(eng);
131 return pip_ecc_eng_to_mxic(eng);
468 int mxic_ecc_process_data_pipelined(struct nand_ecc_engine *eng,
471 struct mxic_ecc_engine *mxic = pip_ecc_eng_to_mxic(eng);
764 void mxic_ecc_put_pipelined_engine(struct nand_ecc_engine *eng)
766 struct mxic_ecc_engine *mxic = pip_ecc_eng_to_mxic(eng);