Lines Matching defs:mtd
13 #include <linux/mtd/blktrans.h>
14 #include <linux/mtd/mtd.h>
221 if (!dev->mtd)
230 ret = __get_mtd_device(dev->mtd);
270 if (dev->mtd) {
273 __put_mtd_device(dev->mtd);
291 if (!dev->mtd)
312 if (!dev->mtd)
458 device_add_disk(&new->mtd->dev, gd, NULL);
500 then put mtd device, and don't touch it again */
505 __put_mtd_device(old->mtd);
508 old->mtd = NULL;
515 static void blktrans_notify_remove(struct mtd_info *mtd)
522 if (dev->mtd == mtd)
526 static void blktrans_notify_add(struct mtd_info *mtd)
530 if (mtd->type == MTD_ABSENT || mtd->type == MTD_UBIVOLUME)
534 tr->add_mtd(tr, mtd);
544 struct mtd_info *mtd;
572 mtd_for_each_device(mtd)
573 if (mtd->type != MTD_ABSENT && mtd->type != MTD_UBIVOLUME)
574 tr->add_mtd(tr, mtd);