/openbmc/qemu/include/hw/virtio/ |
H A D | virtio-dmabuf.h | 16 #include "qemu/uuid.h" 32 * @uuid: new resource's UUID 39 * Return: true if the UUID did not exist and the resource has been added, 40 * false if another resource with the same UUID already existed. 41 * Note that if it finds a repeated UUID, the resource is not inserted in 44 bool virtio_add_dmabuf(QemuUUID *uuid, int dmabuf_fd); 48 * resource with the associated UUID 49 * @uuid: new resource's UUID 53 * Return: true if the UUID did not exist and the device has been tracked, 54 * false if another resource with the same UUID already existed. [all …]
|
/openbmc/linux/lib/ |
H A D | uuid.c | 3 * Unified UUID/GUID definition 13 #include <linux/uuid.h> 25 * generate_random_uuid - generate a random UUID 26 * @uuid: where to put the generated UUID 28 * Random UUID interface 30 * Used to create a Boot ID or a filesystem UUID/GUID, but can be 33 void generate_random_uuid(unsigned char uuid[16]) in generate_random_uuid() 35 get_random_bytes(uuid, 16); in generate_random_uuid() 36 /* Set UUID version to 4 --- truly random generation */ in generate_random_uuid() 37 uuid[6] = (uuid[6] & 0x0F) | 0x40; in generate_random_uuid() [all …]
|
/openbmc/u-boot/lib/ |
H A D | uuid.c | 15 * UUID - Universally Unique IDentifier - 128 bits unique number. 16 * There are 5 versions and one variant of UUID defined by RFC4122 17 * specification. A UUID contains a set of fields. The set varies 18 * depending on the version of the UUID, as shown below: 25 * Layout of UUID: 34 * UUID binary format (16 bytes): 38 * UUID string is 36 length of characters (36 bytes): 45 * When converting to a binary UUID, le means the field should be converted 48 * UUID is also used as GUID (Globally Unique Identifier) with the same binary 58 int uuid_str_valid(const char *uuid) in uuid_str_valid() argument [all …]
|
/openbmc/qemu/tests/unit/ |
H A D | test-uuid.c | 2 * QEMU UUID Library 22 #include "qemu/uuid.h" 26 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() [all …]
|
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() 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 …]
|
/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") 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/qemu/hw/display/ |
H A D | virtio-dmabuf.c | 22 * uuid_equal_func: wrapper for UUID is_equal function to 30 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() [all …]
|
/openbmc/u-boot/include/configs/ |
H A D | evb_rk3229.h | 22 "name=loader_a,start=4M,size=4M,uuid=${uuid_gpt_loader};" \ 23 "name=loader_b,size=4M,uuid=${uuid_gpt_reserved};" \ 24 "name=trust_a,size=4M,uuid=${uuid_gpt_reserved};" \ 25 "name=trust_b,size=4M,uuid=${uuid_gpt_reserved};" \ 26 "name=misc,size=4M,uuid=${uuid_gpt_misc};" \ 27 "name=metadata,size=16M,uuid=${uuid_gpt_metadata};" \ 28 "name=boot_a,size=32M,uuid=${uuid_gpt_boot_a};" \ 29 "name=boot_b,size=32M,uuid=${uuid_gpt_boot_b};" \ 30 "name=system_a,size=818M,uuid=${uuid_gpt_system_a};" \ 31 "name=system_b,size=818M,uuid=${uuid_gpt_system_b};" \ [all …]
|
/openbmc/qemu/util/ |
H A D | uuid.c | 2 * QEMU UUID functions 17 #include "qemu/uuid.h" 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() 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() [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 6 convert UUID string to little endian binary data 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 40 + * uuid_str_to_le_bin() - Convert string UUID to little endian binary data. 41 + * @uuid_str: pointer to UUID string 44 + * uuid_bin filled with little endian UUID data [all …]
|
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 29 +UUID testing 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> 67 +/* test UUID */ [all …]
|
/openbmc/openbmc/poky/meta/classes-recipe/ |
H A D | fs-uuid.bbclass | 7 # Extract UUID from ${ROOTFS}, which must have been built 15 if line.startswith('Filesystem UUID:'): 16 uuid = line.split()[-1] 17 bb.note('UUID of %s: %s' % (rootfs, uuid)) 18 return uuid 19 bb.fatal('Could not determine filesystem UUID of %s' % rootfs) 21 # Replace the special <<uuid-of-rootfs>> inside a string (like the 23 # actual UUID of the rootfs. Does nothing if the special string 26 UUID_PLACEHOLDER = '<<uuid-of-rootfs>>' 28 uuid = get_rootfs_uuid(d) [all …]
|
/openbmc/linux/fs/btrfs/ |
H A D | uuid-tree.c | 6 #include <linux/uuid.h> 15 #include "uuid-tree.h" 17 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() 64 "uuid item with illegal size %lu!", 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() [all …]
|
/openbmc/linux/Documentation/ABI/stable/ |
H A D | sysfs-bus-vmbus | 8 What: /sys/bus/vmbus/devices/<UUID>/id 15 What: /sys/bus/vmbus/devices/<UUID>/class_id 22 What: /sys/bus/vmbus/devices/<UUID>/device_id 29 What: /sys/bus/vmbus/devices/<UUID>/channel_vp_mapping 38 What: /sys/bus/vmbus/devices/<UUID>/device 45 What: /sys/bus/vmbus/devices/<UUID>/vendor 52 What: /sys/bus/vmbus/devices/<UUID>/numa_node 59 What: /sys/bus/vmbus/devices/<UUID>/channels/<N> 66 What: /sys/bus/vmbus/devices/<UUID>/channels/<N>/cpu 73 What: /sys/bus/vmbus/devices/<UUID>/channels/<N>/in_mask [all …]
|
/openbmc/skeleton/pyinventorymgr/ |
H A D | sync_inventory_items.py | 21 import uuid 31 CHS_INTF_NAME = "xyz.openbmc_project.Common.UUID" 93 # Get inventory UUID value. 98 # to objects that implement UUID. 101 # Only expecting a single object to implement UUID. 108 # UUID. Get the service connection 112 # Get the inventory object implementing UUID. 115 # Get the uuid 148 # Set sys uuid, this reboots the BMC for the value to take effect 149 def set_sys_uuid(uuid): argument [all …]
|
/openbmc/linux/net/bluetooth/ |
H A D | eir.c | 54 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() 95 /* Stop if not enough space to put next UUID */ in create_uuid16_list() 112 struct bt_uuid *uuid; in create_uuid32_list() local [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() 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/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-… 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 D | optee_spmc_maifest.dts | 52 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/acpi/acpica/ |
H A D | utuuid.c | 4 * Module Name: utuuid -- UUID support functions 18 * UUID support functions. 20 * This table is used to convert an input UUID ascii string to a 16 byte 21 * buffer and the reverse. The table maps a UUID buffer index 0-15 to 22 * the index within the 36-byte UUID string where the associated 2-byte 25 * 36-byte UUID strings are of the form: 40 * PARAMETERS: in_string - 36-byte formatted UUID string 41 * uuid_buffer - Where the 16-byte UUID buffer is returned 45 * DESCRIPTION: Convert a 36-byte formatted UUID string to 16-byte UUID buffer 69 * PARAMETERS: uuid_buffer - 16-byte UUID buffer [all …]
|
/openbmc/u-boot/doc/ |
H A D | README.gpt | 9 - UUID -(Universally Unique Identifier) 22 UUID introduction: 25 GPT for marking disks/partitions is using the UUID. It is supposed to be a 26 globally unique value. A UUID is a 16-byte (128-bit) number. The number of 28 More often UUID is displayed as 32 hexadecimal digits, in 5 groups, 39 OSes and programming languages are providing libraries to compute UUID (e.g. 40 uuid command line tool). 103 56 16 B Disk GUID (also referred as UUID on UNIXes) 157 "uuid_disk=...;name=u-boot,size=60MiB,uuid=...; 158 name=kernel,size=60MiB,uuid=...;" [all …]
|
/openbmc/linux/Documentation/filesystems/ext4/ |
H A D | checksums.rst | 39 - The entire superblock up to the checksum field. The UUID lives inside 43 - UUID + the entire MMP block up to the checksum field. 46 - UUID + the entire extended attribute block. The checksum field is set to 50 - UUID + inode number + inode generation + the directory block up to the 54 - UUID + inode number + inode generation + all valid extents + HTREE tail. 58 - UUID + inode number + inode generation + the entire extent block up to 62 - UUID + the entire bitmap. Checksums are stored in the group descriptor, 66 - UUID + inode number + inode generation + the entire inode. The checksum 70 - If metadata_csum, then UUID + group number + the entire descriptor; 71 else if gdt_csum, then crc16(UUID + group number + the entire
|
/openbmc/pldm/requester/ |
H A D | mctp_endpoint_discovery.cpp | 79 const UUID& uuid = getEndpointUUIDProp(service, path); in getMctpInfos() local 86 mctpInfoMap[MctpInfo(std::get<eid>(epProps), uuid, "", in getMctpInfos() 123 UUID MctpDiscovery::getEndpointUUIDProp(const std::string& service, in getEndpointUUIDProp() 131 if (properties.contains("UUID")) in getEndpointUUIDProp() 133 return std::get<UUID>(properties.at("UUID")); in getEndpointUUIDProp() 139 … "Error reading Endpoint UUID property at path '{PATH}' and service '{SERVICE}', error - {ERROR}", in getEndpointUUIDProp() 141 return static_cast<UUID>(emptyUUID); in getEndpointUUIDProp() 144 return static_cast<UUID>(emptyUUID); in getEndpointUUIDProp() 178 std::string uuid = emptyUUID; in getAddedMctpInfos() local 193 /* Get UUID */ in getAddedMctpInfos() [all …]
|
/openbmc/qemu/include/qemu/ |
H A D | uuid.h | 2 * QEMU UUID functions 20 /* Version 4 UUID (pseudo random numbers), RFC4122 4.4. */ 38 * UUID_LE - converts the fields of UUID to little-endian array, 39 * each of parameters is the filed of UUID. 64 /* Normal (network byte order) UUID */ 65 #define UUID(time_low, time_mid, time_hi_and_version, \ macro 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); [all …]
|
/openbmc/linux/drivers/firmware/arm_ffa/ |
H A D | bus.c | 28 while (!uuid_is_null(&id_table->uuid)) { in ffa_device_match() 32 * id_table UUID and assign the UUID to the device if the 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()
|