Lines Matching refs:partition
51 struct partition { struct
57 struct partition *part; argument
91 static struct partition* part_offset(char *secbuf, int i) in part_offset()
93 return (struct partition*)(secbuf + 0x1be + i*(sizeof(struct partition))); in part_offset()
102 static void set_hsc(struct partition *p, sector_t start, sector_t end) in set_hsc()
186 static int is_partition_clear(struct partition* p) in is_partition_clear()
192 for (i = 0; i < sizeof(struct partition); i++) res |= (unsigned char)ptr[i]; in is_partition_clear()
208 struct partition *px; in check_order()
239 struct partition *p, *q; in read_ebr()
248 memset(q, 0, sizeof(struct partition)); //clear_partition in read_ebr()
273 struct partition *p; in physical_HS()
407 static void consistency_check(const struct partition *p, int partition) in consistency_check() argument
413 if (!g_heads || !g_sectors || (partition >= 4)) return; in consistency_check()
436 xprintf("Partition %u has different physical/logical beginings (Non-Linux?): \n", partition+1); in consistency_check()
441 xprintf("Partition %u has different physical/logical endings: \n", partition+1); in consistency_check()
447 xprintf("Partition %u does not end on cylinder boundary\n", partition + 1); in consistency_check()
453 struct partition *p; in list_partitions()
574 struct partition *p, *q, *ext_p, *ext_q; in delete_partition()
584 memset(p, 0, sizeof(struct partition)); //clear_partition in delete_partition()
587 memset(p, 0, sizeof(struct partition)); //clear_partition in delete_partition()
594 memset(p, 0, sizeof(struct partition)); //clear_partition in delete_partition()
616 memset(partitions[i].part, 0, sizeof(struct partition)); in delete_partition()
622 memcpy((void*)ext_p, (void *)ext_q, sizeof(struct partition)); in delete_partition()
649 struct partition *p = partitions[i].part; in toggle_active_flag()
919 struct partition *p = pe->part; in add_partition()
1042 struct partition *p; in change_systype()
1087 struct partition *p; in verify_table()
1149 struct partition *p = pe->part; in move_begning()
1192 struct partition *p; in print_partitions_list()
1223 struct partition *px, *py, temp, *pj, *pjj, tmp; in fix_order()
1241 memcpy(&temp, py, sizeof(struct partition)); in fix_order()
1242 memcpy(py, px, sizeof(struct partition)); in fix_order()
1243 memcpy(px, &temp, sizeof(struct partition)); in fix_order()