| /OK3568_Linux_fs/kernel/lib/ |
| H A 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 …]
|
| H A 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()
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/mk/ |
| H A D | link.mk | 26 all: $(link-out-dir$(sm))/$(user-ta-uuid).dmp \ 27 $(link-out-dir$(sm))/$(user-ta-uuid).stripped.elf \ 28 $(link-out-dir$(sm))/$(user-ta-uuid).ta 29 cleanfiles += $(link-out-dir$(sm))/$(user-ta-uuid).elf 30 cleanfiles += $(link-out-dir$(sm))/$(user-ta-uuid).dmp 31 cleanfiles += $(link-out-dir$(sm))/$(user-ta-uuid).map 32 cleanfiles += $(link-out-dir$(sm))/$(user-ta-uuid).stripped.elf 33 cleanfiles += $(link-out-dir$(sm))/$(user-ta-uuid).ta 38 link-ldflags += -Map=$(link-out-dir$(sm))/$(user-ta-uuid).map 70 ldargs-$(user-ta-uuid).elf := $(link-ldflags) $(objs) $(link-ldadd) \ [all …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/mk/ |
| H A D | link.mk | 26 all: $(link-out-dir$(sm))/$(user-ta-uuid).dmp \ 27 $(link-out-dir$(sm))/$(user-ta-uuid).stripped.elf \ 28 $(link-out-dir$(sm))/$(user-ta-uuid).ta 29 cleanfiles += $(link-out-dir$(sm))/$(user-ta-uuid).elf 30 cleanfiles += $(link-out-dir$(sm))/$(user-ta-uuid).dmp 31 cleanfiles += $(link-out-dir$(sm))/$(user-ta-uuid).map 32 cleanfiles += $(link-out-dir$(sm))/$(user-ta-uuid).stripped.elf 33 cleanfiles += $(link-out-dir$(sm))/$(user-ta-uuid).ta 38 link-ldflags += -Map=$(link-out-dir$(sm))/$(user-ta-uuid).map 70 ldargs-$(user-ta-uuid).elf := $(link-ldflags) $(objs) $(link-ldadd) \ [all …]
|
| /OK3568_Linux_fs/buildroot/package/busybox/ |
| H A D | 0006-Support-PARTLABEL.patch | 42 -#define get_label_uuid(fd, label, uuid, type) \ 43 - get_label_uuid(fd, label, uuid) 44 -#define uuidcache_addentry(device, label, uuid, type) \ 45 - uuidcache_addentry(device, label, uuid) 46 +#define get_label_uuid(fd, label, partlabel, uuid, type) \ 47 + get_label_uuid(fd, label, partlabel, uuid) 48 +#define uuidcache_addentry(device, label, partlabel, uuid, type) \ 49 + uuidcache_addentry(device, label, partlabel, uuid) 57 -get_label_uuid(int fd, char **label, char **uuid, const char **type) 58 +get_label_uuid(int fd, char **label, char **partlabel, char **uuid, const char **type) [all …]
|
| /OK3568_Linux_fs/u-boot/lib/ |
| H A D | uuid.c | 59 int uuid_str_valid(const char *uuid) in uuid_str_valid() argument 63 if (uuid == NULL) in uuid_str_valid() 66 for (i = 0, valid = 1; uuid[i] && valid; i++) { in uuid_str_valid() 69 valid = (uuid[i] == '-'); in uuid_str_valid() 72 valid = isxdigit(uuid[i]); in uuid_str_valid() 239 struct uuid *uuid = (struct uuid *)ptr; in gen_rand_uuid() local 246 clrsetbits_be16(&uuid->time_hi_and_version, in gen_rand_uuid() 250 clrsetbits_8(&uuid->clock_seq_hi_and_reserved, in gen_rand_uuid() 254 memcpy(uuid_bin, uuid, 16); in gen_rand_uuid() 278 char uuid[UUID_STR_LEN + 1]; in do_uuid() local [all …]
|
| H A D | uuid.su | |
| /OK3568_Linux_fs/kernel/fs/btrfs/ |
| H A 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 …]
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-extended/minifi-cpp/files/ |
| H A D | fix-osspuuid-compile.patch | 8 - set(PC "${Patch_EXECUTABLE}" -p1 -i "${SOURCE_DIR}/thirdparty/ossp-uuid/ossp-uuid-mac-fix.patc… 9 + set(PATCH1 "${Patch_EXECUTABLE}" -p1 -i "${SOURCE_DIR}/thirdparty/ossp-uuid/ossp-uuid-mac-fix.… 10 + set(PATCH2 "${Patch_EXECUTABLE}" -p1 -i "${SOURCE_DIR}/thirdparty/ossp-uuid/ossp-uuid-cross-co… 11 + set(PATCH3 "${Patch_EXECUTABLE}" -p1 -i "${SOURCE_DIR}/thirdparty/ossp-uuid/ossp-uuid-musl-com… 19 …--without-perl --without-php --without-pgsql "--prefix=${BINARY_DIR}/thirdparty/ossp-uuid-install") 22 + --prefix=${BINARY_DIR}/thirdparty/ossp-uuid-install)
|
| H A D | fix-osspuuid-cross-compile.patch | 1 …iff -urN -x .git orig/thirdparty/ossp-uuid/ossp-uuid-cross-compile-fix.patch patched/thirdparty/os… 2 --- orig/thirdparty/ossp-uuid/ossp-uuid-cross-compile-fix.patch 1970-01-01 09:00:00.000000000 +0900 3 +++ patched/thirdparty/ossp-uuid/ossp-uuid-cross-compile-fix.patch 2020-08-07 22:28:04.396770190 +0…
|
| H A D | fix-osspuuid-musl-compile.patch | 1 …iff -urN -x .git orig/thirdparty/ossp-uuid/ossp-uuid-musl-compile-fix.patch patched/thirdparty/oss… 2 --- orig/thirdparty/ossp-uuid/ossp-uuid-musl-compile-fix.patch 1970-01-01 09:00:00.000000000 +0900 3 +++ patched/thirdparty/ossp-uuid/ossp-uuid-musl-compile-fix.patch 2020-08-07 11:22:49.344854508 +09…
|
| H A D | 0003-cmake-BundledOSSPUUID.cmake-use-ossp-uuid-local-sour.patch | 4 Subject: [PATCH] cmake/BundledOSSPUUID.cmake: use ossp-uuid local source 7 Do not download ossp-uuid source during compile. 23 ossp-uuid-external 24 - URL "https://deb.debian.org/debian/pool/main/o/ossp-uuid/ossp-uuid_1.6.2.orig.tar.gz" 27 - SOURCE_DIR "${BINARY_DIR}/thirdparty/ossp-uuid-src" 28 + SOURCE_DIR "${SOURCE_DIR}/thirdparty/uuid-1.6.2"
|
| /OK3568_Linux_fs/buildroot/package/taskd/ |
| H A D | 0003-CMakeLists-use-pkg-config-uuid-detection.patch | 1 CMakeLists.txt: use pkg-config to detect uuid when possible 23 # Apple and FreeBSD include the uuid functions in their libc, rather than libuuid 26 - find_path (UUID_INCLUDE_DIR uuid/uuid.h) 27 - find_library (UUID_LIBRARY NAMES uuid) 29 + pkg_check_modules(PC_UUID uuid) 35 + find_path (UUID_INCLUDE_DIR uuid/uuid.h) 36 + find_library (UUID_LIBRARY NAMES uuid)
|
| /OK3568_Linux_fs/kernel/drivers/nvdimm/ |
| H A 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 …]
|
| H A 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 …]
|
| /OK3568_Linux_fs/buildroot/package/python3/ |
| H A D | 0028-Fix-cross-compiling-the-uuid-module.patch | 4 Subject: [PATCH] Fix cross compiling the uuid module 7 search path for uuid.h is hardcoded to /usr/include/uuid, which should 11 detection: append "uuid" to each of the include directories in 12 "inc_dirs", instead of hardcoding /usr/include/uuid. 34 + uuid_h = find_file("uuid.h", self.inc_dirs, 35 + [os.path.join(inc_dir, 'uuid') for inc_dir in self.inc_dirs]) 37 + if self.compiler.find_library_file(self.lib_dirs, 'uuid'): 38 uuid_libs = ["uuid"]
|
| /OK3568_Linux_fs/kernel/drivers/md/ |
| H A 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 …]
|
| /OK3568_Linux_fs/external/rkwifibt-app/include/ |
| H A D | RkBleClient.h | 74 char uuid[UUID_BUF_LEN]; member 80 char uuid[UUID_BUF_LEN]; member 92 char uuid[UUID_BUF_LEN]; member 103 typedef void (*RK_BLE_CLIENT_RECV_CALLBACK)(const char *uuid, char *data, int len); 112 int rk_ble_client_write(const char *uuid, char *data, int data_len); 113 int rk_ble_client_read(const char *uuid); 116 bool rk_ble_client_is_notifying(const char *uuid); 119 int rk_ble_client_notify(const char *uuid, bool is_indicate, bool enable);
|
| /OK3568_Linux_fs/yocto/poky/meta/classes/ |
| H A D | fs-uuid.bbclass | 10 uuid = line.split()[-1] 11 bb.note('UUID of %s: %s' % (rootfs, uuid)) 12 return uuid 15 # Replace the special <<uuid-of-rootfs>> inside a string (like the 20 UUID_PLACEHOLDER = '<<uuid-of-rootfs>>' 22 uuid = get_rootfs_uuid(d) 23 string = string.replace(UUID_PLACEHOLDER, uuid)
|
| /OK3568_Linux_fs/kernel/drivers/thunderbolt/ |
| H A 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 …]
|
| /OK3568_Linux_fs/u-boot/spl/lib/ |
| H A D | uuid.su | |
| /OK3568_Linux_fs/kernel/fs/afs/ |
| H A 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 …]
|
| H A 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 …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/host/xtest/ |
| H A D | xtest_uuid_helpers.c | 47 TEEC_Result xtest_uuid_from_str(TEEC_UUID *uuid, const char *s) in xtest_uuid_from_str() argument 80 *uuid = u; in xtest_uuid_from_str() 86 TEEC_Result xtest_uuid_v5(TEEC_UUID *uuid, const TEEC_UUID *ns, in xtest_uuid_v5() argument 143 uuid->timeLow = be32toh(be32); in xtest_uuid_v5() 145 uuid->timeMid = be16toh(be16); in xtest_uuid_v5() 147 uuid->timeHiAndVersion = be16toh(be16); in xtest_uuid_v5() 148 memcpy(uuid->clockSeqAndNode, &hash[8], sizeof(uuid->clockSeqAndNode)); in xtest_uuid_v5()
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/ta/sims/ |
| H A D | ta_sims.c | 30 TEE_UUID *uuid = NULL; in sims_open_ta_session() local 42 if (params[0].memref.size != sizeof(*uuid)) in sims_open_ta_session() 45 uuid = TEE_Malloc(sizeof(*uuid), TEE_MALLOC_FILL_ZERO); in sims_open_ta_session() 46 if (!uuid) in sims_open_ta_session() 49 TEE_MemMove(uuid, params[0].memref.buffer, params[0].memref.size); in sims_open_ta_session() 51 res = TEE_OpenTASession(uuid, TEE_TIMEOUT_INFINITE, 0, NULL, in sims_open_ta_session() 53 TEE_Free(uuid); in sims_open_ta_session()
|