Lines Matching refs:image_data

116 static struct image_data_t	image_data;  variable
201 if (image_data.status != IMAGE_READY || in validate_store()
202 image_data.size < VALIDATE_BUF_SIZE) { in validate_store()
209 memcpy(args_buf->buf, image_data.data, VALIDATE_BUF_SIZE); in validate_store()
288 list = opal_vmalloc_to_sg_list(image_data.data, image_data.size); in opal_flash_update()
309 pr_alert("FLASH: Image is %u bytes\n", image_data.size); in opal_flash_update_print_message()
349 if (image_data.status == IMAGE_READY) in update_store()
371 addr = image_data.data; in free_image_buf()
372 size = PAGE_ALIGN(image_data.size); in free_image_buf()
378 vfree(image_data.data); in free_image_buf()
379 image_data.data = NULL; in free_image_buf()
380 image_data.status = IMAGE_INVALID; in free_image_buf()
397 image_data.size = be32_to_cpu(image_header.size); in alloc_image_buf()
398 pr_debug("FLASH: Candidate image size = %u\n", image_data.size); in alloc_image_buf()
400 if (image_data.size > MAX_IMAGE_SIZE) { in alloc_image_buf()
404 if (image_data.size < VALIDATE_BUF_SIZE) { in alloc_image_buf()
409 image_data.data = vzalloc(PAGE_ALIGN(image_data.size)); in alloc_image_buf()
410 if (!image_data.data) { in alloc_image_buf()
416 addr = image_data.data; in alloc_image_buf()
417 size = PAGE_ALIGN(image_data.size); in alloc_image_buf()
424 image_data.status = IMAGE_LOADING; in alloc_image_buf()
445 if (image_data.data) in image_data_write()
458 if (image_data.status != IMAGE_LOADING) { in image_data_write()
463 if ((pos + count) > image_data.size) { in image_data_write()
468 memcpy(image_data.data + pos, (void *)buffer, count); in image_data_write()
472 if ((pos + count) == image_data.size) { in image_data_write()
474 image_data.status = IMAGE_READY; in image_data_write()
557 image_data.status = IMAGE_INVALID; in opal_flash_update_init()