Lines Matching refs:end

102 static void set_hsc(struct partition *p, sector_t start, sector_t end)
113 if (dos_flag && (end / (g_sectors * g_heads) > 1023))
114 end = g_heads * g_sectors * ONE_K - 1;
115 p->end_sector = (end % g_sectors) + 1;
116 end /= g_sectors;
117 p->end_head = end % g_heads;
118 end /= g_heads;
119 p->end_cyl = end & 0xFF;
120 p->end_sector |= (end >> 2) & 0xc0;
411 sector_t start, end;
422 // logical begin and end CHS values
424 end = start + swap_le32toh((unsigned char*)(p->size4)) -1;
430 lec = end/(g_sectors * g_heads);
431 leh = (end/g_sectors) % g_heads;
432 les = (end % g_sectors) + 1;
447 xprintf("Partition %u does not end on cylinder boundary\n", partition + 1);
724 //taking user input for partition start/end sectors/cyinders
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)
830 limit = end[ext_idx];
834 if (asked) valid = validate(start_index, begin, end, start, asked);
839 if (start >= begin[i] && start <= end[i])
840 start = end[i] + 1 + ((idx >= 4)? offset : 0);
841 } while (!validate(start_index, begin, end, start, 0));
866 //get the end sector/cylinder of a new partition
867 static sector_t ask_end_sector(int idx, sector_t* begin, sector_t* end, int ext_idx, sector_t start_sec)
880 if (idx >= 4) limit = end[ext_idx];
917 sector_t start, end, begin_sec[num_parts], end_sec[num_parts];
938 end = ask_end_sector(idx, begin_sec, end_sec, ext_idx, start);
939 if (!end) return 0;
952 set_levalue(p->size4, end - start + 1);
953 set_hsc(p, start, end);
961 set_levalue(p->size4, end - start + 1 + (dos_flag? g_sectors: 1));
962 set_hsc(p, pe->start_offset, end);
1146 sector_t start, num, new_start, end;
1154 end = start + num -1;
1161 (long long int)(end), (long long int)(start));
1162 new_start = ask_value(mesg, 0, end, start);
1165 set_levalue(p->size4, end - new_start +1);
1167 set_hsc(p, new_start, end);