Lines Matching refs:from
6 * Read block device partition table from the command line.
29 sector_t from;
67 new_subpart->from = (sector_t)memparse(partdef, &partdef);
69 new_subpart->from = (sector_t)(~0ULL);
237 put_partition(state, slot, subpart->from >> 9,
255 sector_t from = 0;
261 if (subpart->from == (sector_t)(~0ULL))
262 subpart->from = from;
264 from = subpart->from;
266 if (from >= disk_size)
269 if (subpart->size > (disk_size - from))
270 subpart->size = disk_size - from;
272 from += subpart->size;
288 static bool has_overlaps(sector_t from, sector_t size,
291 sector_t end = from + size;
294 if (from >= from2 && from < end2)
300 if (from2 >= from && from2 < end)
303 if (end2 > from && end2 <= end)
323 if (has_overlaps(state->parts[slot].from,
325 state->parts[i].from,
334 (u64)state->parts[slot].from << 9,
337 (u64)state->parts[i].from << 9,