/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | vdsk_common.c | 110 vd_efi_swap_gpt(efi_gpt_t *gpt) argument 112 gpt->efi_gpt_Signature = LE_64(gpt->efi_gpt_Signature); 113 gpt->efi_gpt_Revision = LE_32(gpt->efi_gpt_Revision); 114 gpt->efi_gpt_HeaderSize = LE_32(gpt->efi_gpt_HeaderSize); 115 gpt->efi_gpt_HeaderCRC32 = LE_32(gpt->efi_gpt_HeaderCRC32); 116 gpt 161 vd_efi_check_gpt(vd_efi_dev_t *dev, efi_gpt_t *gpt) argument 211 efi_gpt_t *gpt = NULL; local 355 vd_efi_free(vd_efi_dev_t *dev, efi_gpt_t *gpt, efi_gpe_t *gpe) argument [all...] |
H A D | vdc.c | 5655 efi_gpt_t *gpt; local 5667 if ((rv = vd_efi_alloc_and_read(&edev, &gpt, &gpe)) != 0) { 5673 if (partno >= gpt->efi_gpt_NumberOfPartitionEntries) { 5674 vd_efi_free(&edev, gpt, gpe); 5684 vd_efi_free(&edev, gpt, gpe); 5688 vd_efi_free(&edev, gpt, gpe); 8309 efi_gpt_t *gpt; local 8347 rv = vd_efi_alloc_and_read(&edev, &gpt, &gpe); 8358 vdc_store_label_efi(vdc, gpt, gpe); 8359 vd_efi_free(&edev, gpt, gp 8652 vdc_store_label_efi(vdc_t *vdc, efi_gpt_t *gpt, efi_gpe_t *gpe) argument [all...] |
H A D | vds.c | 3143 vds_efi_alloc_and_read(vd_t *vd, efi_gpt_t **gpt, efi_gpe_t **gpe) argument 3150 status = vd_efi_alloc_and_read(&edev, gpt, gpe); 3156 vds_efi_free(vd_t *vd, efi_gpt_t *gpt, efi_gpe_t *gpe) argument 3162 vd_efi_free(&edev, gpt, gpe); 3168 efi_gpt_t *gpt; local 3173 if ((status = vds_efi_alloc_and_read(vd, &gpt, &gpe)) != 0) 3182 nparts = gpt->efi_gpt_NumberOfPartitionEntries; 3205 vds_efi_free(vd, gpt, gpe); 5803 efi_gpt_t *gpt; local 5822 gpt [all...] |
/illumos-gate/usr/src/cmd/hal/probing/storage/ |
H A D | probe-storage.c | 352 dk_gpt_t *gpt; local 451 } else if (!is_cdrom && (efi_alloc_and_read(rfd, &gpt) >= 0)) { 454 * Needs more investigation, skip gpt on cdrom for now. 457 scheme = "gpt"; 458 efi_free(gpt);
|
/illumos-gate/usr/src/cmd/hal/probing/volume/ |
H A D | probe-volume.c | 444 dk_gpt_t *gpt; local 574 } else if ((partition_number = efi_alloc_and_read(rfd, &gpt)) >= 0) { 575 partition_scheme = "gpt"; 576 if (partition_number < gpt->efi_nparts) { 577 if (gpt->efi_parts[partition_number].p_size == 0) { 580 partition_start = gpt->efi_parts[partition_number].p_start * block_size; 582 efi_free(gpt);
|
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_nameinfo.c | 98 meta_efi_to_mdgeom(md_unit_t *mdev, struct dk_gpt *gpt, mdgeom_t *mdgp) argument 114 mdgp->ncyl = (gpt->efi_last_u_lba - gpt->efi_first_u_lba) 127 meta_efi_to_mdvtoc(struct dk_gpt *gpt, mdvtoc_t *mdvp) argument 133 mdvp->nparts = gpt->efi_nparts; 137 mdvp->first_lba = gpt->efi_first_u_lba; 138 mdvp->last_lba = gpt->efi_last_u_lba; 139 mdvp->lbasize = gpt->efi_lbasize; 141 for (i = 0; (i < gpt->efi_nparts); ++i) { 142 mdvp->parts[i].start = gpt 175 meta_mdvtoc_to_efi(mdvtoc_t *mdvp, struct dk_gpt **gpt) argument 604 struct dk_gpt *gpt; local 755 struct dk_gpt *gpt; local [all...] |
/illumos-gate/usr/src/lib/libbe/common/ |
H A D | be_activate.c | 838 struct dk_gpt *gpt; local 851 if ((npart = efi_alloc_and_read(fd, &gpt)) <= 0) 857 u = &gpt->efi_parts[i].p_guid;
|
/illumos-gate/usr/src/boot/sys/boot/common/ |
H A D | part.c | 35 #include <sys/gpt.h> 73 uuid_t gpt; member in union:pentry::__anon126 345 memcpy(&entry->type.gpt, &ent->ent_type, sizeof(uuid_t));
|
/illumos-gate/usr/src/cmd/power/ |
H A D | handlers.c | 1071 dk_gpt_t *gpt; local 1097 (efi_alloc_and_read(fd, &gpt)) >= 0) { 1099 free(gpt);
|
/illumos-gate/usr/src/uts/common/avs/ns/sv/ |
H A D | sv.c | 2523 efi_gpt_t gpt; local 2550 if (efi.dki_length < sizeof (gpt) + sizeof (gpe)) { 2554 if (ddi_copyin((void *)efi.dki_data, &gpt, sizeof (gpt), mode)) { 2559 if ((unparts = LE_32(gpt.efi_gpt_NumberOfPartitionEntries)) == 0) 2589 gpt.efi_gpt_PartitionEntryArrayCRC32 = 0; 2591 gpt.efi_gpt_PartitionEntryArrayCRC32 = LE_32(~crc); 2593 gpt.efi_gpt_HeaderCRC32 = 0; 2594 CRC32(crc, &gpt, sizeof (gpt), [all...] |
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_import.c | 1006 struct dk_gpt *gpt; local 1020 } else if (efi_alloc_and_read(fd, &gpt) >= 0) { 1027 gpt->efi_parts[i].p_size, gpt->efi_lbasize); 1032 efi_free(gpt);
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | cmlb.c | 4689 efi_gpt_t *gpt; local 4699 gpt = kmem_alloc(cl->cl_sys_blocksize, KM_SLEEP); 4701 if (DK_TG_READ(cl, gpt, 1, cl->cl_sys_blocksize, tg_cookie) != 0) { 4705 cmlb_swap_efi_gpt(gpt); 4706 rval = cmlb_validate_efi(gpt); 4709 bzero(gpt, sizeof (efi_gpt_t)); 4710 if (rval = DK_TG_WRITE(cl, gpt, 1, cl->cl_sys_blocksize, 4722 if ((rval = DK_TG_READ(cl, gpt, cap - 1, cl->cl_sys_blocksize, 4726 cmlb_swap_efi_gpt(gpt); 4727 rval = cmlb_validate_efi(gpt); [all...] |
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zvol.c | 1513 efi_gpt_t gpt = { 0 }; local 1515 gpt.efi_gpt_Signature = LE_64(EFI_SIGNATURE); 1516 gpt.efi_gpt_Revision = LE_32(EFI_VERSION_CURRENT); 1517 gpt.efi_gpt_HeaderSize = LE_32(sizeof (gpt)); 1518 gpt.efi_gpt_MyLBA = LE_64(1ULL); 1519 gpt.efi_gpt_FirstUsableLBA = LE_64(34ULL); 1520 gpt.efi_gpt_LastUsableLBA = LE_64((vs >> bs) - 1); 1521 gpt.efi_gpt_PartitionEntryLBA = LE_64(2ULL); 1522 gpt [all...] |