Lines Matching refs:cr
95 return [=](CommandResult cr){ in generate_callback() argument
96 *crp = cr; in generate_callback()
100 static int handle_return(const Return<void> &ret, CommandResult cr, const char* errStr) { in handle_return() argument
104 } else if (!cr.success) { in handle_return()
105 fprintf(stderr, errStr, cr.errMsg.c_str()); in handle_return()
113 CommandResult cr; in do_mark_boot_successful() local
114 Return<void> ret = module->markBootSuccessful(generate_callback(&cr)); in do_mark_boot_successful()
115 return handle_return(ret, cr, "Error marking as having booted successfully: %s\n"); in do_mark_boot_successful()
121 CommandResult cr; in do_set_active_boot_slot() local
122 Return<void> ret = module->setActiveBootSlot(slot_number, generate_callback(&cr)); in do_set_active_boot_slot()
123 return handle_return(ret, cr, "Error setting active boot slot: %s\n"); in do_set_active_boot_slot()
129 CommandResult cr; in do_set_slot_as_unbootable() local
130 Return<void> ret = module->setSlotAsUnbootable(slot_number, generate_callback(&cr)); in do_set_slot_as_unbootable()
131 return handle_return(ret, cr, "Error setting slot as unbootable: %s\n"); in do_set_slot_as_unbootable()