/linux-master/lib/ |
H A D | uuid.c | 13 #include <linux/uuid.h> 26 * @uuid: where to put the generated UUID 33 void generate_random_uuid(unsigned char uuid[16]) argument 35 get_random_bytes(uuid, 16); 37 uuid[6] = (uuid[6] & 0x0F) | 0x40; 39 uuid[8] = (uuid[8] & 0x3F) | 0x80; 78 * @uuid: UUID string to check 88 bool uuid_is_valid(const char *uuid) argument 105 __uuid_parse(const char *uuid, __u8 b[16], const u8 ei[16]) argument 123 guid_parse(const char *uuid, guid_t *u) argument 129 uuid_parse(const char *uuid, uuid_t *u) argument [all...] |
H A D | test_uuid.c | 2 * Test cases for lib/uuid.c module. 10 #include <linux/uuid.h> 13 const char *uuid; member in struct:test_uuid_data 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)) 71 test_uuid_failed("conversion", false, false, data->uuid, NULL); 76 test_uuid_failed("cmp", false, false, data->uuid, buf); 81 if (uuid_parse(data->uuid, [all...] |
/linux-master/fs/btrfs/ |
H A D | uuid-tree.h | 11 int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, u8 *uuid, u8 type, 13 int btrfs_uuid_tree_remove(struct btrfs_trans_handle *trans, u8 *uuid, u8 type,
|
H A D | uuid-tree.c | 6 #include <linux/uuid.h> 14 #include "uuid-tree.h" 16 static void btrfs_uuid_to_key(u8 *uuid, u8 type, struct btrfs_key *key) argument 19 key->objectid = get_unaligned_le64(uuid); 20 key->offset = get_unaligned_le64(uuid + sizeof(u64)); 24 static int btrfs_uuid_tree_lookup(struct btrfs_root *uuid_root, u8 *uuid, argument 46 btrfs_uuid_to_key(uuid, type, &key); 63 "uuid item with illegal size %lu!", 84 int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, u8 *uuid, u8 type, argument 97 ret = btrfs_uuid_tree_lookup(uuid_root, uuid, typ 148 btrfs_uuid_tree_remove(struct btrfs_trans_handle *trans, u8 *uuid, u8 type, u64 subid) argument 230 btrfs_uuid_iter_rem(struct btrfs_root *uuid_root, u8 *uuid, u8 type, u64 subid) argument 258 btrfs_check_uuid_tree_entry(struct btrfs_fs_info *fs_info, u8 *uuid, u8 type, u64 subvolid) argument 344 u8 uuid[BTRFS_UUID_SIZE]; local [all...] |
/linux-master/include/linux/ |
H A D | virtio_dma_buf.h | 12 #include <linux/uuid.h> 20 * @get_uid: [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);
|
H A D | statfs.h | 54 /* Fold 16 bytes uuid to 64 bit fsid */ 55 static inline __kernel_fsid_t uuid_to_fsid(__u8 *uuid) argument 57 return u64_to_fsid(le64_to_cpup((void *)uuid) ^ 58 le64_to_cpup((void *)(uuid + sizeof(u64))));
|
H A D | uuid.h | 91 static inline bool uuid_is_null(const uuid_t *uuid) argument 93 return uuid_equal(uuid, &uuid_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);
|
/linux-master/tools/testing/selftests/pstore/ |
H A D | Makefile | 9 EXTRA_CLEAN := logs/* *uuid
|
H A D | pstore_crash_test | 20 # save uuid file by different name because next test execution will replace it. 21 mv $TOP_DIR/uuid $TOP_DIR/prev_uuid
|
H A D | pstore_tests | 24 echo "$UUID" > $TOP_DIR/uuid
|
/linux-master/arch/arm/include/asm/mach/ |
H A D | sharpsl_param.h | 15 unsigned char uuid[16]; member in struct:sharpsl_param_info
|
/linux-master/drivers/md/ |
H A D | dm-log-userspace-transfer.h | 15 int dm_consult_userspace(const char *uuid, uint64_t luid, int request_type,
|
H A D | dm-log-userspace-base.c | 47 char uuid[DM_UUID_LEN]; member in struct:log_c 85 static int userspace_do_request(struct log_c *lc, const char *uuid, argument 97 r = dm_consult_userspace(uuid, lc->luid, request_type, data, 108 r = dm_consult_userspace(uuid, lc->luid, DM_ULOG_CTR, 116 r = dm_consult_userspace(uuid, lc->luid, DM_ULOG_RESUME, NULL, 164 r = userspace_do_request(lc, lc->uuid, DM_ULOG_FLUSH, NULL, 0, NULL, NULL); 227 strscpy(lc->uuid, argv[0], sizeof(lc->uuid)); 263 r = dm_consult_userspace(lc->uuid, lc->luid, DM_ULOG_CTR, 277 r = dm_consult_userspace(lc->uuid, l [all...] |
/linux-master/net/bluetooth/ |
H A D | eir.c | 54 u8 eir_append_service_data(u8 *eir, u16 eir_len, u16 uuid, u8 *data, argument 57 eir[eir_len++] = sizeof(u8) + sizeof(uuid) + data_len; 59 put_unaligned_le16(uuid, &eir[eir_len]); 60 eir_len += sizeof(uuid); 70 struct bt_uuid *uuid; local 75 list_for_each_entry(uuid, &hdev->uuids, list) { 78 if (uuid->size != 16) 81 uuid16 = get_unaligned_le16(&uuid->uuid[12]); 112 struct bt_uuid *uuid; local 145 struct bt_uuid *uuid; local 367 eir_get_service_data(u8 *eir, size_t eir_len, u16 uuid, size_t *len) argument [all...] |
/linux-master/drivers/char/tpm/ |
H A D | tpm_ftpm_tee.h | 11 #include <linux/uuid.h>
|
/linux-master/drivers/mfd/ |
H A D | wm831x-otp.c | 59 char uuid[WM831X_UNIQUE_ID_LEN]; local 67 ret = wm831x_unique_id_read(wm831x, uuid); 69 add_device_randomness(uuid, sizeof(uuid));
|
/linux-master/tools/power/acpi/tools/pfrut/ |
H A D | pfrut.c | 24 #include <uuid/uuid.h> 169 char *uuid; local 171 uuid = malloc(37); 172 if (!uuid) { 173 perror("Can not allocate uuid buffer\n"); 177 uuid_unparse(cap->code_type, uuid); 178 printf("code injection image type:%s\n", uuid); 182 uuid_unparse(cap->drv_type, uuid); 183 printf("driver update image type:%s\n", uuid); [all...] |
/linux-master/drivers/firmware/arm_ffa/ |
H A D | common.h | 20 void ffa_device_match_uuid(struct ffa_device *ffa_dev, const uuid_t *uuid);
|
H A D | bus.c | 30 while (!uuid_is_null(&id_table->uuid)) { 37 if (uuid_is_null(&ffa_dev->uuid)) 38 ffa_device_match_uuid(ffa_dev, &id_table->uuid); 40 if (uuid_equal(&ffa_dev->uuid, &id_table->uuid)) 69 ffa_dev->vm_id, &ffa_dev->uuid); 78 &ffa_dev->uuid); 96 return sprintf(buf, "%pUb\n", &ffa_dev->uuid); 98 static DEVICE_ATTR_RO(uuid); 187 struct ffa_device *ffa_device_register(const uuid_t *uuid, in argument [all...] |
/linux-master/drivers/vfio/mdev/ |
H A D | mdev_private.h | 30 int mdev_device_create(struct mdev_type *kobj, const guid_t *uuid);
|
/linux-master/drivers/nvdimm/ |
H A D | btt_devs.c | 23 kfree(nd_btt->uuid); 71 if (nd_btt->uuid) 72 return sprintf(buf, "%pUb\n", nd_btt->uuid); 83 rc = nd_uuid_store(dev, &nd_btt->uuid, buf, len); 90 static DEVICE_ATTR_RW(uuid); 184 unsigned long lbasize, uuid_t *uuid, 199 if (uuid) { 200 uuid = kmemdup(uuid, 16, GFP_KERNEL); 201 if (!uuid) 183 __nd_btt_create(struct nd_region *nd_region, unsigned long lbasize, uuid_t *uuid, struct nd_namespace_common *ndns) argument [all...] |
H A D | pfn.h | 18 u8 uuid[16]; member in struct:nd_pfn_sb
|
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 in struct:cxl_region_label 103 * @uuid: UUID per RFC 4122 121 u8 uuid[NSLABEL_UUID_LEN]; member in struct:nvdimm_efi_label 145 * @type: uuid identifying this label format (namespace) 146 * @uuid: uuid fo 163 u8 uuid[NSLABEL_UUID_LEN]; member in struct:nvdimm_cxl_label [all...] |
/linux-master/arch/s390/include/asm/ |
H A D | sysinfo.h | 15 #include <linux/uuid.h> 114 uuid_t uuid; member in struct:sysinfo_2_2_2 139 uuid_t uuid; member in struct:sysinfo_3_2_2::__anon39
|
/linux-master/include/uapi/linux/ |
H A D | dm-log-userspace.h | 410 * identifier (uuid) are used to tie a request to a specific 412 * just the 'luid', but a cluster-aware log must use the 'uuid' and 413 * the 'luid'. The uuid is what is required for node to node 416 * same 'uuid'. (Think "live" and "inactive" device-mapper tables.) 419 char uuid[DM_UUID_LEN]; member in struct:dm_ulog_request
|