Lines Matching refs:next
1440 uint64_t offset, next = UINT64_MAX; in determine_current_padding() local
1472 if (start >= offset && (next == UINT64_MAX || next > start)) in determine_current_padding()
1473 next = start; in determine_current_padding()
1476 if (next == UINT64_MAX) { in determine_current_padding()
1478 next = fdisk_get_last_lba(c); in determine_current_padding()
1479 assert(next < UINT64_MAX); in determine_current_padding()
1480 next++; /* The last LBA is one sector before the end */ in determine_current_padding()
1482 assert(next < UINT64_MAX / secsz); in determine_current_padding()
1483 next *= secsz; in determine_current_padding()
1485 if (offset > next) in determine_current_padding()
1489 assert(next >= offset); in determine_current_padding()
1491 next = round_down_size(next, grainsz); in determine_current_padding()
1493 … *ret = LESS_BY(next, offset); /* Saturated subtraction, rounding might have fucked things up */ in determine_current_padding()
2458 uint64_t gap, next = UINT64_MAX; in context_discard_gap_after() local
2479 if (next == UINT64_MAX || q->offset < next) in context_discard_gap_after()
2480 next = q->offset; in context_discard_gap_after()
2483 if (next == UINT64_MAX) { in context_discard_gap_after()
2484 next = context->end; in context_discard_gap_after()
2485 if (gap > next) in context_discard_gap_after()
2489 assert(next >= gap); in context_discard_gap_after()
2490 r = context_discard_range(context, gap, next - gap); in context_discard_gap_after()