/openbmc/qemu/tests/unit/ |
H A D | test-virtio-dmabuf.c | 27 QemuUUID uuid; in test_add_remove_resources() local 31 qemu_uuid_generate(&uuid); in test_add_remove_resources() 37 g_assert(virtio_remove_resource(&uuid)); in test_add_remove_resources() 45 QemuUUID uuid; in test_add_remove_dev() local 50 qemu_uuid_generate(&uuid); in test_add_remove_dev() 51 virtio_add_vhost_device(&uuid, dev); in test_add_remove_dev() 64 QemuUUID uuid; in test_remove_invalid_resource() local 68 qemu_uuid_generate(&uuid); in test_remove_invalid_resource() 77 QemuUUID uuid; in test_add_invalid_resource() local 82 qemu_uuid_generate(&uuid); in test_add_invalid_resource() [all …]
|
H A D | test-uuid.c | 26 QemuUUID uuid; member 91 ((uuid->data[6] & 0xf0) == 0x40 && (uuid->data[8] & 0xc0) == 0x80); in uuid_is_valid() 100 QemuUUID uuid; in test_uuid_generate() local 104 qemu_uuid_generate(&uuid); in test_uuid_generate() 130 QemuUUID uuid; in test_uuid_parse() local 137 g_assert_cmpmem(&uuid_test_data[i].uuid, sizeof(uuid), in test_uuid_parse() 138 &uuid, sizeof(uuid)); in test_uuid_parse() 176 QemuUUID uuid; in test_uuid_hash() local 180 qemu_uuid_generate(&uuid); in test_uuid_hash() 186 uuid.data[data_idx]++; in test_uuid_hash() [all …]
|
/openbmc/linux/lib/ |
H A D | uuid.c | 35 get_random_bytes(uuid, 16); in generate_random_uuid() 37 uuid[6] = (uuid[6] & 0x0F) | 0x40; in generate_random_uuid() 39 uuid[8] = (uuid[8] & 0x3F) | 0x80; in generate_random_uuid() 88 bool uuid_is_valid(const char *uuid) in uuid_is_valid() argument 94 if (uuid[i] != '-') in uuid_is_valid() 96 } else if (!isxdigit(uuid[i])) { in uuid_is_valid() 110 if (!uuid_is_valid(uuid)) in __uuid_parse() 114 int hi = hex_to_bin(uuid[si[i] + 0]); in __uuid_parse() 115 int lo = hex_to_bin(uuid[si[i] + 1]); in __uuid_parse() 123 int guid_parse(const char *uuid, guid_t *u) in guid_parse() argument [all …]
|
H A D | test_uuid.c | 13 const char *uuid; member 20 .uuid = "c33f4995-3701-450e-9fbf-206a2e98e576", 25 .uuid = "64b4371c-77c1-48f9-8221-29f054fc023b", 30 .uuid = "0cb4ddff-a545-4401-9d06-688af53e7f84", 70 if (guid_parse(data->uuid, &le)) in test_uuid_test() 71 test_uuid_failed("conversion", false, false, data->uuid, NULL); in test_uuid_test() 76 test_uuid_failed("cmp", false, false, data->uuid, buf); in test_uuid_test() 81 if (uuid_parse(data->uuid, &be)) in test_uuid_test() 82 test_uuid_failed("conversion", false, true, data->uuid, NULL); in test_uuid_test() 87 test_uuid_failed("cmp", false, true, data->uuid, buf); in test_uuid_test()
|
/openbmc/qemu/util/ |
H A D | uuid.c | 20 void qemu_uuid_generate(QemuUUID *uuid) in qemu_uuid_generate() argument 30 memcpy(uuid, tmp, sizeof(tmp)); in qemu_uuid_generate() 33 uuid->data[8] = (uuid->data[8] & 0x3f) | 0x80; in qemu_uuid_generate() 37 uuid->data[6] = (uuid->data[6] & 0xf) | 0x40; in qemu_uuid_generate() 92 unsigned char *uu = &uuid->data[0]; in qemu_uuid_parse() 112 QemuUUID qemu_uuid_bswap(QemuUUID uuid) in qemu_uuid_bswap() argument 114 bswap32s(&uuid.fields.time_low); in qemu_uuid_bswap() 115 bswap16s(&uuid.fields.time_mid); in qemu_uuid_bswap() 117 return uuid; in qemu_uuid_bswap() 121 uint32_t qemu_uuid_hash(const void *uuid) in qemu_uuid_hash() argument [all …]
|
/openbmc/qemu/hw/display/ |
H A D | virtio-dmabuf.c | 42 g_hash_table_insert(resource_uuids, uuid, value); in virtio_add_resource() 51 bool virtio_add_dmabuf(QemuUUID *uuid, int udmabuf_fd) in virtio_add_dmabuf() argument 61 result = virtio_add_resource(uuid, vso); in virtio_add_dmabuf() 79 result = virtio_add_resource(uuid, vso); in virtio_add_vhost_device() 87 bool virtio_remove_resource(const QemuUUID *uuid) in virtio_remove_resource() argument 91 result = g_hash_table_remove(resource_uuids, uuid); in virtio_remove_resource() 110 int virtio_lookup_dmabuf(const QemuUUID *uuid) in virtio_lookup_dmabuf() argument 112 VirtioSharedObject *vso = get_shared_object(uuid); in virtio_lookup_dmabuf() 122 VirtioSharedObject *vso = get_shared_object(uuid); in virtio_lookup_vhost_device() 130 SharedObjectType virtio_object_type(const QemuUUID *uuid) in virtio_object_type() argument [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/minifi-cpp/files/ |
H A D | 0002-Fix-osspuuid-build.patch | 14 .../ossp-uuid/ossp-uuid-cross-compile-fix.patch | 13 +++++++++++++ 16 create mode 100644 thirdparty/ossp-uuid/ossp-uuid-cross-compile-fix.patch 23 set(PATCH_FILE1 "${SOURCE_DIR}/thirdparty/ossp-uuid/ossp-uuid-mac-fix.patch") 24 set(PATCH_FILE2 "${SOURCE_DIR}/thirdparty/ossp-uuid/ossp-uuid-no-prog.patch") 25 set(PATCH_FILE3 "${SOURCE_DIR}/thirdparty/ossp-uuid/ossp-uuid-update-config-guess.patch") 26 + set(PATCH_FILE4 "${SOURCE_DIR}/thirdparty/ossp-uuid/ossp-uuid-cross-compile-fix.patch") 48 ossp-uuid-external 52 - SOURCE_DIR "${BINARY_DIR}/thirdparty/ossp-uuid-src" 53 + SOURCE_DIR "${SOURCE_DIR}/thirdparty/uuid-1.6.2" 57 diff --git a/thirdparty/ossp-uuid/ossp-uuid-cross-compile-fix.patch b/thirdparty/ossp-uuid/ossp-uui… [all …]
|
/openbmc/u-boot/lib/ |
H A D | uuid.c | 58 int uuid_str_valid(const char *uuid) in uuid_str_valid() argument 62 if (uuid == NULL) in uuid_str_valid() 68 valid = (uuid[i] == '-'); in uuid_str_valid() 71 valid = isxdigit(uuid[i]); in uuid_str_valid() 237 struct uuid uuid; in gen_rand_uuid() local 238 unsigned int *ptr = (unsigned int *)&uuid; in gen_rand_uuid() 253 memcpy(uuid_bin, &uuid, sizeof(struct uuid)); in gen_rand_uuid() 277 char uuid[UUID_STR_LEN + 1]; in do_uuid() local 288 gen_rand_uuid_str(uuid, str_format); in do_uuid() 291 printf("%s\n", uuid); in do_uuid() [all …]
|
/openbmc/smbios-mdr/src/ |
H A D | system.cpp | 37 std::string System::uuid(std::string /* value */) in uuid() function in phosphor::smbios::System 46 stream << std::setw(8) << systemInfo->uuid.timeLow; in uuid() 48 stream << std::setw(4) << systemInfo->uuid.timeMid; in uuid() 50 stream << std::setw(4) << systemInfo->uuid.timeHiAndVer; in uuid() 54 << static_cast<int>(systemInfo->uuid.clockSeqLow); in uuid() 56 static_assert(sizeof(systemInfo->uuid.node) == 6); in uuid() 57 stream << std::setw(2) << static_cast<int>(systemInfo->uuid.node[0]); in uuid() 58 stream << std::setw(2) << static_cast<int>(systemInfo->uuid.node[1]); in uuid() 59 stream << std::setw(2) << static_cast<int>(systemInfo->uuid.node[2]); in uuid() 64 return sdbusplus::server::xyz::openbmc_project::common::UUID::uuid( in uuid() [all …]
|
/openbmc/linux/fs/btrfs/ |
H A D | uuid-tree.c | 20 key->objectid = get_unaligned_le64(uuid); in btrfs_uuid_to_key() 21 key->offset = get_unaligned_le64(uuid + sizeof(u64)); in btrfs_uuid_to_key() 47 btrfs_uuid_to_key(uuid, type, &key); in btrfs_uuid_tree_lookup() 107 btrfs_uuid_to_key(uuid, type, &key); in btrfs_uuid_tree_add() 170 btrfs_uuid_to_key(uuid, type, &key); in btrfs_uuid_tree_remove() 260 u8 *uuid, u8 type, u64 subvolid) in btrfs_check_uuid_tree_entry() argument 279 if (memcmp(uuid, subvol_root->root_item.uuid, BTRFS_UUID_SIZE)) in btrfs_check_uuid_tree_entry() 345 u8 uuid[BTRFS_UUID_SIZE]; in btrfs_uuid_tree_iterate() local 349 put_unaligned_le64(key.objectid, uuid); in btrfs_uuid_tree_iterate() 354 ret = btrfs_check_uuid_tree_entry(fs_info, uuid, in btrfs_uuid_tree_iterate() [all …]
|
/openbmc/linux/net/bluetooth/ |
H A D | eir.c | 60 eir_len += sizeof(uuid); in eir_append_service_data() 70 struct bt_uuid *uuid; in create_uuid16_list() local 78 if (uuid->size != 16) in create_uuid16_list() 81 uuid16 = get_unaligned_le16(&uuid->uuid[12]); in create_uuid16_list() 112 struct bt_uuid *uuid; in create_uuid32_list() local 118 if (uuid->size != 32) in create_uuid32_list() 134 memcpy(ptr, &uuid->uuid[12], sizeof(u32)); in create_uuid32_list() 145 struct bt_uuid *uuid; in create_uuid128_list() local 151 if (uuid->size != 128) in create_uuid128_list() 167 memcpy(ptr, uuid->uuid, 16); in create_uuid128_list() [all …]
|
/openbmc/openbmc/meta-arm/meta-arm-bsp/wic/ |
H A D | corstone1000-flash-firmware.wks.in | 10 part --source empty --size 3k --offset 17k --part-name="reserved_1" --uuid B1F2FC8C-A7A3-4485-87CB-… 12 part --source empty --size 4k --align 4 --offset 20k --part-name="FWU-Metadata" --uuid 3FDFFEE1-322… 13 part --source empty --size 4k --align 4 --offset 24k --part-name="Bkup-FWU-Metadata" --uuid B306831… 15 …size 4k --align 4 --offset 28k --part-name="private_metadata_replica_2" --uuid 3CC3B456-DEC8-4CE3-… 16 …size 4k --align 4 --offset 32k --part-name="private_metadata_replica_2" --uuid DCE9C503-8DFD-4DCB-… 20 …ourceparams="file=tfm_s_signed.bin" --align 4 --part-name="tfm_primary" --uuid 07F9616C-1233-439C-… 29 part --source empty --size 100k --offset 16488k --align 4 --part-name="bl2_secondary" --uuid 3F0C49… 30 part --source empty --size 368k --align 4 --part-name="tfm_secondary" --uuid 009A6A12-64A6-4F0F-988… 31 part --source empty --size 2 --align 4 --part-name="FIP_B" --uuid 9424E370-7BC9-43BB-8C23-71EE645E1… 32 part --source empty --size 12 --align 4 --part-name="kernel_secondary" --uuid A2698A91-F9B1-4629-91… [all …]
|
/openbmc/qemu/include/hw/virtio/ |
H A D | virtio-dmabuf.h | 44 bool virtio_add_dmabuf(QemuUUID *uuid, int dmabuf_fd); 58 bool virtio_add_vhost_device(QemuUUID *uuid, struct vhost_dev *dev); 66 bool virtio_remove_resource(const QemuUUID *uuid); 74 int virtio_lookup_dmabuf(const QemuUUID *uuid); 83 struct vhost_dev *virtio_lookup_vhost_device(const QemuUUID *uuid); 92 SharedObjectType virtio_object_type(const QemuUUID *uuid);
|
/openbmc/qemu/pc-bios/s390-ccw/ |
H A D | netmain.c | 241 uint8_t *mem, *buf, uuid[16]; in get_uuid() local 268 uuid[i] = buf[STSI322_VMDB_UUID_OFFSET + i]; in get_uuid() 269 chk |= uuid[i]; in get_uuid() 277 "%02x%02x%02x%02x%02x%02x", uuid[0], uuid[1], uuid[2], uuid[3], in get_uuid() 278 uuid[4], uuid[5], uuid[6], uuid[7], uuid[8], uuid[9], uuid[10], in get_uuid() 279 uuid[11], uuid[12], uuid[13], uuid[14], uuid[15]); in get_uuid()
|
/openbmc/linux/drivers/firmware/arm_ffa/ |
H A D | bus.c | 28 while (!uuid_is_null(&id_table->uuid)) { in ffa_device_match() 35 if (uuid_is_null(&ffa_dev->uuid)) in ffa_device_match() 36 ffa_device_match_uuid(ffa_dev, &id_table->uuid); in ffa_device_match() 38 if (uuid_equal(&ffa_dev->uuid, &id_table->uuid)) in ffa_device_match() 67 ffa_dev->vm_id, &ffa_dev->uuid); in ffa_device_uevent() 84 return sprintf(buf, "%pUb\n", &ffa_dev->uuid); in uuid_show() 86 static DEVICE_ATTR_RO(uuid); 174 struct ffa_device *ffa_device_register(const uuid_t *uuid, int vm_id, in ffa_device_register() argument 199 uuid_copy(&ffa_dev->uuid, uuid); in ffa_device_register()
|
/openbmc/openbmc/poky/meta/classes-recipe/ |
H A D | fs-uuid.bbclass | 16 uuid = line.split()[-1] 17 bb.note('UUID of %s: %s' % (rootfs, uuid)) 18 return uuid 21 # Replace the special <<uuid-of-rootfs>> inside a string (like the 26 UUID_PLACEHOLDER = '<<uuid-of-rootfs>>' 28 uuid = get_rootfs_uuid(d) 29 string = string.replace(UUID_PLACEHOLDER, uuid)
|
/openbmc/linux/drivers/md/ |
H A D | dm-log-userspace-base.c | 47 char uuid[DM_UUID_LEN]; member 97 r = dm_consult_userspace(uuid, lc->luid, request_type, data, in userspace_do_request() 108 r = dm_consult_userspace(uuid, lc->luid, DM_ULOG_CTR, in userspace_do_request() 227 strncpy(lc->uuid, argv[0], DM_UUID_LEN); in userspace_ctr() 263 r = dm_consult_userspace(lc->uuid, lc->luid, DM_ULOG_CTR, in userspace_ctr() 415 r = userspace_do_request(lc, lc->uuid, DM_ULOG_IS_CLEAN, in userspace_is_clean() 459 r = userspace_do_request(lc, lc->uuid, DM_ULOG_IN_SYNC, in userspace_in_sync() 471 r = userspace_do_request(lc, lc->uuid, fe->type, in flush_one_by_one() 510 r = userspace_do_request(lc, lc->uuid, DM_ULOG_FLUSH, in flush_by_group() 520 r = userspace_do_request(lc, lc->uuid, type, in flush_by_group() [all …]
|
/openbmc/linux/tools/power/acpi/tools/pfrut/ |
H A D | pfrut.c | 169 char *uuid; in print_cap() local 171 uuid = malloc(37); in print_cap() 172 if (!uuid) { in print_cap() 177 uuid_unparse(cap->code_type, uuid); in print_cap() 182 uuid_unparse(cap->drv_type, uuid); in print_cap() 183 printf("driver update image type:%s\n", uuid); in print_cap() 187 uuid_unparse(cap->platform_id, uuid); in print_cap() 188 printf("platform id:%s\n", uuid); in print_cap() 189 uuid_unparse(cap->oem_id, uuid); in print_cap() 190 printf("oem id:%s\n", uuid); in print_cap() [all …]
|
/openbmc/linux/drivers/nvdimm/ |
H A D | btt_devs.c | 23 kfree(nd_btt->uuid); in nd_btt_release() 71 if (nd_btt->uuid) in uuid_show() 72 return sprintf(buf, "%pUb\n", nd_btt->uuid); in uuid_show() 90 static DEVICE_ATTR_RW(uuid); 184 unsigned long lbasize, uuid_t *uuid, in __nd_btt_create() argument 199 if (uuid) { in __nd_btt_create() 200 uuid = kmemdup(uuid, 16, GFP_KERNEL); in __nd_btt_create() 201 if (!uuid) in __nd_btt_create() 204 nd_btt->uuid = uuid; in __nd_btt_create() 326 nd_btt->uuid = kmemdup(&btt_sb->uuid, sizeof(uuid_t), GFP_KERNEL); in __nd_btt_probe() [all …]
|
/openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/ |
H A D | 0002-FF-A-v15-lib-uuid-introduce-uuid_str_to_le_bin-funct.patch | 4 Subject: [PATCH] FF-A v15: lib: uuid: introduce uuid_str_to_le_bin function 15 include/uuid.h | 15 +++++++++++++++ 16 lib/uuid.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 19 diff --git a/include/uuid.h b/include/uuid.h 21 --- a/include/uuid.h 22 +++ b/include/uuid.h 50 diff --git a/lib/uuid.c b/lib/uuid.c 52 --- a/lib/uuid.c 53 +++ b/lib/uuid.c
|
H A D | 0003-FF-A-v15-lib-uuid-introduce-testcase-for-uuid_str_to.patch | 4 Subject: [PATCH] FF-A v15: lib: uuid: introduce testcase for 16 test/lib/uuid.c | 41 +++++++++++++++++++++++++++++++++++++++++ 18 create mode 100644 test/lib/uuid.c 32 +F: test/lib/uuid.c 41 +obj-$(CONFIG_LIB_UUID) += uuid.o 45 diff --git a/test/lib/uuid.c b/test/lib/uuid.c 49 +++ b/test/lib/uuid.c 62 +#include <uuid.h>
|
/openbmc/qemu/include/qemu/ |
H A D | uuid.h | 92 void qemu_uuid_unparse(const QemuUUID *uuid, char *out); 94 char *qemu_uuid_unparse_strdup(const QemuUUID *uuid); 96 int qemu_uuid_parse(const char *str, QemuUUID *uuid); 98 QemuUUID qemu_uuid_bswap(QemuUUID uuid); 100 uint32_t qemu_uuid_hash(const void *uuid);
|
/openbmc/linux/include/linux/ |
H A D | uuid.h | 91 static inline bool uuid_is_null(const uuid_t *uuid) in uuid_is_null() argument 93 return uuid_equal(uuid, &uuid_null); in uuid_is_null() 96 void generate_random_uuid(unsigned char uuid[16]); 102 bool __must_check uuid_is_valid(const char *uuid); 107 int guid_parse(const char *uuid, guid_t *u); 108 int uuid_parse(const char *uuid, uuid_t *u);
|
/openbmc/linux/drivers/thunderbolt/ |
H A D | property.c | 32 u32 uuid[4]; member 177 dir->uuid = kmemdup(&block[dir_offset], sizeof(*dir->uuid), in __tb_property_parse_dir() 179 if (!dir->uuid) { in __tb_property_parse_dir() 251 if (uuid) { in tb_property_create_dir() 252 dir->uuid = kmemdup(uuid, sizeof(*dir->uuid), GFP_KERNEL); in tb_property_create_dir() 253 if (!dir->uuid) { in tb_property_create_dir() 304 kfree(dir->uuid); in tb_property_free_dir() 315 if (dir->uuid) in tb_property_dir_length() 316 len += sizeof(*dir->uuid) / 4; in tb_property_dir_length() 412 if (dir->uuid) { in __tb_property_format_dir() [all …]
|
/openbmc/linux/fs/afs/ |
H A D | vlclient.c | 57 struct afs_uuid *uuid; in afs_deliver_vl_get_entry_by_name_u() local 76 uuid = (struct afs_uuid *)&entry->fs_server[n]; in afs_deliver_vl_get_entry_by_name_u() 77 uuid->time_low = xdr->time_low; in afs_deliver_vl_get_entry_by_name_u() 78 uuid->time_mid = htons(ntohl(xdr->time_mid)); in afs_deliver_vl_get_entry_by_name_u() 83 uuid->node[j] = (u8)ntohl(xdr->node[j]); in afs_deliver_vl_get_entry_by_name_u() 269 const uuid_t *uuid) in afs_vl_get_addrs_u() argument 298 r->uuid.time_low = u->time_low; in afs_vl_get_addrs_u() 304 r->uuid.node[i] = htonl(u->node[i]); in afs_vl_get_addrs_u() 621 const uuid_t *uuid) in afs_yfsvl_get_endpoints() argument 630 sizeof(__be32) * 2 + sizeof(*uuid), in afs_yfsvl_get_endpoints() [all …]
|