Lines Matching refs:mtd
29 extern int nand_scan (struct mtd_info *mtd, int max_chips);
31 extern void nand_release (struct mtd_info *mtd);
245 void (*hwctl)(struct mtd_info *mtd, int mode);
246 int (*calculate)(struct mtd_info *mtd,
249 int (*correct)(struct mtd_info *mtd, uint8_t *dat,
252 int (*read_page)(struct mtd_info *mtd,
255 void (*write_page)(struct mtd_info *mtd,
258 int (*read_oob)(struct mtd_info *mtd,
262 int (*write_oob)(struct mtd_info *mtd,
346 uint8_t (*read_byte)(struct mtd_info *mtd);
347 u16 (*read_word)(struct mtd_info *mtd);
348 void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, int len);
349 void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int len);
350 int (*verify_buf)(struct mtd_info *mtd, const uint8_t *buf, int len);
351 void (*select_chip)(struct mtd_info *mtd, int chip);
352 int (*block_bad)(struct mtd_info *mtd, loff_t ofs, int getchip);
353 int (*block_markbad)(struct mtd_info *mtd, loff_t ofs);
354 void (*cmd_ctrl)(struct mtd_info *mtd, int dat,
356 int (*dev_ready)(struct mtd_info *mtd);
357 void (*cmdfunc)(struct mtd_info *mtd, unsigned command, int column, int page_addr);
358 int (*waitfunc)(struct mtd_info *mtd, struct nand_chip *this);
359 void (*erase_cmd)(struct mtd_info *mtd, int page);
360 int (*scan_bbt)(struct mtd_info *mtd);
361 int (*errstat)(struct mtd_info *mtd, struct nand_chip *this, int state, int status, int page);
511 extern int nand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd);
512 extern int nand_update_bbt(struct mtd_info *mtd, loff_t offs);
513 extern int nand_default_bbt(struct mtd_info *mtd);
514 extern int nand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt);
515 extern int nand_erase_nand(struct mtd_info *mtd, struct erase_info *instr,
517 extern int nand_do_read(struct mtd_info *mtd, loff_t from, size_t len,
558 void (*hwcontrol)(struct mtd_info *mtd, int cmd);
559 int (*dev_ready)(struct mtd_info *mtd);
560 void (*select_chip)(struct mtd_info *mtd, int chip);
566 struct platform_nand_chip *get_platform_nandchip(struct mtd_info *mtd) in get_platform_nandchip() argument
568 struct nand_chip *chip = mtd->priv; in get_platform_nandchip()