Lines Matching refs:sc520cdp_map
72 static struct map_info sc520cdp_map[] = { variable
93 #define NUM_FLASH_BANKS ARRAY_SIZE(sc520cdp_map)
181 sc520cdp_map[i].phys = par_table[i].default_address; in sc520cdp_setup_par()
203 sc520cdp_map[i].name); in sc520cdp_setup_par()
206 sc520cdp_map[i].phys = par_table[i].default_address; in sc520cdp_setup_par()
225 (unsigned long long)sc520cdp_map[i].size, in init_sc520cdp()
226 (unsigned long long)sc520cdp_map[i].phys); in init_sc520cdp()
228 sc520cdp_map[i].virt = ioremap(sc520cdp_map[i].phys, sc520cdp_map[i].size); in init_sc520cdp()
230 if (!sc520cdp_map[i].virt) { in init_sc520cdp()
235 iounmap(sc520cdp_map[j].virt); in init_sc520cdp()
241 simple_map_init(&sc520cdp_map[i]); in init_sc520cdp()
243 mymtd[i] = do_map_probe("cfi_probe", &sc520cdp_map[i]); in init_sc520cdp()
245 mymtd[i] = do_map_probe("jedec_probe", &sc520cdp_map[i]); in init_sc520cdp()
247 mymtd[i] = do_map_probe("map_rom", &sc520cdp_map[i]); in init_sc520cdp()
254 iounmap(sc520cdp_map[i].virt); in init_sc520cdp()
282 if (sc520cdp_map[i].virt) { in cleanup_sc520cdp()
283 iounmap(sc520cdp_map[i].virt); in cleanup_sc520cdp()
284 sc520cdp_map[i].virt = NULL; in cleanup_sc520cdp()