Home
last modified time | relevance | path

Searched refs:op_code (Results 1 – 25 of 50) sorted by relevance

12

/packages/modules/Bluetooth/system/stack/gatt/
Dgatt_sr.cc60 uint32_t gatt_sr_enqueue_cmd(tGATT_TCB& tcb, uint16_t cid, uint8_t op_code, in gatt_sr_enqueue_cmd() argument
81 if ((p_cmd->op_code == 0) || in gatt_sr_enqueue_cmd()
82 (op_code == GATT_HANDLE_VALUE_CONF)) /* no pending request */ in gatt_sr_enqueue_cmd()
84 if (op_code == GATT_CMD_WRITE || op_code == GATT_SIGN_CMD_WRITE || in gatt_sr_enqueue_cmd()
85 op_code == GATT_REQ_MTU || op_code == GATT_HANDLE_VALUE_CONF) { in gatt_sr_enqueue_cmd()
89 p_cmd->op_code = op_code; in gatt_sr_enqueue_cmd()
110 if (cid == tcb.att_lcid) return (tcb.sr_cmd.op_code == 0); in gatt_sr_cmd_empty()
119 return (channel->server_outstanding_cmd_.op_code == 0); in gatt_sr_cmd_empty()
306 uint32_t /* trans_id */, uint8_t op_code, in gatt_sr_process_app_rsp() argument
316 if ((op_code == GATT_REQ_READ_MULTI) || in gatt_sr_process_app_rsp()
[all …]
Datt_protocol.cc56 static BT_HDR* attp_build_mtu_cmd(uint8_t op_code, uint16_t rx_mtu) { in attp_build_mtu_cmd() argument
62 UINT8_TO_STREAM(p, op_code); in attp_build_mtu_cmd()
79 static BT_HDR* attp_build_exec_write_cmd(uint8_t op_code, uint8_t flag) { in attp_build_exec_write_cmd() argument
88 UINT8_TO_STREAM(p, op_code); in attp_build_exec_write_cmd()
90 if (op_code == GATT_REQ_EXEC_WRITE) { in attp_build_exec_write_cmd()
135 static BT_HDR* attp_build_browse_cmd(uint8_t op_code, uint16_t s_hdl, in attp_build_browse_cmd() argument
148 UINT8_TO_STREAM(p, op_code); in attp_build_browse_cmd()
206 static BT_HDR* attp_build_read_multi_cmd(uint8_t op_code, uint16_t payload_size, in attp_build_read_multi_cmd() argument
218 UINT8_TO_STREAM(p, op_code); in attp_build_read_multi_cmd()
236 static BT_HDR* attp_build_handle_cmd(uint8_t op_code, uint16_t handle, in attp_build_handle_cmd() argument
[all …]
Dgatt_cl.cc93 uint8_t op_code = disc_type_to_att_opcode[p_clcb->op_subtype]; in gatt_act_discovery() local
135 tGATT_STATUS st = attp_send_cl_msg(*p_clcb->p_tcb, p_clcb, op_code, &cl_req); in gatt_act_discovery()
155 uint8_t op_code = 0; in gatt_act_read() local
162 op_code = GATT_REQ_READ_BY_TYPE; in gatt_act_read()
175 op_code = GATT_REQ_READ; in gatt_act_read()
185 op_code = GATT_REQ_READ_BLOB; in gatt_act_read()
193 op_code = GATT_REQ_READ_BLOB; in gatt_act_read()
199 op_code = GATT_REQ_READ_MULTI; in gatt_act_read()
204 op_code = GATT_REQ_READ_MULTI_VAR; in gatt_act_read()
209 op_code = GATT_REQ_READ; in gatt_act_read()
[all …]
Dgatt_db.cc44 tGATT_TCB& tcb, uint16_t cid, uint8_t op_code, uint16_t handle,
277 tGATT_TCB& tcb, uint16_t cid, tGATT_SVC_DB* p_db, uint8_t op_code, in gatts_db_read_attr_value_by_type() argument
299 status = gatts_send_app_read_request(tcb, cid, op_code, attr.handle, in gatts_db_read_attr_value_by_type()
475 tGATT_TCB& tcb, uint16_t cid, tGATT_SVC_DB* p_db, uint8_t op_code, in gatts_read_attr_value_by_handle() argument
484 (bool)(op_code == GATT_REQ_READ_BLOB), in gatts_read_attr_value_by_handle()
488 status = gatts_send_app_read_request(tcb, cid, op_code, p_attr->handle, in gatts_read_attr_value_by_handle()
541 tGATT_STATUS gatts_write_attr_perm_check(tGATT_SVC_DB* p_db, uint8_t op_code, in gatts_write_attr_perm_check() argument
547 op_code, handle, offset, len, key_size); in gatts_write_attr_perm_check()
560 if ((op_code == GATT_CMD_WRITE || op_code == GATT_REQ_WRITE) && in gatts_write_attr_perm_check()
580 if ((op_code == GATT_SIGN_CMD_WRITE) && !(perm & GATT_WRITE_SIGNED_PERM)) { in gatts_write_attr_perm_check()
[all …]
Dgatt_int.h209 uint8_t op_code; member
229 uint8_t op_code; member
514 uint8_t op_code, tGATT_CL_MSG* p_msg);
515 BT_HDR* attp_build_sr_msg(tGATT_TCB& tcb, uint8_t op_code, tGATT_SR_MSG* p_msg,
523 char const* gatt_dbg_op_name(uint8_t op_code);
542 uint8_t op_code, uint16_t handle, bool deq);
570 uint32_t trans_id, uint8_t op_code,
574 uint8_t op_code, uint16_t len,
577 uint8_t op_code, tGATTS_DATA* p_req_data);
578 uint32_t gatt_sr_enqueue_cmd(tGATT_TCB& tcb, uint16_t cid, uint8_t op_code,
[all …]
Dgatt_main.cc1020 uint8_t op_code, pseudo_op_code; in gatt_data_process() local
1028 STREAM_TO_UINT8(op_code, p); in gatt_data_process()
1031 pseudo_op_code = op_code & (~GATT_WRITE_CMD_MASK); in gatt_data_process()
1036 log::error("ATT - Rcvd L2CAP data, unknown cmd: 0x{:x}", op_code); in gatt_data_process()
1037 gatt_send_error_rsp(tcb, cid, GATT_REQ_NOT_SUPPORTED, op_code, 0, false); in gatt_data_process()
1041 if (op_code == GATT_SIGN_CMD_WRITE) { in gatt_data_process()
1045 if ((op_code % 2) == 0) in gatt_data_process()
1046 gatt_server_handle_client_req(tcb, cid, op_code, msg_len, p); in gatt_data_process()
1048 gatt_client_handle_server_rsp(tcb, cid, op_code, msg_len, p); in gatt_data_process()
Dgatt_utils.cc902 uint8_t op_code, uint16_t handle, bool deq) { in gatt_send_error_rsp() argument
907 msg.error.cmd_code = op_code; in gatt_send_error_rsp()
1591 uint8_t op_code, BT_HDR* p_buf) { in gatt_cmd_enq() argument
1594 cmd.op_code = op_code; in gatt_cmd_enq()
1635 *p_op_code = cmd.op_code; in gatt_cmd_dequeue()
1652 uint8_t op_code, uint16_t handle, uint16_t len, in gatt_send_write_msg() argument
1661 return attp_send_cl_msg(tcb, p_clcb, op_code, &msg); in gatt_send_write_msg()
1851 char const* gatt_dbg_op_name(uint8_t op_code) { in gatt_dbg_op_name() argument
1852 uint8_t pseduo_op_code_idx = op_code & (~GATT_WRITE_CMD_MASK); in gatt_dbg_op_name()
1854 if (op_code == GATT_CMD_WRITE) { in gatt_dbg_op_name()
[all …]
Dgatt_auth.cc103 uint8_t op_code; in gatt_verify_signature() local
122 STREAM_TO_UINT8(op_code, p_orig); in gatt_verify_signature()
123 gatt_server_handle_client_req(tcb, cid, op_code, (uint16_t)(p_buf->len - 1), in gatt_verify_signature()
/packages/modules/Bluetooth/system/pdl/hci/
Dhci_packets.pdl789 op_code : OpCode,
1035 packet Inquiry : DiscoveryCommand (op_code = INQUIRY) {
1052 packet InquiryCancel : DiscoveryCommand (op_code = INQUIRY_CANCEL) {
1067 packet PeriodicInquiryMode : DiscoveryCommand (op_code = PERIODIC_INQUIRY_MODE) {
1087 packet ExitPeriodicInquiryMode : DiscoveryCommand (op_code = EXIT_PERIODIC_INQUIRY_MODE) {
1118 packet CreateConnection : ConnectionManagementCommand (op_code = CREATE_CONNECTION) {
1141 packet Disconnect : AclCommand (op_code = DISCONNECT) {
1150 packet AddScoConnection : ConnectionManagementCommand (op_code = ADD_SCO_CONNECTION) {
1159 packet CreateConnectionCancel : ConnectionManagementCommand (op_code = CREATE_CONNECTION_CANCEL) {
1173 packet AcceptConnectionRequest : ConnectionManagementCommand (op_code = ACCEPT_CONNECTION_REQUEST) {
[all …]
/packages/modules/Bluetooth/tools/rootcanal/packets/
Dhci_packets.pdl692 op_code : OpCode,
897 packet Inquiry : Command (op_code = INQUIRY) {
914 packet InquiryCancel : Command (op_code = INQUIRY_CANCEL) {
929 packet PeriodicInquiryMode : Command (op_code = PERIODIC_INQUIRY_MODE) {
949 packet ExitPeriodicInquiryMode : Command (op_code = EXIT_PERIODIC_INQUIRY_MODE) {
980 packet CreateConnection : Command (op_code = CREATE_CONNECTION) {
1003 packet Disconnect : Command (op_code = DISCONNECT) {
1012 packet AddScoConnection : Command (op_code = ADD_SCO_CONNECTION) {
1021 packet CreateConnectionCancel : Command (op_code = CREATE_CONNECTION_CANCEL) {
1035 packet AcceptConnectionRequest : Command (op_code = ACCEPT_CONNECTION_REQUEST) {
[all …]
/packages/modules/Bluetooth/system/stack/test/gatt/
Dstack_gatt_test.cc44 BT_HDR* attp_build_value_cmd(uint16_t payload_size, uint8_t op_code,
241 uint8_t op_code, in attp_build_value_cmd_test_with_p_data() argument
250 ASSERT_TRUE(gatt_min_value_cmd_size.find(op_code) != in attp_build_value_cmd_test_with_p_data()
252 min_payload_size = gatt_min_value_cmd_size.at(op_code); in attp_build_value_cmd_test_with_p_data()
257 payload_size, op_code, handle, offset, len, p_data); in attp_build_value_cmd_test_with_p_data()
264 ASSERT_EQ(op_code_read, op_code); in attp_build_value_cmd_test_with_p_data()
266 if (op_code == GATT_RSP_READ_BY_TYPE) { in attp_build_value_cmd_test_with_p_data()
271 } else if (op_code == GATT_RSP_READ_BLOB || op_code == GATT_RSP_READ) { in attp_build_value_cmd_test_with_p_data()
273 } else if (op_code == GATT_REQ_PREPARE_WRITE || in attp_build_value_cmd_test_with_p_data()
274 op_code == GATT_RSP_PREPARE_WRITE) { in attp_build_value_cmd_test_with_p_data()
[all …]
Dmock_gatt_utils_ref.cc34 BT_HDR* attp_build_sr_msg(tGATT_TCB& tcb, uint8_t op_code, tGATT_SR_MSG* p_msg, in attp_build_sr_msg() argument
42 uint8_t op_code, tGATT_CL_MSG* p_msg) { in attp_send_cl_msg() argument
64 uint32_t gatt_sr_enqueue_cmd(tGATT_TCB& tcb, uint16_t cid, uint8_t op_code, in gatt_sr_enqueue_cmd() argument
Dgatt_sr_test.cc65 BT_HDR* attp_build_sr_msg(tGATT_TCB& tcb, uint8_t op_code, tGATT_SR_MSG* p_msg, in attp_build_sr_msg() argument
67 test_state_.attp_build_sr_msg.op_code_ = op_code; in attp_build_sr_msg()
74 uint8_t op_code, tGATT_CL_MSG* p_msg) { in attp_send_cl_msg() argument
85 tGATT_TCB& tcb, uint16_t cid, tGATT_SVC_DB* p_db, uint8_t op_code, in gatts_db_read_attr_value_by_type() argument
104 tGATT_TCB& tcb, uint16_t cid, tGATT_SVC_DB* p_db, uint8_t op_code, in gatts_read_attr_value_by_handle() argument
110 tGATT_STATUS gatts_write_attr_perm_check(tGATT_SVC_DB* p_db, uint8_t op_code, in gatts_write_attr_perm_check() argument
/packages/modules/Bluetooth/system/gd/hci/
Dhci_layer.cc69 static void abort_after_time_out(OpCode op_code) { in abort_after_time_out() argument
70 log::fatal("Done waiting for debug information after HCI timeout ({})", OpCodeText(op_code)); in abort_after_time_out()
167 OpCode op_code = response_view.GetCommandOpCode(); in on_command_status() local
173 OpCodeText(op_code)); in on_command_status()
187 OpCode op_code = response_view.GetCommandOpCode(); in handle_command_response() local
188 if (op_code == OpCode::NONE) { in handle_command_response()
198 OpCodeText(op_code)); in handle_command_response()
199 …if (waiting_command_ == OpCode::CONTROLLER_DEBUG_INFO && op_code != OpCode::CONTROLLER_DEBUG_INFO)… in handle_command_response()
200 log::error("Discarding event that came after timeout {}", OpCodeText(op_code)); in handle_command_response()
205 waiting_command_ == op_code, in handle_command_response()
[all …]
Devent_checkers.h36 OpCode op_code = status_view.GetCommandOpCode(); in check_complete() local
38 log::error("Error code {}, opcode {}", ErrorCodeText(status), OpCodeText(op_code)); in check_complete()
52 OpCode op_code = status_view.GetCommandOpCode(); in check_status() local
54 log::error("Error code {}, opcode {}", ErrorCodeText(status), OpCodeText(op_code)); in check_status()
Dhci_metrics_logging.cc71 OpCode op_code = command_view->GetOpCode(); in log_link_layer_connection_command() local
89 switch (op_code) { in log_link_layer_connection_command()
261 static_cast<uint32_t>(op_code), in log_link_layer_connection_command()
271 OpCode op_code = command_view->GetOpCode(); in log_link_layer_connection_command_status() local
288 switch (op_code) { in log_link_layer_connection_command_status()
472 static_cast<uint32_t>(op_code), in log_link_layer_connection_command_status()
483 OpCode op_code = command_complete_view.GetCommandOpCode(); in log_link_layer_connection_command_complete() local
502 switch (op_code) { in log_link_layer_connection_command_complete()
566 static_cast<uint32_t>(op_code), in log_link_layer_connection_command_complete()
849 OpCode op_code = command_view->GetOpCode(); in log_classic_pairing_command_status() local
[all …]
Dle_address_manager.cc637 auto op_code = view.GetCommandOpCode(); in on_command_complete() local
641 log::error("Received {} complete with invalid packet", hci::OpCodeText(op_code)); in on_command_complete()
648 hci::OpCodeText(op_code), in on_command_complete()
658 auto op_code = view.GetCommandOpCode(); in OnCommandComplete() local
659 log::info("Received command complete with op_code {}", OpCodeText(op_code)); in OnCommandComplete()
661 switch (op_code) { in OnCommandComplete()
719 log::error("Received UNSUPPORTED command {} complete", hci::OpCodeText(op_code)); in OnCommandComplete()
Dhci_layer_fake.cc110 CommandView HciLayerFake::GetCommand(OpCode op_code) { in GetCommand() argument
112 while (next_command.GetOpCode() != op_code) { in GetCommand()
/packages/modules/Bluetooth/system/bta/test/
Dbta_gatt_test.cc162 .op_code = GATTC_OPTYPE_READ, in TEST_F()
197 .op_code = GATTC_OPTYPE_WRITE, in TEST_F()
229 .op_code = GATTC_OPTYPE_CONFIG, in TEST_F()
259 .op_code = GATTC_OPTYPE_EXE_WRITE, in TEST_F()
291 .op_code = GATTC_OPTYPE_READ, in TEST_F()
/packages/modules/Bluetooth/system/gd/hal/
Dlink_clocker.cc65 uint16_t op_code = payload[1] | (payload[2] << 8); in OnHciEvent() local
69 if (op_code != HCI_CMD_READ_CLOCK) return; in OnHciEvent()
/packages/modules/Bluetooth/system/gd/hci/acl_manager/
Dclassic_impl_test.cc96 hci::OpCode op_code, hci::ErrorCode error_code) { in ReturnCommandComplete() argument
99 uint8_t{1}, op_code, std::make_unique<RawBuilder>(success_vector)); in ReturnCommandComplete()
106 hci::OpCode op_code, hci::ErrorCode error_code) { in ReturnCommandStatus() argument
109 hci::ErrorCode::SUCCESS, uint8_t{1}, op_code, std::make_unique<RawBuilder>(success_vector)); in ReturnCommandStatus()
Dle_impl_test.cc144 hci::CommandCompleteView ReturnCommandComplete(hci::OpCode op_code, hci::ErrorCode error_code) { in ReturnCommandComplete() argument
146 …auto builder = hci::CommandCompleteBuilder::Create(uint8_t{1}, op_code, std::make_unique<RawBuilde… in ReturnCommandComplete()
151 hci::CommandStatusView ReturnCommandStatus(hci::OpCode op_code, hci::ErrorCode error_code) { in ReturnCommandStatus() argument
154 hci::ErrorCode::SUCCESS, uint8_t{1}, op_code, std::make_unique<RawBuilder>(success_vector)); in ReturnCommandStatus()
169 bool IsSupported(OpCode op_code) const override { in IsSupported()
171 return supported_opcodes_.count(op_code) == 1; in IsSupported()
174 void AddSupported(OpCode op_code) { in AddSupported() argument
176 supported_opcodes_.insert(op_code); in AddSupported()
/packages/modules/Bluetooth/tools/rootcanal/model/controller/
Dcontroller_properties.h182 bool SupportsCommand(bluetooth::hci::OpCodeIndex op_code) const { in SupportsCommand()
183 int index = static_cast<int>(op_code); in SupportsCommand()
Ddual_mode_controller.cc87 bluetooth::hci::OpCode op_code) const { in SendCommandCompleteUnknownOpCodeEvent()
89 kNumCommandPackets, op_code, in SendCommandCompleteUnknownOpCodeEvent()
188 OpCode op_code = command_packet.GetOpCode(); in HandleCommand() local
189 const bool is_vendor_command = (static_cast<uint16_t>(op_code) >> 10) == 0x3f; in HandleCommand()
191 hci_command_op_code_to_index_.count(op_code) > 0; in HandleCommand()
192 const bool is_implemented_command = hci_command_handlers_.count(op_code) > 0; in HandleCommand()
197 (op_code == OpCode::READ_LOCAL_SUPPORTED_COMMANDS) || in HandleCommand()
203 int index = static_cast<int>(hci_command_op_code_to_index_.at(op_code)); in HandleCommand()
210 op_code != OpCode::RESET && in HandleCommand()
211 op_code != OpCode::SET_CONTROLLER_TO_HOST_FLOW_CONTROL && in HandleCommand()
[all …]
/packages/modules/Bluetooth/system/main/shim/
Dhci_layer.cc197 auto op_code = static_cast<const bluetooth::hci::OpCode>(command_op_code); in transmit_command() local
201 bluetooth::hci::CommandBuilder::Create(op_code, std::move(payload)); in transmit_command()
203 log::debug("Sending command {}", bluetooth::hci::OpCodeText(op_code)); in transmit_command()
205 if (bluetooth::hci::Checker::IsCommandStatusOpcode(op_code)) { in transmit_command()

12