Searched refs:sect_size (Results 1 – 3 of 3) sorted by relevance
55 kb_to_lba(uint32_t len_kb, uint32_t sect_size) in kb_to_lba() argument61 lba = (lba + (uint64_t)sect_size - 1) & ~((uint64_t)sect_size - 1); in kb_to_lba()62 lba /= (uint64_t)sect_size; in kb_to_lba()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()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()173 (uint32_t)(((uint64_t)len * (uint64_t)dinfo->sect_size) / in mk_ext_pentry()195 next_len_lba = 1 + kb_to_lba(pnext->len_kb, dinfo->sect_size); in mk_ext_pentry()[all …]
194 dinfo->sect_size = strtol(tmp, NULL, 0); in load_diskconfig()195 if (!dinfo->sect_size) { in load_diskconfig()305 if (!sect_sz || sect_sz != dinfo->sect_size) { 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()322 if (!dinfo->sect_size) { 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()344 total_size = dinfo->skip_lba * dinfo->sect_size; in validate()[all …]
92 int sect_size; /* expected sector size in bytes. MUST BE POWER OF 2 */ member