Home | History | Annotate | Download | only in libdiskconfig

Lines Matching refs:lba

29 /* start and len are in LBA units */
58 uint64_t lba;
60 lba = (uint64_t)len_kb * 1024;
61 /* bump it up to the next LBA boundary just in case */
62 lba = (lba + (uint64_t)sect_size - 1) & ~((uint64_t)sect_size - 1);
63 lba /= (uint64_t)sect_size;
64 if (lba >= 0xffffffffULL)
65 ALOGE("Error converting kb -> lba. 32bit overflow, expect weirdness");
66 return (uint32_t)(lba & 0xffffffffULL);
72 uint32_t *lba)
102 /* bump it up to the next LBA boundary just in case */
109 len_lba = dinfo->num_lba - *lba;
114 pinfo->type, *lba, (uint32_t)len_lba);
116 pinfo->start_lba = *lba;
117 *lba += (uint32_t)len_lba;
122 *lba, dinfo->num_lba - *lba);
124 /* note that we do not update the *lba because we now have to
126 * *lba */
141 mk_ext_pentry(struct disk_info *dinfo, struct part_info *pinfo, uint32_t *lba,
146 uint32_t len; /* in lba units */
153 /* we are going to write the ebr at the current LBA, and then bump the
154 * lba counter since that is where the logical data partition will start */
155 item->offset = (*lba) * dinfo->sect_size;
156 (*lba)++;
170 len = dinfo->num_lba - *lba;
181 pinfo->start_lba = *lba;
182 *lba += len;
191 /* The start lba for next partition is an offset from the beginning
193 uint32_t next_start_lba = *lba - ext_lba;
198 next_len_lba = dinfo->num_lba - *lba;
242 /* if extended, need 1 lba for ebr */