Searched refs:sect_size (Results 1 – 5 of 5) sorted by relevance
56 kb_to_lba(uint32_t len_kb, uint32_t sect_size) in kb_to_lba() argument62 lba = (lba + (uint64_t)sect_size - 1) & ~((uint64_t)sect_size - 1); in kb_to_lba()63 lba /= (uint64_t)sect_size; in kb_to_lba()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()155 item->offset = (*lba) * dinfo->sect_size; in mk_ext_pentry()163 len = kb_to_lba(pinfo->len_kb, dinfo->sect_size); in mk_ext_pentry()174 (uint32_t)(((uint64_t)len * (uint64_t)dinfo->sect_size) / in mk_ext_pentry()196 next_len_lba = 1 + kb_to_lba(pnext->len_kb, dinfo->sect_size); in mk_ext_pentry()[all …]
193 dinfo->sect_size = strtol(tmp, NULL, 0); in load_diskconfig()194 if (!dinfo->sect_size) { in load_diskconfig()304 if (!sect_sz || sect_sz != dinfo->sect_size) { in validate()316 dinfo->num_lba = (uint32_t)(disk_size / (uint64_t)dinfo->sect_size); in validate()318 disk_size = (uint64_t)dinfo->num_lba * (uint64_t)dinfo->sect_size; in validate()321 if (!dinfo->sect_size) { in validate()326 disk_size = (uint64_t)dinfo->num_lba * (uint64_t)dinfo->sect_size; in validate()328 dinfo->num_lba = (uint32_t)(stat.st_size / dinfo->sect_size); in validate()338 dinfo->device, disk_size, dinfo->num_lba, dinfo->sect_size); in validate()343 total_size = dinfo->skip_lba * dinfo->sect_size; in validate()[all …]
86 int sect_size; /* expected sector size in bytes. MUST BE POWER OF 2 */ member
159 ((uint64_t)pinfo->len_kb * 1024) / (*dinfo)->sect_size; in parse_args()191 loff_t offs = part_file_map[cnt].pinfo->start_lba * dinfo->sect_size; in main()
234 offset = pinfo->start_lba * dinfo->sect_size; in process_image_node()