Home
last modified time | relevance | path

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

12345678910

/Linux-v4.19/lib/
Duuid.c41 void generate_random_uuid(unsigned char uuid[16]) in generate_random_uuid()
43 get_random_bytes(uuid, 16); in generate_random_uuid()
45 uuid[6] = (uuid[6] & 0x0F) | 0x40; in generate_random_uuid()
47 uuid[8] = (uuid[8] & 0x3F) | 0x80; in generate_random_uuid()
86 bool uuid_is_valid(const char *uuid) in uuid_is_valid() argument
92 if (uuid[i] != '-') in uuid_is_valid()
94 } else if (!isxdigit(uuid[i])) { in uuid_is_valid()
103 static int __uuid_parse(const char *uuid, __u8 b[16], const u8 ei[16]) in __uuid_parse() argument
108 if (!uuid_is_valid(uuid)) in __uuid_parse()
112 int hi = hex_to_bin(uuid[si[i] + 0]); in __uuid_parse()
[all …]
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()
Dtest_printf.c374 uuid(void) in uuid() function
376 const char uuid[16] = {0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, in uuid() local
379 test("00010203-0405-0607-0809-0a0b0c0d0e0f", "%pUb", uuid); in uuid()
380 test("00010203-0405-0607-0809-0A0B0C0D0E0F", "%pUB", uuid); in uuid()
381 test("03020100-0504-0706-0809-0a0b0c0d0e0f", "%pUl", uuid); in uuid()
382 test("03020100-0504-0706-0809-0A0B0C0D0E0F", "%pUL", uuid); in uuid()
529 uuid(); in test_pointer()
/Linux-v4.19/fs/btrfs/
Duuid-tree.c14 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()
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, type, &key); in btrfs_uuid_tree_add()
147 int btrfs_uuid_tree_remove(struct btrfs_trans_handle *trans, u8 *uuid, u8 type, in btrfs_uuid_tree_remove() argument
168 btrfs_uuid_to_key(uuid, type, &key); in btrfs_uuid_tree_remove()
[all …]
/Linux-v4.19/drivers/md/
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, lc->luid, DM_ULOG_DTR, in userspace_dtr()
[all …]
Ddm-log-userspace-transfer.c170 int dm_consult_userspace(const char *uuid, uint64_t luid, int request_type, in dm_consult_userspace() argument
201 memcpy(tfr->uuid, uuid, DM_UUID_LEN); in dm_consult_userspace()
246 (strlen(uuid) > 8) ? in dm_consult_userspace()
247 (uuid + (strlen(uuid) - 8)) : (uuid), in dm_consult_userspace()
Ddm-ioctl.c43 char *uuid; member
132 if (!strcmp(hc->uuid, str)) { in __get_uuid_cell()
161 static struct hash_cell *alloc_cell(const char *name, const char *uuid, in alloc_cell() argument
176 if (!uuid) in alloc_cell()
177 hc->uuid = NULL; in alloc_cell()
180 hc->uuid = kstrdup(uuid, GFP_KERNEL); in alloc_cell()
181 if (!hc->uuid) { in alloc_cell()
199 kfree(hc->uuid); in free_cell()
208 static int dm_hash_insert(const char *name, const char *uuid, struct mapped_device *md) in dm_hash_insert() argument
215 cell = alloc_cell(name, uuid, md); in dm_hash_insert()
[all …]
/Linux-v4.19/drivers/nvdimm/
Dnamespace_devs.c38 kfree(nspm->uuid); in namespace_pmem_release()
50 kfree(nsblk->uuid); in namespace_blk_release()
92 uuid2 = nspm->uuid; in is_uuid_busy()
96 uuid2 = nsblk->uuid; in is_uuid_busy()
100 uuid2 = nd_btt->uuid; in is_uuid_busy()
104 uuid2 = nd_pfn->uuid; in is_uuid_busy()
125 bool nd_is_uuid_unique(struct device *dev, u8 *uuid) in nd_is_uuid_unique() argument
132 if (device_for_each_child(&nvdimm_bus->dev, uuid, in nd_is_uuid_unique()
234 return nspm->uuid; in nd_dev_to_uuid()
238 return nsblk->uuid; in nd_dev_to_uuid()
[all …]
Dbtt_devs.c32 kfree(nd_btt->uuid); in nd_btt_release()
91 if (nd_btt->uuid) in uuid_show()
92 return sprintf(buf, "%pUb\n", nd_btt->uuid); in uuid_show()
103 rc = nd_uuid_store(dev, &nd_btt->uuid, buf, len); in uuid_store()
110 static DEVICE_ATTR_RW(uuid);
182 unsigned long lbasize, u8 *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 nd_btt->uuid = uuid; in __nd_btt_create()
314 nd_btt->uuid = kmemdup(btt_sb->uuid, 16, GFP_KERNEL); in __nd_btt_probe()
[all …]
Dlabel.c322 char *nd_label_gen_id(struct nd_label_id *label_id, u8 *uuid, u32 flags) in nd_label_gen_id() argument
324 if (!label_id || !uuid) in nd_label_gen_id()
327 flags & NSLABEL_FLAG_LOCAL ? "blk" : "pmem", uuid); in nd_label_gen_id()
399 memcpy(label_uuid, nd_label->uuid, NSLABEL_UUID_LEN); in nd_label_reserve_dpa()
648 nd_label_gen_id(&label_id, nspm->uuid, 0); in __pmem_label_update()
666 memcpy(nd_label->uuid, nspm->uuid, NSLABEL_UUID_LEN); in __pmem_label_update()
704 if (memcmp(nspm->uuid, label_ent->label->uuid, in __pmem_label_update()
786 u8 uuid[NSLABEL_UUID_LEN]; in __blk_label_update() local
797 nd_label_gen_id(&label_id, nsblk->uuid, NSLABEL_FLAG_LOCAL); in __blk_label_update()
825 memcpy(uuid, nd_label->uuid, NSLABEL_UUID_LEN); in __blk_label_update()
[all …]
Dpfn_devs.c33 kfree(nd_pfn->uuid); in nd_pfn_release()
161 if (nd_pfn->uuid) in uuid_show()
162 return sprintf(buf, "%pUb\n", nd_pfn->uuid); in uuid_show()
173 rc = nd_uuid_store(dev, &nd_pfn->uuid, buf, len); in uuid_store()
180 static DEVICE_ATTR_RW(uuid);
418 if (!nd_pfn->uuid) { in nd_pfn_validate()
424 nd_pfn->uuid = kmemdup(pfn_sb->uuid, 16, GFP_KERNEL); in nd_pfn_validate()
425 if (!nd_pfn->uuid) in nd_pfn_validate()
434 if (memcmp(nd_pfn->uuid, pfn_sb->uuid, 16) != 0) in nd_pfn_validate()
695 memcpy(pfn_sb->uuid, nd_pfn->uuid, 16); in nd_pfn_init()
[all …]
Dcore.c228 u8 uuid[16]; in nd_uuid_parse() local
239 uuid[i] = (hex_to_bin(str[0]) << 4) | hex_to_bin(str[1]); in nd_uuid_parse()
245 memcpy(uuid_out, uuid, sizeof(uuid)); in nd_uuid_parse()
262 u8 uuid[16]; in nd_uuid_store() local
268 rc = nd_uuid_parse(dev, uuid, buf, len); in nd_uuid_store()
273 *uuid_out = kmemdup(uuid, sizeof(uuid), GFP_KERNEL); in nd_uuid_store()
/Linux-v4.19/include/linux/
Duuid.h69 static inline bool uuid_is_null(const uuid_t *uuid) in uuid_is_null() argument
71 return uuid_equal(uuid, &uuid_null); in uuid_is_null()
74 void generate_random_uuid(unsigned char uuid[16]);
79 bool __must_check uuid_is_valid(const char *uuid);
84 int guid_parse(const char *uuid, guid_t *u);
85 int uuid_parse(const char *uuid, uuid_t *u);
/Linux-v4.19/fs/afs/
Dvlclient.c61 struct afs_uuid *uuid; in afs_deliver_vl_get_entry_by_name_u() local
79 uuid = (struct afs_uuid *)&entry->fs_server[i]; in afs_deliver_vl_get_entry_by_name_u()
80 uuid->time_low = xdr->time_low; in afs_deliver_vl_get_entry_by_name_u()
81 uuid->time_mid = htons(ntohl(xdr->time_mid)); in afs_deliver_vl_get_entry_by_name_u()
82 uuid->time_hi_and_version = htons(ntohl(xdr->time_hi_and_version)); in afs_deliver_vl_get_entry_by_name_u()
83 uuid->clock_seq_hi_and_reserved = (u8)ntohl(xdr->clock_seq_hi_and_reserved); in afs_deliver_vl_get_entry_by_name_u()
84 uuid->clock_seq_low = (u8)ntohl(xdr->clock_seq_low); in afs_deliver_vl_get_entry_by_name_u()
86 uuid->node[j] = (u8)ntohl(xdr->node[j]); in afs_deliver_vl_get_entry_by_name_u()
273 const uuid_t *uuid) in afs_vl_get_addrs_u() argument
276 const struct afs_uuid *u = (const struct afs_uuid *)uuid; in afs_vl_get_addrs_u()
[all …]
Dserver.c104 struct afs_server *afs_find_server_by_uuid(struct afs_net *net, const uuid_t *uuid) in afs_find_server_by_uuid() argument
110 _enter("%pU", uuid); in afs_find_server_by_uuid()
127 diff = memcmp(uuid, &server->uuid, sizeof(*uuid)); in afs_find_server_by_uuid()
169 diff = memcmp(&candidate->uuid, &server->uuid, sizeof(uuid_t)); in afs_install_server()
213 const uuid_t *uuid, in afs_alloc_server() argument
227 server->uuid = *uuid; in afs_alloc_server()
247 struct key *key, const uuid_t *uuid) in afs_vl_lookup_addrs() argument
259 alist = afs_yfsvl_get_endpoints(cell->net, &ac, key, uuid); in afs_vl_lookup_addrs()
261 alist = afs_vl_get_addrs_u(cell->net, &ac, key, uuid); in afs_vl_lookup_addrs()
290 const uuid_t *uuid) in afs_lookup_server() argument
[all …]
Dcmservice.c432 if (memcmp(r, &call->net->uuid, sizeof(call->net->uuid)) == 0) in SRXAFSCB_ProbeUuid()
513 __be32 uuid[11]; in SRXAFSCB_TellMeAboutYourself() member
540 reply.ia.uuid[0] = call->net->uuid.time_low; in SRXAFSCB_TellMeAboutYourself()
541 reply.ia.uuid[1] = htonl(ntohs(call->net->uuid.time_mid)); in SRXAFSCB_TellMeAboutYourself()
542 reply.ia.uuid[2] = htonl(ntohs(call->net->uuid.time_hi_and_version)); in SRXAFSCB_TellMeAboutYourself()
543 reply.ia.uuid[3] = htonl((s8) call->net->uuid.clock_seq_hi_and_reserved); in SRXAFSCB_TellMeAboutYourself()
544 reply.ia.uuid[4] = htonl((s8) call->net->uuid.clock_seq_low); in SRXAFSCB_TellMeAboutYourself()
546 reply.ia.uuid[loop + 5] = htonl((s8) call->net->uuid.node[loop]); in SRXAFSCB_TellMeAboutYourself()
/Linux-v4.19/drivers/thunderbolt/
Dproperty.c35 u32 uuid[4]; member
180 dir->uuid = kmemdup(&block[dir_offset], sizeof(*dir->uuid), in __tb_property_parse_dir()
241 struct tb_property_dir *tb_property_create_dir(const uuid_t *uuid) in tb_property_create_dir() argument
250 if (uuid) { in tb_property_create_dir()
251 dir->uuid = kmemdup(uuid, sizeof(*dir->uuid), GFP_KERNEL); in tb_property_create_dir()
252 if (!dir->uuid) { in tb_property_create_dir()
303 kfree(dir->uuid); in tb_property_free_dir()
314 if (dir->uuid) in tb_property_dir_length()
315 len += sizeof(*dir->uuid) / 4; in tb_property_dir_length()
411 if (dir->uuid) { in __tb_property_format_dir()
[all …]
Dswitch.c35 uuid_t uuid; member
52 if (uuid_equal(&st->uuid, sw->uuid)) in __nvm_get_auth_status()
74 if (WARN_ON(!sw->uuid)) in nvm_set_auth_status()
85 memcpy(&st->uuid, sw->uuid, sizeof(st->uuid)); in nvm_set_auth_status()
978 return sprintf(buf, "%pUb\n", sw->uuid); in unique_id_show()
1038 kfree(sw->uuid); in tb_switch_release()
1269 u32 uuid[4]; in tb_switch_set_uuid() local
1272 if (sw->uuid) in tb_switch_set_uuid()
1281 tb_sw_read(sw, uuid, TB_CFG_SWITCH, cap + 3, 4); in tb_switch_set_uuid()
1289 uuid[0] = sw->uid & 0xffffffff; in tb_switch_set_uuid()
[all …]
Dxdomain.c72 if (!uuid_equal(&res_hdr->uuid, &req_hdr->uuid)) in tb_xdomain_match()
201 memcpy(&hdr->uuid, &tb_xdp_uuid, sizeof(tb_xdp_uuid)); in tb_xdp_fill_header()
390 int retry, const uuid_t *uuid) in tb_xdp_properties_changed_request() argument
399 uuid_copy(&req.src_uuid, uuid); in tb_xdp_properties_changed_request()
435 if (!handler->uuid || !handler->callback) in tb_register_protocol_handler()
437 if (uuid_equal(handler->uuid, &tb_xdp_uuid)) in tb_register_protocol_handler()
469 const uuid_t *uuid; in tb_xdp_handle_request() local
480 uuid = tb->root_switch->uuid; in tb_xdp_handle_request()
482 uuid = NULL; in tb_xdp_handle_request()
485 if (!uuid) { in tb_xdp_handle_request()
[all …]
/Linux-v4.19/drivers/mfd/
Dwm831x-otp.c64 char uuid[WM831X_UNIQUE_ID_LEN]; in wm831x_otp_init() local
72 ret = wm831x_unique_id_read(wm831x, uuid); in wm831x_otp_init()
74 add_device_randomness(uuid, sizeof(uuid)); in wm831x_otp_init()
/Linux-v4.19/sound/soc/intel/skylake/
Dskl-sst-utils.c68 struct UUID uuid; member
193 if (uuid_le_cmp(*uuid_mod, module->uuid) == 0) { in skl_get_pvt_id()
223 if (uuid_le_cmp(*uuid_mod, module->uuid) == 0) { in skl_put_pvt_id()
310 uuid_bin = (uuid_le *)mod_entry->uuid.id; in snd_skl_parse_uuids()
311 memcpy(&module->uuid, uuid_bin, sizeof(module->uuid)); in snd_skl_parse_uuids()
327 &module->uuid, module->id, module->is_loadable); in snd_skl_parse_uuids()
339 struct uuid_module *uuid, *_uuid; in skl_freeup_uuid_list() local
341 list_for_each_entry_safe(uuid, _uuid, &ctx->uuid_list, list) { in skl_freeup_uuid_list()
342 list_del(&uuid->list); in skl_freeup_uuid_list()
343 kfree(uuid); in skl_freeup_uuid_list()
/Linux-v4.19/drivers/xen/
Dtmem.c111 static int xen_tmem_new_pool(struct tmem_pool_uuid uuid, in xen_tmem_new_pool() argument
122 op.u.new.uuid[0] = uuid.uuid_lo; in xen_tmem_new_pool()
123 op.u.new.uuid[1] = uuid.uuid_hi; in xen_tmem_new_pool()
236 static int tmem_cleancache_init_shared_fs(uuid_t *uuid, size_t pagesize) in tmem_cleancache_init_shared_fs() argument
240 shared_uuid.uuid_lo = *(u64 *)&uuid->b[0]; in tmem_cleancache_init_shared_fs()
241 shared_uuid.uuid_hi = *(u64 *)&uuid->b[8]; in tmem_cleancache_init_shared_fs()
/Linux-v4.19/drivers/vfio/mdev/
Dmdev_core.c65 return mdev->uuid; in mdev_uuid()
279 int mdev_device_create(struct kobject *kobj, struct device *dev, uuid_le uuid) in mdev_device_create() argument
294 if (!uuid_le_cmp(tmp->uuid, uuid)) { in mdev_device_create()
308 memcpy(&mdev->uuid, &uuid, sizeof(uuid_le)); in mdev_device_create()
318 dev_set_name(&mdev->dev, "%pUl", uuid.b); in mdev_device_create()
/Linux-v4.19/drivers/acpi/acpica/
Drsxface.c400 struct acpi_vendor_uuid *uuid, in ACPI_EXPORT_SYMBOL()
408 if (!uuid || !ret_buffer) { in ACPI_EXPORT_SYMBOL()
412 info.uuid = uuid; in ACPI_EXPORT_SYMBOL()
465 (vendor->uuid_subtype != info->uuid->subtype) || in ACPI_EXPORT_SYMBOL()
466 (memcmp(vendor->uuid, info->uuid->data, ACPI_UUID_LENGTH))) { in ACPI_EXPORT_SYMBOL()
/Linux-v4.19/Documentation/ABI/testing/
Dsysfs-bus-mei7 Format: mei:<mei device name>:<device uuid>:
16 What: /sys/bus/mei/devices/.../uuid
20 Description: Stores mei client device uuid

12345678910