Lines Matching refs:uuid

137 static image_desc_t *new_image_desc(const uuid_t *uuid,  in new_image_desc()  argument
144 memcpy(&desc->uuid, uuid, sizeof(uuid_t)); in new_image_desc()
213 desc = new_image_desc(&toc_entry->uuid, in fill_image_descs()
224 desc = new_image_desc(&toc_entry->uuid, in fill_image_descs()
232 static image_desc_t *lookup_image_desc_from_uuid(const uuid_t *uuid) in lookup_image_desc_from_uuid() argument
237 if (memcmp(&desc->uuid, uuid, sizeof(uuid_t)) == 0) in lookup_image_desc_from_uuid()
334 if (memcmp(&toc_entry->uuid, &uuid_null, sizeof(uuid_t)) == 0) { in parse_fip()
358 desc = lookup_image_desc_from_uuid(&toc_entry->uuid); in parse_fip()
362 uuid_to_str(name, sizeof(name), &toc_entry->uuid); in parse_fip()
365 desc = new_image_desc(&toc_entry->uuid, name, "blob"); in parse_fip()
385 static image_t *read_image_from_file(const uuid_t *uuid, const char *filename) in read_image_from_file() argument
391 assert(uuid != NULL); in read_image_from_file()
402 image->toc_e.uuid = *uuid; in read_image_from_file()
611 image = read_image_from_file(&desc->uuid, in update_fip()
661 static void parse_blob_opt(char *arg, uuid_t *uuid, char *filename, size_t len) in parse_blob_opt() argument
668 uuid_from_str(uuid, p); in parse_blob_opt()
717 uuid_t uuid = uuid_null; in create_cmd() local
720 parse_blob_opt(optarg, &uuid, in create_cmd()
723 if (memcmp(&uuid, &uuid_null, sizeof(uuid_t)) == 0 || in create_cmd()
727 desc = lookup_image_desc_from_uuid(&uuid); in create_cmd()
729 uuid_to_str(name, sizeof(name), &uuid); in create_cmd()
730 desc = new_image_desc(&uuid, name, "blob"); in create_cmd()
820 uuid_t uuid = uuid_null; in update_cmd() local
823 parse_blob_opt(optarg, &uuid, in update_cmd()
826 if (memcmp(&uuid, &uuid_null, sizeof(uuid_t)) == 0 || in update_cmd()
830 desc = lookup_image_desc_from_uuid(&uuid); in update_cmd()
832 uuid_to_str(name, sizeof(name), &uuid); in update_cmd()
833 desc = new_image_desc(&uuid, name, "blob"); in update_cmd()
934 uuid_t uuid = uuid_null; in unpack_cmd() local
937 parse_blob_opt(optarg, &uuid, in unpack_cmd()
940 if (memcmp(&uuid, &uuid_null, sizeof(uuid_t)) == 0 || in unpack_cmd()
944 desc = lookup_image_desc_from_uuid(&uuid); in unpack_cmd()
946 uuid_to_str(name, sizeof(name), &uuid); in unpack_cmd()
947 desc = new_image_desc(&uuid, name, "blob"); in unpack_cmd()
1079 uuid_t uuid = uuid_null; in remove_cmd() local
1082 parse_blob_opt(optarg, &uuid, in remove_cmd()
1085 if (memcmp(&uuid, &uuid_null, sizeof(uuid_t)) == 0) in remove_cmd()
1088 desc = lookup_image_desc_from_uuid(&uuid); in remove_cmd()
1090 uuid_to_str(name, sizeof(name), &uuid); in remove_cmd()
1091 desc = new_image_desc(&uuid, name, "blob"); in remove_cmd()