Lines Matching refs:stop

47 #define	CHUNKSZ(_c)		((_c)->stop - (_c)->start)
67 u_int64_t stop; member
412 for (; chunk->start != 0 || chunk->stop != 0; chunk++) { in editor()
416 chunk->start, chunk->stop - 1, in editor()
563 largest.start = largest.stop = 0; in allocate_diskchunk()
566 for (; chunk->start != 0 || chunk->stop != 0; chunk++) { in allocate_diskchunk()
571 if (maxstop > largest.stop) in allocate_diskchunk()
572 maxstop = largest.stop; in allocate_diskchunk()
577 if (maxstop > largest.stop) in allocate_diskchunk()
580 largest.start = largest.stop = maxstop = 0; in allocate_diskchunk()
583 if (maxstop < largest.stop) in allocate_diskchunk()
584 largest.stop = maxstop; in allocate_diskchunk()
622 DL_SETPSIZE(pp, chunk->stop - chunk->start); in allocate_partition()
803 for (; chunk->start != 0 || chunk->stop != 0; chunk++) { in editor_add()
1355 u_int64_t start, stop; in free_chunks() local
1364 chunks[0].stop = ending_sector; in free_chunks()
1365 chunks[1].start = chunks[1].stop = 0; in free_chunks()
1373 chunks[0].stop = DL_GETPOFFSET(spp[0]); in free_chunks()
1383 stop = DL_GETPOFFSET(spp[i+1]); in free_chunks()
1385 stop = ending_sector; in free_chunks()
1386 if (stop < starting_sector) in free_chunks()
1387 stop = starting_sector; in free_chunks()
1388 else if (stop > ending_sector) in free_chunks()
1389 stop = ending_sector; in free_chunks()
1390 if (start < stop) { in free_chunks()
1392 chunks[numchunks].stop = stop; in free_chunks()
1398 chunks[numchunks].start = chunks[numchunks].stop = 0; in free_chunks()
1428 for (; chunk->start != 0 || chunk->stop != 0; chunk++) in editor_countfree()
1817 for (; chunk->start != 0 || chunk->stop != 0; chunk++) { in max_partition_size()
1818 if (offset < chunk->start || offset >= chunk->stop) in max_partition_size()
1820 maxsize = chunk->stop - offset; in max_partition_size()
2037 u_int64_t start, stop, maxstop; in alignpartition() local
2047 for (; chunk->start != 0 || chunk->stop != 0; chunk++) { in alignpartition()
2048 if (start >= chunk->start && start < chunk->stop) in alignpartition()
2051 if (chunk->stop == 0) { in alignpartition()
2060 maxstop = ROUNDDOWN(chunk->stop, stopalign); in alignpartition()
2064 stop = DL_GETPOFFSET(pp) + DL_GETPSIZE(pp); in alignpartition()
2066 stop = ROUNDUP(stop, stopalign); in alignpartition()
2068 stop = ROUNDDOWN(stop, stopalign); in alignpartition()
2069 if (stop > maxstop) in alignpartition()
2070 stop = maxstop; in alignpartition()
2072 if (stop <= start) { in alignpartition()
2079 if (stop != DL_GETPOFFSET(pp) + DL_GETPSIZE(pp)) in alignpartition()
2080 DL_SETPSIZE(pp, stop - start); in alignpartition()