Searched refs:dinfo (Results 1 – 5 of 5) sorted by relevance
/system/core/libdiskconfig/ |
D | diskconfig.c | 94 load_partitions(cnode *root, struct disk_info *dinfo) in load_partitions() argument 98 dinfo->num_parts = 0; in load_partitions() 100 struct part_info *pinfo = &dinfo->part_lst[dinfo->num_parts]; in load_partitions() 134 ++dinfo->num_parts; in load_partitions() 143 struct disk_info *dinfo; in load_diskconfig() local 149 if (!(dinfo = malloc(sizeof(struct disk_info)))) { in load_diskconfig() 153 memset(dinfo, 0, sizeof(struct disk_info)); in load_diskconfig() 155 if (!(dinfo->part_lst = malloc(MAX_NUM_PARTS * sizeof(struct part_info)))) { in load_diskconfig() 159 memset(dinfo->part_lst, 0, in load_diskconfig() 178 dinfo->device = strdup(tmp); in load_diskconfig() [all …]
|
D | config_mbr.c | 71 mk_pri_pentry(struct disk_info *dinfo, struct part_info *pinfo, int pnum, in mk_pri_pentry() argument 104 len_lba += ((uint64_t)dinfo->sect_size - 1); in mk_pri_pentry() 105 len_lba &= ~((uint64_t)dinfo->sect_size - 1); in mk_pri_pentry() 106 len_lba /= (uint64_t)dinfo->sect_size; in mk_pri_pentry() 109 len_lba = dinfo->num_lba - *lba; in mk_pri_pentry() 122 *lba, dinfo->num_lba - *lba); in mk_pri_pentry() 141 mk_ext_pentry(struct disk_info *dinfo, struct part_info *pinfo, uint32_t *lba, in mk_ext_pentry() argument 155 item->offset = ((loff_t)(*lba)) * dinfo->sect_size; in mk_ext_pentry() 163 len = kb_to_lba(pinfo->len_kb, dinfo->sect_size); in mk_ext_pentry() 170 len = dinfo->num_lba - *lba; in mk_ext_pentry() [all …]
|
D | dump_diskconfig.c | 28 struct disk_info *dinfo; in main() local 35 if (!(dinfo = load_diskconfig(argv[1], NULL))) in main() 38 dump_disk_config(dinfo); in main()
|
/system/core/include/diskconfig/ |
D | diskconfig.h | 114 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);
|
/system/vold/ |
D | Disk.cpp | 397 struct disk_info dinfo; in partitionPublic() local 398 memset(&dinfo, 0, sizeof(dinfo)); in partitionPublic() 400 if (!(dinfo.part_lst = (struct part_info *) malloc( in partitionPublic() 405 memset(dinfo.part_lst, 0, MAX_NUM_PARTS * sizeof(struct part_info)); in partitionPublic() 406 dinfo.device = strdup(mDevPath.c_str()); in partitionPublic() 407 dinfo.scheme = PART_SCHEME_MBR; in partitionPublic() 408 dinfo.sect_size = 512; in partitionPublic() 409 dinfo.skip_lba = 2048; in partitionPublic() 410 dinfo.num_lba = 0; in partitionPublic() 411 dinfo.num_parts = 1; in partitionPublic() [all …]
|