Lines Matching refs:current_mtd_dev
121 extern struct mtd_device *current_mtd_dev;
125 struct mtd_device *current_mtd_dev = NULL; variable
342 current_mtd_dev = (struct mtd_device *) in mtdparts_init()
346 if (!current_mtd_dev) { in mtdparts_init()
350 memset(current_mtd_dev, 0, sizeof(struct mtd_device) + in mtdparts_init()
353 id = (struct mtdids *)(current_mtd_dev + 1); in mtdparts_init()
368 free(current_mtd_dev); in mtdparts_init()
393 part->dev = current_mtd_dev; in mtdparts_init()
406 current_mtd_dev->id = id; in mtdparts_init()
407 INIT_LIST_HEAD(¤t_mtd_dev->link); in mtdparts_init()
408 current_mtd_dev->num_parts = 1; in mtdparts_init()
409 INIT_LIST_HEAD(¤t_mtd_dev->parts); in mtdparts_init()
410 list_add(&part->link, ¤t_mtd_dev->parts); in mtdparts_init()
498 if ((part = jffs2_part_info(current_mtd_dev, current_mtd_partnum))){ in do_jffs2_fsload()
547 if ((part = jffs2_part_info(current_mtd_dev, current_mtd_partnum))){ in do_jffs2_ls()
582 if ((part = jffs2_part_info(current_mtd_dev, current_mtd_partnum))){ in do_jffs2_fsinfo()