Lines Matching refs:mtd
5 * Derived from drivers/mtd/nand/toto.c (removed in v2.6.28)
21 #include <linux/mtd/mtd.h>
22 #include <linux/mtd/nand-gpio.h>
23 #include <linux/mtd/rawnand.h>
24 #include <linux/mtd/partitions.h>
243 struct mtd_info *mtd;
260 mtd = nand_to_mtd(this);
261 mtd->dev.parent = &pdev->dev;
385 err = mtd_device_register(mtd, partitions, num_partitions);
403 struct mtd_info *mtd = nand_to_mtd(&priv->nand_chip);
410 ret = mtd_device_unregister(mtd);
412 nand_cleanup(mtd_to_nand(mtd));