Lines Matching refs:mymtd
23 static struct mtd_info *mymtd; variable
131 mymtd = 0; in init_physmap()
133 for(; !mymtd && *type; type++) { in init_physmap()
134 mymtd = do_map_probe(*type, &physmap_map); in init_physmap()
136 if (mymtd) { in init_physmap()
137 mymtd->module = THIS_MODULE; in init_physmap()
139 add_mtd_device(mymtd); in init_physmap()
142 mtd_parts_nb = parse_cmdline_partitions(mymtd, &mtd_parts, in init_physmap()
148 add_mtd_partitions (mymtd, mtd_parts, mtd_parts_nb); in init_physmap()
155 add_mtd_partitions (mymtd, physmap_partitions, NUM_PARTITIONS); in init_physmap()
169 if (mymtd) { in cleanup_physmap()
170 del_mtd_device(mymtd); in cleanup_physmap()
171 map_destroy(mymtd); in cleanup_physmap()