Lines Matching refs:mymtd
174 static struct mtd_info *mymtd[NUM_FLASH_BANKS]; variable
310 mymtd[i] = do_map_probe("cfi_probe", &sc520cdp_map[i]); in init_sc520cdp()
311 if(!mymtd[i]) in init_sc520cdp()
312 mymtd[i] = do_map_probe("jedec_probe", &sc520cdp_map[i]); in init_sc520cdp()
313 if(!mymtd[i]) in init_sc520cdp()
314 mymtd[i] = do_map_probe("map_rom", &sc520cdp_map[i]); in init_sc520cdp()
316 if (mymtd[i]) { in init_sc520cdp()
317 mymtd[i]->module = THIS_MODULE; in init_sc520cdp()
326 merged_mtd = mtd_concat_create(mymtd, 2, "SC520CDP Flash Banks #0 and #1"); in init_sc520cdp()
331 add_mtd_device(mymtd[2]); in init_sc520cdp()
343 if (mymtd[2]) in cleanup_sc520cdp()
344 del_mtd_device(mymtd[2]); in cleanup_sc520cdp()
347 if (mymtd[i]) in cleanup_sc520cdp()
348 map_destroy(mymtd[i]); in cleanup_sc520cdp()