Home
last modified time | relevance | path

Searched refs:uuid (Results 1 – 25 of 569) sorted by relevance

12345678910>>...23

/openbmc/qemu/tests/unit/
H A Dtest-virtio-dmabuf.c27 QemuUUID uuid; in test_add_remove_resources() local
31 qemu_uuid_generate(&uuid); in test_add_remove_resources()
34 g_assert(virtio_add_dmabuf(&uuid, dmabuf_fd)); in test_add_remove_resources()
35 g_assert_cmpint(virtio_lookup_dmabuf(&uuid), ==, dmabuf_fd); in test_add_remove_resources()
37 g_assert(virtio_remove_resource(&uuid)); in test_add_remove_resources()
39 g_assert_cmpint(virtio_lookup_dmabuf(&uuid), ==, -1); 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()
53 g_assert(virtio_lookup_vhost_device(&uuid) != NULL); in test_add_remove_dev()
[all …]
H A Dtest-uuid.c26 QemuUUID uuid; member
88 static inline bool uuid_is_valid(QemuUUID *uuid) in uuid_is_valid() argument
90 return qemu_uuid_is_null(uuid) || in uuid_is_valid()
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()
105 g_assert(uuid_is_valid(&uuid)); in test_uuid_generate()
106 g_assert_false(qemu_uuid_is_null(&uuid)); in test_uuid_generate()
107 g_assert_false(qemu_uuid_is_equal(&uuid_not_null, &uuid)); in test_uuid_generate()
130 QemuUUID uuid; in test_uuid_parse() local
[all …]
/openbmc/linux/lib/
H A Duuid.c33 void generate_random_uuid(unsigned char uuid[16]) in generate_random_uuid()
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()
105 static int __uuid_parse(const char *uuid, __u8 b[16], const u8 ei[16]) in __uuid_parse() argument
110 if (!uuid_is_valid(uuid)) in __uuid_parse()
114 int hi = hex_to_bin(uuid[si[i] + 0]); in __uuid_parse()
[all …]
H A Dtest_uuid.c13 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 Duuid.c20 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()
51 void qemu_uuid_unparse(const QemuUUID *uuid, char *out) in qemu_uuid_unparse() argument
53 const unsigned char *uu = &uuid->data[0]; in qemu_uuid_unparse()
59 char *qemu_uuid_unparse_strdup(const QemuUUID *uuid) in qemu_uuid_unparse_strdup() argument
61 const unsigned char *uu = &uuid->data[0]; in qemu_uuid_unparse_strdup()
90 int qemu_uuid_parse(const char *str, QemuUUID *uuid) in qemu_uuid_parse() argument
92 unsigned char *uu = &uuid->data[0]; in qemu_uuid_parse()
[all …]
/openbmc/qemu/hw/display/
H A Dvirtio-dmabuf.c30 static bool virtio_add_resource(QemuUUID *uuid, VirtioSharedObject *value) in virtio_add_resource() argument
41 if (g_hash_table_lookup(resource_uuids, uuid) == NULL) { in virtio_add_resource()
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()
69 bool virtio_add_vhost_device(QemuUUID *uuid, struct vhost_dev *dev) in virtio_add_vhost_device() argument
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()
97 static VirtioSharedObject *get_shared_object(const QemuUUID *uuid) in get_shared_object() argument
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/minifi-cpp/files/
H A D0002-Fix-osspuuid-build.patch14 .../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")
40 …--without-perl --without-php --without-pgsql "--prefix=${BINARY_DIR}/thirdparty/ossp-uuid-install")
41 …--without-perl --without-php --without-pgsql "--prefix=${BINARY_DIR}/thirdparty/ossp-uuid-install")
48 ossp-uuid-external
49 - URL "https://deb.debian.org/debian/pool/main/o/ossp-uuid/ossp-uuid_1.6.2.orig.tar.gz"
[all …]
/openbmc/u-boot/lib/
H A Duuid.c58 int uuid_str_valid(const char *uuid) in uuid_str_valid() argument
62 if (uuid == NULL) in uuid_str_valid()
65 for (i = 0, valid = 1; uuid[i] && valid; i++) { 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()
242 for (i = 0; i < sizeof(struct uuid) / sizeof(*ptr); i++) in gen_rand_uuid()
245 clrsetbits_be16(&uuid.time_hi_and_version, in gen_rand_uuid()
249 clrsetbits_8(&uuid.clock_seq_hi_and_reserved, in gen_rand_uuid()
[all …]
/openbmc/smbios-mdr/src/
H A Dsystem.cpp37 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()
52 stream << std::setw(2) << static_cast<int>(systemInfo->uuid.clockSeqHi); 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()
[all …]
/openbmc/linux/net/bluetooth/
H A Deir.c54 u8 eir_append_service_data(u8 *eir, u16 eir_len, u16 uuid, u8 *data, in eir_append_service_data() argument
57 eir[eir_len++] = sizeof(u8) + sizeof(uuid) + data_len; in eir_append_service_data()
59 put_unaligned_le16(uuid, &eir[eir_len]); in eir_append_service_data()
60 eir_len += sizeof(uuid); in eir_append_service_data()
70 struct bt_uuid *uuid; in create_uuid16_list() local
75 list_for_each_entry(uuid, &hdev->uuids, list) { in create_uuid16_list()
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
117 list_for_each_entry(uuid, &hdev->uuids, list) { in create_uuid32_list()
[all …]
/openbmc/linux/fs/btrfs/
H A Duuid-tree.c17 static void btrfs_uuid_to_key(u8 *uuid, u8 type, struct btrfs_key *key) in btrfs_uuid_to_key() argument
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()
25 static int btrfs_uuid_tree_lookup(struct btrfs_root *uuid_root, u8 *uuid, in btrfs_uuid_tree_lookup() argument
47 btrfs_uuid_to_key(uuid, type, &key); in btrfs_uuid_tree_lookup()
85 int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, u8 *uuid, u8 type, in btrfs_uuid_tree_add() argument
98 ret = btrfs_uuid_tree_lookup(uuid_root, uuid, type, subid_cpu); in btrfs_uuid_tree_add()
107 btrfs_uuid_to_key(uuid, type, &key); in btrfs_uuid_tree_add()
149 int btrfs_uuid_tree_remove(struct btrfs_trans_handle *trans, u8 *uuid, u8 type, in btrfs_uuid_tree_remove() argument
170 btrfs_uuid_to_key(uuid, type, &key); in btrfs_uuid_tree_remove()
[all …]
/openbmc/qemu/pc-bios/s390-ccw/
H A Dnetmain.c239 uint8_t *mem, *buf, uuid[16]; in get_uuid() local
266 uuid[i] = buf[STSI322_VMDB_UUID_OFFSET + i]; in get_uuid()
267 chk |= uuid[i]; in get_uuid()
275 "%02x%02x%02x%02x%02x%02x", uuid[0], uuid[1], uuid[2], uuid[3], in get_uuid()
276 uuid[4], uuid[5], uuid[6], uuid[7], uuid[8], uuid[9], uuid[10], in get_uuid()
277 uuid[11], uuid[12], uuid[13], uuid[14], uuid[15]); in get_uuid()
/openbmc/qemu/include/hw/virtio/
H A Dvirtio-dmabuf.h44 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/openbmc/meta-arm/meta-arm-bsp/wic/
H A Dcorstone1000-flash-firmware.wks.in10 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-…
19 …="file=bl2_signed.bin" --offset 36k --align 4 --part-name="bl2_primary" --uuid 9A3A8FBF-55EF-439C-…
22 …ourceparams="file=tfm_s_signed.bin" --align 4 --part-name="tfm_primary" --uuid 07F9616C-1233-439C-…
25 …params="file=signed_fip-corstone1000.bin" --align 4 --part-name="FIP_A" --uuid B9C7AC9D-40FF-4675-…
28 …age.gz-initramfs-${MACHINE}.bin" --align 4 --part-name="kernel_primary" --uuid BF7A6142-0662-47FD-…
32 part --source empty --size 144k --offset 16392k --align 4 --part-name="bl2_secondary" --uuid 3F0C49…
[all …]
/openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/fvp-base/
H A Doptee_spmc_maifest.dts52 uuid = <0x806e6463 0x2f4652eb 0xdf8c4fac 0x9c518739>;
56 uuid = <0x48ef1edc 0xcf4c7ab1 0xcfdf8bac 0x141b71f7>;
61 uuid = <0x01f81b75 0x6847de3d 0x100f14a5 0x9017edae>;
66 uuid = <0xd552dfd9 0xb24ba216 0x6dd2a49a 0xc0e8843b>;
72 uuid = <0x55f1baa1 0x95467688 0x95547c8f 0x74b98d5e>;
79 uuid = <0x33d532ed 0x0942e699 0x722dc09c 0xa798d9cd>;
86 uuid = <0x38a82368 0x0e47061b 0xce0c7497 0xfd53fb8b>;
93 uuid = <0xc3db9e5c 0x67433a7b 0x197c839f 0x376ae81a>;
98 uuid = <0x4c161778 0x1a4d0cc4 0xb29b7a86 0x1af48c27>;
103 uuid = <0x0001eb23 0x97442ae3 0x112f5290 0xa6af84e5>;
[all …]
/openbmc/linux/drivers/firmware/arm_ffa/
H A Dbus.c28 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/linux/drivers/md/
H A Ddm-log-userspace-base.c47 char uuid[DM_UUID_LEN]; member
85 static int userspace_do_request(struct log_c *lc, const char *uuid, in userspace_do_request() argument
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()
116 r = dm_consult_userspace(uuid, lc->luid, DM_ULOG_RESUME, NULL, in userspace_do_request()
164 r = userspace_do_request(lc, lc->uuid, DM_ULOG_FLUSH, NULL, 0, NULL, NULL); in do_flush()
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()
277 r = dm_consult_userspace(lc->uuid, lc->luid, DM_ULOG_GET_REGION_SIZE, in userspace_ctr()
339 (void) dm_consult_userspace(lc->uuid, lc->luid, DM_ULOG_DTR, in userspace_dtr()
[all …]
/openbmc/openbmc/poky/meta/classes-recipe/
H A Dfs-uuid.bbclass16 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/nvdimm/
H A Dbtt_devs.c23 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()
83 rc = nd_uuid_store(dev, &nd_btt->uuid, buf, len); in uuid_store()
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()
[all …]
H A Dnamespace_devs.c32 kfree(nspm->uuid); in namespace_pmem_release()
46 uuid2 = nspm->uuid; in is_uuid_busy()
50 uuid2 = nd_btt->uuid; in is_uuid_busy()
54 uuid2 = nd_pfn->uuid; in is_uuid_busy()
75 bool nd_is_uuid_unique(struct device *dev, uuid_t *uuid) in nd_is_uuid_unique() argument
82 if (device_for_each_child(&nvdimm_bus->dev, uuid, in nd_is_uuid_unique()
177 return nspm->uuid; in nd_dev_to_uuid()
249 if (size == 0 && nspm->uuid) in nd_namespace_label_update()
251 else if (!nspm->uuid) in nd_namespace_label_update()
698 if (size && !nspm->uuid) { in nd_namespace_pmem_set_resource()
[all …]
/openbmc/linux/tools/power/acpi/tools/pfrut/
H A Dpfrut.c169 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()
178 printf("code injection image type:%s\n", 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()
[all …]
/openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/
H A D0002-FF-A-v15-lib-uuid-introduce-uuid_str_to_le_bin-funct.patch4 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 D0003-FF-A-v15-lib-uuid-introduce-testcase-for-uuid_str_to.patch4 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/linux/fs/afs/
H A Dvlclient.c57 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()
79 uuid->time_hi_and_version = htons(ntohl(xdr->time_hi_and_version)); in afs_deliver_vl_get_entry_by_name_u()
80 uuid->clock_seq_hi_and_reserved = (u8)ntohl(xdr->clock_seq_hi_and_reserved); in afs_deliver_vl_get_entry_by_name_u()
81 uuid->clock_seq_low = (u8)ntohl(xdr->clock_seq_low); 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
272 const struct afs_uuid *u = (const struct afs_uuid *)uuid; in afs_vl_get_addrs_u()
[all …]
/openbmc/linux/drivers/thunderbolt/
H A Dproperty.c32 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()
242 struct tb_property_dir *tb_property_create_dir(const uuid_t *uuid) in tb_property_create_dir() argument
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()
[all …]

12345678910>>...23