Home
last modified time | relevance | path

Searched refs:uuid (Results 1 - 25 of 919) sorted by relevance

12345678910>>...37

/third_party/python/Lib/test/
H A Dtest_uuid.py15 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 Duuid.c22 #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.c11 #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...]
/vendor/hihope/neptune_iotlink_demo/ble/source/
H A Dble_server_demo.c78 uint16_t uuid; in test_add_service3() local
96 memcpy_s(attr[ATTR_NUM_0].uuid, sizeof(attr[ATTR_NUM_0].uuid), in test_add_service3()
101 memcpy_s(attr[ATTR_NUM_1].uuid, sizeof(attr[ATTR_NUM_1].uuid), in test_add_service3()
112 uuid = 0x2902; in test_add_service3()
113 memcpy_s(attr[ATTR_NUM_2].uuid, sizeof(attr[ATTR_NUM_2].uuid), &uuid, sizeof(uuid)); in test_add_service3()
156 uint16_t uuid; test_add_service() local
217 uint16_t uuid; test_add_service2() local
270 test_serviceAddCallback(int status, int serverId, BtUuid *uuid, int srvcHandle) test_serviceAddCallback() argument
280 test_characteristicAddCallback(int status, int serverId, BtUuid *uuid, int srvcHandle, int characteristicHandle) test_characteristicAddCallback() argument
286 test_descriptorAddCallback(int status, int serverId, BtUuid *uuid, int srvcHandle, int descriptorHandle) test_descriptorAddCallback() argument
[all...]
/kernel/linux/linux-5.10/lib/
H A Duuid.c13 #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 Dtest_uuid.c2 * 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 Duuid.c13 #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 Dtest_uuid.c2 * 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 Dtest-crypto-randomuuid.js17 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 Duuid.c13 #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 Duuid.c13 #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 Drandom-sysctl-linux.c46 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 Drandom-sysctl-linux.c46 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...]
/kernel/linux/linux-5.10/fs/btrfs/
H A Duuid-tree.c6 #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 Duuid-tree.c6 #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 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
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...]
/third_party/node/test/fixtures/wpt/resources/
H A Dchannel.sub.js38 * 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 Ddynamic_ion_mem.c75 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 Dbtt_devs.c24 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 Dnamespace_devs.c31 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 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()
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 Ddm-log-userspace-base.c46 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 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, l in userspace_dtr()
[all...]
/kernel/linux/linux-6.6/tools/power/acpi/tools/pfrut/
H A Dpfrut.c24 #include <uuid/uuid.h>
169 char *uuid; in print_cap() local
171 uuid = malloc(37); in print_cap()
172 if (!uuid) { in print_cap()
173 perror("Can not allocate uuid buffer\n"); 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()
[all...]
/kernel/linux/linux-6.6/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, uui in ffa_device_register()
[all...]

Completed in 12 milliseconds

12345678910>>...37