Lines Matching refs:io_ret

86   AvbIOResult io_ret;  in load_full_partition()  local
101 io_ret = ops->get_preloaded_partition( in load_full_partition()
104 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in load_full_partition()
106 } else if (io_ret != AVB_IO_RESULT_OK) { in load_full_partition()
127 io_ret = ops->read_from_partition(ops, in load_full_partition()
133 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in load_full_partition()
135 } else if (io_ret != AVB_IO_RESULT_OK) { in load_full_partition()
170 AvbIOResult io_ret = AVB_IO_RESULT_OK; in read_persistent_digest() local
183 io_ret = ops->read_persistent_value(ops, in read_persistent_digest()
193 if (io_ret == AVB_IO_RESULT_ERROR_NO_SUCH_VALUE && initial_digest) { in read_persistent_digest()
206 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in read_persistent_digest()
208 } else if (io_ret == AVB_IO_RESULT_ERROR_NO_SUCH_VALUE) { in read_persistent_digest()
213 } else if (io_ret == AVB_IO_RESULT_ERROR_INVALID_VALUE_SIZE || in read_persistent_digest()
214 io_ret == AVB_IO_RESULT_ERROR_INSUFFICIENT_SPACE) { in read_persistent_digest()
218 } else if (io_ret != AVB_IO_RESULT_OK) { in read_persistent_digest()
237 AvbIOResult io_ret = AVB_IO_RESULT_OK; in initialize_persistent_digest() local
240 io_ret = ops->read_is_device_unlocked(ops, &is_device_unlocked); in initialize_persistent_digest()
241 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in initialize_persistent_digest()
243 } else if (io_ret != AVB_IO_RESULT_OK) { in initialize_persistent_digest()
260 io_ret = ops->write_persistent_value( in initialize_persistent_digest()
262 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in initialize_persistent_digest()
264 } else if (io_ret != AVB_IO_RESULT_OK) { in initialize_persistent_digest()
295 AvbIOResult io_ret; in load_and_verify_hash_partition() local
375 io_ret = ops->get_size_of_partition(ops, part_name, &image_size); in load_and_verify_hash_partition()
376 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in load_and_verify_hash_partition()
379 } else if (io_ret != AVB_IO_RESULT_OK) { in load_and_verify_hash_partition()
503 AvbIOResult io_ret; in load_requested_partitions() local
518 io_ret = ops->get_size_of_partition(ops, part_name, &image_size); in load_requested_partitions()
519 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in load_requested_partitions()
522 } else if (io_ret != AVB_IO_RESULT_OK) { in load_requested_partitions()
584 AvbIOResult io_ret; in load_and_verify_vbmeta() local
655 io_ret = ops->read_from_partition(ops, in load_and_verify_vbmeta()
661 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in load_and_verify_vbmeta()
664 } else if (io_ret != AVB_IO_RESULT_OK) { in load_and_verify_vbmeta()
704 io_ret = ops->read_from_partition(ops, in load_and_verify_vbmeta()
710 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in load_and_verify_vbmeta()
713 } else if (io_ret != AVB_IO_RESULT_OK) { in load_and_verify_vbmeta()
717 if (is_main_vbmeta && io_ret == AVB_IO_RESULT_ERROR_NO_SUCH_PARTITION && in load_and_verify_vbmeta()
834 io_ret = ops->validate_public_key_for_partition( in load_and_verify_vbmeta()
845 io_ret = ops->validate_vbmeta_public_key(ops, in load_and_verify_vbmeta()
853 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in load_and_verify_vbmeta()
856 } else if (io_ret != AVB_IO_RESULT_OK) { in load_and_verify_vbmeta()
876 io_ret = ops->read_rollback_index( in load_and_verify_vbmeta()
878 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in load_and_verify_vbmeta()
881 } else if (io_ret != AVB_IO_RESULT_OK) { in load_and_verify_vbmeta()
1254 AvbIOResult io_ret = AVB_IO_RESULT_OK; in avb_manage_hashtree_error_mode() local
1271 io_ret = ops->write_persistent_value(ops, in avb_manage_hashtree_error_mode()
1275 if (io_ret != AVB_IO_RESULT_OK) { in avb_manage_hashtree_error_mode()
1280 io_ret = AVB_IO_RESULT_OK; in avb_manage_hashtree_error_mode()
1285 io_ret = ops->read_persistent_value(ops, in avb_manage_hashtree_error_mode()
1290 if (io_ret == AVB_IO_RESULT_ERROR_NO_SUCH_VALUE || in avb_manage_hashtree_error_mode()
1291 (io_ret == AVB_IO_RESULT_OK && num_bytes_read == 0)) { in avb_manage_hashtree_error_mode()
1295 io_ret = AVB_IO_RESULT_OK; in avb_manage_hashtree_error_mode()
1297 } else if (io_ret != AVB_IO_RESULT_OK) { in avb_manage_hashtree_error_mode()
1305 io_ret = AVB_IO_RESULT_ERROR_IO; in avb_manage_hashtree_error_mode()
1320 io_ret = AVB_IO_RESULT_OK; in avb_manage_hashtree_error_mode()
1325 io_ret = in avb_manage_hashtree_error_mode()
1330 if (io_ret != AVB_IO_RESULT_OK) { in avb_manage_hashtree_error_mode()
1335 io_ret = AVB_IO_RESULT_OK; in avb_manage_hashtree_error_mode()
1340 return io_ret; in avb_manage_hashtree_error_mode()
1347 AvbIOResult io_ret; in has_system_partition() local
1359 io_ret = ops->get_unique_guid_for_partition( in has_system_partition()
1361 if (io_ret == AVB_IO_RESULT_ERROR_NO_SUCH_PARTITION) { in has_system_partition()
1364 } else if (io_ret != AVB_IO_RESULT_OK) { in has_system_partition()
1567 AvbIOResult io_ret; in avb_slot_verify() local
1568 io_ret = avb_manage_hashtree_error_mode( in avb_slot_verify()
1570 if (io_ret != AVB_IO_RESULT_OK) { in avb_slot_verify()
1572 if (io_ret == AVB_IO_RESULT_ERROR_OOM) { in avb_slot_verify()