Lines Matching defs:begin
422 // logical begin and end CHS values
797 static int validate(int start_index, sector_t* begin,sector_t* end, sector_t start
802 if (start >= begin[i] && start <= end[i]) {
812 static sector_t ask_start_sector(int idx, sector_t* begin, sector_t* end, int ext_idx)
823 if (disp_unit_cyl) //make the begin of every partition to cylnder boundary
825 begin[i] = (begin[i]/(g_heads* g_sectors)) * (g_heads* g_sectors);
828 if (!begin[ext_idx] && extended_offset) begin[ext_idx] = extended_offset;
829 start = begin[ext_idx] + offset;
834 if (asked) valid = validate(start_index, begin, end, start, asked);
839 if (start >= begin[i] && start <= end[i])
841 } while (!validate(start_index, begin, end, start, 0));
867 static sector_t ask_end_sector(int idx, sector_t* begin, sector_t* end, int ext_idx, sector_t start_sec)
876 if (disp_unit_cyl) //make the begin of every partition to cylnder boundary
878 begin[i] = (begin[i]/(g_heads* g_sectors)) * (g_heads* g_sectors);
885 if (start < begin[i] && limit >= begin[i]) limit = begin[i] - 1;