Lines Matching refs:uuid

140 static image_desc_t *new_image_desc(const uuid_t *uuid,  in new_image_desc()  argument
147 memcpy(&desc->uuid, uuid, sizeof(uuid_t)); in new_image_desc()
216 desc = new_image_desc(&toc_entry->uuid, in fill_image_descs()
227 desc = new_image_desc(&toc_entry->uuid, in fill_image_descs()
235 static image_desc_t *lookup_image_desc_from_uuid(const uuid_t *uuid) in lookup_image_desc_from_uuid() argument
240 if (memcmp(&desc->uuid, uuid, sizeof(uuid_t)) == 0) in lookup_image_desc_from_uuid()
346 if (memcmp(&toc_entry->uuid, &uuid_null, sizeof(uuid_t)) == 0) { in parse_fip()
372 desc = lookup_image_desc_from_uuid(&toc_entry->uuid); in parse_fip()
376 uuid_to_str(name, sizeof(name), &toc_entry->uuid); in parse_fip()
379 desc = new_image_desc(&toc_entry->uuid, name, "blob"); in parse_fip()
399 static image_t *read_image_from_file(const uuid_t *uuid, const char *filename) in read_image_from_file() argument
405 assert(uuid != NULL); in read_image_from_file()
416 image->toc_e.uuid = *uuid; in read_image_from_file()
633 image = read_image_from_file(&desc->uuid, in update_fip()
683 static void parse_blob_opt(char *arg, uuid_t *uuid, char *filename, size_t len) in parse_blob_opt() argument
690 uuid_from_str(uuid, p); in parse_blob_opt()
739 uuid_t uuid = uuid_null; in create_cmd() local
742 parse_blob_opt(optarg, &uuid, in create_cmd()
745 if (memcmp(&uuid, &uuid_null, sizeof(uuid_t)) == 0 || in create_cmd()
749 desc = lookup_image_desc_from_uuid(&uuid); in create_cmd()
751 uuid_to_str(name, sizeof(name), &uuid); in create_cmd()
752 desc = new_image_desc(&uuid, name, "blob"); in create_cmd()
842 uuid_t uuid = uuid_null; in update_cmd() local
845 parse_blob_opt(optarg, &uuid, in update_cmd()
848 if (memcmp(&uuid, &uuid_null, sizeof(uuid_t)) == 0 || in update_cmd()
852 desc = lookup_image_desc_from_uuid(&uuid); in update_cmd()
854 uuid_to_str(name, sizeof(name), &uuid); in update_cmd()
855 desc = new_image_desc(&uuid, name, "blob"); in update_cmd()
956 uuid_t uuid = uuid_null; in unpack_cmd() local
959 parse_blob_opt(optarg, &uuid, in unpack_cmd()
962 if (memcmp(&uuid, &uuid_null, sizeof(uuid_t)) == 0 || in unpack_cmd()
966 desc = lookup_image_desc_from_uuid(&uuid); in unpack_cmd()
968 uuid_to_str(name, sizeof(name), &uuid); in unpack_cmd()
969 desc = new_image_desc(&uuid, name, "blob"); in unpack_cmd()
1101 uuid_t uuid = uuid_null; in remove_cmd() local
1104 parse_blob_opt(optarg, &uuid, in remove_cmd()
1107 if (memcmp(&uuid, &uuid_null, sizeof(uuid_t)) == 0) in remove_cmd()
1110 desc = lookup_image_desc_from_uuid(&uuid); in remove_cmd()
1112 uuid_to_str(name, sizeof(name), &uuid); in remove_cmd()
1113 desc = new_image_desc(&uuid, name, "blob"); in remove_cmd()