Lines Matching refs:image_data

120 static struct image_data_t	image_data;  variable
205 if (image_data.status != IMAGE_READY || in validate_store()
206 image_data.size < VALIDATE_BUF_SIZE) { in validate_store()
213 memcpy(args_buf->buf, image_data.data, VALIDATE_BUF_SIZE); in validate_store()
292 list = opal_vmalloc_to_sg_list(image_data.data, image_data.size); in opal_flash_update()
313 pr_alert("FLASH: Image is %u bytes\n", image_data.size); in opal_flash_update_print_message()
353 if (image_data.status == IMAGE_READY) in update_store()
375 addr = image_data.data; in free_image_buf()
376 size = PAGE_ALIGN(image_data.size); in free_image_buf()
382 vfree(image_data.data); in free_image_buf()
383 image_data.data = NULL; in free_image_buf()
384 image_data.status = IMAGE_INVALID; in free_image_buf()
401 image_data.size = be32_to_cpu(image_header.size); in alloc_image_buf()
402 pr_debug("FLASH: Candidate image size = %u\n", image_data.size); in alloc_image_buf()
404 if (image_data.size > MAX_IMAGE_SIZE) { in alloc_image_buf()
408 if (image_data.size < VALIDATE_BUF_SIZE) { in alloc_image_buf()
413 image_data.data = vzalloc(PAGE_ALIGN(image_data.size)); in alloc_image_buf()
414 if (!image_data.data) { in alloc_image_buf()
420 addr = image_data.data; in alloc_image_buf()
421 size = PAGE_ALIGN(image_data.size); in alloc_image_buf()
428 image_data.status = IMAGE_LOADING; in alloc_image_buf()
449 if (image_data.data) in image_data_write()
462 if (image_data.status != IMAGE_LOADING) { in image_data_write()
467 if ((pos + count) > image_data.size) { in image_data_write()
472 memcpy(image_data.data + pos, (void *)buffer, count); in image_data_write()
476 if ((pos + count) == image_data.size) { in image_data_write()
478 image_data.status = IMAGE_READY; in image_data_write()
557 image_data.status = IMAGE_INVALID; in opal_flash_update_init()