• Home
  • Raw
  • Download

Lines Matching refs:mtd_info

25 struct mtd_info;
27 extern int nand_scan (struct mtd_info *mtd, int max_chips);
30 extern int nand_scan_ident(struct mtd_info *mtd, int max_chips);
31 extern int nand_scan_tail(struct mtd_info *mtd);
34 extern void nand_release (struct mtd_info *mtd);
37 extern void nand_wait_ready(struct mtd_info *mtd);
265 void (*hwctl)(struct mtd_info *mtd, int mode);
266 int (*calculate)(struct mtd_info *mtd,
269 int (*correct)(struct mtd_info *mtd, uint8_t *dat,
272 int (*read_page_raw)(struct mtd_info *mtd,
275 void (*write_page_raw)(struct mtd_info *mtd,
278 int (*read_page)(struct mtd_info *mtd,
281 int (*read_subpage)(struct mtd_info *mtd,
285 void (*write_page)(struct mtd_info *mtd,
288 int (*read_oob)(struct mtd_info *mtd,
292 int (*write_oob)(struct mtd_info *mtd,
370 uint8_t (*read_byte)(struct mtd_info *mtd);
371 u16 (*read_word)(struct mtd_info *mtd);
372 void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, int len);
373 void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int len);
374 int (*verify_buf)(struct mtd_info *mtd, const uint8_t *buf, int len);
375 void (*select_chip)(struct mtd_info *mtd, int chip);
376 int (*block_bad)(struct mtd_info *mtd, loff_t ofs, int getchip);
377 int (*block_markbad)(struct mtd_info *mtd, loff_t ofs);
378 void (*cmd_ctrl)(struct mtd_info *mtd, int dat,
380 int (*dev_ready)(struct mtd_info *mtd);
381 void (*cmdfunc)(struct mtd_info *mtd, unsigned command, int column, int page_addr);
382 int (*waitfunc)(struct mtd_info *mtd, struct nand_chip *this);
383 void (*erase_cmd)(struct mtd_info *mtd, int page);
384 int (*scan_bbt)(struct mtd_info *mtd);
385 int (*errstat)(struct mtd_info *mtd, struct nand_chip *this, int state, int status, int page);
386 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip,
541 extern int nand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd);
542 extern int nand_update_bbt(struct mtd_info *mtd, loff_t offs);
543 extern int nand_default_bbt(struct mtd_info *mtd);
544 extern int nand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt);
545 extern int nand_erase_nand(struct mtd_info *mtd, struct erase_info *instr,
547 extern int nand_do_read(struct mtd_info *mtd, loff_t from, size_t len,
592 void (*hwcontrol)(struct mtd_info *mtd, int cmd);
593 int (*dev_ready)(struct mtd_info *mtd);
594 void (*select_chip)(struct mtd_info *mtd, int chip);
595 void (*cmd_ctrl)(struct mtd_info *mtd, int dat,
612 struct platform_nand_chip *get_platform_nandchip(struct mtd_info *mtd) in get_platform_nandchip()