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>
43 struct mtd_info *mtd;
81 /* Free all of the mtd devices */
86 mtd_device_unregister(map->mtd);
87 map_destroy(map->mtd);
224 map->mtd = do_map_probe(*probe_type, &map->map);
225 if (map->mtd)
233 if (map->mtd->size > map->map.size) {
236 (unsigned long long)map->mtd->size, map->map.size);
237 map->mtd->size = map->map.size;
247 map->rsrc.end = map->map.phys + map->mtd->size - 1;
264 /* Now that the mtd devices is complete claim and export it */
265 map->mtd->owner = THIS_MODULE;
266 if (mtd_device_register(map->mtd, NULL, 0)) {
267 map_destroy(map->mtd);
268 map->mtd = NULL;
274 map_top += map->mtd->size;