Lines Matching defs:uuid
99 gpt_uuid_to_dce(const gpt_uuid_t buf, struct dce_uuid *uuid)
104 uuid->time_low = le32dec(p);
105 uuid->time_mid = le16dec(p + 4);
106 uuid->time_hi_and_version = le16dec(p + 6);
107 uuid->clock_seq_hi_and_reserved = p[8];
108 uuid->clock_seq_low = p[9];
109 for (i = 0; i < sizeof(uuid->node); i++)
110 uuid->node[i] = p[10 + i];
114 gpt_dce_to_uuid(const struct dce_uuid *uuid, uint8_t *buf)
119 le32enc(p, uuid->time_low);
120 le16enc(p + 4, uuid->time_mid);
121 le16enc(p + 6, uuid->time_hi_and_version);
122 p[8] = uuid->clock_seq_hi_and_reserved;
123 p[9] = uuid->clock_seq_low;
124 for (i = 0; i < sizeof(uuid->node); i++)
125 p[10 + i] = uuid->node[i];
224 gpt_uuid_parse(const char *s, gpt_uuid_t uuid)
229 gpt_dce_to_uuid(&u, uuid);
236 gpt_dce_to_uuid(&u, uuid);
242 void (*func)(const char *uuid, const char *short_name, const char *desc))