/third_party/python/Lib/test/ |
H A D | test_uuid.py | 15 py_uuid = import_helper.import_fresh_module('uuid', blocked=['_uuid']) 16 c_uuid = import_helper.import_fresh_module('uuid', fresh=['_uuid']) 33 uuid = None variable in BaseTestUUID 54 'urn:uuid:00000000-0000-0000-0000-000000000000', 55 0, 0, self.uuid.RESERVED_NCS, None), 63 'urn:uuid:00010203-0405-0607-0809-0a0b0c0d0e0f', 64 0x607040500010203, 0x809, self.uuid.RESERVED_NCS, None), 72 'urn:uuid:02d9e6d5-9467-382e-8f9b-9300a64ac3cd', 73 0x82e946702d9e6d5, 0xf9b, self.uuid.RFC_4122, 3), 81 'urn:uuid 679 uuid = py_uuid global() variable in TestUUIDWithoutExtModule 683 uuid = c_uuid global() variable in TestUUIDWithExtModule 876 uuid = py_uuid global() variable in TestInternalsWithoutExtModule 880 uuid = c_uuid global() variable in TestInternalsWithExtModule [all...] |
/third_party/ffmpeg/libavutil/tests/ |
H A D | uuid.c | 22 #include "libavutil/uuid.h" 28 static const char *UUID_1_URN = "urn:uuid:6021b21e-894e-43ff-8317-1ca891c1c49b"; 42 AVUUID uuid; in main() local 48 if (av_uuid_parse(UUID_1, uuid)) in main() 51 if (!av_uuid_equal(uuid, UUID_1_BYTES)) in main() 56 av_uuid_nil(uuid); in main() 58 if (!av_uuid_equal(uuid, UUID_NIL)) in main() 75 if (av_uuid_parse(UUID_1_UC, uuid)) in main() 78 if (!av_uuid_equal(uuid, UUID_1_BYTES)) in main() 83 if (av_uuid_parse(UUID_1_MIXED, uuid)) in main() [all...] |
/third_party/python/Modules/ |
H A D | _uuidmodule.c | 11 #include <uuid.h> 14 #include <uuid/uuid.h> 27 uuid_t uuid; in Py_UNUSED() local 31 res = uuid_generate_time_safe(uuid); in Py_UNUSED() 32 return Py_BuildValue("y#i", (const char *) uuid, sizeof(uuid), res); in Py_UNUSED() 35 uuid_create(&uuid, &status); in Py_UNUSED() 37 unsigned char buf[sizeof(uuid)]; in Py_UNUSED() 38 uuid_enc_be(buf, &uuid); in Py_UNUSED() 55 UUID uuid; Py_UNUSED() local [all...] |
/base/tee/tee_client/services/teecd/src/ |
H A D | secfile_load_agent.c | 61 static int32_t SecFileLoadWork(int tzFd, const char *filePath, enum SecFileType fileType, const TEEC_UUID *uuid) in SecFileLoadWork() argument 84 ret = LoadSecFile(tzFd, fp, fileType, uuid); in SecFileLoadWork() 91 // input param uuid may be NULL, so don need to check if uuid is NULL 92 int32_t LoadSecFile(int tzFd, FILE *fp, enum SecFileType fileType, const TEEC_UUID *uuid) in LoadSecFile() argument 136 if (uuid != NULL && memcpy_s((void *)(&ioctlArg.uuid), sizeof(ioctlArg.uuid), uuid, sizeof(*uuid)) ! in LoadSecFile() 153 IsTaLib(const TEEC_UUID *uuid) IsTaLib() argument [all...] |
/kernel/linux/linux-5.10/lib/ |
H A D | uuid.c | 13 #include <linux/uuid.h> 26 * @uuid: where to put the generated UUID 33 void generate_random_uuid(unsigned char uuid[16]) in generate_random_uuid() argument 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() 78 * @uuid: UUID string to check 88 bool uuid_is_valid(const char *uuid) in uuid_is_valid() argument 105 __uuid_parse(const char *uuid, __u8 b[16], const u8 ei[16]) __uuid_parse() argument 123 guid_parse(const char *uuid, guid_t *u) guid_parse() argument 129 uuid_parse(const char *uuid, uuid_t *u) uuid_parse() argument [all...] |
H A D | test_uuid.c | 2 * Test cases for lib/uuid.c module. 10 #include <linux/uuid.h> 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, in test_uuid_test() [all...] |
/kernel/linux/linux-6.6/lib/ |
H A D | uuid.c | 13 #include <linux/uuid.h> 26 * @uuid: where to put the generated UUID 33 void generate_random_uuid(unsigned char uuid[16]) in generate_random_uuid() argument 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() 78 * @uuid: UUID string to check 88 bool uuid_is_valid(const char *uuid) in uuid_is_valid() argument 105 __uuid_parse(const char *uuid, __u8 b[16], const u8 ei[16]) __uuid_parse() argument 123 guid_parse(const char *uuid, guid_t *u) guid_parse() argument 129 uuid_parse(const char *uuid, uuid_t *u) uuid_parse() argument [all...] |
H A D | test_uuid.c | 2 * Test cases for lib/uuid.c module. 10 #include <linux/uuid.h> 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, in test_uuid_test() [all...] |
/third_party/node/test/parallel/ |
H A D | test-crypto-randomuuid.js | 17 function testMatch(uuid) { 19 uuid, 28 const uuid = randomUUID(); 29 assert(!last.has(uuid)); 30 last.add(uuid); 31 assert.strictEqual(typeof uuid, 'string'); 32 assert.strictEqual(uuid.length, 36); 33 testMatch(uuid); 37 Buffer.from(uuid.substr(14, 2), 'hex')[0] & 0x40, 0x40); 41 Buffer.from(uuid [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/ |
H A D | uuid.c | 13 #include "uuid.h" 65 int is_nil_uuid(const u8 *uuid) in is_nil_uuid() argument 69 if (uuid[i]) in is_nil_uuid() 75 int uuid_random(u8 *uuid) in uuid_random() argument 83 if (os_get_random(uuid, UUID_LEN) < 0 || in uuid_random() 84 hmac_sha256(uuid, UUID_LEN, (const u8 *) &t, sizeof(t), hash) < 0) in uuid_random() 87 os_memcpy(uuid, hash, UUID_LEN); in uuid_random() 90 uuid[6] = (4 << 4) | (uuid[6] & 0x0f); in uuid_random() 93 uuid[ in uuid_random() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/ |
H A D | uuid.c | 13 #include "uuid.h" 65 int is_nil_uuid(const u8 *uuid) in is_nil_uuid() argument 69 if (uuid[i]) in is_nil_uuid() 75 int uuid_random(u8 *uuid) in uuid_random() argument 83 if (os_get_random(uuid, UUID_LEN) < 0 || in uuid_random() 84 hmac_sha256(uuid, UUID_LEN, (const u8 *) &t, sizeof(t), hash) < 0) in uuid_random() 87 os_memcpy(uuid, hash, UUID_LEN); in uuid_random() 90 uuid[6] = (4 << 4) | (uuid[6] & 0x0f); in uuid_random() 93 uuid[ in uuid_random() [all...] |
/third_party/libuv/src/unix/ |
H A D | random-sysctl-linux.c | 46 char uuid[16]; in uv__random_sysctl() local 59 args.oldval = uuid; in uv__random_sysctl() 61 n = sizeof(uuid); in uv__random_sysctl() 80 if (n != sizeof(uuid)) in uv__random_sysctl() 83 /* uuid[] is now a type 4 UUID. Bytes 6 and 8 (counting from zero) contain in uv__random_sysctl() 87 uuid[6] = uuid[14]; in uv__random_sysctl() 88 uuid[8] = uuid[15]; in uv__random_sysctl() 94 memcpy(p, uuid, in uv__random_sysctl() [all...] |
/third_party/node/deps/uv/src/unix/ |
H A D | random-sysctl-linux.c | 46 char uuid[16]; in uv__random_sysctl() local 59 args.oldval = uuid; in uv__random_sysctl() 61 n = sizeof(uuid); in uv__random_sysctl() 80 if (n != sizeof(uuid)) in uv__random_sysctl() 83 /* uuid[] is now a type 4 UUID. Bytes 6 and 8 (counting from zero) contain in uv__random_sysctl() 87 uuid[6] = uuid[14]; in uv__random_sysctl() 88 uuid[8] = uuid[15]; in uv__random_sysctl() 94 memcpy(p, uuid, in uv__random_sysctl() [all...] |
/test/testfwk/xdevice/src/xdevice/_core/report/ |
H A D | repeater_helper.py | 41 uuid = "{}#{}".format(module_name, name_in_suite) 45 if uuid not in modules.keys(): 46 modules[uuid] = suite 48 self._update_suite(modules, suite, uuid) 74 def _update_suite(self, modules, suite, uuid): 82 matched_case = modules[uuid].find(pattern) 84 modules[uuid].append(testcase) 86 modules[uuid].attrib.get(ReportConstant.tests, 0)) + 1 87 modules[uuid].attrib[ReportConstant.tests] = str(tests) 90 value = int(modules[uuid] [all...] |
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | uuid-tree.c | 6 #include <linux/uuid.h> 14 static void btrfs_uuid_to_key(u8 *uuid, u8 type, struct btrfs_key *key) in btrfs_uuid_to_key() argument 17 key->objectid = get_unaligned_le64(uuid); in btrfs_uuid_to_key() 18 key->offset = get_unaligned_le64(uuid + sizeof(u64)); in btrfs_uuid_to_key() 22 static int btrfs_uuid_tree_lookup(struct btrfs_root *uuid_root, u8 *uuid, in btrfs_uuid_tree_lookup() argument 44 btrfs_uuid_to_key(uuid, type, &key); in btrfs_uuid_tree_lookup() 61 "uuid item with illegal size %lu!", in btrfs_uuid_tree_lookup() 82 int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, u8 *uuid, u8 type, in btrfs_uuid_tree_add() argument 95 ret = btrfs_uuid_tree_lookup(uuid_root, uuid, type, subid_cpu); in btrfs_uuid_tree_add() 104 btrfs_uuid_to_key(uuid, typ in btrfs_uuid_tree_add() 147 btrfs_uuid_tree_remove(struct btrfs_trans_handle *trans, u8 *uuid, u8 type, u64 subid) btrfs_uuid_tree_remove() argument 229 btrfs_uuid_iter_rem(struct btrfs_root *uuid_root, u8 *uuid, u8 type, u64 subid) btrfs_uuid_iter_rem() argument 257 btrfs_check_uuid_tree_entry(struct btrfs_fs_info *fs_info, u8 *uuid, u8 type, u64 subvolid) btrfs_check_uuid_tree_entry() argument 343 u8 uuid[BTRFS_UUID_SIZE]; btrfs_uuid_tree_iterate() local [all...] |
/kernel/linux/linux-6.6/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, typ in btrfs_uuid_tree_add() 149 btrfs_uuid_tree_remove(struct btrfs_trans_handle *trans, u8 *uuid, u8 type, u64 subid) btrfs_uuid_tree_remove() argument 231 btrfs_uuid_iter_rem(struct btrfs_root *uuid_root, u8 *uuid, u8 type, u64 subid) btrfs_uuid_iter_rem() argument 259 btrfs_check_uuid_tree_entry(struct btrfs_fs_info *fs_info, u8 *uuid, u8 type, u64 subvolid) btrfs_check_uuid_tree_entry() argument 345 u8 uuid[BTRFS_UUID_SIZE]; btrfs_uuid_tree_iterate() local [all...] |
/kernel/linux/linux-6.6/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() 112 struct bt_uuid *uuid; in create_uuid32_list() local 145 struct bt_uuid *uuid; create_uuid128_list() local 367 eir_get_service_data(u8 *eir, size_t eir_len, u16 uuid, size_t *len) eir_get_service_data() argument [all...] |
/base/tee/tee_client/services/tlogcat/src/ |
H A D | tlogcat.c | 69 struct TeeUuid uuid; member 162 static void GetUuidStr(const struct TeeUuid *uuid, char *name, uint32_t nameLen) in GetUuidStr() argument 165 uuid->timeLow, uuid->timeMid, uuid->timeHiAndVersion, uuid->clockSeqAndNode[0], in GetUuidStr() 166 uuid->clockSeqAndNode[1], uuid->clockSeqAndNode[2], uuid->clockSeqAndNode[3], in GetUuidStr() 167 uuid in GetUuidStr() 176 LogFilesAdd(const struct TeeUuid *uuid, const char *logName, FILE *file, long fileLen, uint32_t index) LogFilesAdd() argument 273 IsTaUuid(const struct TeeUuid *uuid) IsTaUuid() argument 383 GetCompressFile(const struct TeeUuid *uuid) GetCompressFile() argument 413 ArrangeCompressFile(const struct TeeUuid *uuid) ArrangeCompressFile() argument 561 LogFilesCompress(const struct TeeUuid *uuid) LogFilesCompress() argument 663 GetUsableFile(const struct TeeUuid *uuid) GetUsableFile() argument 717 LogFilesGet(const struct TeeUuid *uuid, bool isTa) LogFilesGet() argument [all...] |
/third_party/node/test/fixtures/wpt/resources/ |
H A D | channel.sub.js | 38 * just have a simple map of {uuid: WebSocket}. The socket can be 41 * For writing there can be many channels for each uuid. Those can 43 * of {uuid: [WebSocket, count]}. Count is incremented when a 44 * channel is opened with a given uuid, and decremented when its 54 async getOrCreate(type, uuid, onmessage=null) { 58 let url = `${protocol}://{{host}}:${port}/msg_channel?uuid=${uuid}&direction=${type}`; 68 if (this.readSockets.has(uuid)) { 73 socket.addEventListener("close", () => this.readSockets.delete(uuid)); 74 this.readSockets.set(uuid, socke [all...] |
/kernel/linux/common_modules/tzdriver/ion/ |
H A D | dynamic_ion_mem.c | 75 static int release_ion_srv(const struct tc_uuid *uuid)
in release_ion_srv() argument 82 if (memcpy_s(&smc_cmd.uuid, sizeof(smc_cmd.uuid), uuid, sizeof(*uuid))) {
in release_ion_srv() 83 tloge("copy uuid failed\n");
in release_ion_srv() 198 static struct dynamic_mem_item *find_memitem_by_uuid_locked(const struct tc_uuid *uuid)
in find_memitem_by_uuid_locked() argument 202 if (!memcmp(&item->uuid, uuid, sizeof(*uuid)))
in find_memitem_by_uuid_locked() 251 find_ddr_sec_region_by_uuid(const struct tc_uuid *uuid, uint32_t *ddr_sec_region) find_ddr_sec_region_by_uuid() argument 265 alloc_dyn_mem_item(uint32_t configid, uint32_t cafd, const struct tc_uuid *uuid, uint32_t size) alloc_dyn_mem_item() argument 299 trans_configid2memid(uint32_t configid, uint32_t cafd, const struct tc_uuid *uuid, uint32_t size, int32_t *ret_origin) trans_configid2memid() argument 373 load_app_use_configid(uint32_t configid, uint32_t cafd, const struct tc_uuid *uuid, uint32_t size, int32_t *ret_origin) load_app_use_configid() argument 391 kill_ion_by_uuid(const struct tc_uuid *uuid) kill_ion_by_uuid() argument [all...] |
/kernel/linux/linux-5.10/drivers/nvdimm/ |
H A D | btt_devs.c | 24 kfree(nd_btt->uuid); in nd_btt_release() 72 if (nd_btt->uuid) in uuid_show() 73 return sprintf(buf, "%pUb\n", nd_btt->uuid); in uuid_show() 84 rc = nd_uuid_store(dev, &nd_btt->uuid, buf, len); in uuid_store() 91 static DEVICE_ATTR_RW(uuid); 183 unsigned long lbasize, u8 *uuid, in __nd_btt_create() 198 if (uuid) { in __nd_btt_create() 199 uuid = kmemdup(uuid, 16, GFP_KERNEL); in __nd_btt_create() 200 if (!uuid) in __nd_btt_create() 182 __nd_btt_create(struct nd_region *nd_region, unsigned long lbasize, u8 *uuid, struct nd_namespace_common *ndns) __nd_btt_create() argument [all...] |
H A D | namespace_devs.c | 31 kfree(nspm->uuid); in namespace_pmem_release() 43 kfree(nsblk->uuid); in namespace_blk_release() 59 uuid2 = nspm->uuid; in is_uuid_busy() 63 uuid2 = nsblk->uuid; in is_uuid_busy() 67 uuid2 = nd_btt->uuid; in is_uuid_busy() 71 uuid2 = nd_pfn->uuid; in is_uuid_busy() 88 * nd_is_uuid_unique - verify that no other namespace has @uuid 90 * @uuid: uuid to check 92 bool nd_is_uuid_unique(struct device *dev, u8 *uuid) in nd_is_uuid_unique() argument 941 uuid_not_set(const u8 *uuid, struct device *dev, const char *where) uuid_not_set() argument 960 u8 *uuid = NULL; __size_store() local 1053 u8 **uuid = NULL; size_store() local 1167 u8 *uuid = namespace_to_uuid(dev); uuid_show() local 1254 u8 *uuid = NULL; uuid_store() local 1382 u8 *uuid = NULL; dpa_extents_show() local 1834 has_uuid_at_pos(struct nd_region *nd_region, u8 *uuid, u64 cookie, u16 pos) has_uuid_at_pos() argument 2227 u8 *uuid = namespace_to_uuid(devs[i]); add_namespace_resource() local [all...] |
/kernel/linux/linux-6.6/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() 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() 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() 183 __nd_btt_create(struct nd_region *nd_region, unsigned long lbasize, uuid_t *uuid, struct nd_namespace_common *ndns) __nd_btt_create() argument [all...] |
/kernel/linux/linux-5.10/drivers/md/ |
H A D | dm-log-userspace-base.c | 46 char uuid[DM_UUID_LEN]; member 84 static int userspace_do_request(struct log_c *lc, const char *uuid, in userspace_do_request() argument 96 r = dm_consult_userspace(uuid, lc->luid, request_type, data, in userspace_do_request() 107 r = dm_consult_userspace(uuid, lc->luid, DM_ULOG_CTR, in userspace_do_request() 115 r = dm_consult_userspace(uuid, lc->luid, DM_ULOG_RESUME, NULL, in userspace_do_request() 163 r = userspace_do_request(lc, lc->uuid, DM_ULOG_FLUSH, NULL, 0, NULL, NULL); in do_flush() 226 strncpy(lc->uuid, argv[0], DM_UUID_LEN); in userspace_ctr() 262 r = dm_consult_userspace(lc->uuid, lc->luid, DM_ULOG_CTR, in userspace_ctr() 276 r = dm_consult_userspace(lc->uuid, lc->luid, DM_ULOG_GET_REGION_SIZE, in userspace_ctr() 338 (void) dm_consult_userspace(lc->uuid, l in userspace_dtr() [all...] |
/kernel/linux/linux-6.6/drivers/md/ |
H A D | dm-log-userspace-base.c | 47 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, l in userspace_dtr() [all...] |