Lines Matching defs:mtd
164 struct mtd_info *mtd, in mxs_nand_calc_ecc_layout_by_info()
198 struct mtd_info *mtd) in mxs_nand_calc_ecc_layout()
265 static void mxs_nand_cmd_ctrl(struct mtd_info *mtd, int data, unsigned int ctrl) in mxs_nand_cmd_ctrl()
344 static int mxs_nand_device_ready(struct mtd_info *mtd) in mxs_nand_device_ready()
359 static void mxs_nand_select_chip(struct mtd_info *mtd, int chip) in mxs_nand_select_chip()
406 static void mxs_nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int length) in mxs_nand_read_buf()
489 static void mxs_nand_write_buf(struct mtd_info *mtd, const uint8_t *buf, in mxs_nand_write_buf()
543 static uint8_t mxs_nand_read_byte(struct mtd_info *mtd) in mxs_nand_read_byte()
553 static int mxs_nand_ecc_read_page(struct mtd_info *mtd, struct nand_chip *nand, in mxs_nand_ecc_read_page()
704 static int mxs_nand_ecc_write_page(struct mtd_info *mtd, in mxs_nand_ecc_write_page()
772 static int mxs_nand_hook_read_oob(struct mtd_info *mtd, loff_t from, in mxs_nand_hook_read_oob()
797 static int mxs_nand_hook_write_oob(struct mtd_info *mtd, loff_t to, in mxs_nand_hook_write_oob()
822 static int mxs_nand_hook_block_markbad(struct mtd_info *mtd, loff_t ofs) in mxs_nand_hook_block_markbad()
881 static int mxs_nand_ecc_read_oob(struct mtd_info *mtd, struct nand_chip *nand, in mxs_nand_ecc_read_oob()
916 static int mxs_nand_ecc_write_oob(struct mtd_info *mtd, struct nand_chip *nand, in mxs_nand_ecc_write_oob()
961 static int mxs_nand_block_bad(struct mtd_info *mtd, loff_t ofs) in mxs_nand_block_bad()
966 static int mxs_nand_set_geometry(struct mtd_info *mtd, struct bch_geometry *geo) in mxs_nand_set_geometry()
997 int mxs_nand_setup_ecc(struct mtd_info *mtd) in mxs_nand_setup_ecc()
1197 struct mtd_info *mtd; in mxs_nand_init_ctrl() local