Home
last modified time | relevance | path

Searched refs:ab_ops (Results 1 – 12 of 12) sorted by relevance

/external/avb/libavb_ab/
Davb_ab_flow.c83 AvbIOResult avb_ab_data_read(AvbABOps* ab_ops, AvbABData* data) { in avb_ab_data_read() argument
84 AvbOps* ops = ab_ops->ops; in avb_ab_data_read()
108 return avb_ab_data_write(ab_ops, data); in avb_ab_data_read()
114 AvbIOResult avb_ab_data_write(AvbABOps* ab_ops, const AvbABData* data) { in avb_ab_data_write() argument
115 AvbOps* ops = ab_ops->ops; in avb_ab_data_write()
171 static AvbIOResult load_metadata(AvbABOps* ab_ops, in load_metadata() argument
176 io_ret = ab_ops->read_ab_metadata(ab_ops, ab_data); in load_metadata()
195 static AvbIOResult save_metadata_if_changed(AvbABOps* ab_ops, in save_metadata_if_changed() argument
200 return ab_ops->write_ab_metadata(ab_ops, ab_data); in save_metadata_if_changed()
205 AvbABFlowResult avb_ab_flow(AvbABOps* ab_ops, in avb_ab_flow() argument
[all …]
Davb_ab_flow.h127 AvbIOResult avb_ab_data_read(AvbABOps* ab_ops, AvbABData* data);
133 AvbIOResult avb_ab_data_write(AvbABOps* ab_ops, const AvbABData* data);
220 AvbABFlowResult avb_ab_flow(AvbABOps* ab_ops,
233 AvbIOResult avb_ab_mark_slot_active(AvbABOps* ab_ops, unsigned int slot_number);
241 AvbIOResult avb_ab_mark_slot_unbootable(AvbABOps* ab_ops,
254 AvbIOResult avb_ab_mark_slot_successful(AvbABOps* ab_ops,
Davb_ab_ops.h62 AvbIOResult (*read_ab_metadata)(AvbABOps* ab_ops, struct AvbABData* data);
71 AvbIOResult (*write_ab_metadata)(AvbABOps* ab_ops,
/external/avb/boot_control/
Dboot_control_avb.c68 if (avb_ab_mark_slot_successful(ops->ab_ops, module_getCurrentSlot(module)) == in module_markBootSuccessful()
80 } else if (avb_ab_mark_slot_active(ops->ab_ops, slot) == AVB_IO_RESULT_OK) { in module_setActiveBootSlot()
91 } else if (avb_ab_mark_slot_unbootable(ops->ab_ops, slot) == in module_setSlotAsUnbootable()
108 } else if (avb_ab_data_read(ops->ab_ops, &ab_data) != AVB_IO_RESULT_OK) { in module_isSlotBootable()
128 } else if (avb_ab_data_read(ops->ab_ops, &ab_data) != AVB_IO_RESULT_OK) { in module_isSlotMarkedSuccessful()
/external/avb/libavb_user/
Davb_ops_user.cpp320 ops->ab_ops = static_cast<AvbABOps*>(calloc(1, sizeof(AvbABOps))); in avb_ops_user_new()
321 if (ops->ab_ops == NULL) { in avb_ops_user_new()
326 ops->ab_ops->ops = ops; in avb_ops_user_new()
336 ops->ab_ops->read_ab_metadata = avb_ab_data_read; in avb_ops_user_new()
337 ops->ab_ops->write_ab_metadata = avb_ab_data_write; in avb_ops_user_new()
344 free(ops->ab_ops); in avb_ops_user_free()
/external/avb/examples/uefi/
Duefi_avb_ops.c641 data->ops.ab_ops = &data->ab_ops; in uefi_avb_ops_new()
651 data->ab_ops.ops = &data->ops; in uefi_avb_ops_new()
652 data->ab_ops.read_ab_metadata = avb_ab_data_read; in uefi_avb_ops_new()
653 data->ab_ops.write_ab_metadata = avb_ab_data_write; in uefi_avb_ops_new()
Duefi_avb_ops.h34 AvbABOps ab_ops; member
Dmain.c69 ab_result = avb_ab_flow(ops->ab_ops, in efi_main()
/external/avb/libavb/
Davb_ops.h105 struct AvbABOps* ab_ops; member
/external/u-boot/lib/libavb/
Davb_ops.h85 struct AvbABOps* ab_ops; member
/external/avb/test/
Dfake_avb_ops.h120 static FakeAvbOps* GetInstanceFromAvbABOps(AvbABOps* ab_ops) { in GetInstanceFromAvbABOps() argument
121 return reinterpret_cast<FakeAvbOps*>(ab_ops->ops->user_data); in GetInstanceFromAvbABOps()
Dfake_avb_ops.cc531 avb_ops_.ab_ops = &avb_ab_ops_; in FakeAvbOps()