Lines Matching refs:mtd_info

27 struct mtd_info;
30 extern int nand_scan(struct mtd_info *mtd, int max_chips);
35 extern int nand_scan_ident(struct mtd_info *mtd, int max_chips,
37 extern int nand_scan_tail(struct mtd_info *mtd);
40 extern void nand_release(struct mtd_info *mtd);
43 extern void nand_wait_ready(struct mtd_info *mtd);
46 extern int nand_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
49 extern int nand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
357 void (*hwctl)(struct mtd_info *mtd, int mode);
358 int (*calculate)(struct mtd_info *mtd, const uint8_t *dat,
360 int (*correct)(struct mtd_info *mtd, uint8_t *dat, uint8_t *read_ecc,
362 int (*read_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
364 void (*write_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
366 int (*read_page)(struct mtd_info *mtd, struct nand_chip *chip,
368 int (*read_subpage)(struct mtd_info *mtd, struct nand_chip *chip,
370 void (*write_page)(struct mtd_info *mtd, struct nand_chip *chip,
372 int (*write_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip,
374 int (*read_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip,
376 int (*read_oob)(struct mtd_info *mtd, struct nand_chip *chip, int page,
378 int (*write_oob)(struct mtd_info *mtd, struct nand_chip *chip,
485 uint8_t (*read_byte)(struct mtd_info *mtd);
486 u16 (*read_word)(struct mtd_info *mtd);
487 void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, int len);
488 void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int len);
489 int (*verify_buf)(struct mtd_info *mtd, const uint8_t *buf, int len);
490 void (*select_chip)(struct mtd_info *mtd, int chip);
491 int (*block_bad)(struct mtd_info *mtd, loff_t ofs, int getchip);
492 int (*block_markbad)(struct mtd_info *mtd, loff_t ofs);
493 void (*cmd_ctrl)(struct mtd_info *mtd, int dat, unsigned int ctrl);
494 int (*init_size)(struct mtd_info *mtd, struct nand_chip *this,
496 int (*dev_ready)(struct mtd_info *mtd);
497 void (*cmdfunc)(struct mtd_info *mtd, unsigned command, int column,
499 int(*waitfunc)(struct mtd_info *mtd, struct nand_chip *this);
500 void (*erase_cmd)(struct mtd_info *mtd, int page);
501 int (*scan_bbt)(struct mtd_info *mtd);
502 int (*errstat)(struct mtd_info *mtd, struct nand_chip *this, int state,
504 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip,
594 extern int nand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd);
595 extern int nand_update_bbt(struct mtd_info *mtd, loff_t offs);
596 extern int nand_default_bbt(struct mtd_info *mtd);
597 extern int nand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt);
598 extern int nand_erase_nand(struct mtd_info *mtd, struct erase_info *instr,
600 extern int nand_do_read(struct mtd_info *mtd, loff_t from, size_t len,
648 void (*hwcontrol)(struct mtd_info *mtd, int cmd);
649 int (*dev_ready)(struct mtd_info *mtd);
650 void (*select_chip)(struct mtd_info *mtd, int chip);
651 void (*cmd_ctrl)(struct mtd_info *mtd, int dat, unsigned int ctrl);
652 void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, int len);
653 void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int len);
669 struct platform_nand_chip *get_platform_nandchip(struct mtd_info *mtd) in get_platform_nandchip()