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()
493 AvbIOResult io_ret; in load_requested_partitions() local
508 io_ret = ops->get_size_of_partition(ops, part_name, &image_size); in load_requested_partitions()
509 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in load_requested_partitions()
512 } else if (io_ret != AVB_IO_RESULT_OK) { in load_requested_partitions()
574 AvbIOResult io_ret; in load_and_verify_vbmeta() local
645 io_ret = ops->read_from_partition(ops, in load_and_verify_vbmeta()
651 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in load_and_verify_vbmeta()
654 } else if (io_ret != AVB_IO_RESULT_OK) { in load_and_verify_vbmeta()
694 io_ret = ops->read_from_partition(ops, in load_and_verify_vbmeta()
700 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in load_and_verify_vbmeta()
703 } else if (io_ret != AVB_IO_RESULT_OK) { in load_and_verify_vbmeta()
707 if (is_main_vbmeta && io_ret == AVB_IO_RESULT_ERROR_NO_SUCH_PARTITION && in load_and_verify_vbmeta()
827 io_ret = ops->validate_public_key_for_partition( in load_and_verify_vbmeta()
838 io_ret = ops->validate_vbmeta_public_key(ops, in load_and_verify_vbmeta()
846 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in load_and_verify_vbmeta()
849 } else if (io_ret != AVB_IO_RESULT_OK) { in load_and_verify_vbmeta()
869 io_ret = ops->read_rollback_index( in load_and_verify_vbmeta()
871 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in load_and_verify_vbmeta()
874 } else if (io_ret != AVB_IO_RESULT_OK) { in load_and_verify_vbmeta()
1247 AvbIOResult io_ret = AVB_IO_RESULT_OK; in avb_manage_hashtree_error_mode() local
1264 io_ret = ops->write_persistent_value(ops, in avb_manage_hashtree_error_mode()
1268 if (io_ret != AVB_IO_RESULT_OK) { in avb_manage_hashtree_error_mode()
1273 io_ret = AVB_IO_RESULT_OK; in avb_manage_hashtree_error_mode()
1278 io_ret = ops->read_persistent_value(ops, in avb_manage_hashtree_error_mode()
1283 if (io_ret == AVB_IO_RESULT_ERROR_NO_SUCH_VALUE || in avb_manage_hashtree_error_mode()
1284 (io_ret == AVB_IO_RESULT_OK && num_bytes_read == 0)) { in avb_manage_hashtree_error_mode()
1288 io_ret = AVB_IO_RESULT_OK; in avb_manage_hashtree_error_mode()
1290 } else if (io_ret != AVB_IO_RESULT_OK) { in avb_manage_hashtree_error_mode()
1298 io_ret = AVB_IO_RESULT_ERROR_IO; in avb_manage_hashtree_error_mode()
1313 io_ret = AVB_IO_RESULT_OK; in avb_manage_hashtree_error_mode()
1318 io_ret = in avb_manage_hashtree_error_mode()
1323 if (io_ret != AVB_IO_RESULT_OK) { in avb_manage_hashtree_error_mode()
1328 io_ret = AVB_IO_RESULT_OK; in avb_manage_hashtree_error_mode()
1333 return io_ret; in avb_manage_hashtree_error_mode()
1340 AvbIOResult io_ret; in has_system_partition() local
1352 io_ret = ops->get_unique_guid_for_partition( in has_system_partition()
1354 if (io_ret == AVB_IO_RESULT_ERROR_NO_SUCH_PARTITION) { in has_system_partition()
1357 } else if (io_ret != AVB_IO_RESULT_OK) { in has_system_partition()
1560 AvbIOResult io_ret; in avb_slot_verify() local
1561 io_ret = avb_manage_hashtree_error_mode( in avb_slot_verify()
1563 if (io_ret != AVB_IO_RESULT_OK) { in avb_slot_verify()
1565 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in avb_slot_verify()