Lines Matching refs:uuid_bin
144 int uuid_str_to_bin(char *uuid_str, unsigned char *uuid_bin, int str_format) in uuid_str_to_bin() argument
152 if (!uuid_guid_get_bin(uuid_str, uuid_bin)) in uuid_str_to_bin()
160 memcpy(uuid_bin, &tmp32, 4); in uuid_str_to_bin()
163 memcpy(uuid_bin + 4, &tmp16, 2); in uuid_str_to_bin()
166 memcpy(uuid_bin + 6, &tmp16, 2); in uuid_str_to_bin()
169 memcpy(uuid_bin, &tmp32, 4); in uuid_str_to_bin()
172 memcpy(uuid_bin + 4, &tmp16, 2); in uuid_str_to_bin()
175 memcpy(uuid_bin + 6, &tmp16, 2); in uuid_str_to_bin()
179 memcpy(uuid_bin + 8, &tmp16, 2); in uuid_str_to_bin()
182 memcpy(uuid_bin + 10, (char *)&tmp64 + 2, 6); in uuid_str_to_bin()
194 void uuid_bin_to_str(unsigned char *uuid_bin, char *uuid_str, int str_format) in uuid_bin_to_str() argument
214 sprintf(uuid_str, "%02x", uuid_bin[char_order[i]]); in uuid_bin_to_str()
235 void gen_rand_uuid(unsigned char *uuid_bin) in gen_rand_uuid() argument
253 memcpy(uuid_bin, &uuid, sizeof(struct uuid)); in gen_rand_uuid()
265 unsigned char uuid_bin[UUID_BIN_LEN]; in gen_rand_uuid_str() local
268 gen_rand_uuid(uuid_bin); in gen_rand_uuid_str()
271 uuid_bin_to_str(uuid_bin, uuid_str, str_format); in gen_rand_uuid_str()