| /linux/fs/btrfs/ |
| H A D | uuid-tree.c | 7 #include <linux/uuid.h> 15 #include "uuid-tree.h" 18 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() 59 "uuid item with illegal size %lu!", 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() [all …]
|
| /linux/Documentation/ABI/stable/ |
| H A D | sysfs-bus-vmbus | 8 What: /sys/bus/vmbus/devices/<UUID>/id 15 What: /sys/bus/vmbus/devices/<UUID>/class_id 22 What: /sys/bus/vmbus/devices/<UUID>/device_id 29 What: /sys/bus/vmbus/devices/<UUID>/channel_vp_mapping 38 What: /sys/bus/vmbus/devices/<UUID>/device 45 What: /sys/bus/vmbus/devices/<UUID>/vendor 52 What: /sys/bus/vmbus/devices/<UUID>/numa_node 59 What: /sys/bus/vmbus/devices/<UUID>/channels/<N> 66 What: /sys/bus/vmbus/devices/<UUID>/channels/<N>/cpu 73 What: /sys/bus/vmbus/devices/<UUID>/channels/<N>/in_mask [all …]
|
| /linux/Documentation/filesystems/ext4/ |
| H A D | checksums.rst | 39 - The entire superblock up to the checksum field. The UUID lives inside 43 - UUID + the entire MMP block up to the checksum field. 46 - UUID + the entire extended attribute block. The checksum field is set to 50 - UUID + inode number + inode generation + the directory block up to the 54 - UUID + inode number + inode generation + all valid extents + HTREE tail. 58 - UUID + inode number + inode generation + the entire extent block up to 62 - UUID + the entire bitmap. Checksums are stored in the group descriptor, 66 - UUID + inode number + inode generation + the entire inode. The checksum 70 - If metadata_csum, then UUID + group number + the entire descriptor; 71 else if gdt_csum, then crc16(UUID + group number + the entire
|
| /linux/drivers/nvdimm/ |
| H A D | label.h | 10 #include <linux/uuid.h> 71 * @type: uuid identifying this label format (region) 72 * @uuid: uuid for the region this label describes 87 u8 uuid[NSLABEL_UUID_LEN]; member 103 * @uuid: UUID per RFC 4122 121 u8 uuid[NSLABEL_UUID_LEN]; member 145 * @type: uuid identifying this label format (namespace) 146 * @uuid: uuid for the namespace this label describes 163 u8 uuid[NSLABEL_UUID_LEN]; member 196 * @id: "pmem-<namespace uuid>"
|
| H A D | namespace_devs.c | 32 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() 71 * nd_is_uuid_unique - verify that no other namespace has @uuid 73 * @uuid: uuid to check 75 * Returns: %true if the uuid is unique, %false if not 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() [all …]
|
| H A D | btt_devs.c | 23 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 D | label.c | 7 #include <linux/uuid.h> 343 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() [all …]
|
| /linux/include/uapi/cxl/ |
| H A D | features.h | 15 #include <linux/uuid.h> 58 * @uuid: UUID of the Feature 72 __uapi_uuid_t uuid; member 114 * @uuid: UUID for Feature 122 __uapi_uuid_t uuid; member 144 * @uuid: UUID for Feature 155 __uapi_uuid_t uuid;
|
| /linux/fs/afs/ |
| H A D | cmservice.c | 333 _debug("extract UUID"); in afs_deliver_cb_init_call_back_state3() 340 _debug("unmarshall UUID"); in afs_deliver_cb_init_call_back_state3() 372 pr_notice("Callback UUID does not match fileserver UUID\n"); in afs_deliver_cb_init_call_back_state3() 423 if (memcmp(r, &call->net->uuid, sizeof(call->net->uuid)) == 0) in SRXAFSCB_ProbeUuid() 454 _debug("extract UUID"); in afs_deliver_cb_probe_uuid() 461 _debug("unmarshall UUID"); in afs_deliver_cb_probe_uuid() 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() [all …]
|
| H A D | vlclient.c | 46 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() 107 * Dispatch a get volume entry by name or ID operation (uuid variant). If the 189 /* Extract the returned uuid, uniquifier, nentries and in afs_deliver_vl_get_addrs_u() [all …]
|
| H A D | server.c | 34 * Look up a server by its UUID and mark it active. The caller must hold 37 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() 79 /* Firstly install the server in the UUID lookup tree */ in afs_install_server() 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() [all …]
|
| /linux/include/linux/ |
| H A D | uuid.h | 3 * UUID/GUID definition 38 * The length of a UUID string ("aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee") 91 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 D | virtio_dma_buf.h | 12 #include <linux/uuid.h> 20 * @get_uuid: [required] callback to get the uuid of the exported object. 26 int (*get_uuid)(struct dma_buf *dma_buf, uuid_t *uuid); 35 int virtio_dma_buf_get_uuid(struct dma_buf *dma_buf, uuid_t *uuid);
|
| /linux/tools/power/acpi/tools/pfrut/ |
| H A D | pfrut.c | 24 #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/tools/testing/selftests/pstore/ |
| H A D | common_tests | 57 TEST_STRING_PATTERN="Testing pstore: uuid=" 58 UUID=`cat /proc/sys/kernel/random/uuid` 60 LOG_DIR=$TOP_DIR/logs/`date +%Y%m%d-%H%M%S`_${UUID}/ 74 prlog "UUID="$UUID
|
| /linux/drivers/md/ |
| H A D | dm-ioctl.c | 41 * 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 = kstrdup(uuid, GFP_KERNEL); in alloc_cell() 238 if (!hc->uuid) { in alloc_cell() [all …]
|
| /linux/drivers/virtio/ |
| H A D | virtio_dma_buf.c | 18 * for the object's UUID. 70 * virtio_dma_buf_get_uuid - gets a virtio dma-buf's exported object's uuid 72 * @uuid: [out] the uuid 77 uuid_t *uuid) in virtio_dma_buf_get_uuid() argument 86 return ops->get_uuid(dma_buf, uuid); in virtio_dma_buf_get_uuid()
|
| /linux/include/linux/device-id/ |
| H A D | tee_client.h | 6 #include <linux/uuid.h> 11 * @uuid: For TEE based client devices we use the device uuid as 15 uuid_t uuid; member
|
| H A D | mei_cl.h | 18 * @uuid: client uuid 22 * identifies mei client device by uuid and name 26 uuid_le uuid; member
|
| /linux/fs/nfs_common/ |
| H A D | nfslocalio.c | 69 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 277 * uuid->net is NOT a counted reference, but rcu_read_lock() ensures that in nfs_open_local_fh() 278 * if uuid->net is not NULL, then calling nfsd_net_try_get() is safe in nfs_open_local_fh() 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() [all …]
|
| /linux/drivers/mfd/ |
| H A 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() 71 dev_err(wm831x->dev, "Failed to read UUID: %d\n", ret); in wm831x_otp_init()
|
| /linux/Documentation/ABI/testing/ |
| H A 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. 10 What: /sys/bus/tee/devices/optee-ta-<uuid>/need_supplicant
|
| /linux/drivers/hwtracing/stm/ |
| H A D | p_sys-t.c | 11 #include <linux/uuid.h> 107 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/firmware/arm_ffa/ |
| H A D | driver.c | 44 #include <linux/uuid.h> 304 uuid_t uuid; in __ffa_partition_info_get() member 312 import_uuid(&buf->uuid, (u8 *)&rx_buf->uuid); in __ffa_partition_info_get() 397 uuid_t uuid; in __ffa_partition_info_get_regs() member 410 uuid_copy(&buf->uuid, &uuid_regs.uuid); in __ffa_partition_info_get_regs() 422 ffa_partition_probe(const uuid_t *uuid, struct ffa_partition_info **buffer) in ffa_partition_probe() argument 432 export_uuid((u8 *)uuid0_4, uuid); in ffa_partition_probe() 548 uuid_copy(&msg->uuid, &dev->uuid); in ffa_msg_send2() 563 static int ffa_msg_send_direct_req2(u16 src_id, u16 dst_id, const uuid_t *uuid, in ffa_msg_send_direct_req2() argument 568 uuid_t uuid; in ffa_msg_send_direct_req2() member [all …]
|
| /linux/scripts/mod/ |
| H A D | file2alias.c | 105 /* UUID types for backward compatibility, don't use in new code */ 116 /* MEI UUID type, don't use anywhere else */ 159 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 in add_uuid() [all...] |