Lines Matching refs:part
256 static inline u32 get_part_sector_size_nor(struct mtdids *id, struct part_info *part) in get_part_sector_size_nor() argument
267 start_phys = flash->start[0] + part->offset; in get_part_sector_size_nor()
268 end_phys = start_phys + part->size - 1; in get_part_sector_size_nor()
307 static inline u32 get_part_sector_size(struct mtdids *id, struct part_info *part) in get_part_sector_size() argument
312 return get_part_sector_size_nor(id, part); in get_part_sector_size()
339 struct part_info *part; in mtdparts_init() local
354 part = (struct part_info *)(id + 1); in mtdparts_init()
378 part->name = "static"; in mtdparts_init()
379 part->auto_name = 0; in mtdparts_init()
382 part->size = CONFIG_JFFS2_PART_SIZE; in mtdparts_init()
384 part->size = SIZE_REMAINING; in mtdparts_init()
388 part->offset = CONFIG_JFFS2_PART_OFFSET; in mtdparts_init()
390 part->offset = 0x00000000; in mtdparts_init()
393 part->dev = current_mtd_dev; in mtdparts_init()
394 INIT_LIST_HEAD(&part->link); in mtdparts_init()
397 if (part->size == SIZE_REMAINING) in mtdparts_init()
398 part->size = id->size - part->offset; in mtdparts_init()
400 part->sector_size = get_part_sector_size(id, part); in mtdparts_init()
403 part->name, part->size, part->offset); in mtdparts_init()
410 list_add(&part->link, ¤t_mtd_dev->parts); in mtdparts_init()
428 struct part_info *part; in jffs2_part_info() local
448 part = list_entry(entry, struct part_info, link); in jffs2_part_info()
451 return part; in jffs2_part_info()
477 struct part_info *part; in do_jffs2_fsload() local
498 if ((part = jffs2_part_info(current_mtd_dev, current_mtd_partnum))){ in do_jffs2_fsload()
501 fsname = (cramfs_check(part) ? "CRAMFS" : "JFFS2"); in do_jffs2_fsload()
504 if (cramfs_check(part)) { in do_jffs2_fsload()
505 size = cramfs_load ((char *) offset, part, filename); in do_jffs2_fsload()
508 size = jffs2_1pass_load((char *)offset, part, filename); in do_jffs2_fsload()
538 struct part_info *part; in do_jffs2_ls() local
547 if ((part = jffs2_part_info(current_mtd_dev, current_mtd_partnum))){ in do_jffs2_ls()
550 if (cramfs_check(part)) { in do_jffs2_ls()
551 ret = cramfs_ls (part, filename); in do_jffs2_ls()
554 ret = jffs2_1pass_ls(part, filename); in do_jffs2_ls()
574 struct part_info *part; in do_jffs2_fsinfo() local
582 if ((part = jffs2_part_info(current_mtd_dev, current_mtd_partnum))){ in do_jffs2_fsinfo()
585 fsname = (cramfs_check(part) ? "CRAMFS" : "JFFS2"); in do_jffs2_fsinfo()
588 if (cramfs_check(part)) { in do_jffs2_fsinfo()
589 ret = cramfs_info (part); in do_jffs2_fsinfo()
592 ret = jffs2_1pass_info(part); in do_jffs2_fsinfo()