Lines Matching refs:offset

48 block_align(partition_data* partition, off_t offset, bool upwards)
54 return ((offset + blockSize - 1) / blockSize) * blockSize;
56 return (offset / blockSize) * blockSize;
136 partition->offset + entry.StartBlock() * partition->block_size,
225 off_t newEnd = partition->offset + newSize;
231 if (child->offset + child->size > newEnd)
232 newEnd = child->offset + child->size;
235 newSize = block_align(partition, newEnd - partition->offset, true);
260 if (child->offset + newSize > partition->offset + partition->size)
261 newSize = partition->offset + partition->size - child->offset;
264 off_t newEnd = child->offset + newSize;
268 || other->offset < child->offset)
271 if (newEnd > other->offset)
272 newEnd = other->offset;
275 *size = block_align(partition, newEnd - child->offset, false);
300 if (newStart > child->offset) {
304 || other->offset < child->offset)
307 if (other->offset < newStart + child->size)
308 newStart = other->offset - child->size;
316 || other->offset > child->offset)
319 if (other->offset + other->size > newStart)
320 newStart = other->offset + other->size;
412 if (other->offset < *start && other->offset + other->size > *start)
413 *start = other->offset + other->size;
415 if (other->offset > *start && other->offset < *start + *size)
416 *size = other->offset - *start;
545 efi_gpt_move(int fd, partition_id partition, off_t offset, disk_job_id job)
554 off_t offset, disk_job_id job)
579 off_t validatedOffset = offset;
583 if (child->offset == validatedOffset)
594 entry.SetStartBlock((validatedOffset - partition->offset)
605 child->offset = validatedOffset;
780 efi_gpt_create_child(int fd, partition_id partitionID, off_t offset,
799 off_t validatedOffset = offset;
824 entry.SetStartBlock((validatedOffset - partition->offset)