Lines Matching refs:uuid_str
145 int uuid_str_to_bin(char *uuid_str, unsigned char *uuid_bin, int str_format) in uuid_str_to_bin() argument
151 if (!uuid_str_valid(uuid_str)) { in uuid_str_to_bin()
153 if (!uuid_guid_get_bin(uuid_str, uuid_bin)) in uuid_str_to_bin()
160 tmp32 = cpu_to_be32(simple_strtoul(uuid_str, NULL, 16)); in uuid_str_to_bin()
163 tmp16 = cpu_to_be16(simple_strtoul(uuid_str + 9, NULL, 16)); in uuid_str_to_bin()
166 tmp16 = cpu_to_be16(simple_strtoul(uuid_str + 14, NULL, 16)); in uuid_str_to_bin()
169 tmp32 = cpu_to_le32(simple_strtoul(uuid_str, NULL, 16)); in uuid_str_to_bin()
172 tmp16 = cpu_to_le16(simple_strtoul(uuid_str + 9, NULL, 16)); in uuid_str_to_bin()
175 tmp16 = cpu_to_le16(simple_strtoul(uuid_str + 14, NULL, 16)); in uuid_str_to_bin()
179 tmp16 = cpu_to_be16(simple_strtoul(uuid_str + 19, NULL, 16)); in uuid_str_to_bin()
182 tmp64 = cpu_to_be64(simple_strtoull(uuid_str + 24, NULL, 16)); in uuid_str_to_bin()
195 void uuid_bin_to_str(unsigned char *uuid_bin, char *uuid_str, int str_format) in uuid_bin_to_str() argument
215 sprintf(uuid_str, "%02x", uuid_bin[char_order[i]]); in uuid_bin_to_str()
216 uuid_str += 2; in uuid_bin_to_str()
222 *uuid_str++ = '-'; in uuid_bin_to_str()
264 void gen_rand_uuid_str(char *uuid_str, int str_format) in gen_rand_uuid_str() argument
272 uuid_bin_to_str(uuid_bin, uuid_str, str_format); in gen_rand_uuid_str()