Lines Matching refs:pe
207 struct part_entry *pe; in check_order() local
212 pe = &partitions[i]; in check_order()
213 px = pe->part; in check_order()
215 first[i] = swap_le32toh(px->start4) + pe->start_offset; in check_order()
303 struct part_entry *pe = &partitions[i]; in reset_boot() local
304 pe->part = part_offset(MBRbuf, i); in reset_boot()
305 pe->start_offset = 0; in reset_boot()
306 pe->sec_buffer = MBRbuf; in reset_boot()
307 pe->modified = change; in reset_boot()
576 struct part_entry *pe = &partitions[i]; in delete_partition() local
579 p = pe->part; in delete_partition()
585 pe->modified = 1; in delete_partition()
588 pe->modified = 1; in delete_partition()
590 pe = &partitions[looper]; in delete_partition()
591 p = pe->part; in delete_partition()
595 pe->modified = 1; in delete_partition()
596 free(pe->sec_buffer); in delete_partition()
662 struct part_entry *pe; in write_table() local
669 pe = &partitions[i]; in write_table()
670 write_table_flag(pe->sec_buffer); in write_table()
671 offset = pe->start_offset; in write_table()
672 if (pe->modified == 1) { in write_table()
674 xwrite(dev_fd, pe->sec_buffer, g_sect_size); in write_table()
883 struct part_entry *pe = &partitions[i]; in ask_end_sector() local
884 if (start < pe->start_offset && limit >= pe->start_offset) limit = pe->start_offset - 1; in ask_end_sector()
918 struct part_entry *pe = &partitions[idx]; in add_partition() local
919 struct partition *p = pe->part; in add_partition()
926 pe = &partitions[i]; in add_partition()
927 p = pe->part; in add_partition()
932 begin_sec[i] = swap_le32toh(p->start4) + pe->start_offset; in add_partition()
941 pe = &partitions[idx]; in add_partition()
942 p = pe->part; in add_partition()
945 if (dos_flag) pe->start_offset = start - (sector_t)g_sectors; in add_partition()
946 else pe->start_offset = start - 1; in add_partition()
947 if (pe->start_offset == extended_offset) pe->start_offset++; in add_partition()
951 set_levalue(p->start4, start - pe->start_offset); in add_partition()
956 pe->modified = 1; in add_partition()
960 set_levalue(p->start4, pe->start_offset - extended_offset); in add_partition()
962 set_hsc(p, pe->start_offset, end); in add_partition()
968 pe = &partitions[4]; in add_partition()
969 pe->modified = 1; in add_partition()
970 pe->sec_buffer = xzalloc(g_sect_size); in add_partition()
971 pe->part = part_offset(pe->sec_buffer, 0); in add_partition()
972 pe->start_offset = extended_offset = start; in add_partition()
980 struct part_entry *pe; in add_logical_partition() local
982 pe = &partitions[num_parts]; in add_logical_partition()
983 pe->modified = 1; in add_logical_partition()
984 pe->sec_buffer = xzalloc(g_sect_size); in add_logical_partition()
985 pe->part = part_offset(pe->sec_buffer, 0); in add_logical_partition()
986 pe->start_offset = 0; in add_logical_partition()
990 free(pe->sec_buffer); in add_logical_partition()
1043 struct part_entry *pe; in change_systype() local
1046 pe = &partitions[i-1]; in change_systype()
1047 p = pe->part; in change_systype()
1061 pe->modified = 1; in change_systype()
1086 struct part_entry *pe; in verify_table() local
1090 pe = &partitions[i]; in verify_table()
1091 p = pe->part; in verify_table()
1096 begin_sec[i] = swap_le32toh(p->start4) + pe->start_offset; in verify_table()
1102 pe = &partitions[i]; in verify_table()
1103 p = pe->part; in verify_table()
1106 if ((swap_le32toh(p->start4) + pe->start_offset) < begin_sec[i]) in verify_table()
1148 struct part_entry *pe = &partitions[idx]; in move_begning() local
1149 struct partition *p = pe->part; in move_begning()
1152 start = swap_le32toh(p->start4) + pe->start_offset; in move_begning()
1164 set_levalue(p->start4, new_start - pe->start_offset); in move_begning()
1168 pe->modified = 1; in move_begning()
1175 struct part_entry *pe; in print_raw_sectors() local
1179 pe = &partitions[i]; in print_raw_sectors()
1182 xprintf("%02X ",pe->sec_buffer[j]); in print_raw_sectors()
1191 struct part_entry *pe; in print_partitions_list() local
1198 pe = &partitions[i]; in print_partitions_list()
1199 p = pe->part; in print_partitions_list()
1201 if (ext && (i >= 4)) p = pe->part + 1; in print_partitions_list()
1222 struct part_entry *pe; in fix_order() local
1226 pe = &partitions[i]; in fix_order()
1227 px = pe->part; in fix_order()
1229 else first[i] = swap_le32toh(px->start4) + pe->start_offset; in fix_order()