Lines Matching defs:mtd
20 #include <linux/mtd/rawnand.h>
21 #include <linux/mtd/nand_ecc.h>
22 #include <linux/mtd/partitions.h>
23 #include <linux/mtd/ndfc.h>
25 #include <linux/mtd/mtd.h>
137 struct mtd_info *mtd = nand_to_mtd(chip);
158 mtd->dev.parent = &ndfc->ofdev->dev;
165 mtd->name = kasprintf(GFP_KERNEL, "%s.%pOFn", dev_name(&ndfc->ofdev->dev),
167 if (!mtd->name) {
176 ret = mtd_device_register(mtd, NULL, 0);
181 kfree(mtd->name);
248 struct mtd_info *mtd = nand_to_mtd(chip);
251 ret = mtd_device_unregister(mtd);
254 kfree(mtd->name);