Lines Matching defs:result
126 int result = -ENOENT;
132 result = 0;
137 return result;
144 int result = -ENOMEM;
151 result = find_first_fip_state(0, &index);
152 assert(result == 0);
161 return result;
167 int result;
174 result = find_first_fip_state(state->dev_spec, &index);
175 if (result == 0) {
181 return result;
192 int result;
201 result = allocate_dev_info(&info);
202 if (result != 0)
218 int result;
230 result = plat_get_image_source(image_id, &backend_dev_handle,
232 if (result != 0) {
234 image_id, result);
235 result = -ENOENT;
240 result = io_open(backend_dev_handle, backend_image_spec,
242 if (result != 0) {
243 WARN("Failed to access image id=%u (%i)\n", image_id, result);
244 result = -ENOENT;
248 result = io_read(backend_handle, (uintptr_t)&header, sizeof(header),
250 if (result == 0) {
253 result = -ENOENT;
267 return result;
287 int result;
309 result = io_open(backend_dev_handle, backend_image_spec,
311 if (result != 0) {
312 WARN("Failed to open Firmware Image Package (%i)\n", result);
313 result = -ENOENT;
318 result = io_seek(backend_handle, IO_SEEK_SET,
320 if (result != 0) {
322 result = -ENOENT;
328 result = io_read(backend_handle,
332 if (result == 0) {
338 WARN("Failed to read FIP (%i)\n", result);
355 result = -ENOENT;
362 return result;
382 int result;
393 result = io_open(backend_dev_handle, backend_image_spec,
395 if (result != 0) {
396 WARN("Failed to open FIP (%i)\n", result);
397 result = -ENOENT;
405 result = io_seek(backend_handle, IO_SEEK_SET,
407 if (result != 0) {
409 result = -ENOENT;
413 result = io_read(backend_handle, buffer, length, &bytes_read);
414 if (result != 0) {
416 WARN("Failed to read payload (%i)\n", result);
417 result = -ENOENT;
430 return result;
455 int result;
462 result = io_register_device(&dev_info_pool[0]);
463 if (result == 0)
466 return result;