Home
last modified time | relevance | path

Searched refs:dinfo (Results 1 – 4 of 4) sorted by relevance

/system/core/libdiskconfig/
Ddiskconfig.c92 load_partitions(cnode *root, struct disk_info *dinfo) in load_partitions() argument
96 dinfo->num_parts = 0; in load_partitions()
98 struct part_info *pinfo = &dinfo->part_lst[dinfo->num_parts]; in load_partitions()
132 ++dinfo->num_parts; in load_partitions()
141 struct disk_info *dinfo; in load_diskconfig() local
147 if (!(dinfo = malloc(sizeof(struct disk_info)))) { in load_diskconfig()
151 memset(dinfo, 0, sizeof(struct disk_info)); in load_diskconfig()
153 if (!(dinfo->part_lst = malloc(MAX_NUM_PARTS * sizeof(struct part_info)))) { in load_diskconfig()
157 memset(dinfo->part_lst, 0, in load_diskconfig()
176 dinfo->device = strdup(tmp); in load_diskconfig()
[all …]
Dconfig_mbr.c70 mk_pri_pentry(struct disk_info *dinfo, struct part_info *pinfo, int pnum, in mk_pri_pentry() argument
103 len_lba += ((uint64_t)dinfo->sect_size - 1); in mk_pri_pentry()
104 len_lba &= ~((uint64_t)dinfo->sect_size - 1); in mk_pri_pentry()
105 len_lba /= (uint64_t)dinfo->sect_size; in mk_pri_pentry()
108 len_lba = dinfo->num_lba - *lba; in mk_pri_pentry()
121 *lba, dinfo->num_lba - *lba); in mk_pri_pentry()
140 mk_ext_pentry(struct disk_info *dinfo, struct part_info *pinfo, uint32_t *lba, in mk_ext_pentry() argument
154 item->offset = ((loff_t)(*lba)) * dinfo->sect_size; in mk_ext_pentry()
162 len = kb_to_lba(pinfo->len_kb, dinfo->sect_size); in mk_ext_pentry()
169 len = dinfo->num_lba - *lba; in mk_ext_pentry()
[all …]
Ddump_diskconfig.c29 struct disk_info *dinfo; in main() local
36 if (!(dinfo = load_diskconfig(argv[1], NULL))) in main()
39 dump_disk_config(dinfo); in main()
/system/core/libdiskconfig/include/diskconfig/
Ddiskconfig.h114 int dump_disk_config(struct disk_info *dinfo);
115 int apply_disk_config(struct disk_info *dinfo, int test);
116 char *find_part_device(struct disk_info *dinfo, const char *name);
117 int process_disk_config(struct disk_info *dinfo);
118 struct part_info *find_part(struct disk_info *dinfo, const char *name);
123 struct write_list *config_mbr(struct disk_info *dinfo);
124 char *find_mbr_part(struct disk_info *dinfo, const char *name);