/fuchsia/zircon/system/uapp/lsblk/ |
H A D | main.c | 50 static const char* guid_to_type(char* guid) { argument 51 if (!strcmp("FE3A2A5D-4F32-41A7-B725-ACCC3285A309", guid)) { 53 } else if (!strcmp("3CB8E202-3B7E-47DD-8A3C-7FF2A13CFCEC", guid)) { 55 } else if (!strcmp("2E0A753D-9E48-43B0-8337-B15192CB1B5E", guid)) { 57 } else if (!strcmp("CAB6E88E-ABF3-4102-A07A-D4BB9BE3C1D3", guid)) { 59 } else if (!strcmp("C12A7328-F81F-11D2-BA4B-00A0C93EC93B", guid)) { 61 } else if (!strcmp("EBD0A0A2-B9E5-4433-87C0-68B6B72699C7", guid)) { 63 } else if (!strcmp("21686148-6449-6E6F-744E-656564454649", guid)) { 65 } else if (!strcmp(GUID_SYSTEM_STRING, guid)) { 67 } else if (!strcmp(GUID_DATA_STRING, guid)) { 95 char guid[GPT_GUID_STRLEN]; member in struct:blkinfo 133 uint8_t guid[GPT_GUID_LEN]; local [all...] |
/fuchsia/zircon/system/ulib/gpt/include/gpt/ |
H A D | gpt.h | 41 // determines whether guid is system guid 42 bool gpt_is_sys_guid(uint8_t* guid, ssize_t len); 44 // determines whether guid is data guid 45 bool gpt_is_data_guid(uint8_t* guid, ssize_t len); 47 // determines whether guid is install guid 48 bool gpt_is_install_guid(uint8_t* guid, ssize_t len); 50 // determines whether guid i [all...] |
H A D | cros.h | 51 // Returns true if |guid| matches the ChromeOS kernel GUID. 52 bool gpt_cros_is_kernel_guid(const uint8_t* guid, size_t len);
|
/fuchsia/zircon/system/ulib/gpt/ |
H A D | gpt.c | 102 uint8_t* type, const uint8_t* guid, uint64_t first, 105 memcpy(part->guid, guid, sizeof(part->guid)); 119 bool gpt_is_sys_guid(uint8_t* guid, ssize_t len) { argument 121 return len == GPT_GUID_LEN && !memcmp(guid, sys_guid, GPT_GUID_LEN); 124 bool gpt_is_data_guid(uint8_t* guid, ssize_t len) { argument 126 return len == GPT_GUID_LEN && !memcmp(guid, data_guid, GPT_GUID_LEN); 129 bool gpt_is_install_guid(uint8_t* guid, ssize_t len) { argument 131 return len == GPT_GUID_LEN && !memcmp(guid, install_gui 101 partition_init(gpt_partition_t* part, const char* name, const uint8_t* type, const uint8_t* guid, uint64_t first, uint64_t last, uint64_t flags) argument 134 gpt_is_efi_guid(uint8_t* guid, ssize_t len) argument 449 gpt_partition_add(gpt_device_t* dev, const char* name, const uint8_t* type, const uint8_t* guid, uint64_t offset, uint64_t blocks, uint64_t flags) argument 543 gpt_partition_remove(gpt_device_t* dev, const uint8_t* guid) argument 576 struct guid { struct 584 struct guid* guid = (struct guid*)src; local [all...] |
H A D | cros.c | 19 bool gpt_cros_is_kernel_guid(const uint8_t* guid, size_t len) { argument 21 return len == GPT_GUID_LEN && !memcmp(guid, kernel_guid, GPT_GUID_LEN);
|
/fuchsia/zircon/system/dev/block/bootpart/ |
H A D | bootpart.c | 37 struct guid { struct 45 struct guid* guid = (struct guid*)src; local 46 sprintf(dst, "%08X-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X", guid->data1, guid->data2, 47 guid->data3, guid->data4[0], guid->data4[1], guid 95 char* guid = reply; local 102 char* guid = reply; local [all...] |
/fuchsia/zircon/system/uapp/gpt/ |
H A D | gpt.c | 42 printf("> %s edit <n> type|id BLOBFS|DATA|SYSTEM|EFI|<guid> [<dev>]\n", bin_name); 66 struct guid { struct 74 struct guid* guid = (struct guid*)src; local 75 sprintf(dst, "%08X-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X", guid->data1, guid->data2, guid->data3, guid->data4[0], guid 88 flags_to_cstring(char* dst, size_t dst_len, const uint8_t* guid, uint64_t flags) argument 145 char guid[GPT_GUID_STRLEN]; local 254 uint8_t guid[GPT_GUID_LEN]; local 325 parse_guid(char* guid, uint8_t* bytes_out) argument 428 const uint8_t guid[GPT_GUID_LEN]; member in struct:__anon846 517 edit_partition(char* dev, long idx_part, char* type_or_id, char* guid) argument 823 uint8_t guid[GPT_GUID_LEN]; local [all...] |
/fuchsia/zircon/system/uapp/waitfor/ |
H A D | waitfor.c | 13 // for guid printing 29 " part.guid=<guid> block device GUID matches <guid>\n" 30 " part.type.guid=<guid> partition type GUID matches <guid>\n" 127 uint8_t guid[GPT_GUID_LEN]; local 128 if (ioctl_block_get_partition_guid(fd, guid, sizeof(guid)) ! 145 uint8_t guid[GPT_GUID_LEN]; local [all...] |
/fuchsia/zircon/system/ulib/chromeos-disk-setup/ |
H A D | chromeos-disk-setup.c | 43 static bool part_name_guid_eql(const gpt_partition_t *part, const char *name, const uint8_t guid[GPT_GUID_LEN] ) { 47 if (!memcmp(part->type, &guid[0], GPT_GUID_LEN) && part_name_eql(part, name)) { 63 // find_by_type finds the first partition matching the given type guid. 77 // find_by_type_and_name finds the first partition matching the given type guid and name. 229 uint8_t guid[GPT_GUID_LEN]; local 230 zx_cprng_draw(guid, GPT_GUID_LEN); 234 if (gpt_partition_add(gpt, name, tguid, guid, first, blks, 0)) { 266 gpt_partition_remove(gpt, p->guid); 269 gpt_partition_remove(gpt, p->guid); 272 gpt_partition_remove(gpt, p->guid); [all...] |
/fuchsia/zircon/system/dev/block/gpt/ |
H A D | gpt.c | 44 struct guid { struct 54 struct guid* guid = (struct guid*)src; local 55 sprintf(dst, "%08X-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X", guid->data1, guid->data2, 56 guid->data3, guid->data4[0], guid->data4[1], guid 116 char* guid = reply; local 123 char* guid = reply; local [all...] |
/fuchsia/zircon/system/uapp/sysconfig/ |
H A D | sysconfig.c | 64 uint8_t guid[GPT_GUID_LEN]; local 65 if (ioctl_block_get_type_guid(fd, &guid, sizeof(guid)) < 0) { 69 if (memcmp(guid, sysconfig_guid, sizeof(sysconfig_guid))) {
|
/fuchsia/zircon/system/core/devmgr/ |
H A D | block-watcher.cpp | 440 uint8_t guid[GPT_GUID_LEN] = GUID_EMPTY_VALUE; local 441 ioctl_block_get_type_guid(fd, guid, sizeof(guid)); 447 if (memcmp(guid, expected_guid, sizeof(guid)) == 0) { 463 if (memcmp(guid, expected_guid, sizeof(guid))) { 491 uint8_t guid[GPT_GUID_LEN]; local 492 ssize_t r = ioctl_block_get_type_guid(fd, guid, sizeof(guid)); [all...] |
/fuchsia/zircon/bootloader/include/ |
H A D | xefi.h | 29 efi_status xefi_open_protocol(efi_handle h, efi_guid* guid, void** ifc); 30 efi_status xefi_close_protocol(efi_handle h, efi_guid* guid);
|
/fuchsia/zircon/bootloader/lib/ |
H A D | xefi.c | 75 efi_status xefi_open_protocol(efi_handle h, efi_guid* guid, void** ifc) { argument 76 return gBS->OpenProtocol(h, guid, ifc, gImg, NULL, 80 efi_status xefi_close_protocol(efi_handle h, efi_guid* guid) { argument 81 return gBS->CloseProtocol(h, guid, gImg, NULL);
|
/fuchsia/zircon/system/public/zircon/device/ |
H A D | ram-nand.h | 65 uint8_t guid[ZBI_PARTITION_GUID_LEN]; member in struct:ram_nand_info::__anon701
|
H A D | block.h | 147 uint8_t guid[GUID_LEN]; member in struct:__anon674
|
/fuchsia/zircon/system/public/zircon/hw/ |
H A D | gpt.h | 29 uint8_t guid[GPT_GUID_LEN]; member in struct:gpt_header 38 uint8_t guid[GPT_GUID_LEN]; member in struct:gpt_entry
|
/fuchsia/zircon/system/ulib/fvm/include/fvm/ |
H A D | fvm.h | 53 memcpy(guid, guid_, FVM_GUID_LEN); 63 uint8_t guid[FVM_GUID_LEN]; // Mirroring GPT value member in struct:fvm::__anon1136
|
/fuchsia/zircon/system/ulib/fs-management/ |
H A D | fvm.cpp | 34 // If either is null, it doesn't compare |fd| with that guid. 223 return open_partition(request->guid, request->type, ZX_SEC(10), nullptr); 231 const uint8_t* guid; member in struct:__anon1125 238 info.guid = uniqueGUID; 254 if (is_partition(devfd.get(), info->guid, info->type)) {
|
/fuchsia/zircon/system/utest/fvm/ |
H A D | fvm.cpp | 571 memcpy(request.guid, kTestUniqueGUID, GUID_LEN); 612 memcpy(request.guid, kTestUniqueGUID, GUID_LEN); 656 memcpy(request.guid, kTestUniqueGUID, GUID_LEN); 725 memcpy(request.guid, kTestUniqueGUID, GUID_LEN); 781 memcpy(request.guid, kTestUniqueGUID, GUID_LEN); 854 memcpy(request.guid, kTestUniqueGUID, GUID_LEN); 946 memcpy(request.guid, kTestUniqueGUID, GUID_LEN); 1015 memcpy(request.guid, kTestUniqueGUID, GUID_LEN); 1113 memcpy(request.guid, kTestUniqueGUID, GUID_LEN); 1244 memcpy(request.guid, kTestUniqueGUI 1573 uint8_t guid[GUID_LEN]; member in struct:__anon1419::vdata 1715 uint8_t guid[GUID_LEN]; member in struct:__anon1419::vdata [all...] |
/fuchsia/zircon/system/host/fvm/include/fvm/ |
H A D | format.h | 79 void Guid(uint8_t* guid) const { 80 memcpy(guid, guid_, sizeof(guid_));
|
/fuchsia/zircon/system/uapp/disk-pave/ |
H A D | device-partitioner.cpp | 441 uint8_t guid[GPT_GUID_LEN]; local 442 if ((status = CreateGptPartition(name, type, start, length, guid)) != ZX_OK) { 447 if ((status = OpenBlockPartition(guid, type, ZX_SEC(5), out_fd)) != ZX_OK) { 470 if ((status = OpenBlockPartition(p->guid, p->type, ZX_SEC(5), out_fd)) != ZX_OK) { 493 if ((status = OpenBlockPartition(p->guid, p->type, ZX_SEC(5), out_fd)) != ZX_OK) { 518 WipeBlockPartition(p->guid, p->type); 520 if (gpt_partition_remove(gpt_, p->guid)) {
|
/fuchsia/zircon/system/dev/block/mbr/ |
H A D | mbr.c | 87 char* guid = reply; local 91 memcpy(guid, data_guid, GPT_GUID_LEN); 95 memcpy(guid, sys_guid, GPT_GUID_LEN);
|
/fuchsia/zircon/system/public/zircon/boot/ |
H A D | bootdata.h | 209 char guid[BOOTDATA_PART_GUID_LEN]; member in struct:__anon641
|
/fuchsia/zircon/system/dev/block/fvm/ |
H A D | fvm.cpp | 510 !memcmp(entry->guid, old_guid, GUID_LEN)) { 513 !memcmp(entry->guid, new_guid, GUID_LEN)) { 678 entry->init(request->type, request->guid, 933 char* guid = static_cast<char*>(reply); 939 memcpy(guid, mgr_->GetAllocatedVPartEntry(entry_index_)->type, FVM_GUID_LEN); 944 char* guid = static_cast<char*>(reply); 950 memcpy(guid, mgr_->GetAllocatedVPartEntry(entry_index_)->guid, FVM_GUID_LEN);
|