Lines Matching defs:mtd
12 #include <linux/mtd/mtd.h>
13 #include <linux/mtd/rawnand.h>
14 #include <linux/mtd/partitions.h>
15 #include <linux/mtd/sharpsl.h>
27 static inline struct sharpsl_nand *mtd_to_sharpsl(struct mtd_info *mtd)
29 return container_of(mtd_to_nand(mtd), struct sharpsl_nand, chip);
123 struct mtd_info *mtd;
162 mtd = nand_to_mtd(this);
163 mtd->dev.parent = &pdev->dev;
164 mtd_set_ooblayout(mtd, data->ecc_layout);
189 mtd->name = "sharpsl-nand";
191 err = mtd_device_parse_register(mtd, data->part_parsers, NULL,