Lines Matching refs:wait_entry
359 waiting_command_t *wait_entry = osi_calloc(sizeof(waiting_command_t)); in transmit_command() local
362 STREAM_TO_UINT16(wait_entry->opcode, stream); in transmit_command()
363 wait_entry->complete_callback = complete_callback; in transmit_command()
364 wait_entry->status_callback = status_callback; in transmit_command()
365 wait_entry->command = command; in transmit_command()
366 wait_entry->context = context; in transmit_command()
372 fixed_queue_enqueue(command_queue, wait_entry); in transmit_command()
376 waiting_command_t *wait_entry = osi_calloc(sizeof(waiting_command_t)); in transmit_command_futured() local
380 STREAM_TO_UINT16(wait_entry->opcode, stream); in transmit_command_futured()
381 wait_entry->complete_future = future; in transmit_command_futured()
382 wait_entry->command = command; in transmit_command_futured()
388 fixed_queue_enqueue(command_queue, wait_entry); in transmit_command_futured()
476 waiting_command_t *wait_entry = fixed_queue_dequeue(queue); in event_command_ready() local
481 list_append(commands_pending_response, wait_entry); in event_command_ready()
486 packet_fragmenter->fragment_and_dispatch(wait_entry->command); in event_command_ready()
531 waiting_command_t *wait_entry = list_front(commands_pending_response); in command_timed_out() local
536 … hci layer timeout waiting for response to a command. opcode: 0x%x", __func__, wait_entry->opcode); in command_timed_out()
654 waiting_command_t *wait_entry = NULL; in filter_incoming_event() local
666 wait_entry = get_waiting_command(opcode); in filter_incoming_event()
667 if (!wait_entry) { in filter_incoming_event()
673 } else if (wait_entry->complete_callback) { in filter_incoming_event()
674 wait_entry->complete_callback(packet, wait_entry->context); in filter_incoming_event()
675 } else if (wait_entry->complete_future) { in filter_incoming_event()
676 future_ready(wait_entry->complete_future, packet); in filter_incoming_event()
688 wait_entry = get_waiting_command(opcode); in filter_incoming_event()
689 if (!wait_entry) in filter_incoming_event()
691 else if (wait_entry->status_callback) in filter_incoming_event()
692 wait_entry->status_callback(status, wait_entry->command, wait_entry->context); in filter_incoming_event()
702 if (wait_entry) { in filter_incoming_event()
704 …if (event_code == HCI_COMMAND_STATUS_EVT || (!wait_entry->complete_callback && !wait_entry->comple… in filter_incoming_event()
708 if (event_code == HCI_COMMAND_COMPLETE_EVT || !wait_entry->status_callback) in filter_incoming_event()
709 buffer_allocator->free(wait_entry->command); in filter_incoming_event()
711 osi_free(wait_entry); in filter_incoming_event()
755 waiting_command_t *wait_entry = list_node(node); in get_waiting_command() local
757 if (!wait_entry || wait_entry->opcode != opcode) in get_waiting_command()
760 list_remove(commands_pending_response, wait_entry); in get_waiting_command()
763 return wait_entry; in get_waiting_command()