Lines Matching refs:mtd_info
65 static inline struct r852_device *r852_get_dev(struct mtd_info *mtd)
232 void r852_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len)
264 void r852_read_buf(struct mtd_info *mtd, uint8_t *buf, int len)
301 static uint8_t r852_read_byte(struct mtd_info *mtd)
316 int r852_verify_buf(struct mtd_info *mtd, const uint8_t *buf, int len)
336 void r852_cmdctl(struct mtd_info *mtd, int dat, unsigned int ctrl)
381 int r852_wait(struct mtd_info *mtd, struct nand_chip *chip)
410 int r852_ready(struct mtd_info *mtd)
421 void r852_ecc_hwctl(struct mtd_info *mtd, int mode)
453 int r852_ecc_calculate(struct mtd_info *mtd, const uint8_t *dat,
485 int r852_ecc_correct(struct mtd_info *mtd, uint8_t *dat,
541 static int r852_read_oob(struct mtd_info *mtd, struct nand_chip *chip,
616 struct mtd_info *mtd = container_of(sys_dev, struct mtd_info, dev);
659 dev->mtd = kzalloc(sizeof(struct mtd_info), GFP_KERNEL);