Lines Matching refs:current_mtd_dev
149 struct mtd_device *current_mtd_dev = NULL; variable
238 if (current_mtd_dev) { in index_partitions()
242 if (dev == current_mtd_dev) { in index_partitions()
251 part = mtd_part_info(current_mtd_dev, current_mtd_partnum); in index_partitions()
278 if (current_mtd_dev) { in current_save()
279 sprintf(buf, "%s%d,%d", MTD_DEV_TYPE(current_mtd_dev->id->type), in current_save()
280 current_mtd_dev->id->num, current_mtd_partnum); in current_save()
461 if (dev == current_mtd_dev) { in part_del()
465 curr_pi = mtd_part_info(current_mtd_dev, current_mtd_partnum); in part_del()
536 if (dev == current_mtd_dev) in part_sort_add()
537 curr_pi = mtd_part_info(current_mtd_dev, current_mtd_partnum); in part_sort_add()
767 if (dev == current_mtd_dev) { in device_del()
770 current_mtd_dev = NULL; in device_del()
774 current_mtd_dev = list_entry(devices.next, struct mtd_device, link); in device_del()
818 current_mtd_dev = dev; in device_add()
974 current_mtd_dev = NULL; in mtd_devices_init()
1312 if (current_mtd_dev) {
1313 part = mtd_part_info(current_mtd_dev, current_mtd_partnum);
1316 MTD_DEV_TYPE(current_mtd_dev->id->type),
1317 current_mtd_dev->id->num, current_mtd_partnum,
1824 current_mtd_dev = list_entry(devices.next, struct mtd_device, link);
1829 MTD_DEV_TYPE(current_mtd_dev->id->type),
1830 current_mtd_dev->id->num, current_mtd_partnum);
1850 current_mtd_dev = cdev;
1935 current_mtd_dev = dev;