Lines Matching refs:io_ret
83 AvbIOResult io_ret; in load_full_partition() local
98 io_ret = ops->get_preloaded_partition( in load_full_partition()
100 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in load_full_partition()
102 } else if (io_ret != AVB_IO_RESULT_OK) { in load_full_partition()
123 io_ret = ops->read_from_partition(ops, in load_full_partition()
129 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in load_full_partition()
131 } else if (io_ret != AVB_IO_RESULT_OK) { in load_full_partition()
166 AvbIOResult io_ret = AVB_IO_RESULT_OK; in read_persistent_digest() local
179 io_ret = ops->read_persistent_value(ops, in read_persistent_digest()
189 if (io_ret == AVB_IO_RESULT_ERROR_NO_SUCH_VALUE && initial_digest) { in read_persistent_digest()
202 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in read_persistent_digest()
204 } else if (io_ret == AVB_IO_RESULT_ERROR_NO_SUCH_VALUE) { in read_persistent_digest()
209 } else if (io_ret == AVB_IO_RESULT_ERROR_INVALID_VALUE_SIZE || in read_persistent_digest()
210 io_ret == AVB_IO_RESULT_ERROR_INSUFFICIENT_SPACE) { in read_persistent_digest()
214 } else if (io_ret != AVB_IO_RESULT_OK) { in read_persistent_digest()
233 AvbIOResult io_ret = AVB_IO_RESULT_OK; in initialize_persistent_digest() local
236 io_ret = ops->read_is_device_unlocked(ops, &is_device_unlocked); in initialize_persistent_digest()
237 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in initialize_persistent_digest()
239 } else if (io_ret != AVB_IO_RESULT_OK) { in initialize_persistent_digest()
256 io_ret = ops->write_persistent_value( in initialize_persistent_digest()
258 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in initialize_persistent_digest()
260 } else if (io_ret != AVB_IO_RESULT_OK) { in initialize_persistent_digest()
291 AvbIOResult io_ret; in load_and_verify_hash_partition() local
371 io_ret = ops->get_size_of_partition(ops, part_name, &image_size); in load_and_verify_hash_partition()
372 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in load_and_verify_hash_partition()
375 } else if (io_ret != AVB_IO_RESULT_OK) { in load_and_verify_hash_partition()
485 AvbIOResult io_ret; in load_requested_partitions() local
500 io_ret = ops->get_size_of_partition(ops, part_name, &image_size); in load_requested_partitions()
501 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in load_requested_partitions()
504 } else if (io_ret != AVB_IO_RESULT_OK) { in load_requested_partitions()
565 AvbIOResult io_ret; in load_and_verify_vbmeta() local
624 io_ret = ops->read_from_partition(ops, in load_and_verify_vbmeta()
630 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in load_and_verify_vbmeta()
633 } else if (io_ret != AVB_IO_RESULT_OK) { in load_and_verify_vbmeta()
673 io_ret = ops->read_from_partition(ops, in load_and_verify_vbmeta()
679 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in load_and_verify_vbmeta()
682 } else if (io_ret != AVB_IO_RESULT_OK) { in load_and_verify_vbmeta()
686 if (is_main_vbmeta && io_ret == AVB_IO_RESULT_ERROR_NO_SUCH_PARTITION && in load_and_verify_vbmeta()
799 io_ret = ops->validate_vbmeta_public_key( in load_and_verify_vbmeta()
801 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in load_and_verify_vbmeta()
804 } else if (io_ret != AVB_IO_RESULT_OK) { in load_and_verify_vbmeta()
824 io_ret = ops->read_rollback_index( in load_and_verify_vbmeta()
826 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in load_and_verify_vbmeta()
829 } else if (io_ret != AVB_IO_RESULT_OK) { in load_and_verify_vbmeta()
1198 AvbIOResult io_ret = AVB_IO_RESULT_OK; in avb_manage_hashtree_error_mode() local
1215 io_ret = ops->write_persistent_value(ops, in avb_manage_hashtree_error_mode()
1219 if (io_ret != AVB_IO_RESULT_OK) { in avb_manage_hashtree_error_mode()
1224 io_ret = AVB_IO_RESULT_OK; in avb_manage_hashtree_error_mode()
1229 io_ret = ops->read_persistent_value(ops, in avb_manage_hashtree_error_mode()
1234 if (io_ret == AVB_IO_RESULT_ERROR_NO_SUCH_VALUE || in avb_manage_hashtree_error_mode()
1235 (io_ret == AVB_IO_RESULT_OK && num_bytes_read == 0)) { in avb_manage_hashtree_error_mode()
1239 io_ret = AVB_IO_RESULT_OK; in avb_manage_hashtree_error_mode()
1241 } else if (io_ret != AVB_IO_RESULT_OK) { in avb_manage_hashtree_error_mode()
1249 io_ret = AVB_IO_RESULT_ERROR_IO; in avb_manage_hashtree_error_mode()
1264 io_ret = AVB_IO_RESULT_OK; in avb_manage_hashtree_error_mode()
1269 io_ret = in avb_manage_hashtree_error_mode()
1274 if (io_ret != AVB_IO_RESULT_OK) { in avb_manage_hashtree_error_mode()
1279 io_ret = AVB_IO_RESULT_OK; in avb_manage_hashtree_error_mode()
1284 return io_ret; in avb_manage_hashtree_error_mode()
1291 AvbIOResult io_ret; in has_system_partition() local
1303 io_ret = ops->get_unique_guid_for_partition( in has_system_partition()
1305 if (io_ret == AVB_IO_RESULT_ERROR_NO_SUCH_PARTITION) { in has_system_partition()
1308 } else if (io_ret != AVB_IO_RESULT_OK) { in has_system_partition()
1458 AvbIOResult io_ret; in avb_slot_verify() local
1459 io_ret = avb_manage_hashtree_error_mode( in avb_slot_verify()
1461 if (io_ret != AVB_IO_RESULT_OK) { in avb_slot_verify()
1463 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in avb_slot_verify()