Lines Matching refs:mymtd
44 static struct mtd_info *mymtd; variable
120 mymtd = do_map_probe("cfi_probe", &epxa_map); in epxa_mtd_init()
121 if (!mymtd) { in epxa_mtd_init()
126 mymtd->module = THIS_MODULE; in epxa_mtd_init()
129 if(mymtd->unlock){ in epxa_mtd_init()
130 for (i=0; i<mymtd->numeraseregions;i++){ in epxa_mtd_init()
132 for(j=0;j<mymtd->eraseregions[i].numblocks;j++){ in epxa_mtd_init()
133 …mymtd->unlock(mymtd,mymtd->eraseregions[i].offset + j * mymtd->eraseregions[i].erasesize,mymtd->er… in epxa_mtd_init()
139 nr_parts = parse_redboot_partitions(mymtd, &parts); in epxa_mtd_init()
142 add_mtd_partitions(mymtd, parts, nr_parts); in epxa_mtd_init()
147 nr_parts = parse_afs_partitions(mymtd, &parts); in epxa_mtd_init()
150 add_mtd_partitions(mymtd, parts, nr_parts); in epxa_mtd_init()
156 nr_parts = epxa_default_partitions(mymtd, &parts); in epxa_mtd_init()
158 add_mtd_partitions(mymtd, parts, nr_parts); in epxa_mtd_init()
163 add_mtd_device(mymtd); in epxa_mtd_init()
169 if (mymtd) { in epxa_mtd_cleanup()
171 del_mtd_partitions(mymtd); in epxa_mtd_cleanup()
173 del_mtd_device(mymtd); in epxa_mtd_cleanup()
174 map_destroy(mymtd); in epxa_mtd_cleanup()