Lines Matching defs:uuid
101 gpt_uuid_to_dce(const gpt_uuid_t buf, struct dce_uuid *uuid)
106 uuid->time_low = le32dec(p);
107 uuid->time_mid = le16dec(p + 4);
108 uuid->time_hi_and_version = le16dec(p + 6);
109 uuid->clock_seq_hi_and_reserved = p[8];
110 uuid->clock_seq_low = p[9];
111 for (i = 0; i < sizeof(uuid->node); i++)
112 uuid->node[i] = p[10 + i];
116 gpt_dce_to_uuid(const struct dce_uuid *uuid, uint8_t *buf)
121 le32enc(p, uuid->time_low);
122 le16enc(p + 4, uuid->time_mid);
123 le16enc(p + 6, uuid->time_hi_and_version);
124 p[8] = uuid->clock_seq_hi_and_reserved;
125 p[9] = uuid->clock_seq_low;
126 for (i = 0; i < sizeof(uuid->node); i++)
127 p[10 + i] = uuid->node[i];
226 gpt_uuid_parse(const char *s, gpt_uuid_t uuid)
231 gpt_dce_to_uuid(&u, uuid);
238 gpt_dce_to_uuid(&u, uuid);
244 void (*func)(const char *uuid, const char *short_name, const char *desc))