Lines Matching refs:UINT64_MAX
105 static uint64_t arg_size = UINT64_MAX;
226 if (v > UINT64_MAX / p) in round_up_size()
227 return UINT64_MAX; /* overflow */ in round_up_size()
242 .current_size = UINT64_MAX, in partition_new()
243 .new_size = UINT64_MAX, in partition_new()
244 .size_min = UINT64_MAX, in partition_new()
245 .size_max = UINT64_MAX, in partition_new()
246 .current_padding = UINT64_MAX, in partition_new()
247 .new_padding = UINT64_MAX, in partition_new()
248 .padding_min = UINT64_MAX, in partition_new()
249 .padding_max = UINT64_MAX, in partition_new()
250 .partno = UINT64_MAX, in partition_new()
251 .offset = UINT64_MAX, in partition_new()
253 .copy_blocks_size = UINT64_MAX, in partition_new()
307 .start = UINT64_MAX, in context_new()
308 .end = UINT64_MAX, in context_new()
309 .total = UINT64_MAX, in context_new()
425 assert(p->current_size != UINT64_MAX); in partition_min_size()
429 sz = p->current_size != UINT64_MAX ? p->current_size : HARD_MIN_SIZE; in partition_min_size()
437 if (p->copy_blocks_size != UINT64_MAX) in partition_min_size()
443 … = p->format ? round_up_size(minimal_size_by_fs_name(p->format), context->grain_size) : UINT64_MAX; in partition_min_size()
444 d += f == UINT64_MAX ? context->grain_size : f; in partition_min_size()
451 …return MAX(round_up_size(p->size_min != UINT64_MAX ? p->size_min : DEFAULT_MIN_SIZE, context->grai… in partition_min_size()
466 assert(p->current_size != UINT64_MAX); in partition_max_size()
472 if (p->current_size != UINT64_MAX) in partition_max_size()
490 if (p->padding_min != UINT64_MAX) in partition_min_size_with_padding()
495 assert(p->offset != UINT64_MAX); in partition_min_size_with_padding()
527 assert(a->after->offset != UINT64_MAX); in free_area_available_for_new_partitions()
528 assert(a->after->current_size != UINT64_MAX); in free_area_available_for_new_partitions()
624 if (p->weight > UINT64_MAX - weight_sum) in context_sum_weights()
628 if (p->padding_weight > UINT64_MAX - weight_sum) in context_sum_weights()
649 if (value > UINT64_MAX / weight) in scale_by_weight()
692 if (p->new_size == UINT64_MAX) { in context_grow_partitions_phase()
713 } else if (phase == PHASE_UNDERCHARGE && xsz != UINT64_MAX && xsz < share) { in context_grow_partitions_phase()
745 if (p->new_padding == UINT64_MAX) { in context_grow_partitions_phase()
753 … if (phase == PHASE_OVERCHARGE && p->padding_min != UINT64_MAX && p->padding_min > share) { in context_grow_partitions_phase()
756 … } else if (phase == PHASE_UNDERCHARGE && p->padding_max != UINT64_MAX && p->padding_max < share) { in context_grow_partitions_phase()
762 if (p->padding_min != UINT64_MAX && p->new_padding < p->padding_min) in context_grow_partitions_phase()
795 assert(a->after->offset != UINT64_MAX); in context_grow_partitions_on_free_area()
796 assert(a->after->current_size != UINT64_MAX); in context_grow_partitions_on_free_area()
815 assert(a->after->new_size != UINT64_MAX); in context_grow_partitions_on_free_area()
821 if (xsz != UINT64_MAX && m > xsz) in context_grow_partitions_on_free_area()
840 assert(p->new_size != UINT64_MAX); in context_grow_partitions_on_free_area()
844 if (xsz != UINT64_MAX && m > xsz) in context_grow_partitions_on_free_area()
856 assert(a->after->new_padding != UINT64_MAX); in context_grow_partitions_on_free_area()
881 assert(p->new_size != UINT64_MAX); in context_grow_partitions()
885 assert(p->new_size == UINT64_MAX); in context_grow_partitions()
888 assert(p->new_padding == UINT64_MAX); in context_grow_partitions()
905 assert(p->partno != UINT64_MAX); in context_place_partitions()
916 assert(a->after->offset != UINT64_MAX); in context_place_partitions()
917 assert(a->after->new_size != UINT64_MAX); in context_place_partitions()
918 assert(a->after->new_padding != UINT64_MAX); in context_place_partitions()
1348 if (p->size_min != UINT64_MAX && p->size_max != UINT64_MAX && p->size_min > p->size_max) in partition_read_definition()
1352 …if (p->padding_min != UINT64_MAX && p->padding_max != UINT64_MAX && p->padding_min > p->padding_ma… in partition_read_definition()
1440 uint64_t offset, next = UINT64_MAX; in determine_current_padding()
1450 assert(offset < UINT64_MAX / secsz); in determine_current_padding()
1469 assert(start < UINT64_MAX / secsz); in determine_current_padding()
1472 if (start >= offset && (next == UINT64_MAX || next > start)) in determine_current_padding()
1476 if (next == UINT64_MAX) { in determine_current_padding()
1479 assert(next < UINT64_MAX); in determine_current_padding()
1482 assert(next < UINT64_MAX / secsz); in determine_current_padding()
1559 uint64_t left_boundary = UINT64_MAX, first_lba, last_lba, nsectors; in context_load_partition_table()
1573 assert(context->start == UINT64_MAX); in context_load_partition_table()
1574 assert(context->end == UINT64_MAX); in context_load_partition_table()
1575 assert(context->total == UINT64_MAX); in context_load_partition_table()
1770 assert(sz <= UINT64_MAX/secsz); in context_load_partition_table()
1774 assert(start <= UINT64_MAX/secsz); in context_load_partition_table()
1779 if (left_boundary == UINT64_MAX || left_boundary > start) in context_load_partition_table()
1850 assert(nsectors <= UINT64_MAX/secsz); in context_load_partition_table()
1854 assert(first_lba <= UINT64_MAX/secsz); in context_load_partition_table()
1858 assert(last_lba < UINT64_MAX); in context_load_partition_table()
1860 assert(last_lba <= UINT64_MAX/secsz); in context_load_partition_table()
1865 if (left_boundary == UINT64_MAX) { in context_load_partition_table()
1916 p->current_size = UINT64_MAX; in context_unload_partition_table()
1917 p->new_size = UINT64_MAX; in context_unload_partition_table()
1918 p->current_padding = UINT64_MAX; in context_unload_partition_table()
1919 p->new_padding = UINT64_MAX; in context_unload_partition_table()
1920 p->partno = UINT64_MAX; in context_unload_partition_table()
1921 p->offset = UINT64_MAX; in context_unload_partition_table()
1940 context->start = UINT64_MAX; in context_unload_partition_table()
1941 context->end = UINT64_MAX; in context_unload_partition_table()
1942 context->total = UINT64_MAX; in context_unload_partition_table()
1955 if (from != UINT64_MAX) { in format_size_change()
1956 if (from == to || to == UINT64_MAX) in format_size_change()
1960 } else if (to != UINT64_MAX) in format_size_change()
2025 if (p->current_size == UINT64_MAX) in context_dump_partitions()
2031 partname = p->partno != UINT64_MAX ? fdisk_partname(node, p->partno+1) : NULL; in context_dump_partitions()
2041 if (p->new_size != UINT64_MAX) in context_dump_partitions()
2043 if (p->new_padding != UINT64_MAX) in context_dump_partitions()
2054 TABLE_UINT64, p->current_size == UINT64_MAX ? 0 : p->current_size, in context_dump_partitions()
2057 … TABLE_UINT64, p->current_padding == UINT64_MAX ? 0 : p->current_padding, in context_dump_partitions()
2111 assert(p->offset != UINT64_MAX); in context_bar_char_process_partition()
2112 assert(p->new_size != UINT64_MAX); in context_bar_char_process_partition()
2153 if (p->partno != UINT64_MAX) { in partition_hint()
2310 assert(offset != UINT64_MAX); in context_wipe_range()
2311 assert(size != UINT64_MAX); in context_wipe_range()
2352 assert(p->offset != UINT64_MAX); in context_wipe_partition()
2353 assert(p->new_size != UINT64_MAX); in context_wipe_partition()
2372 assert(offset != UINT64_MAX); in context_discard_range()
2373 assert(size != UINT64_MAX); in context_discard_range()
2399 if (offset > UINT64_MAX - size) in context_discard_range()
2429 assert(p->offset != UINT64_MAX); in context_discard_partition()
2430 assert(p->new_size != UINT64_MAX); in context_discard_partition()
2458 uint64_t gap, next = UINT64_MAX; in context_discard_gap_after()
2462 assert(!p || (p->offset != UINT64_MAX && p->new_size != UINT64_MAX)); in context_discard_gap_after()
2473 assert(q->offset != UINT64_MAX); in context_discard_gap_after()
2474 assert(q->new_size != UINT64_MAX); in context_discard_gap_after()
2479 if (next == UINT64_MAX || q->offset < next) in context_discard_gap_after()
2483 if (next == UINT64_MAX) { in context_discard_gap_after()
2755 assert(p->new_size != UINT64_MAX); in context_copy_blocks()
2756 assert(p->copy_blocks_size != UINT64_MAX); in context_copy_blocks()
2900 r = copy_bytes(sfd, tfd, UINT64_MAX, COPY_REFLINK|COPY_SIGINT); in do_copy_files()
3003 assert(p->offset != UINT64_MAX); in context_mkfs()
3004 assert(p->new_size != UINT64_MAX); in context_mkfs()
3325 assert(p->new_size != UINT64_MAX); in context_mangle_partitions()
3326 assert(p->offset != UINT64_MAX); in context_mangle_partitions()
3327 assert(p->partno != UINT64_MAX); in context_mangle_partitions()
3606 assert(p->partno != UINT64_MAX); in context_factory_reset()
3951 assert(p->copy_blocks_size == UINT64_MAX); in context_open_copy_block_paths()
4263 arg_size = UINT64_MAX; in parse_argv()
4275 if (rounded == UINT64_MAX) in parse_argv()
4299 AT_FDCWD, optarg, UINT64_MAX, SIZE_MAX, in parse_argv()
4371 if (arg_empty == EMPTY_CREATE && (arg_size == UINT64_MAX && !arg_size_auto)) in parse_argv()
4660 if (arg_size == UINT64_MAX) /* Nothing to do */ in resize_backing_fd()
4767 r = loop_device_refresh_size(loop_device, UINT64_MAX, arg_size); in resize_backing_fd()
4789 if (m > UINT64_MAX - sum) in determine_auto_size()
4795 if (c->total != UINT64_MAX) in determine_auto_size()
4889 if (arg_size != UINT64_MAX) { in run()
4960 assert(arg_size != UINT64_MAX); in run()