Lines Matching refs:lba
57 uint64_t lba; in kb_to_lba() local
59 lba = (uint64_t)len_kb * 1024; in kb_to_lba()
61 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()
63 if (lba >= 0xffffffffULL) in kb_to_lba()
65 return (uint32_t)(lba & 0xffffffffULL); in kb_to_lba()
71 uint32_t *lba) in mk_pri_pentry() argument
108 len_lba = dinfo->num_lba - *lba; in mk_pri_pentry()
113 pinfo->type, *lba, (uint32_t)len_lba); in mk_pri_pentry()
115 pinfo->start_lba = *lba; in mk_pri_pentry()
116 *lba += (uint32_t)len_lba; in mk_pri_pentry()
121 *lba, dinfo->num_lba - *lba); in mk_pri_pentry()
140 mk_ext_pentry(struct disk_info *dinfo, struct part_info *pinfo, uint32_t *lba, in mk_ext_pentry() argument
154 item->offset = ((loff_t)(*lba)) * dinfo->sect_size; in mk_ext_pentry()
155 (*lba)++; in mk_ext_pentry()
169 len = dinfo->num_lba - *lba; in mk_ext_pentry()
180 pinfo->start_lba = *lba; in mk_ext_pentry()
181 *lba += len; in mk_ext_pentry()
192 uint32_t next_start_lba = *lba - ext_lba; in mk_ext_pentry()
197 next_len_lba = dinfo->num_lba - *lba; in mk_ext_pentry()