Lines Matching refs:scb2_mtd
64 static struct mtd_info *scb2_mtd; variable
170 scb2_mtd = do_map_probe("cfi_probe", &scb2_map); in scb2_flash_probe()
172 if (!scb2_mtd) { in scb2_flash_probe()
180 scb2_mtd->owner = THIS_MODULE; in scb2_flash_probe()
181 if (scb2_fixup_mtd(scb2_mtd) < 0) { in scb2_flash_probe()
182 mtd_device_unregister(scb2_mtd); in scb2_flash_probe()
183 map_destroy(scb2_mtd); in scb2_flash_probe()
191 (unsigned long long)scb2_mtd->size, in scb2_flash_probe()
192 (unsigned long long)(SCB2_WINDOW - scb2_mtd->size)); in scb2_flash_probe()
194 mtd_device_register(scb2_mtd, NULL, 0); in scb2_flash_probe()
201 if (!scb2_mtd) in scb2_flash_remove()
205 mtd_lock(scb2_mtd, 0, scb2_mtd->size); in scb2_flash_remove()
207 mtd_device_unregister(scb2_mtd); in scb2_flash_remove()
208 map_destroy(scb2_mtd); in scb2_flash_remove()