• Home
  • Raw
  • Download

Lines Matching refs:hci

58 bool is_valid_event_code(bluetooth::hci::EventCode event_code) {  in is_valid_event_code()
60 case bluetooth::hci::EventCode::INQUIRY_COMPLETE: in is_valid_event_code()
61 case bluetooth::hci::EventCode::INQUIRY_RESULT: in is_valid_event_code()
62 case bluetooth::hci::EventCode::CONNECTION_COMPLETE: in is_valid_event_code()
63 case bluetooth::hci::EventCode::CONNECTION_REQUEST: in is_valid_event_code()
64 case bluetooth::hci::EventCode::DISCONNECTION_COMPLETE: in is_valid_event_code()
65 case bluetooth::hci::EventCode::AUTHENTICATION_COMPLETE: in is_valid_event_code()
66 case bluetooth::hci::EventCode::REMOTE_NAME_REQUEST_COMPLETE: in is_valid_event_code()
67 case bluetooth::hci::EventCode::ENCRYPTION_CHANGE: in is_valid_event_code()
68 case bluetooth::hci::EventCode::CHANGE_CONNECTION_LINK_KEY_COMPLETE: in is_valid_event_code()
69 case bluetooth::hci::EventCode::CENTRAL_LINK_KEY_COMPLETE: in is_valid_event_code()
70 case bluetooth::hci::EventCode::READ_REMOTE_SUPPORTED_FEATURES_COMPLETE: in is_valid_event_code()
71 case bluetooth::hci::EventCode::READ_REMOTE_VERSION_INFORMATION_COMPLETE: in is_valid_event_code()
72 case bluetooth::hci::EventCode::QOS_SETUP_COMPLETE: in is_valid_event_code()
73 case bluetooth::hci::EventCode::COMMAND_COMPLETE: in is_valid_event_code()
74 case bluetooth::hci::EventCode::COMMAND_STATUS: in is_valid_event_code()
75 case bluetooth::hci::EventCode::HARDWARE_ERROR: in is_valid_event_code()
76 case bluetooth::hci::EventCode::FLUSH_OCCURRED: in is_valid_event_code()
77 case bluetooth::hci::EventCode::ROLE_CHANGE: in is_valid_event_code()
78 case bluetooth::hci::EventCode::NUMBER_OF_COMPLETED_PACKETS: in is_valid_event_code()
79 case bluetooth::hci::EventCode::MODE_CHANGE: in is_valid_event_code()
80 case bluetooth::hci::EventCode::RETURN_LINK_KEYS: in is_valid_event_code()
81 case bluetooth::hci::EventCode::PIN_CODE_REQUEST: in is_valid_event_code()
82 case bluetooth::hci::EventCode::LINK_KEY_REQUEST: in is_valid_event_code()
83 case bluetooth::hci::EventCode::LINK_KEY_NOTIFICATION: in is_valid_event_code()
84 case bluetooth::hci::EventCode::LOOPBACK_COMMAND: in is_valid_event_code()
85 case bluetooth::hci::EventCode::DATA_BUFFER_OVERFLOW: in is_valid_event_code()
86 case bluetooth::hci::EventCode::MAX_SLOTS_CHANGE: in is_valid_event_code()
87 case bluetooth::hci::EventCode::READ_CLOCK_OFFSET_COMPLETE: in is_valid_event_code()
88 case bluetooth::hci::EventCode::CONNECTION_PACKET_TYPE_CHANGED: in is_valid_event_code()
89 case bluetooth::hci::EventCode::QOS_VIOLATION: in is_valid_event_code()
90 case bluetooth::hci::EventCode::PAGE_SCAN_REPETITION_MODE_CHANGE: in is_valid_event_code()
91 case bluetooth::hci::EventCode::FLOW_SPECIFICATION_COMPLETE: in is_valid_event_code()
92 case bluetooth::hci::EventCode::INQUIRY_RESULT_WITH_RSSI: in is_valid_event_code()
93 case bluetooth::hci::EventCode::READ_REMOTE_EXTENDED_FEATURES_COMPLETE: in is_valid_event_code()
94 case bluetooth::hci::EventCode::SYNCHRONOUS_CONNECTION_COMPLETE: in is_valid_event_code()
95 case bluetooth::hci::EventCode::SYNCHRONOUS_CONNECTION_CHANGED: in is_valid_event_code()
96 case bluetooth::hci::EventCode::SNIFF_SUBRATING: in is_valid_event_code()
97 case bluetooth::hci::EventCode::EXTENDED_INQUIRY_RESULT: in is_valid_event_code()
98 case bluetooth::hci::EventCode::ENCRYPTION_KEY_REFRESH_COMPLETE: in is_valid_event_code()
99 case bluetooth::hci::EventCode::IO_CAPABILITY_REQUEST: in is_valid_event_code()
100 case bluetooth::hci::EventCode::IO_CAPABILITY_RESPONSE: in is_valid_event_code()
101 case bluetooth::hci::EventCode::USER_CONFIRMATION_REQUEST: in is_valid_event_code()
102 case bluetooth::hci::EventCode::USER_PASSKEY_REQUEST: in is_valid_event_code()
103 case bluetooth::hci::EventCode::REMOTE_OOB_DATA_REQUEST: in is_valid_event_code()
104 case bluetooth::hci::EventCode::SIMPLE_PAIRING_COMPLETE: in is_valid_event_code()
105 case bluetooth::hci::EventCode::LINK_SUPERVISION_TIMEOUT_CHANGED: in is_valid_event_code()
106 case bluetooth::hci::EventCode::ENHANCED_FLUSH_COMPLETE: in is_valid_event_code()
107 case bluetooth::hci::EventCode::USER_PASSKEY_NOTIFICATION: in is_valid_event_code()
108 case bluetooth::hci::EventCode::KEYPRESS_NOTIFICATION: in is_valid_event_code()
109 case bluetooth::hci::EventCode::REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATION: in is_valid_event_code()
110 case bluetooth::hci::EventCode::NUMBER_OF_COMPLETED_DATA_BLOCKS: in is_valid_event_code()
112 case bluetooth::hci::EventCode::VENDOR_SPECIFIC: in is_valid_event_code()
113 case bluetooth::hci::EventCode::LE_META_EVENT: // Private to hci in is_valid_event_code()
119 bool is_valid_subevent_code(bluetooth::hci::SubeventCode subevent_code) { in is_valid_subevent_code()
121 case bluetooth::hci::SubeventCode::CONNECTION_COMPLETE: in is_valid_subevent_code()
122 case bluetooth::hci::SubeventCode::CONNECTION_UPDATE_COMPLETE: in is_valid_subevent_code()
123 case bluetooth::hci::SubeventCode::DATA_LENGTH_CHANGE: in is_valid_subevent_code()
124 case bluetooth::hci::SubeventCode::ENHANCED_CONNECTION_COMPLETE: in is_valid_subevent_code()
125 case bluetooth::hci::SubeventCode::PHY_UPDATE_COMPLETE: in is_valid_subevent_code()
126 case bluetooth::hci::SubeventCode::READ_REMOTE_FEATURES_COMPLETE: in is_valid_subevent_code()
127 case bluetooth::hci::SubeventCode::REMOTE_CONNECTION_PARAMETER_REQUEST: in is_valid_subevent_code()
128 case bluetooth::hci::SubeventCode::READ_LOCAL_P256_PUBLIC_KEY_COMPLETE: in is_valid_subevent_code()
129 case bluetooth::hci::SubeventCode::GENERATE_DHKEY_COMPLETE: in is_valid_subevent_code()
130 case bluetooth::hci::SubeventCode::DIRECTED_ADVERTISING_REPORT: in is_valid_subevent_code()
131 case bluetooth::hci::SubeventCode::EXTENDED_ADVERTISING_REPORT: in is_valid_subevent_code()
132 case bluetooth::hci::SubeventCode::PERIODIC_ADVERTISING_SYNC_ESTABLISHED: in is_valid_subevent_code()
133 case bluetooth::hci::SubeventCode::PERIODIC_ADVERTISING_REPORT: in is_valid_subevent_code()
134 case bluetooth::hci::SubeventCode::PERIODIC_ADVERTISING_SYNC_LOST: in is_valid_subevent_code()
135 case bluetooth::hci::SubeventCode::SCAN_TIMEOUT: in is_valid_subevent_code()
136 case bluetooth::hci::SubeventCode::ADVERTISING_SET_TERMINATED: in is_valid_subevent_code()
137 case bluetooth::hci::SubeventCode::SCAN_REQUEST_RECEIVED: in is_valid_subevent_code()
138 case bluetooth::hci::SubeventCode::CHANNEL_SELECTION_ALGORITHM: in is_valid_subevent_code()
139 case bluetooth::hci::SubeventCode::CONNECTIONLESS_IQ_REPORT: in is_valid_subevent_code()
140 case bluetooth::hci::SubeventCode::CONNECTION_IQ_REPORT: in is_valid_subevent_code()
141 case bluetooth::hci::SubeventCode::CTE_REQUEST_FAILED: in is_valid_subevent_code()
142 case bluetooth::hci::SubeventCode:: in is_valid_subevent_code()
144 case bluetooth::hci::SubeventCode::CIS_ESTABLISHED: in is_valid_subevent_code()
145 case bluetooth::hci::SubeventCode::CIS_REQUEST: in is_valid_subevent_code()
146 case bluetooth::hci::SubeventCode::CREATE_BIG_COMPLETE: in is_valid_subevent_code()
147 case bluetooth::hci::SubeventCode::TERMINATE_BIG_COMPLETE: in is_valid_subevent_code()
148 case bluetooth::hci::SubeventCode::BIG_SYNC_ESTABLISHED: in is_valid_subevent_code()
149 case bluetooth::hci::SubeventCode::BIG_SYNC_LOST: in is_valid_subevent_code()
150 case bluetooth::hci::SubeventCode::REQUEST_PEER_SCA_COMPLETE: in is_valid_subevent_code()
151 case bluetooth::hci::SubeventCode::PATH_LOSS_THRESHOLD: in is_valid_subevent_code()
152 case bluetooth::hci::SubeventCode::TRANSMIT_POWER_REPORTING: in is_valid_subevent_code()
153 case bluetooth::hci::SubeventCode::BIG_INFO_ADVERTISING_REPORT: in is_valid_subevent_code()
154 case bluetooth::hci::SubeventCode::ADVERTISING_REPORT: in is_valid_subevent_code()
155 case bluetooth::hci::SubeventCode::LONG_TERM_KEY_REQUEST: in is_valid_subevent_code()
163 bluetooth::hci::EventCode event_code) { in event_already_registered_in_hci_layer()
165 case bluetooth::hci::EventCode::COMMAND_COMPLETE: in event_already_registered_in_hci_layer()
166 case bluetooth::hci::EventCode::COMMAND_STATUS: in event_already_registered_in_hci_layer()
167 case bluetooth::hci::EventCode::PAGE_SCAN_REPETITION_MODE_CHANGE: in event_already_registered_in_hci_layer()
168 case bluetooth::hci::EventCode::MAX_SLOTS_CHANGE: in event_already_registered_in_hci_layer()
169 case bluetooth::hci::EventCode::LE_META_EVENT: in event_already_registered_in_hci_layer()
173 case bluetooth::hci::EventCode::DISCONNECTION_COMPLETE: in event_already_registered_in_hci_layer()
174 case bluetooth::hci::EventCode::READ_REMOTE_VERSION_INFORMATION_COMPLETE: in event_already_registered_in_hci_layer()
183 bluetooth::hci::EventCode event_code) { in event_already_registered_in_controller_layer()
185 case bluetooth::hci::EventCode::NUMBER_OF_COMPLETED_PACKETS: in event_already_registered_in_controller_layer()
194 bluetooth::hci::EventCode event_code) { in event_already_registered_in_acl_layer()
195 for (auto event : bluetooth::hci::AclConnectionEvents) { in event_already_registered_in_acl_layer()
205 bluetooth::hci::SubeventCode subevent_code) { in subevent_already_registered_in_le_hci_layer()
207 case bluetooth::hci::SubeventCode::CONNECTION_COMPLETE: in subevent_already_registered_in_le_hci_layer()
208 case bluetooth::hci::SubeventCode::CONNECTION_UPDATE_COMPLETE: in subevent_already_registered_in_le_hci_layer()
209 case bluetooth::hci::SubeventCode::DATA_LENGTH_CHANGE: in subevent_already_registered_in_le_hci_layer()
210 case bluetooth::hci::SubeventCode::ENHANCED_CONNECTION_COMPLETE: in subevent_already_registered_in_le_hci_layer()
211 case bluetooth::hci::SubeventCode::PHY_UPDATE_COMPLETE: in subevent_already_registered_in_le_hci_layer()
212 case bluetooth::hci::SubeventCode::REMOTE_CONNECTION_PARAMETER_REQUEST: in subevent_already_registered_in_le_hci_layer()
217 case bluetooth::hci::SubeventCode::ADVERTISING_SET_TERMINATED: in subevent_already_registered_in_le_hci_layer()
218 case bluetooth::hci::SubeventCode::SCAN_REQUEST_RECEIVED: in subevent_already_registered_in_le_hci_layer()
222 case bluetooth::hci::SubeventCode::SCAN_TIMEOUT: in subevent_already_registered_in_le_hci_layer()
223 case bluetooth::hci::SubeventCode::ADVERTISING_REPORT: in subevent_already_registered_in_le_hci_layer()
224 case bluetooth::hci::SubeventCode::DIRECTED_ADVERTISING_REPORT: in subevent_already_registered_in_le_hci_layer()
225 case bluetooth::hci::SubeventCode::EXTENDED_ADVERTISING_REPORT: in subevent_already_registered_in_le_hci_layer()
226 case bluetooth::hci::SubeventCode::PERIODIC_ADVERTISING_REPORT: in subevent_already_registered_in_le_hci_layer()
227 case bluetooth::hci::SubeventCode::PERIODIC_ADVERTISING_SYNC_ESTABLISHED: in subevent_already_registered_in_le_hci_layer()
228 case bluetooth::hci::SubeventCode::PERIODIC_ADVERTISING_SYNC_LOST: in subevent_already_registered_in_le_hci_layer()
230 case bluetooth::hci::SubeventCode::READ_REMOTE_FEATURES_COMPLETE: in subevent_already_registered_in_le_hci_layer()
231 case bluetooth::hci::SubeventCode::READ_LOCAL_P256_PUBLIC_KEY_COMPLETE: in subevent_already_registered_in_le_hci_layer()
232 case bluetooth::hci::SubeventCode::GENERATE_DHKEY_COMPLETE: in subevent_already_registered_in_le_hci_layer()
233 case bluetooth::hci::SubeventCode::CHANNEL_SELECTION_ALGORITHM: in subevent_already_registered_in_le_hci_layer()
234 case bluetooth::hci::SubeventCode::CONNECTIONLESS_IQ_REPORT: in subevent_already_registered_in_le_hci_layer()
235 case bluetooth::hci::SubeventCode::CONNECTION_IQ_REPORT: in subevent_already_registered_in_le_hci_layer()
236 case bluetooth::hci::SubeventCode::CTE_REQUEST_FAILED: in subevent_already_registered_in_le_hci_layer()
237 case bluetooth::hci::SubeventCode:: in subevent_already_registered_in_le_hci_layer()
239 case bluetooth::hci::SubeventCode::CIS_ESTABLISHED: in subevent_already_registered_in_le_hci_layer()
240 case bluetooth::hci::SubeventCode::CIS_REQUEST: in subevent_already_registered_in_le_hci_layer()
241 case bluetooth::hci::SubeventCode::CREATE_BIG_COMPLETE: in subevent_already_registered_in_le_hci_layer()
242 case bluetooth::hci::SubeventCode::TERMINATE_BIG_COMPLETE: in subevent_already_registered_in_le_hci_layer()
243 case bluetooth::hci::SubeventCode::BIG_SYNC_ESTABLISHED: in subevent_already_registered_in_le_hci_layer()
244 case bluetooth::hci::SubeventCode::BIG_SYNC_LOST: in subevent_already_registered_in_le_hci_layer()
245 case bluetooth::hci::SubeventCode::REQUEST_PEER_SCA_COMPLETE: in subevent_already_registered_in_le_hci_layer()
246 case bluetooth::hci::SubeventCode::PATH_LOSS_THRESHOLD: in subevent_already_registered_in_le_hci_layer()
247 case bluetooth::hci::SubeventCode::TRANSMIT_POWER_REPORTING: in subevent_already_registered_in_le_hci_layer()
248 case bluetooth::hci::SubeventCode::BIG_INFO_ADVERTISING_REPORT: in subevent_already_registered_in_le_hci_layer()
249 case bluetooth::hci::SubeventCode::LONG_TERM_KEY_REQUEST: in subevent_already_registered_in_le_hci_layer()
256 bluetooth::hci::EventCode event_code) { in event_already_registered_in_le_advertising_manager()
257 for (auto event : bluetooth::hci::AclConnectionEvents) { in event_already_registered_in_le_advertising_manager()
266 bluetooth::hci::EventCode event_code) { in event_already_registered_in_le_scanning_manager()
267 for (auto event : bluetooth::hci::AclConnectionEvents) { in event_already_registered_in_le_scanning_manager()
296 bluetooth::common::BidiQueueEnd<bluetooth::hci::AclBuilder,
297 bluetooth::hci::AclView>* hci_queue_end =
299 static bluetooth::os::EnqueueBuffer<bluetooth::hci::AclBuilder>* pending_data =
315 bluetooth::hci::PacketView<bluetooth::hci::kLittleEndian>* data) { in WrapPacketAndCopy()
326 static void event_callback(bluetooth::hci::EventView event_packet_view) { in event_callback()
335 bluetooth::hci::LeMetaEventView le_meta_event_view) { in subevent_callback()
344 bluetooth::hci::VendorSpecificEventView vendor_specific_event_view) { in vendor_specific_event_callback()
355 bluetooth::hci::CommandCompleteView view) { in OnTransmitPacketCommandComplete()
357 bluetooth::hci::OpCodeText(view.GetCommandOpCode()).c_str()); in OnTransmitPacketCommandComplete()
365 bluetooth::hci::CommandStatusView view) { in OnTransmitPacketStatus()
367 bluetooth::hci::ErrorCodeText(view.GetStatus()).c_str(), in OnTransmitPacketStatus()
368 bluetooth::hci::OpCodeText(view.GetCommandOpCode()).c_str()); in OnTransmitPacketStatus()
388 auto op_code = static_cast<const bluetooth::hci::OpCode>(command_op_code); in transmit_command()
392 bluetooth::hci::CommandBuilder::Create(op_code, std::move(payload)); in transmit_command()
394 LOG_DEBUG("Sending command %s", bluetooth::hci::OpCodeText(op_code).c_str()); in transmit_command()
396 if (bluetooth::hci::Checker::IsCommandStatusOpcode(op_code)) { in transmit_command()
414 auto pb_flag = static_cast<bluetooth::hci::PacketBoundaryFlag>( in transmit_fragment()
417 static_cast<bluetooth::hci::BroadcastFlag>(handle_with_flags >> 14); in transmit_fragment()
424 auto acl_packet = bluetooth::hci::AclBuilder::Create(handle, pb_flag, bc_flag, in transmit_fragment()
430 static void register_event(bluetooth::hci::EventCode event_code) { in register_event()
436 static void register_le_event(bluetooth::hci::SubeventCode subevent_code) { in register_le_event()
471 pending_data = new bluetooth::os::EnqueueBuffer<bluetooth::hci::AclBuilder>( in register_for_acl()
488 auto event_code = static_cast<bluetooth::hci::EventCode>(event_code_raw); in on_shutting_down()
571 auto op_code = static_cast<const bluetooth::hci::OpCode>(command_op_code); in transmit_command()
573 LOG_DEBUG("Sending command %s", bluetooth::hci::OpCodeText(op_code).c_str()); in transmit_command()
575 if (bluetooth::hci::Checker::IsCommandStatusOpcode(op_code)) { in transmit_command()
599 static void register_event(bluetooth::hci::EventCode event_code) { in register_event()
605 static void register_le_event(bluetooth::hci::SubeventCode subevent_code) { in register_le_event()
731 auto event_code = static_cast<bluetooth::hci::EventCode>(event_code_raw); in hci_on_reset_complete()
757 static_cast<bluetooth::hci::SubeventCode>(subevent_code_raw); in hci_on_reset_complete()
775 bluetooth::hci::VseSubeventCode::BQR_EVENT, in hci_on_reset_complete()