Lines Matching defs:impl
151 struct HciLayer::impl { struct in bluetooth::hci::HciLayer
152 impl(hal::HciHal* hal, HciLayer& module) : hal_(hal), module_(module) { in impl() function
156 ~impl() { in ~impl()
169 void drop(EventView event) { in drop()
173 void on_outbound_acl_ready() { in on_outbound_acl_ready()
181 void on_outbound_sco_ready() { in on_outbound_sco_ready()
189 void on_outbound_iso_ready() { in on_outbound_iso_ready()
198 void enqueue_command(unique_ptr<CommandBuilder> command, in enqueue_command()
204 void on_command_status(EventView event) { in on_command_status()
216 void on_command_complete(EventView event) { in on_command_complete()
221 void handle_command_response(EventView event, std::string logging_id) { in handle_command_response()
302 void on_hci_timeout(OpCode op_code) { in on_hci_timeout()
348 void send_next_command() { in send_next_command()
382 void register_event(EventCode event, ContextualCallback<void(EventView)> handler) { in register_event()
395 void unregister_event(EventCode event) { event_handlers_.erase(event); } in unregister_event()
397 void register_le_event(SubeventCode event, ContextualCallback<void(LeMetaEventView)> handler) { in register_le_event()
403 void unregister_le_event(SubeventCode event) { in unregister_le_event()
407 void register_vs_event(VseSubeventCode event, in register_vs_event()
414 void unregister_vs_event(VseSubeventCode event) { in unregister_vs_event()
418 void register_vs_event_default(ContextualCallback<void(VendorSpecificEventView)> handler) { in register_vs_event_default()
422 void unregister_vs_event_default() { vs_event_default_handler_.reset(); } in unregister_vs_event_default()
424 static void abort_after_root_inflammation(uint8_t vse_error) { in abort_after_root_inflammation()
428 void handle_root_inflammation(uint8_t vse_error_reason) { in handle_root_inflammation()
447 void on_hci_event(EventView event) { in on_hci_event()
516 void on_hardware_error(EventView event) { in on_hardware_error()
531 void on_le_meta_event(EventView event) { in on_le_meta_event()
542 void on_vs_event(EventView event) { in on_vs_event()
555 hal::HciHal* hal_;
556 HciLayer& module_;
559 std::list<CommandQueueEntry> command_queue_;
561 std::map<EventCode, ContextualCallback<void(EventView)>> event_handlers_;
562 std::map<SubeventCode, ContextualCallback<void(LeMetaEventView)>> le_event_handlers_;
563 std::map<VseSubeventCode, ContextualCallback<void(VendorSpecificEventView)>> vs_event_handlers_;
564 std::optional<ContextualCallback<void(VendorSpecificEventView)>> vs_event_default_handler_;
566 OpCode waiting_command_{OpCode::NONE};
567 uint8_t command_credits_{1}; // Send reset first
568 Alarm* hci_timeout_alarm_{nullptr};
569 Alarm* hci_abort_alarm_{nullptr};
572 BidiQueue<AclView, AclBuilder> acl_queue_{3 /* TODO: Set queue depth */};
573 os::EnqueueBuffer<AclView> incoming_acl_buffer_{acl_queue_.GetDownEnd()};
576 BidiQueue<ScoView, ScoBuilder> sco_queue_{3 /* TODO: Set queue depth */};
577 os::EnqueueBuffer<ScoView> incoming_sco_buffer_{sco_queue_.GetDownEnd()};
580 BidiQueue<IsoView, IsoBuilder> iso_queue_{3 /* TODO: Set queue depth */};
581 os::EnqueueBuffer<IsoView> incoming_iso_buffer_{iso_queue_.GetDownEnd()};