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);
254 map->mtd = do_map_probe(*probe_type, &map->map);
255 if (map->mtd)
263 if (map->mtd->size > map->map.size) {
266 (unsigned long long)map->mtd->size, map->map.size);
267 map->mtd->size = map->map.size;
277 map->rsrc.end = map->map.phys + map->mtd->size - 1;
293 /* Now that the mtd devices is complete claim and export it */
294 map->mtd->owner = THIS_MODULE;
295 if (mtd_device_register(map->mtd, NULL, 0)) {
296 map_destroy(map->mtd);
297 map->mtd = NULL;
303 map_top += map->mtd->size;