Home
last modified time | relevance | path

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

1234567891011

/linux/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
117 list_for_each_entry(uuid, &hdev->uuids, list) { in create_uuid32_list()
[all …]
/linux/fs/btrfs/
H A Duuid-tree.c18 static void btrfs_uuid_to_key(const u8 *uuid, u8 type, struct btrfs_key *key) in btrfs_uuid_to_key() argument
21 key->objectid = get_unaligned_le64(uuid); in btrfs_uuid_to_key()
22 key->offset = get_unaligned_le64(uuid + sizeof(u64)); in btrfs_uuid_to_key()
26 static int btrfs_uuid_tree_lookup(struct btrfs_root *uuid_root, const u8 *uuid, in btrfs_uuid_tree_lookup() argument
44 btrfs_uuid_to_key(uuid, type, &key); in btrfs_uuid_tree_lookup()
78 int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, const u8 *uuid, u8 type, in btrfs_uuid_tree_add() argument
91 ret = btrfs_uuid_tree_lookup(uuid_root, uuid, type, subid_cpu); in btrfs_uuid_tree_add()
95 btrfs_uuid_to_key(uuid, type, &key); in btrfs_uuid_tree_add()
130 int btrfs_uuid_tree_remove(struct btrfs_trans_handle *trans, const u8 *uuid, u8 type, in btrfs_uuid_tree_remove() argument
149 btrfs_uuid_to_key(uuid, type, &key); in btrfs_uuid_tree_remove()
[all …]
H A Duuid-tree.h11 int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, const u8 *uuid, u8 type,
13 int btrfs_uuid_tree_remove(struct btrfs_trans_handle *trans, const u8 *uuid, u8 type,
16 const u8 *uuid, u8 type);
/linux/drivers/nvdimm/
H A Dbtt_devs.c23 kfree(nd_btt->uuid); in nd_btt_release()
69 if (nd_btt->uuid) in uuid_show()
70 return sprintf(buf, "%pUb\n", nd_btt->uuid); in uuid_show()
81 rc = nd_uuid_store(dev, &nd_btt->uuid, buf, len); in uuid_store()
88 static DEVICE_ATTR_RW(uuid);
177 unsigned long lbasize, uuid_t *uuid, in __nd_btt_create() argument
192 if (uuid) { in __nd_btt_create()
193 uuid = kmemdup(uuid, 16, GFP_KERNEL); in __nd_btt_create()
194 if (!uuid) in __nd_btt_create()
197 nd_btt->uuid = uuid; in __nd_btt_create()
[all …]
H A Dnamespace_devs.c32 kfree(nspm->uuid); in namespace_pmem_release()
46 uuid2 = nspm->uuid; in is_uuid_busy()
50 uuid2 = nd_btt->uuid; in is_uuid_busy()
54 uuid2 = nd_pfn->uuid; in is_uuid_busy()
77 bool nd_is_uuid_unique(struct device *dev, uuid_t *uuid) in nd_is_uuid_unique() argument
84 if (device_for_each_child(&nvdimm_bus->dev, uuid, in nd_is_uuid_unique()
179 return nspm->uuid; in nd_dev_to_uuid()
251 if (size == 0 && nspm->uuid) in nd_namespace_label_update()
253 else if (!nspm->uuid) in nd_namespace_label_update()
702 if (size && !nspm->uuid) { in nd_namespace_pmem_set_resource()
[all …]
H A Dlabel.c343 char *nd_label_gen_id(struct nd_label_id *label_id, const uuid_t *uuid, in nd_label_gen_id() argument
346 if (!label_id || !uuid) in nd_label_gen_id()
348 snprintf(label_id->id, ND_LABEL_ID_SIZE, "pmem-%pUb", uuid); in nd_label_gen_id()
761 static enum nvdimm_claim_class uuid_to_nvdimm_cclass(uuid_t *uuid) in uuid_to_nvdimm_cclass() argument
763 if (uuid_equal(uuid, &nvdimm_btt_uuid)) in uuid_to_nvdimm_cclass()
765 else if (uuid_equal(uuid, &nvdimm_btt2_uuid)) in uuid_to_nvdimm_cclass()
767 else if (uuid_equal(uuid, &nvdimm_pfn_uuid)) in uuid_to_nvdimm_cclass()
769 else if (uuid_equal(uuid, &nvdimm_dax_uuid)) in uuid_to_nvdimm_cclass()
771 else if (uuid_equal(uuid, &uuid_null)) in uuid_to_nvdimm_cclass()
856 uuid_t uuid; in nsl_set_claim_class() local
[all …]
/linux/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()
179 uuid_unparse(cap->code_type, uuid); in print_cap()
180 printf("code injection image type:%s\n", uuid); in print_cap()
184 uuid_unparse(cap->drv_type, uuid); in print_cap()
185 printf("driver update image type:%s\n", uuid); in print_cap()
[all...]
/linux/include/linux/
H A Duuid.h91 static inline bool uuid_is_null(const uuid_t *uuid) in uuid_is_null() argument
93 return uuid_equal(uuid, &uuid_null); in uuid_is_null()
96 void generate_random_uuid(unsigned char uuid[16]);
102 bool __must_check uuid_is_valid(const char *uuid);
107 int guid_parse(const char *uuid, guid_t *u);
108 int uuid_parse(const char *uuid, uuid_t *u);
H A Dstatfs.h55 static inline __kernel_fsid_t uuid_to_fsid(__u8 *uuid) in uuid_to_fsid() argument
57 return u64_to_fsid(le64_to_cpup((void *)uuid) ^ in uuid_to_fsid()
58 le64_to_cpup((void *)(uuid + sizeof(u64)))); in uuid_to_fsid()
/linux/fs/afs/
H A Dvlclient.c46 struct afs_uuid *uuid; in afs_deliver_vl_get_entry_by_name_u() local
62 uuid = (struct afs_uuid *)&entry->fs_server[n]; in afs_deliver_vl_get_entry_by_name_u()
63 uuid->time_low = xdr->time_low; in afs_deliver_vl_get_entry_by_name_u()
64 uuid->time_mid = htons(ntohl(xdr->time_mid)); in afs_deliver_vl_get_entry_by_name_u()
65 uuid->time_hi_and_version = htons(ntohl(xdr->time_hi_and_version)); in afs_deliver_vl_get_entry_by_name_u()
66 uuid->clock_seq_hi_and_reserved = (u8)ntohl(xdr->clock_seq_hi_and_reserved); in afs_deliver_vl_get_entry_by_name_u()
67 uuid->clock_seq_low = (u8)ntohl(xdr->clock_seq_low); in afs_deliver_vl_get_entry_by_name_u()
69 uuid->node[j] = (u8)ntohl(xdr->node[j]); in afs_deliver_vl_get_entry_by_name_u()
259 const uuid_t *uuid) in afs_vl_get_addrs_u() argument
263 const struct afs_uuid *u = (const struct afs_uuid *)uuid; in afs_vl_get_addrs_u()
[all …]
H A Dcmservice.c423 if (memcmp(r, &call->net->uuid, sizeof(call->net->uuid)) == 0) in SRXAFSCB_ProbeUuid()
500 __be32 uuid[11]; in SRXAFSCB_TellMeAboutYourself() member
515 reply.ia.uuid[0] = call->net->uuid.time_low; in SRXAFSCB_TellMeAboutYourself()
516 reply.ia.uuid[1] = htonl(ntohs(call->net->uuid.time_mid)); in SRXAFSCB_TellMeAboutYourself()
517 reply.ia.uuid[2] = htonl(ntohs(call->net->uuid.time_hi_and_version)); in SRXAFSCB_TellMeAboutYourself()
518 reply.ia.uuid[3] = htonl((s8) call->net->uuid.clock_seq_hi_and_reserved); in SRXAFSCB_TellMeAboutYourself()
519 reply.ia.uuid[4] = htonl((s8) call->net->uuid.clock_seq_low); in SRXAFSCB_TellMeAboutYourself()
521 reply.ia.uuid[loop + 5] = htonl((s8) call->net->uuid.node[loop]); in SRXAFSCB_TellMeAboutYourself()
H A Dserver.c37 static struct afs_server *afs_find_server_by_uuid(struct afs_cell *cell, const uuid_t *uuid) in afs_find_server_by_uuid() argument
43 _enter("%pU", uuid); in afs_find_server_by_uuid()
49 diff = memcmp(uuid, &server->uuid, sizeof(*uuid)); in afs_find_server_by_uuid()
86 diff = memcmp(&(*candidate)->uuid, &server->uuid, sizeof(uuid_t)); in afs_install_server()
113 static struct afs_server *afs_alloc_server(struct afs_cell *cell, const uuid_t *uuid) in afs_alloc_server() argument
128 server->uuid = *uuid; in afs_alloc_server()
163 alist = afs_yfsvl_get_endpoints(&vc, &server->uuid); in afs_vl_lookup_addrs()
165 alist = afs_vl_get_addrs_u(&vc, &server->uuid); in afs_vl_lookup_addrs()
179 const uuid_t *uuid, u32 addr_version) in afs_lookup_server() argument
186 _enter("%p,%pU", cell->net, uuid); in afs_lookup_server()
[all …]
/linux/fs/nfs_common/
H A Dnfslocalio.c69 uuid_gen(&nfs_uuid->uuid); in nfs_uuid_begin()
91 static nfs_uuid_t * nfs_uuid_lookup_locked(const uuid_t *uuid) in nfs_uuid_lookup_locked() argument
96 if (uuid_equal(&nfs_uuid->uuid, uuid)) in nfs_uuid_lookup_locked()
104 void nfs_uuid_is_local(const uuid_t *uuid, struct list_head *list, in nfs_uuid_is_local() argument
111 nfs_uuid = nfs_uuid_lookup_locked(uuid); in nfs_uuid_is_local()
265 struct nfsd_file *nfs_open_local_fh(nfs_uuid_t *uuid, in nfs_open_local_fh() argument
285 net = rcu_dereference(uuid->net); in nfs_open_local_fh()
292 localio = nfs_to->nfsd_open_local_fh(net, uuid->dom, rpc_clnt, cred, in nfs_open_local_fh()
294 if (!IS_ERR(localio) && nfs_uuid_add_file(uuid, nfl) < 0) { in nfs_open_local_fh()
/linux/drivers/md/
H A 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()
H A Ddm-ioctl.c41 * name or uuid.
51 char *uuid; member
77 * Protects use of mdptr to obtain hash cell name and uuid from mapped device.
118 c = strcmp(hc->uuid, str); in __get_uuid_cell()
185 c = strcmp(hc->uuid, new_hc->uuid); in __link_uuid()
218 static struct hash_cell *alloc_cell(const char *name, const char *uuid, in alloc_cell() argument
233 if (!uuid) in alloc_cell()
234 hc->uuid = NULL; in alloc_cell()
237 hc->uuid in alloc_cell()
338 dm_hash_insert(const char * name,const char * uuid,struct mapped_device * md) dm_hash_insert() argument
2332 dm_copy_name_and_uuid(struct mapped_device * md,char * name,char * uuid) dm_copy_name_and_uuid() argument
[all...]
/linux/drivers/mfd/
H A Dwm831x-otp.c59 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/fs/nfsd/
H A Dlocalio.c160 uuid_t uuid; member
169 nfs_uuid_is_local(&argp->uuid, &nn->local_clients, in localio_proc_uuid_is_local()
180 u8 uuid[UUID_SIZE]; in localio_decode_uuidarg() local
182 if (decode_opaque_fixed(xdr, uuid, UUID_SIZE)) in localio_decode_uuidarg()
184 import_uuid(&argp->uuid, uuid); in localio_decode_uuidarg()
/linux/scripts/mod/
H A Dfile2alias.c159 static inline void add_uuid(char *str, uuid_le uuid) in add_uuid() argument
164 uuid.b[3], uuid.b[2], uuid.b[1], uuid.b[0], in add_uuid()
165 uuid.b[5], uuid.b[4], uuid.b[7], uuid.b[6], in add_uuid()
166 uuid in add_uuid()
[all...]
/linux/Documentation/ABI/testing/
H A Dsysfs-bus-optee-devices1 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.
10 What: /sys/bus/tee/devices/optee-ta-<uuid>/need_supplicant
/linux/drivers/hwtracing/stm/
H A Dp_sys-t.c107 uuid_t uuid; member
123 uuid_gen(&pn->uuid); in sys_t_policy_node_init()
151 return sprintf(page, "%pU\n", &pn->uuid); in sys_t_policy_uuid_show()
163 ret = uuid_parse(page, &pn->uuid); in sys_t_policy_uuid_store()
169 CONFIGFS_ATTR(sys_t_policy_, uuid);
376 u8 uuid[UUID_SIZE]; in sys_t_write() local
407 export_uuid(uuid, &op->node.uuid); in sys_t_write()
408 sz = stm_data_write(data, m, c, false, uuid, sizeof(op->node.uuid)); in sys_t_write()
/linux/drivers/gpu/drm/i915/
H A Di915_query.c239 char uuid[UUID_STRING_LEN + 1]; in query_perf_config_data() local
271 BUILD_BUG_ON(sizeof(user_query_config_ptr->uuid) >= sizeof(uuid)); in query_perf_config_data()
273 memset(&uuid, 0, sizeof(uuid)); in query_perf_config_data()
274 if (copy_from_user(uuid, user_query_config_ptr->uuid, in query_perf_config_data()
275 sizeof(user_query_config_ptr->uuid))) in query_perf_config_data()
281 if (!strcmp(tmp->uuid, uuid)) { in query_perf_config_data()
340 memcpy(user_config.uuid, oa_config->uuid, sizeof(user_config.uuid)); in query_perf_config_data()
/linux/fs/xfs/
H A Dxfs_buf_item_recover.c852 uuid_t *uuid; in xlog_recover_get_buf_lsn() local
876 uuid = &hdr->rt_uuid; in xlog_recover_get_buf_lsn()
892 uuid = &btb->bb_u.s.bb_uuid; in xlog_recover_get_buf_lsn()
902 uuid = &btb->bb_u.l.bb_uuid; in xlog_recover_get_buf_lsn()
907 uuid = &((struct xfs_agf *)blk)->agf_uuid; in xlog_recover_get_buf_lsn()
911 uuid = &((struct xfs_agfl *)blk)->agfl_uuid; in xlog_recover_get_buf_lsn()
915 uuid = &((struct xfs_agi *)blk)->agi_uuid; in xlog_recover_get_buf_lsn()
919 uuid = &((struct xfs_dsymlink_hdr *)blk)->sl_uuid; in xlog_recover_get_buf_lsn()
925 uuid = &((struct xfs_dir3_blk_hdr *)blk)->uuid; in xlog_recover_get_buf_lsn()
946 uuid = &((struct xfs_dsb *)blk)->sb_meta_uuid; in xlog_recover_get_buf_lsn()
[all …]
/linux/drivers/vfio/mdev/
H A Dmdev_core.c128 int mdev_device_create(struct mdev_type *type, const guid_t *uuid) in mdev_device_create() argument
139 if (guid_equal(&tmp->uuid, uuid)) { in mdev_device_create()
172 guid_copy(&mdev->uuid, uuid); in mdev_device_create()
176 ret = dev_set_name(&mdev->dev, "%pUl", uuid); in mdev_device_create()
/linux/sound/soc/sof/
H A Dipc4-loader.c127 fm_entry->name, &fm_entry->uuid, fm_entry->cfg_count, in sof_ipc4_fw_parse_ext_man()
131 &fm_entry->uuid); in sof_ipc4_fw_parse_ext_man()
322 unsigned long lib_id, const guid_t *uuid) in sof_ipc4_complete_split_release()
334 sdev->pdata->fw_lib_prefix, uuid); in sof_ipc4_complete_split_release()
346 const guid_t *uuid) in sof_ipc4_load_library_by_uuid()
353 if (guid_is_null(uuid)) in sof_ipc4_load_library_by_uuid()
358 if (guid_equal(uuid, &fw_lib->modules[i].man4_module_entry.uuid)) in sof_ipc4_load_library_by_uuid()
375 ret = sof_ipc4_load_library_by_uuid(sdev, lib_id + 1, uuid); in sof_ipc4_find_module_by_uuid()
382 if (guid_equal(uuid, in sof_ipc4_find_module_by_uuid()
339 sof_ipc4_load_library_by_uuid(struct snd_sof_dev * sdev,unsigned long lib_id,const guid_t * uuid) sof_ipc4_load_library_by_uuid() argument
363 sof_ipc4_find_module_by_uuid(struct snd_sof_dev * sdev,const guid_t * uuid) sof_ipc4_find_module_by_uuid() argument
[all...]
/linux/sound/soc/intel/avs/
H A Dutils.c17 static int avs_module_entry_index(struct avs_dev *adev, const guid_t *uuid) in avs_module_entry_index()
25 if (guid_equal(&module->uuid, uuid)) in avs_module_entry_index()
48 int avs_get_module_entry(struct avs_dev *adev, const guid_t *uuid, struct avs_module_entry *entry) in avs_get_module_entry()
54 idx = avs_module_entry_index(adev, uuid); in avs_get_module_entry()
74 int avs_get_module_id(struct avs_dev *adev, const guid_t *uuid)
79 ret = avs_get_module_entry(adev, uuid, &module); in avs_get_module_id()
16 avs_module_entry_index(struct avs_dev * adev,const guid_t * uuid) avs_module_entry_index() argument
47 avs_get_module_entry(struct avs_dev * adev,const guid_t * uuid,struct avs_module_entry * entry) avs_get_module_entry() argument
75 avs_get_module_id(struct avs_dev * adev,const guid_t * uuid) avs_get_module_id() argument

1234567891011