Lines Matching refs:mtd
22 #include <linux/mtd/mtd.h>
23 #include <linux/mtd/rawnand.h>
24 #include <linux/mtd/partitions.h>
25 #include <linux/mtd/nand-gpio.h>
43 static inline struct gpiomtd *gpio_nand_getpriv(struct mtd_info *mtd)
45 return container_of(mtd_to_nand(mtd), struct gpiomtd, nand_chip);
289 struct mtd_info *mtd;
355 mtd = nand_to_mtd(chip);
356 mtd->dev.parent = dev;
376 gpiomtd->plat.adjust_parts(&gpiomtd->plat, mtd->size);
378 ret = mtd_device_register(mtd, gpiomtd->plat.parts,