Lines Matching refs:mtd
10 #include <linux/mtd/mtd.h>
11 #include <linux/mtd/map.h>
12 #include <linux/mtd/cfi.h>
13 #include <linux/mtd/gen_probe.h>
23 struct mtd_info *mtd;
35 mtd = check_cmd_set(map, 1); /* First the primary cmdset */
36 if (!mtd)
37 mtd = check_cmd_set(map, 0); /* Then the secondary */
39 if (mtd) {
40 if (mtd->size > map->size) {
42 (unsigned long)mtd->size >> 10,
44 mtd->size = map->size;
46 return mtd;
219 struct mtd_info *mtd;
221 mtd = (*probe_function)(map, primary);
224 return mtd;