Lines Matching defs:mtd
17 #include <linux/mtd/mtd.h>
18 #include <linux/mtd/map.h>
19 #include <linux/mtd/cfi.h>
20 #include <linux/mtd/flashchip.h>
47 struct mtd_info *mtd;
93 /* Free all of the mtd devices */
98 mtd_device_unregister(map->mtd);
99 map_destroy(map->mtd);
252 map->mtd = do_map_probe(*probe_type, &map->map);
253 if (map->mtd)
261 if (map->mtd->size > map->map.size) {
264 (unsigned long long)map->mtd->size, map->map.size);
265 map->mtd->size = map->map.size;
275 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;