Lines Matching refs:result

112 	int result;  in stm32image_dev_init()  local
120 result = plat_get_image_source(STM32_IMAGE_ID, &backend_dev_handle, in stm32image_dev_init()
122 if (result != 0) { in stm32image_dev_init()
123 ERROR("STM32 image error (%i)\n", result); in stm32image_dev_init()
127 return result; in stm32image_dev_init()
167 int result; in stm32image_partition_size() local
177 result = io_open(backend_dev_handle, backend_image_spec, in stm32image_partition_size()
180 if (result < 0) { in stm32image_partition_size()
181 ERROR("%s: io_open (%i)\n", __func__, result); in stm32image_partition_size()
182 return result; in stm32image_partition_size()
189 result = io_seek(backend_handle, IO_SEEK_SET, *stm32_img); in stm32image_partition_size()
190 if (result != 0) { in stm32image_partition_size()
191 ERROR("%s: io_seek (%i)\n", __func__, result); in stm32image_partition_size()
195 result = io_read(backend_handle, (uintptr_t)header, in stm32image_partition_size()
197 if (result != 0) { in stm32image_partition_size()
199 ERROR("%s: io_read (%i)\n", __func__, result); in stm32image_partition_size()
211 result = -ENOMEM; in stm32image_partition_size()
221 result = -ENOMEM; in stm32image_partition_size()
230 if (result != 0) { in stm32image_partition_size()
231 return result; in stm32image_partition_size()
249 int result = -EINVAL; in stm32image_partition_read() local
270 result = -ENOMEM; in stm32image_partition_read()
277 result = -ENOMEM; in stm32image_partition_read()
283 result = stm32image_partition_size(entity, &length); in stm32image_partition_read()
284 if (result != 0) { in stm32image_partition_read()
305 result = io_open(backend_dev_handle, backend_image_spec, in stm32image_partition_read()
308 if (result != 0) { in stm32image_partition_read()
309 ERROR("%s: io_open (%i)\n", __func__, result); in stm32image_partition_read()
313 result = io_seek(backend_handle, IO_SEEK_SET, in stm32image_partition_read()
316 if (result != 0) { in stm32image_partition_read()
317 ERROR("%s: io_seek (%i)\n", __func__, result); in stm32image_partition_read()
323 result = io_read(backend_handle, (uintptr_t)local_buffer, in stm32image_partition_read()
329 if (result != 0) { in stm32image_partition_read()
330 ERROR("%s: io_read (%i)\n", __func__, result); in stm32image_partition_read()
336 result = stm32mp_check_header(header, buffer); in stm32image_partition_read()
337 if (result != 0) { in stm32image_partition_read()
343 result = stm32mp_auth_image(header, buffer); in stm32image_partition_read()
344 if (result != 0) { in stm32image_partition_read()
345 ERROR("Authentication Failed (%i)\n", result); in stm32image_partition_read()
346 return result; in stm32image_partition_read()
355 return result; in stm32image_partition_read()
369 int result; in register_io_dev_stm32image() local
373 result = io_register_device(&stm32image_dev_info); in register_io_dev_stm32image()
374 if (result == 0) { in register_io_dev_stm32image()
378 return result; in register_io_dev_stm32image()