Lines Matching defs:mtd
13 #include <linux/mtd/mtd.h>
400 * @mtd: MTD instance attached to the NAND device
415 * struct_nand_device->mtd except for the ->_read/write() hooks.
418 struct mtd_info mtd;
446 * @mtd: MTD instance
448 * Return: the NAND device embedding @mtd.
450 static inline struct nand_device *mtd_to_nanddev(struct mtd_info *mtd)
452 return container_of(mtd, struct nand_device, mtd);
463 return &nand->mtd;
694 return mtd_device_register(&nand->mtd, NULL, 0);
709 return mtd_device_unregister(&nand->mtd);
722 mtd_set_of_node(&nand->mtd, np);
733 return mtd_get_of_node(&nand->mtd);
923 struct mtd_info *mtd = nanddev_to_mtd(nand);
929 iter->oobbytes_per_page = mtd_oobavail(mtd, req);
1062 int nanddev_mtd_erase(struct mtd_info *mtd, struct erase_info *einfo);
1063 int nanddev_mtd_max_bad_blocks(struct mtd_info *mtd, loff_t offs, size_t len);