Lines Matching defs:mtd
79 struct mtd_info *mtd; member
225 static int docg4_ooblayout_ecc(struct mtd_info *mtd, int section, in docg4_ooblayout_ecc()
237 static int docg4_ooblayout_free(struct mtd_info *mtd, int section, in docg4_ooblayout_free()
264 static void docg4_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in docg4_read_buf()
275 static void docg4_write_buf16(struct mtd_info *mtd, const uint8_t *buf, int len) in docg4_write_buf16()
319 static int docg4_wait(struct mtd_info *mtd, struct nand_chip *nand) in docg4_wait()
337 static void docg4_select_chip(struct mtd_info *mtd, int chip) in docg4_select_chip()
358 static void reset(struct mtd_info *mtd) in reset()
393 static int correct_data(struct mtd_info *mtd, uint8_t *buf, int page) in correct_data()
487 static uint8_t docg4_read_byte(struct mtd_info *mtd) in docg4_read_byte()
563 static int pageprog(struct mtd_info *mtd) in pageprog()
603 static void sequence_reset(struct mtd_info *mtd) in sequence_reset()
620 static void read_page_prologue(struct mtd_info *mtd, uint32_t docg4_addr) in read_page_prologue()
647 static void write_page_prologue(struct mtd_info *mtd, uint32_t docg4_addr) in write_page_prologue()
711 static void docg4_command(struct mtd_info *mtd, unsigned command, int column, in docg4_command()
778 static int read_page(struct mtd_info *mtd, struct nand_chip *nand, in read_page()
846 static int docg4_read_page_raw(struct mtd_info *mtd, struct nand_chip *nand, in docg4_read_page_raw()
852 static int docg4_read_page(struct mtd_info *mtd, struct nand_chip *nand, in docg4_read_page()
858 static int docg4_read_oob(struct mtd_info *mtd, struct nand_chip *nand, in docg4_read_oob()
897 static int docg4_erase_block(struct mtd_info *mtd, int page) in docg4_erase_block()
945 static int write_page(struct mtd_info *mtd, struct nand_chip *nand, in write_page()
1001 static int docg4_write_page_raw(struct mtd_info *mtd, struct nand_chip *nand, in docg4_write_page_raw()
1007 static int docg4_write_page(struct mtd_info *mtd, struct nand_chip *nand, in docg4_write_page()
1013 static int docg4_write_oob(struct mtd_info *mtd, struct nand_chip *nand, in docg4_write_oob()
1034 static int __init read_factory_bbt(struct mtd_info *mtd) in read_factory_bbt()
1101 static int docg4_block_markbad(struct mtd_info *mtd, loff_t ofs) in docg4_block_markbad()
1146 static int docg4_block_neverbad(struct mtd_info *mtd, loff_t ofs) in docg4_block_neverbad()
1212 static void __init init_mtd_structs(struct mtd_info *mtd) in init_mtd_structs()
1283 static int __init read_id_reg(struct mtd_info *mtd) in read_id_reg()
1309 struct mtd_info *mtd; in probe_docg4() local