Lines Matching refs:cb_wrapper
753 void cmd_with_cb_data_init(cmd_with_cb_data* cb_wrapper) { in cmd_with_cb_data_init() argument
754 new (&cb_wrapper->cb) hci_cmd_cb; in cmd_with_cb_data_init()
755 new (&cb_wrapper->posted_from) Location; in cmd_with_cb_data_init()
758 void cmd_with_cb_data_cleanup(cmd_with_cb_data* cb_wrapper) { in cmd_with_cb_data_cleanup() argument
759 cb_wrapper->cb.~hci_cmd_cb(); in cmd_with_cb_data_cleanup()
760 cb_wrapper->posted_from.~Location(); in cmd_with_cb_data_cleanup()
834 cmd_with_cb_data* cb_wrapper = (cmd_with_cb_data*)context; in btu_hcif_command_complete_evt_with_cb_on_task() local
836 cb_wrapper->posted_from.ToString().c_str()); in btu_hcif_command_complete_evt_with_cb_on_task()
840 std::move(cb_wrapper->cb).Run(stream, param_len); in btu_hcif_command_complete_evt_with_cb_on_task()
841 cmd_with_cb_data_cleanup(cb_wrapper); in btu_hcif_command_complete_evt_with_cb_on_task()
842 osi_free(cb_wrapper); in btu_hcif_command_complete_evt_with_cb_on_task()
868 cmd_with_cb_data* cb_wrapper = (cmd_with_cb_data*)context; in btu_hcif_command_status_evt_with_cb_on_task() local
870 cb_wrapper->posted_from.ToString().c_str()); in btu_hcif_command_status_evt_with_cb_on_task()
871 std::move(cb_wrapper->cb).Run(&status, sizeof(uint16_t)); in btu_hcif_command_status_evt_with_cb_on_task()
872 cmd_with_cb_data_cleanup(cb_wrapper); in btu_hcif_command_status_evt_with_cb_on_task()
873 osi_free(cb_wrapper); in btu_hcif_command_status_evt_with_cb_on_task()
912 cmd_with_cb_data* cb_wrapper = in btu_hcif_send_cmd_with_cb() local
915 cmd_with_cb_data_init(cb_wrapper); in btu_hcif_send_cmd_with_cb()
916 cb_wrapper->cb = std::move(cb); in btu_hcif_send_cmd_with_cb()
917 cb_wrapper->posted_from = posted_from; in btu_hcif_send_cmd_with_cb()
921 btu_hcif_command_status_evt_with_cb, (void*)cb_wrapper); in btu_hcif_send_cmd_with_cb()