Lines Matching refs:lba
58 uint64_t lba; in kb_to_lba() local
60 lba = (uint64_t)len_kb * 1024; in kb_to_lba()
62 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()
64 if (lba >= 0xffffffffULL) in kb_to_lba()
66 return (uint32_t)(lba & 0xffffffffULL); in kb_to_lba()
72 uint32_t *lba) in mk_pri_pentry() argument
109 len_lba = dinfo->num_lba - *lba; in mk_pri_pentry()
114 pinfo->type, *lba, (uint32_t)len_lba); in mk_pri_pentry()
116 pinfo->start_lba = *lba; in mk_pri_pentry()
117 *lba += (uint32_t)len_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()
156 (*lba)++; in mk_ext_pentry()
170 len = dinfo->num_lba - *lba; in mk_ext_pentry()
181 pinfo->start_lba = *lba; in mk_ext_pentry()
182 *lba += len; in mk_ext_pentry()
193 uint32_t next_start_lba = *lba - ext_lba; in mk_ext_pentry()
198 next_len_lba = dinfo->num_lba - *lba; in mk_ext_pentry()