Lines Matching defs:nand
22 #include <linux/mtd/nand-qpic-common.h>
161 static struct qcom_nand_controller *nand_to_qcom_snand(struct nand_device *nand)
163 struct nand_ecc_engine *eng = nand->ecc.engine;
206 struct nand_device *nand = mtd_to_nanddev(mtd);
207 struct qcom_nand_controller *snandc = nand_to_qcom_snand(nand);
230 struct nand_device *nand = mtd_to_nanddev(mtd);
231 struct qcom_nand_controller *snandc = nand_to_qcom_snand(nand);
248 static int qcom_spi_ecc_init_ctx_pipelined(struct nand_device *nand)
250 struct qcom_nand_controller *snandc = nand_to_qcom_snand(nand);
251 struct nand_ecc_props *reqs = &nand->ecc.requirements;
252 struct nand_ecc_props *user = &nand->ecc.user_conf;
253 struct nand_ecc_props *conf = &nand->ecc.ctx.conf;
254 struct mtd_info *mtd = nanddev_to_mtd(nand);
314 nand->ecc.ctx.priv = ecc_cfg;
401 static void qcom_spi_ecc_cleanup_ctx_pipelined(struct nand_device *nand)
403 struct qpic_ecc *ecc_cfg = nand_to_ecc_ctx(nand);
408 static int qcom_spi_ecc_prepare_io_req_pipelined(struct nand_device *nand,
411 struct qcom_nand_controller *snandc = nand_to_qcom_snand(nand);
412 struct qpic_ecc *ecc_cfg = nand_to_ecc_ctx(nand);
431 static int qcom_spi_ecc_finish_io_req_pipelined(struct nand_device *nand,
434 struct qcom_nand_controller *snandc = nand_to_qcom_snand(nand);
435 struct mtd_info *mtd = nanddev_to_mtd(nand);