Lines Matching refs:intel_mtd
58 static struct mtd_info *intel_mtd; variable
314 intel_mtd = do_map_probe("cfi_probe", &nettel_intel_map); in nettel_init()
315 if (!intel_mtd) { in nettel_init()
321 intel0size = intel_mtd->size; in nettel_init()
335 map_destroy(intel_mtd); in nettel_init()
336 intel_mtd = NULL; in nettel_init()
347 intel_mtd = do_map_probe("cfi_probe", &nettel_intel_map); in nettel_init()
348 if (! intel_mtd) { in nettel_init()
353 intel1size = intel_mtd->size - intel0size; in nettel_init()
362 (unsigned long long)(intel_mtd->size >> 10)); in nettel_init()
364 intel_mtd->owner = THIS_MODULE; in nettel_init()
374 (1024*1024 + intel_mtd->erasesize); in nettel_init()
377 (intel0size + intel1size) - intel_mtd->erasesize; in nettel_init()
378 nettel_intel_partitions[4].size = intel_mtd->erasesize; in nettel_init()
387 rc = mtd_device_register(intel_mtd, nettel_intel_partitions, in nettel_init()
408 mtd_device_unregister(intel_mtd); in nettel_init()
410 map_destroy(intel_mtd); in nettel_init()
442 if (intel_mtd) { in nettel_cleanup()
443 mtd_device_unregister(intel_mtd); in nettel_cleanup()
444 map_destroy(intel_mtd); in nettel_cleanup()