Lines Matching defs:mtd
13 #include <linux/mtd/blktrans.h>
14 #include <linux/mtd/mtd.h>
199 if (!dev->mtd)
208 ret = __get_mtd_device(dev->mtd);
239 if (dev->mtd) {
242 __put_mtd_device(dev->mtd);
256 if (!dev->mtd)
389 ret = device_add_disk(&new->mtd->dev, gd, NULL);
436 then put mtd device, and don't touch it again */
441 __put_mtd_device(old->mtd);
444 old->mtd = NULL;
451 static void blktrans_notify_remove(struct mtd_info *mtd)
458 if (dev->mtd == mtd)
462 static void blktrans_notify_add(struct mtd_info *mtd)
466 if (mtd->type == MTD_ABSENT || mtd->type == MTD_UBIVOLUME)
470 tr->add_mtd(tr, mtd);
480 struct mtd_info *mtd;
505 mtd_for_each_device(mtd)
506 if (mtd->type != MTD_ABSENT && mtd->type != MTD_UBIVOLUME)
507 tr->add_mtd(tr, mtd);