Lines Matching refs:dnpc_map
252 static struct map_info dnpc_map = { variable
386 dnpc_map.size = DNP_WINDOW_SIZE; in init_dnpc()
387 dnpc_map.set_vpp = dnp_set_vpp; in init_dnpc()
394 ++dnpc_map.name; in init_dnpc()
404 is_dnp ? "DNPC" : "ADNP", dnpc_map.size, (unsigned long long)dnpc_map.phys); in init_dnpc()
406 dnpc_map.virt = ioremap_nocache(dnpc_map.phys, dnpc_map.size); in init_dnpc()
408 dnpc_map_flash(dnpc_map.phys, dnpc_map.size); in init_dnpc()
410 if (!dnpc_map.virt) { in init_dnpc()
414 simple_map_init(&dnpc_map); in init_dnpc()
416 printk("FLASH virtual address: 0x%p\n", dnpc_map.virt); in init_dnpc()
418 mymtd = do_map_probe("jedec_probe", &dnpc_map); in init_dnpc()
421 mymtd = do_map_probe("cfi_probe", &dnpc_map); in init_dnpc()
429 if((mymtd = do_map_probe("map_rom", &dnpc_map))) in init_dnpc()
433 iounmap(dnpc_map.virt); in init_dnpc()
483 if (dnpc_map.virt) { in cleanup_dnpc()
484 iounmap(dnpc_map.virt); in cleanup_dnpc()
486 dnpc_map.virt = NULL; in cleanup_dnpc()