Lines Matching full:image

27 /* Validate image status values */
28 #define VALIDATE_IMG_READY -1001 /* Image ready for validation */
31 /* Manage image status values */
34 /* Flash image status values */
36 #define FLASH_INVALID_IMG -1003 /* Flash image shorter than expected */
41 #define FLASH_REJECT_TMP_SIDE 0 /* Reject temporary fw image */
42 #define FLASH_COMMIT_TMP_SIDE 1 /* Commit temporary fw image */
48 /* Validate image update result tokens */
51 #define VALIDATE_INVALID_IMG 2 /* Candidate image is not valid */
55 * image, and the new image is downlevel from current image
60 * image
64 * T side will be updated with a downlevel image
68 * The candidate image's release date is later than the system's firmware
76 /* XXX: Assume candidate image size is <= 1GB */
79 /* Image status */
86 /* Candidate image data */
93 /* Candidate image header */
102 void *buf; /* Candidate image buffer */
103 uint32_t buf_size; /* Image size */
128 * Validate candidate image
147 * current image version details
148 * new image version details
156 /* Candidate image is not validated */ in validate_show()
165 /* Current and candidate image version details */ in validate_show()
184 * Validate candidate firmware image
188 * candidate image.
208 /* Copy first 4k bytes of candidate image */ in validate_store()
214 /* Validate candidate image */ in validate_store()
268 /* commit/reject temporary image */ in manage_store()
283 pr_alert("FLASH: Image update cancelled\n"); in opal_flash_update()
309 pr_alert("FLASH: Image is %u bytes\n", image_data.size); in opal_flash_update_print_message()
318 * Show candidate image status
328 * Set update image flag
329 * 1 - Flash new image
348 /* Image is loaded? */ in update_store()
364 * Free image buffer
384 * Allocate image buffer.
392 pr_warn("FLASH: Invalid candidate image\n"); in alloc_image_buf()
398 pr_debug("FLASH: Candidate image size = %u\n", image_data.size); in alloc_image_buf()
401 pr_warn("FLASH: Too large image\n"); in alloc_image_buf()
405 pr_warn("FLASH: Image is shorter than expected\n"); in alloc_image_buf()
429 * Copy candidate image
431 * Parse candidate image header to get total image size
442 /* New image ? */ in image_data_write()
448 /* Cancel outstanding image update request */ in image_data_write()
471 /* Set image status */ in image_data_write()
473 pr_debug("FLASH: Candidate image loaded....\n"); in image_data_write()
487 * image : Interface to load candidate firmware image
488 * validate_flash : Validate firmware image
489 * manage_flash : Commit/Reject firmware image
490 * update_flash : Flash new firmware image
494 .attr = {.name = "image", .mode = 0200},
495 .size = MAX_IMAGE_SIZE, /* Limit image size */
527 /* Allocate validate image buffer */ in opal_flash_update_init()