Lines Matching refs:mymtd
214 struct mtd_info *mymtd; in init_cstm_mips_ixx() local
239 mymtd = (struct mtd_info *)do_map_probe("cfi_probe", &cstm_mips_ixx_map[i]); in init_cstm_mips_ixx()
241 if (!mymtd) { in init_cstm_mips_ixx()
243 mymtd = (struct mtd_info *)do_map_probe("jedec", &cstm_mips_ixx_map[i]); in init_cstm_mips_ixx()
244 printk(KERN_NOTICE "cstm_mips_ixx %d jedec: mymtd is %x\n",i,(unsigned int)mymtd); in init_cstm_mips_ixx()
246 if (mymtd) { in init_cstm_mips_ixx()
247 mymtd->module = THIS_MODULE; in init_cstm_mips_ixx()
249 cstm_mips_ixx_map[i].map_priv_2 = (unsigned long)mymtd; in init_cstm_mips_ixx()
250 add_mtd_partitions(mymtd, parts, cstm_mips_ixx_board_desc[i].num_partitions); in init_cstm_mips_ixx()
261 struct mtd_info *mymtd; in cleanup_cstm_mips_ixx() local
264 mymtd = (struct mtd_info *)cstm_mips_ixx_map[i].map_priv_2; in cleanup_cstm_mips_ixx()
265 if (mymtd) { in cleanup_cstm_mips_ixx()
266 del_mtd_partitions(mymtd); in cleanup_cstm_mips_ixx()
267 map_destroy(mymtd); in cleanup_cstm_mips_ixx()