Home
last modified time | relevance | path

Searched refs:part_info (Results 1 – 25 of 37) sorted by relevance

12

/external/u-boot/common/
Dandroid_ab.c63 const disk_partition_t *part_info) in android_boot_control_create_from_disk() argument
70 if (abc_offset % part_info->blksz) { in android_boot_control_create_from_disk()
74 abc_offset /= part_info->blksz; in android_boot_control_create_from_disk()
77 part_info->blksz); in android_boot_control_create_from_disk()
78 if (abc_offset + abc_blocks > part_info->size) { in android_boot_control_create_from_disk()
81 abc_offset + abc_blocks, part_info->size); in android_boot_control_create_from_disk()
84 buf = malloc(abc_blocks * part_info->blksz); in android_boot_control_create_from_disk()
88 if (blk_dread(dev_desc, part_info->start + abc_offset, abc_blocks, in android_boot_control_create_from_disk()
110 const disk_partition_t *part_info) in android_boot_control_store() argument
115 slot_suffix) / part_info->blksz; in android_boot_control_store()
[all …]
Dandroid_bootloader.c22 const disk_partition_t *part_info, in android_bootloader_message_load() argument
26 part_info->blksz; in android_bootloader_message_load()
27 if (message_blocks > part_info->size) { in android_bootloader_message_load()
32 if (blk_dread(dev_desc, part_info->start, message_blocks, message) != in android_bootloader_message_load()
43 const disk_partition_t *part_info, in android_bootloader_message_write() argument
47 part_info->blksz; in android_bootloader_message_write()
48 if (message_blocks > part_info->size) { in android_bootloader_message_write()
53 if (blk_dwrite(dev_desc, part_info->start, message_blocks, message) != in android_bootloader_message_write()
125 disk_partition_t *part_info) in android_part_get_info_by_name_suffix() argument
141 part_num = part_get_info_by_name(dev_desc, part_name, part_info); in android_part_get_info_by_name_suffix()
Dimage-android.c150 const disk_partition_t *part_info, in android_image_load() argument
156 if (max_size < part_info->blksz) in android_image_load()
165 if (blk_dread(dev_desc, part_info->start, 1, buf) != 1) in android_image_load()
174 part_info->blksz - 1) / part_info->blksz; in android_image_load()
175 if (blk_cnt * part_info->blksz > max_size) { in android_image_load()
183 blk_read = blk_dread(dev_desc, part_info->start, in android_image_load()
/external/u-boot/cmd/
Djffs2.c130 extern int cramfs_check (struct part_info *info);
131 extern int cramfs_load (char *loadoffset, struct part_info *info, char *filename);
132 extern int cramfs_ls (struct part_info *info, char *filename);
133 extern int cramfs_info (struct part_info *info);
256 static inline u32 get_part_sector_size_nor(struct mtdids *id, struct part_info *part) 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()
339 struct part_info *part; in mtdparts_init()
344 sizeof(struct part_info) + in mtdparts_init()
351 sizeof(struct part_info) + sizeof(struct mtdids)); in mtdparts_init()
354 part = (struct part_info *)(id + 1); in mtdparts_init()
[all …]
Dmtdparts.c140 extern void jffs2_free_cache(struct part_info *part);
154 static struct part_info* mtd_part_info(struct mtd_device *dev, unsigned int part_num);
229 struct part_info *part; in index_partitions()
325 static int part_validate_eraseblock(struct mtdids *id, struct part_info *part) in part_validate_eraseblock()
412 static int part_validate(struct mtdids *id, struct part_info *part) in part_validate()
448 static int part_del(struct mtd_device *dev, struct part_info *part) in part_del()
461 struct part_info *curr_pi; in part_del()
495 struct part_info *part_tmp; in part_delall()
499 part_tmp = list_entry(entry, struct part_info, link); in part_delall()
513 static int part_sort_add(struct mtd_device *dev, struct part_info *part) in part_sort_add()
[all …]
Dandroid_cmds.c27 disk_partition_t *part_info) in part_get_info_by_dev_and_name() argument
49 if (part_get_info_by_name(*dev_desc, part_str, part_info) < 0) { in part_get_info_by_dev_and_name()
59 disk_partition_t *part_info) { in part_get_info_by_dev_and_name_or_num() argument
62 dev_desc, part_info)) in part_get_info_by_dev_and_name_or_num()
68 dev_desc, part_info, 1) < 0) { in part_get_info_by_dev_and_name_or_num()
Dcramfs.c75 extern int cramfs_check (struct part_info *info);
76 extern int cramfs_load (char *loadoffset, struct part_info *info, char *filename);
77 extern int cramfs_ls (struct part_info *info, char *filename);
78 extern int cramfs_info (struct part_info *info);
102 struct part_info part; in do_cramfs_load()
167 struct part_info part; in do_cramfs_ls()
Dread.c21 disk_partition_t part_info; in do_read() local
53 if (part_get_info(dev_desc, part, &part_info)) { in do_read()
57 offset = part_info.start; in do_read()
58 limit = part_info.size; in do_read()
Dandroid_ab_select.c17 disk_partition_t part_info; in do_android_ab_select() local
25 &dev_desc, &part_info) < 0) { in do_android_ab_select()
29 ret = android_ab_select(dev_desc, &part_info); in do_android_ab_select()
Dboot_android.c19 disk_partition_t part_info; in do_boot_android() local
39 &dev_desc, &part_info) < 0) { in do_boot_android()
43 ret = android_bootloader_boot_flow(dev_desc, &part_info, argv[3], in do_boot_android()
Dload_android.c17 disk_partition_t part_info; in do_load_android() local
38 &dev_desc, &part_info, 1); in do_load_android()
42 if (android_image_load(dev_desc, &part_info, load_address, -1UL) < 0) { in do_load_android()
/external/u-boot/drivers/fastboot/
Dfb_getvar.c145 disk_partition_t part_info; in getvar_partition_type() local
147 r = fastboot_mmc_get_part_info(part_name, &dev_desc, &part_info, in getvar_partition_type()
167 disk_partition_t part_info; in getvar_partition_size() local
169 r = fastboot_mmc_get_part_info(part_name, &dev_desc, &part_info, in getvar_partition_size()
172 size = part_info.size; in getvar_partition_size()
175 struct part_info *part_info; in getvar_partition_size() local
177 r = fastboot_nand_get_part_info(part_name, &part_info, response); in getvar_partition_size()
179 size = part_info->size; in getvar_partition_size()
Dfb_nand.c19 struct part_info *part;
34 struct part_info **part, in fb_nand_lookup()
67 static int _fb_nand_erase(struct mtd_info *mtd, struct part_info *part) in _fb_nand_erase()
90 static int _fb_nand_write(struct mtd_info *mtd, struct part_info *part, in _fb_nand_write()
155 int fastboot_nand_get_part_info(char *part_name, struct part_info **part_info, in fastboot_nand_get_part_info() argument
160 return fb_nand_lookup(part_name, &mtd, part_info, response); in fastboot_nand_get_part_info()
174 struct part_info *part; in fastboot_nand_flash_write()
238 struct part_info *part; in fastboot_nand_erase()
/external/u-boot/common/spl/
Dspl_ext.c17 disk_partition_t part_info = {}; in spl_load_image_ext() local
22 if (part_get_info(block_dev, partition, &part_info)) { in spl_load_image_ext()
27 ext4fs_set_blk_dev(block_dev, &part_info); in spl_load_image_ext()
72 disk_partition_t part_info = {}; in spl_load_image_ext_os() local
75 if (part_get_info(block_dev, partition, &part_info)) { in spl_load_image_ext_os()
80 ext4fs_set_blk_dev(block_dev, &part_info); in spl_load_image_ext_os()
/external/u-boot/include/jffs2/
Djffs2_1pass.h1 u32 jffs2_1pass_ls(struct part_info *part,const char *fname);
2 u32 jffs2_1pass_load(char *dest, struct part_info *part,const char *fname);
3 u32 jffs2_1pass_info(struct part_info *part);
Djffs2.h216 u32 jffs2_1pass_ls(struct part_info *part,const char *fname);
217 u32 jffs2_1pass_load(char *dest, struct part_info *part,const char *fname);
218 u32 jffs2_1pass_info(struct part_info *part);
Dload_kernel.h29 struct part_info { struct
64 u8 *part_num, struct part_info **part);
/external/u-boot/fs/reiserfs/
Ddev.c15 static disk_partition_t *part_info; variable
21 part_info = info; in reiserfs_set_blk_dev()
26 return fs_devread(reiserfs_blk_desc, part_info, sector, byte_offset, in reiserfs_devread()
/external/u-boot/fs/zfs/
Ddev.c17 static disk_partition_t *part_info; variable
22 part_info = info; in zfs_set_blk_dev()
28 return fs_devread(zfs_blk_desc, part_info, sector, byte_offset, in zfs_devread()
/external/u-boot/fs/ext4/
Ddev.c36 static disk_partition_t *part_info; variable
43 part_info = info; in ext4fs_set_blk_dev()
52 return fs_devread(get_fs()->dev_desc, part_info, sector, byte_offset, in ext4fs_devread()
/external/autotest/client/cros/faft/utils/
Dkernel_handler.py77 part_info = {}
79 part_info['device'] = device
80 part_info['version'] = self._get_version(device)
81 part_info['datakey_version'] = self._get_datakey_version(device)
82 self.partition_map[label] = part_info
/external/u-boot/fs/cramfs/
Dcramfs.c55 static int cramfs_read_super (struct part_info *info) in cramfs_read_super()
237 int cramfs_load (char *loadoffset, struct part_info *info, char *filename) in cramfs_load()
256 static int cramfs_list_inode (struct part_info *info, unsigned long offset) in cramfs_list_inode()
296 int cramfs_ls (struct part_info *info, char *filename) in cramfs_ls()
345 int cramfs_info (struct part_info *info) in cramfs_info()
371 int cramfs_check (struct part_info *info) in cramfs_check()
/external/u-boot/include/
Dfb_nand.h19 int fastboot_nand_get_part_info(char *part_name, struct part_info **part_info,
/external/u-boot/fs/jffs2/
Djffs2_1pass.c148 static struct part_info *current_part;
641 jffs2_free_cache(struct part_info *part) in jffs2_free_cache()
655 jffs_init_1pass_list(struct part_info *part) in jffs_init_1pass_list()
1202 jffs2_1pass_rescan_needed(struct part_info *part) in jffs2_1pass_rescan_needed()
1262 static int jffs2_sum_process_sum_data(struct part_info *part, uint32_t offset, in jffs2_sum_process_sum_data()
1332 int jffs2_sum_scan_sumnode(struct part_info *part, uint32_t offset, in jffs2_sum_scan_sumnode()
1470 jffs2_1pass_build_lists(struct part_info * part) in jffs2_1pass_build_lists()
1849 jffs2_get_list(struct part_info * part, const char *who) in jffs2_get_list()
1866 jffs2_1pass_ls(struct part_info * part, const char *fname) in jffs2_1pass_ls()
1892 jffs2_1pass_load(char *dest, struct part_info * part, const char *fname) in jffs2_1pass_load()
[all …]
Djffs2_nand_1pass.c236 jffs_init_1pass_list(struct part_info *part) in jffs_init_1pass_list()
661 jffs2_1pass_rescan_needed(struct part_info *part) in jffs2_1pass_rescan_needed()
786 jffs2_1pass_build_lists(struct part_info * part) in jffs2_1pass_build_lists()
943 jffs2_get_list(struct part_info * part, const char *who) in jffs2_get_list()
957 jffs2_1pass_ls(struct part_info * part, const char *fname) in jffs2_1pass_ls()
982 jffs2_1pass_load(char *dest, struct part_info * part, const char *fname) in jffs2_1pass_load()
1015 jffs2_1pass_info(struct part_info * part) in jffs2_1pass_info()

12