Lines Matching refs:ab_ops
83 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
210 AvbOps* ops = ab_ops->ops; in avb_ab_flow()
219 io_ret = load_metadata(ab_ops, &ab_data, &ab_data_orig); in avb_ab_flow()
379 io_ret = save_metadata_if_changed(ab_ops, &ab_data, &ab_data_orig); in avb_ab_flow()
409 AvbIOResult avb_ab_mark_slot_active(AvbABOps* ab_ops, in avb_ab_mark_slot_active() argument
417 ret = load_metadata(ab_ops, &ab_data, &ab_data_orig); in avb_ab_mark_slot_active()
437 ret = save_metadata_if_changed(ab_ops, &ab_data, &ab_data_orig); in avb_ab_mark_slot_active()
442 AvbIOResult avb_ab_mark_slot_unbootable(AvbABOps* ab_ops, in avb_ab_mark_slot_unbootable() argument
449 ret = load_metadata(ab_ops, &ab_data, &ab_data_orig); in avb_ab_mark_slot_unbootable()
460 ret = save_metadata_if_changed(ab_ops, &ab_data, &ab_data_orig); in avb_ab_mark_slot_unbootable()
465 AvbIOResult avb_ab_mark_slot_successful(AvbABOps* ab_ops, in avb_ab_mark_slot_successful() argument
472 ret = load_metadata(ab_ops, &ab_data, &ab_data_orig); in avb_ab_mark_slot_successful()
490 ret = save_metadata_if_changed(ab_ops, &ab_data, &ab_data_orig); in avb_ab_mark_slot_successful()