/Linux-v5.10/lib/ |
D | uuid.c | 33 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 …]
|
D | test_uuid.c | 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, &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()
|
/Linux-v5.10/fs/btrfs/ |
D | uuid-tree.c | 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() 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-v5.10/drivers/nvdimm/ |
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() 92 bool nd_is_uuid_unique(struct device *dev, u8 *uuid) in nd_is_uuid_unique() argument 99 if (device_for_each_child(&nvdimm_bus->dev, uuid, in nd_is_uuid_unique() 205 return nspm->uuid; in nd_dev_to_uuid() 209 return nsblk->uuid; in nd_dev_to_uuid() [all …]
|
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() argument 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() 203 nd_btt->uuid = uuid; in __nd_btt_create() [all …]
|
D | label.c | 324 char *nd_label_gen_id(struct nd_label_id *label_id, u8 *uuid, u32 flags) in nd_label_gen_id() argument 326 if (!label_id || !uuid) in nd_label_gen_id() 329 flags & NSLABEL_FLAG_LOCAL ? "blk" : "pmem", uuid); in nd_label_gen_id() 397 memcpy(label_uuid, nd_label->uuid, NSLABEL_UUID_LEN); in nd_label_reserve_dpa() 781 nd_label_gen_id(&label_id, nspm->uuid, 0); in __pmem_label_update() 799 memcpy(nd_label->uuid, nspm->uuid, NSLABEL_UUID_LEN); in __pmem_label_update() 838 || memcmp(nspm->uuid, label_ent->label->uuid, in __pmem_label_update() 911 u8 uuid[NSLABEL_UUID_LEN]; in __blk_label_update() local 922 nd_label_gen_id(&label_id, nsblk->uuid, NSLABEL_FLAG_LOCAL); in __blk_label_update() 949 memcpy(uuid, nd_label->uuid, NSLABEL_UUID_LEN); in __blk_label_update() [all …]
|
/Linux-v5.10/drivers/md/ |
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, lc->luid, DM_ULOG_DTR, in userspace_dtr() [all …]
|
D | dm-log-userspace-transfer.c | 170 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()
|
D | dm-ioctl.c | 43 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-v5.10/drivers/thunderbolt/ |
D | property.c | 32 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 …]
|
D | xdomain.c | 70 if (!uuid_equal(&res_hdr->uuid, &req_hdr->uuid)) in tb_xdomain_match() 199 memcpy(&hdr->uuid, &tb_xdp_uuid, sizeof(tb_xdp_uuid)); in tb_xdp_fill_header() 227 uuid_t *uuid) in tb_xdp_uuid_request() argument 249 uuid_copy(uuid, &res.src_uuid); in tb_xdp_uuid_request() 254 const uuid_t *uuid) in tb_xdp_uuid_response() argument 262 uuid_copy(&res.src_uuid, uuid); in tb_xdp_uuid_response() 432 int retry, const uuid_t *uuid) in tb_xdp_properties_changed_request() argument 441 uuid_copy(&req.src_uuid, uuid); in tb_xdp_properties_changed_request() 477 if (!handler->uuid || !handler->callback) in tb_register_protocol_handler() 479 if (uuid_equal(handler->uuid, &tb_xdp_uuid)) in tb_register_protocol_handler() [all …]
|
D | icm.c | 467 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_fr_approve_switch() 494 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_fr_add_switch_key() 522 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_fr_challenge_switch_key() 590 const uuid_t *uuid) in alloc_switch() argument 601 sw->uuid = kmemdup(uuid, sizeof(*uuid), GFP_KERNEL); in alloc_switch() 602 if (!sw->uuid) { in alloc_switch() 1021 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_tr_approve_switch() 1048 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_tr_add_switch_key() 1077 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_tr_challenge_switch_key() 1518 u32 *uuid = (u32 *)&uuids[i]; in icm_ar_get_boot_acl() local [all …]
|
/Linux-v5.10/include/linux/ |
D | uuid.h | 81 static inline bool uuid_is_null(const uuid_t *uuid) in uuid_is_null() argument 83 return uuid_equal(uuid, &uuid_null); in uuid_is_null() 86 void generate_random_uuid(unsigned char uuid[16]); 92 bool __must_check uuid_is_valid(const char *uuid); 97 int guid_parse(const char *uuid, guid_t *u); 98 int uuid_parse(const char *uuid, uuid_t *u);
|
/Linux-v5.10/fs/afs/ |
D | server.c | 89 struct afs_server *afs_find_server_by_uuid(struct afs_net *net, const uuid_t *uuid) in afs_find_server_by_uuid() argument 95 _enter("%pU", uuid); in afs_find_server_by_uuid() 112 diff = memcmp(uuid, &server->uuid, sizeof(*uuid)); in afs_find_server_by_uuid() 157 diff = memcmp(&candidate->uuid, &server->uuid, sizeof(uuid_t)); in afs_install_server() 219 const uuid_t *uuid, in afs_alloc_server() argument 236 server->uuid = *uuid; in afs_alloc_server() 258 struct key *key, const uuid_t *uuid) in afs_vl_lookup_addrs() argument 268 alist = afs_yfsvl_get_endpoints(&vc, uuid); in afs_vl_lookup_addrs() 270 alist = afs_vl_get_addrs_u(&vc, uuid); in afs_vl_lookup_addrs() 283 const uuid_t *uuid, u32 addr_version) in afs_lookup_server() argument [all …]
|
D | vlclient.c | 57 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 …]
|
D | cmservice.c | 176 struct afs_uuid *uuid) in afs_find_cm_server_by_uuid() argument 477 if (memcmp(r, &call->net->uuid, sizeof(call->net->uuid)) == 0) in SRXAFSCB_ProbeUuid() 554 __be32 uuid[11]; in SRXAFSCB_TellMeAboutYourself() member 569 reply.ia.uuid[0] = call->net->uuid.time_low; in SRXAFSCB_TellMeAboutYourself() 570 reply.ia.uuid[1] = htonl(ntohs(call->net->uuid.time_mid)); in SRXAFSCB_TellMeAboutYourself() 571 reply.ia.uuid[2] = htonl(ntohs(call->net->uuid.time_hi_and_version)); in SRXAFSCB_TellMeAboutYourself() 572 reply.ia.uuid[3] = htonl((s8) call->net->uuid.clock_seq_hi_and_reserved); in SRXAFSCB_TellMeAboutYourself() 573 reply.ia.uuid[4] = htonl((s8) call->net->uuid.clock_seq_low); in SRXAFSCB_TellMeAboutYourself() 575 reply.ia.uuid[loop + 5] = htonl((s8) call->net->uuid.node[loop]); in SRXAFSCB_TellMeAboutYourself()
|
/Linux-v5.10/drivers/gpu/drm/i915/ |
D | i915_query.c | 201 char uuid[UUID_STRING_LEN + 1]; in query_perf_config_data() local 232 BUILD_BUG_ON(sizeof(user_query_config_ptr->uuid) >= sizeof(uuid)); in query_perf_config_data() 234 memset(&uuid, 0, sizeof(uuid)); in query_perf_config_data() 235 if (copy_from_user(uuid, user_query_config_ptr->uuid, in query_perf_config_data() 236 sizeof(user_query_config_ptr->uuid))) in query_perf_config_data() 242 if (!strcmp(tmp->uuid, uuid)) { in query_perf_config_data() 301 memcpy(user_config.uuid, oa_config->uuid, sizeof(user_config.uuid)); in query_perf_config_data()
|
/Linux-v5.10/drivers/mfd/ |
D | wm831x-otp.c | 59 char uuid[WM831X_UNIQUE_ID_LEN]; in wm831x_otp_init() local 67 ret = wm831x_unique_id_read(wm831x, uuid); in wm831x_otp_init() 69 add_device_randomness(uuid, sizeof(uuid)); in wm831x_otp_init()
|
/Linux-v5.10/drivers/tee/amdtee/ |
D | core.c | 182 } *uuid = ptr; in copy_ta_binary() local 187 TA_LOAD_PATH, uuid->lo, uuid->mid, uuid->hi_ver, in copy_ta_binary() 188 uuid->seq_n[0], uuid->seq_n[1], in copy_ta_binary() 189 uuid->seq_n[2], uuid->seq_n[3], in copy_ta_binary() 190 uuid->seq_n[4], uuid->seq_n[5], in copy_ta_binary() 191 uuid->seq_n[6], uuid->seq_n[7]); in copy_ta_binary() 251 rc = copy_ta_binary(ctx, &arg->uuid[0], &ta, &ta_size); in amdtee_open_session()
|
/Linux-v5.10/scripts/mod/ |
D | file2alias.c | 107 static inline void add_uuid(char *str, uuid_le uuid) in add_uuid() argument 112 uuid.b[3], uuid.b[2], uuid.b[1], uuid.b[0], in add_uuid() 113 uuid.b[5], uuid.b[4], uuid.b[7], uuid.b[6], in add_uuid() 114 uuid.b[8], uuid.b[9], uuid.b[10], uuid.b[11], in add_uuid() 115 uuid.b[12], uuid.b[13], uuid.b[14], uuid.b[15]); in add_uuid() 1201 DEF_FIELD_ADDR(symval, mei_cl_device_id, uuid); in do_mei_entry() 1206 add_uuid(alias, *uuid); in do_mei_entry() 1329 DEF_FIELD(symval, tee_client_device_id, uuid); in do_tee_entry() 1332 uuid.b[0], uuid.b[1], uuid.b[2], uuid.b[3], uuid.b[4], in do_tee_entry() 1333 uuid.b[5], uuid.b[6], uuid.b[7], uuid.b[8], uuid.b[9], in do_tee_entry() [all …]
|
/Linux-v5.10/sound/soc/intel/skylake/ |
D | skl-sst-utils.c | 53 u8 uuid[16]; member 178 if (guid_equal(uuid_mod, &module->uuid)) { in skl_get_pvt_id() 208 if (guid_equal(uuid_mod, &module->uuid)) { in skl_put_pvt_id() 293 import_guid(&module->uuid, mod_entry->uuid); in snd_skl_parse_uuids() 309 &module->uuid, module->id, module->is_loadable); in snd_skl_parse_uuids() 321 struct uuid_module *uuid, *_uuid; in skl_freeup_uuid_list() local 323 list_for_each_entry_safe(uuid, _uuid, &skl->uuid_list, list) { in skl_freeup_uuid_list() 324 list_del(&uuid->list); in skl_freeup_uuid_list() 325 kfree(uuid); in skl_freeup_uuid_list()
|
/Linux-v5.10/fs/xfs/ |
D | xfs_buf_item_recover.c | 707 uuid_t *uuid; in xlog_recover_get_buf_lsn() local 729 uuid = &btb->bb_u.s.bb_uuid; in xlog_recover_get_buf_lsn() 737 uuid = &btb->bb_u.l.bb_uuid; in xlog_recover_get_buf_lsn() 742 uuid = &((struct xfs_agf *)blk)->agf_uuid; in xlog_recover_get_buf_lsn() 746 uuid = &((struct xfs_agfl *)blk)->agfl_uuid; in xlog_recover_get_buf_lsn() 750 uuid = &((struct xfs_agi *)blk)->agi_uuid; in xlog_recover_get_buf_lsn() 754 uuid = &((struct xfs_dsymlink_hdr *)blk)->sl_uuid; in xlog_recover_get_buf_lsn() 760 uuid = &((struct xfs_dir3_blk_hdr *)blk)->uuid; in xlog_recover_get_buf_lsn() 781 uuid = &((struct xfs_dsb *)blk)->sb_meta_uuid; in xlog_recover_get_buf_lsn() 783 uuid = &((struct xfs_dsb *)blk)->sb_uuid; in xlog_recover_get_buf_lsn() [all …]
|
/Linux-v5.10/Documentation/ABI/testing/ |
D | sysfs-bus-optee-devices | 1 What: /sys/bus/tee/devices/optee-ta-<uuid>/ 6 OP-TEE bus provides reference to registered drivers under this directory. The <uuid> 8 are free to create needed API under optee-ta-<uuid> directory.
|
/Linux-v5.10/drivers/acpi/acpica/ |
D | rsxface.c | 400 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-v5.10/drivers/vfio/mdev/ |
D | mdev_core.c | 62 return &mdev->uuid; in mdev_uuid() 273 struct device *dev, const guid_t *uuid) in mdev_device_create() argument 288 if (guid_equal(&tmp->uuid, uuid)) { in mdev_device_create() 302 guid_copy(&mdev->uuid, uuid); in mdev_device_create() 319 dev_set_name(&mdev->dev, "%pUl", uuid); in mdev_device_create()
|