Lines Matching defs:limit
796 //validating if the start given falls in a limit or not
814 sector_t start, limit, temp = 0, start_cyl, limit_cyl, offset = 1;
820 if (disp_unit_cyl) limit = (sector_t)g_sectors * g_heads * g_cylinders - 1;
821 else limit = total_number_sectors - 1;
830 limit = end[ext_idx];
844 limit_cyl = limit/(g_sectors * g_heads) + 1;
846 if (start > limit) break;
849 (long long int)(disp_unit_cyl? limit_cyl : limit),
852 disp_unit_cyl? limit_cyl : limit, disp_unit_cyl? start_cyl : start);
869 sector_t limit, temp = 0, start_cyl, limit_cyl, start = start_sec;
873 if (disp_unit_cyl) limit = (sector_t)g_sectors * g_heads * g_cylinders - 1;
874 else limit = total_number_sectors - 1;
880 if (idx >= 4) limit = end[ext_idx];
884 if (start < pe->start_offset && limit >= pe->start_offset) limit = pe->start_offset - 1;
885 if (start < begin[i] && limit >= begin[i]) limit = begin[i] - 1;
889 limit_cyl = limit/(g_sectors * g_heads) + 1;
890 if (limit < start) { //the boundary is falling in the already used sectors.
897 (long long int)(disp_unit_cyl? limit_cyl : limit),
898 (long long int)(disp_unit_cyl? limit_cyl : limit));
900 disp_unit_cyl? limit_cyl : limit, disp_unit_cyl? limit_cyl : limit);
904 if (temp > limit) temp = limit;
997 * MAX partitions limit is taken to be 60, can be changed