• Home
  • Raw
  • Download

Lines Matching refs:io_result

164 	int io_result;  in image_size()  local
167 io_result = plat_get_image_source(image_id, &dev_handle, &image_spec); in image_size()
168 if (io_result != 0) { in image_size()
170 image_id, io_result); in image_size()
175 io_result = io_open(dev_handle, image_spec, &image_handle); in image_size()
176 if (io_result != 0) { in image_size()
178 image_id, io_result); in image_size()
183 io_result = io_size(image_handle, &image_size); in image_size()
184 if ((io_result != 0) || (image_size == 0)) { in image_size()
186 image_id, io_result); in image_size()
188 io_result = io_close(image_handle); in image_size()
194 io_result = io_dev_close(dev_handle); in image_size()
218 int io_result; in load_image() local
226 io_result = plat_get_image_source(image_id, &dev_handle, &image_spec); in load_image()
227 if (io_result != 0) { in load_image()
229 image_id, io_result); in load_image()
230 return io_result; in load_image()
234 io_result = io_open(dev_handle, image_spec, &image_handle); in load_image()
235 if (io_result != 0) { in load_image()
237 image_id, io_result); in load_image()
238 return io_result; in load_image()
245 io_result = io_size(image_handle, &image_size); in load_image()
246 if ((io_result != 0) || (image_size == 0)) { in load_image()
248 image_id, io_result); in load_image()
255 io_result = -EFBIG; in load_image()
263 io_result = io_read(image_handle, image_base, image_size, &bytes_read); in load_image()
264 if ((io_result != 0) || (bytes_read < image_size)) { in load_image()
265 WARN("Failed to load image id=%u (%i)\n", image_id, io_result); in load_image()
291 return io_result; in load_image()
396 int io_result; in load_image() local
403 io_result = plat_get_image_source(image_id, &dev_handle, &image_spec); in load_image()
404 if (io_result != 0) { in load_image()
406 image_id, io_result); in load_image()
407 return io_result; in load_image()
411 io_result = io_open(dev_handle, image_spec, &image_handle); in load_image()
412 if (io_result != 0) { in load_image()
414 image_id, io_result); in load_image()
415 return io_result; in load_image()
422 io_result = io_size(image_handle, &image_size); in load_image()
423 if ((io_result != 0) || (image_size == 0)) { in load_image()
425 image_id, io_result); in load_image()
435 io_result = -ENOMEM; in load_image()
441 io_result = io_read(image_handle, image_base, image_size, &bytes_read); in load_image()
442 if ((io_result != 0) || (bytes_read < image_size)) { in load_image()
443 WARN("Failed to load image id=%u (%i)\n", image_id, io_result); in load_image()
488 return io_result; in load_image()