Searched refs:num_lba (Results 1 – 3 of 3) sorted by relevance
216 dinfo->num_lba = strtoul(tmp, NULL, 0); in load_diskconfig()311 if (!dinfo->num_lba) { in validate()317 dinfo->num_lba = (uint32_t)(disk_size / (uint64_t)dinfo->sect_size); in validate()319 disk_size = (uint64_t)dinfo->num_lba * (uint64_t)dinfo->sect_size; in validate()326 if (dinfo->num_lba) in validate()327 disk_size = (uint64_t)dinfo->num_lba * (uint64_t)dinfo->sect_size; in validate()329 dinfo->num_lba = (uint32_t)(stat.st_size / dinfo->sect_size); in validate()339 dinfo->device, disk_size, dinfo->num_lba, dinfo->sect_size); in validate()481 printf("Number of LBAs: %u\n", dinfo->num_lba); in dump_disk_config()
108 len_lba = dinfo->num_lba - *lba; in mk_pri_pentry()121 *lba, dinfo->num_lba - *lba); in mk_pri_pentry()169 len = dinfo->num_lba - *lba; in mk_ext_pentry()197 next_len_lba = dinfo->num_lba - *lba; in mk_ext_pentry()262 if ((cur_lba + extended) >= dinfo->num_lba) in config_mbr()266 if ((cur_lba + sz_lba + extended) > dinfo->num_lba) in config_mbr()
94 uint32_t num_lba; /* the size of the disk in LBA units */ member