/illumos-gate/usr/src/cmd/format/ |
H A D | menu_fdisk.c | 98 static int get_solaris_part(int fd, struct ipart *ipart); 120 fill_ipart(char *bootptr, struct ipart *partp) in fill_ipart() 148 (void) bcopy(bootptr, partp, sizeof (struct ipart)); in fill_ipart() 481 get_solaris_part(int fd, struct ipart *ipart) argument 484 struct ipart ip; 525 ipc = i * sizeof (struct ipart); 555 ipart->bootid = ip.bootid; 556 status = bcmp(&ip, ipart, 557 sizeof (struct ipart)); 558 bcopy(&ip, ipart, sizeof (struct ipart)); [all …]
|
H A D | menu_fdisk.h | 38 int copy_solaris_part(struct ipart *ipart);
|
H A D | hardware_structs.h | 59 struct ipart fdisk_part; /* fdisk partition info */
|
H A D | global.h | 280 int copy_solaris_part(struct ipart *);
|
/illumos-gate/usr/src/cmd/hal/utils/ |
H A D | fsutils.c | 119 struct ipart ipart[FD_NUMPART]; in walk_partitions() local 136 bcopy(mboot->parts, ipart, FD_NUMPART * sizeof (struct ipart)); in walk_partitions() 139 systid = ipart[i].systid; in walk_partitions() 140 relsect = sec + ltohi(ipart[i].relsect); in walk_partitions() 146 sec = startsec + ltohi(ipart[i].relsect); in walk_partitions() 153 if (valid && f(arg, ipart[i].systid, relsect, in walk_partitions() 154 ltohi(ipart[i].numsect)) == WALK_TERMINATE) { in walk_partitions()
|
/illumos-gate/usr/src/cmd/fstyp/ |
H A D | fstyp.c | 313 struct ipart ipart[FD_NUMPART]; in walk_partitions() local 330 bcopy(mboot->parts, ipart, FD_NUMPART * sizeof (struct ipart)); in walk_partitions() 333 systid = ipart[i].systid; in walk_partitions() 334 relsect = sec + ltohi(ipart[i].relsect); in walk_partitions() 340 sec = startsec + ltohi(ipart[i].relsect); in walk_partitions() 347 if (valid && f(arg, ipart[i].systid, relsect, in walk_partitions() 348 ltohi(ipart[i].numsect)) == WALK_TERMINATE) { in walk_partitions()
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | partition.c | 58 #define ISIZE FD_NUMPART * sizeof (struct ipart) 61 static int get_attrs(descriptor_t *dp, struct ipart *iparts, 63 static int get_parts(disk_t *disk, struct ipart *iparts, char *opath, 105 struct ipart iparts[TOTAL_NUMPART]; in partition_get_assocs() 231 struct ipart iparts[TOTAL_NUMPART]; in partition_get_attributes() 359 struct ipart iparts[TOTAL_NUMPART]; in partition_make_descriptors() 420 get_attrs(descriptor_t *dp, struct ipart *iparts, nvlist_t *attrs) in get_attrs() 549 get_parts(disk_t *disk, struct ipart *iparts, char *opath, int opath_len) in get_parts() 604 (void) memset(&iparts[i], 0, sizeof (struct ipart)); in get_parts() 732 struct ipart iparts[TOTAL_NUMPART]; in has_slices()
|
/illumos-gate/usr/src/lib/libfdisk/common/ |
H A D | libfdisk.c | 58 static void fdisk_set_CHS_values(ext_part_t *epp, struct ipart *part); 60 static struct ipart *fdisk_alloc_part_table(); 153 libfdisk_init(ext_part_t **epp, char *devstr, struct ipart *parttab, int opflag) in libfdisk_init() 623 struct ipart *fdp, *ext_fdp; in fdisk_read_extpart() 657 ext_fdp = (struct ipart *) in fdisk_read_extpart() 751 static struct ipart * 754 int size = sizeof (struct ipart); in fdisk_alloc_part_table() 755 struct ipart *table; in fdisk_alloc_part_table() 776 int size = sizeof (struct ipart); in fdisk_read_master_part_table() 819 struct ipart *part_table = epp->mtable; in fdisk_ext_part_exists() [all …]
|
H A D | libfdisk.h | 137 struct ipart parts[2]; 200 struct ipart *mtable; 272 extern int libfdisk_init(ext_part_t **epp, char *devstr, struct ipart *parttab,
|
/illumos-gate/usr/src/lib/libgrubmgmt/common/ |
H A D | libgrub_fs.c | 97 struct ipart *ipart; in get_sol_prtnum() local 141 ipart = (struct ipart *)(uintptr_t)mb->parts; in get_sol_prtnum() 143 if (ipart[i].systid == SUNIXOS || ipart[i].systid == SUNIXOS2) in get_sol_prtnum() 147 if (!fdisk_is_dos_extended(ipart[i].systid) || in get_sol_prtnum()
|
/illumos-gate/usr/src/uts/common/sys/dktp/ |
H A D | fdisk.h | 75 struct ipart { struct 151 char parts[FD_NUMPART * sizeof (struct ipart)];
|
/illumos-gate/usr/src/cmd/fdisk/ |
H A D | fdisk.c | 309 static struct ipart Table[FD_NUMPART]; 310 static struct ipart Old_Table[FD_NUMPART]; 664 static void fill_ipart(char *bootptr, struct ipart *partp); 1542 struct ipart *part; in mboot_read() 1594 part = (struct ipart *)BootCod.parts; in mboot_read() 1596 (void) memset(part, 0, sizeof (struct ipart)); in mboot_read() 2041 sizeof (struct ipart)); in load() 2322 (void) memset(&Table[i], 0, sizeof (struct ipart)); in insert_tbl() 3085 struct ipart *partition[FD_NUMPART]; 3086 struct ipart localpart[FD_NUMPART]; [all …]
|
/illumos-gate/usr/src/lib/libefi/common/ |
H A D | rdwr_efi.c | 241 struct ipart *ipart; in efi_alloc_and_read() local 261 ipart = (struct ipart *)(uintptr_t)mbr->parts; in efi_alloc_and_read() 265 if (ipart[i].systid == EFI_PMBR) in efi_alloc_and_read() 756 cp = (uchar_t *)&mb.parts[slot * sizeof (struct ipart)]; in write_pmbr()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/disk_label/ |
H A D | disk_label.c | 127 print_fdisk_part(struct ipart *ip, size_t nr) in print_fdisk_part() 572 struct ipart *ip = (struct ipart *) in cmd_mbr() 573 (mbr->parts + (sizeof (struct ipart) * i)); in cmd_mbr()
|
/illumos-gate/usr/src/cmd/rmformat/ |
H A D | rmf_slice.c | 1120 struct ipart *part; in get_fdisk() 1197 part = (struct ipart *)&boot_sec->parts[i * in get_fdisk() 1198 sizeof (struct ipart)]; in get_fdisk() 1331 struct ipart parts[FD_NUMPART]; in write_default_label()
|
/illumos-gate/usr/src/cmd/boot/installgrub/ |
H A D | installgrub.c | 731 struct ipart *part = NULL; in get_start_sector() 780 part = (struct ipart *)mboot->parts + i; in get_start_sector() 1463 struct ipart *part; in find_x86_bootpar() 1465 part = (struct ipart *)mboot->parts + i; in find_x86_bootpar()
|
/illumos-gate/usr/src/cmd/boot/installboot/i386/ |
H A D | installboot.c | 848 struct ipart *part; in print_stage1_cb() 863 part = (struct ipart *)mbr->parts; in print_stage1_cb() 1304 struct ipart *part; in get_start_sector() 1341 part = (struct ipart *)mbr->parts; in get_start_sector() 1545 struct ipart *part; in probe_mbr() 1559 part = (struct ipart *)mbr->parts; in probe_mbr()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | cmlb.c | 323 static boolean_t cmlb_has_max_chs_vals(struct ipart *fdp); 2391 struct ipart *fdp; 2393 struct ipart fdisk[FD_NUMPART]; 2404 struct ipart eparts[2]; 2405 struct ipart *efdp1 = &eparts[0]; 2406 struct ipart *efdp2 = &eparts[1]; 2777 struct ipart *fdp; 2779 struct ipart fdisk[FD_NUMPART]; 3579 cmlb_has_max_chs_vals(struct ipart *fdp)
|
/illumos-gate/usr/src/cmd/fs.d/pcfs/common/ |
H A D | pcfs_common.c | 457 struct ipart part[FD_NUMPART]; in findPartitionOffset()
|
/illumos-gate/usr/src/cmd/fs.d/pcfs/mkfs/ |
H A D | mkfs_main.c | 168 static void fill_bpb_sizes(bpb_t *wbpb, struct ipart part[], 426 fill_bpb_sizes(bpb_t *wbpb, struct ipart part[], int partno, off64_t offset) in fill_bpb_sizes() 511 struct ipart part[FD_NUMPART]; in seek_partn()
|
/illumos-gate/usr/src/uts/common/fs/pcfs/ |
H A D | pc_vfsops.c | 1540 FD_NUMPART * sizeof (struct ipart)) 1548 struct ipart dosp[FD_NUMPART]; /* incore fdisk partition structure */ in findTheDrive()
|
/illumos-gate/usr/src/cmd/boot/bootadm/ |
H A D | bootadm.c | 5616 struct ipart *part = 5617 (struct ipart *)(uintptr_t)mboot->parts + i;
|