Lines Matching defs:lens
363 fetch_sun(uint *starts, uint *lens, uint *start, uint *stop)
374 lens[i] = SUN_SSWAP32(sunlabel->partitions[i].num_sectors);
377 *start += lens[i];
378 else if (starts[i] + lens[i] >= *stop)
387 lens[i] = 0;
406 uint starts[8], lens[8], start, stop;
411 fetch_sun(starts,lens,&start,&stop);
414 if (k && (lens[i] % (heads * sectors))) {
417 if (lens[i]) {
419 if (lens[j]) {
420 if (starts[j] == starts[i]+lens[i]) {
421 starts[j] = starts[i]; lens[j] += lens[i];
422 lens[i] = 0;
423 } else if (starts[i] == starts[j]+lens[j]){
424 lens[j] += lens[i];
425 lens[i] = 0;
427 if (starts[i] < starts[j]+lens[j]
428 && starts[j] < starts[i]+lens[i]) {
432 endo = starts[i]+lens[i];
433 if (starts[j]+lens[j] < endo)
434 endo = starts[j]+lens[j];
444 if (lens[i])
459 printf("Unused gap - sectors %d-%d\n", starts[array[i]]+lens[array[i]], starts[array[i+1]]);
461 start = starts[array[i]] + lens[array[i]];
470 uint starts[8], lens[8];
481 fetch_sun(starts,lens,&start,&stop);
524 if (lens[i] && starts[i] <= first && starts[i] + lens[i] > first)