Lines Matching defs:mtd
14 #include <linux/mtd/mtd.h>
15 #include <linux/mtd/map.h>
16 #include <linux/mtd/cfi.h>
17 #include <linux/mtd/flashchip.h>
48 struct mtd_info *mtd;
69 /* Free all of the mtd devices */
73 mtd_device_unregister(map->mtd);
74 map_destroy(map->mtd);
251 map->mtd = do_map_probe(*probe_type, &map->map);
252 if (map->mtd)
260 if (map->mtd->size > map->map.size) {
263 (unsigned long long)map->mtd->size, map->map.size);
264 map->mtd->size = map->map.size;
274 map->rsrc.end = map->map.phys + map->mtd->size - 1;
291 /* Now that the mtd devices is complete claim and export it */
292 map->mtd->owner = THIS_MODULE;
293 if (mtd_device_register(map->mtd, NULL, 0)) {
294 map_destroy(map->mtd);
295 map->mtd = NULL;
301 map_top += map->mtd->size;