18 #include <linux/types.h>
29 static s32 uuid_hex_to_bin(
char *
buf,
s32 len)
35 for (i = 0; i < len; i++) {
54 uuid_obj->
data1 = uuid_hex_to_bin(sz_uuid, 8);
60 uuid_obj->
data2 = (
u16) uuid_hex_to_bin(sz_uuid, 4);
66 uuid_obj->
data3 = (
u16) uuid_hex_to_bin(sz_uuid, 4);
72 uuid_obj->
data4 = (
u8) uuid_hex_to_bin(sz_uuid, 2);
75 uuid_obj->
data5 = (
u8) uuid_hex_to_bin(sz_uuid, 2);
81 for (j = 0; j < 6; j++) {
82 uuid_obj->
data6[
j] = (
u8) uuid_hex_to_bin(sz_uuid, 2);