| /packages/modules/Bluetooth/system/stack/gatt/ |
| D | gatt_sr.cc | 59 uint32_t gatt_sr_enqueue_cmd(tGATT_TCB& tcb, uint16_t cid, uint8_t op_code, in gatt_sr_enqueue_cmd() argument 75 if ((p_cmd->op_code == 0) || in gatt_sr_enqueue_cmd() 76 (op_code == GATT_HANDLE_VALUE_CONF)) /* no pending request */ in gatt_sr_enqueue_cmd() 78 if (op_code == GATT_CMD_WRITE || op_code == GATT_SIGN_CMD_WRITE || in gatt_sr_enqueue_cmd() 79 op_code == GATT_REQ_MTU || op_code == GATT_HANDLE_VALUE_CONF) { in gatt_sr_enqueue_cmd() 83 p_cmd->op_code = op_code; in gatt_sr_enqueue_cmd() 104 if (cid == tcb.att_lcid) return (tcb.sr_cmd.op_code == 0); in gatt_sr_cmd_empty() 109 return (channel->server_outstanding_cmd_.op_code == 0); in gatt_sr_cmd_empty() 295 uint8_t op_code, tGATT_STATUS status, in gatt_sr_process_app_rsp() argument 305 if ((op_code == GATT_REQ_READ_MULTI) || in gatt_sr_process_app_rsp() [all …]
|
| D | att_protocol.cc | 55 static BT_HDR* attp_build_mtu_cmd(uint8_t op_code, uint16_t rx_mtu) { in attp_build_mtu_cmd() argument 61 UINT8_TO_STREAM(p, op_code); in attp_build_mtu_cmd() 78 static BT_HDR* attp_build_exec_write_cmd(uint8_t op_code, uint8_t flag) { in attp_build_exec_write_cmd() argument 87 UINT8_TO_STREAM(p, op_code); in attp_build_exec_write_cmd() 89 if (op_code == GATT_REQ_EXEC_WRITE) { in attp_build_exec_write_cmd() 134 static BT_HDR* attp_build_browse_cmd(uint8_t op_code, uint16_t s_hdl, in attp_build_browse_cmd() argument 147 UINT8_TO_STREAM(p, op_code); in attp_build_browse_cmd() 199 static BT_HDR* attp_build_read_multi_cmd(uint8_t op_code, uint16_t payload_size, in attp_build_read_multi_cmd() argument 210 UINT8_TO_STREAM(p, op_code); in attp_build_read_multi_cmd() 228 static BT_HDR* attp_build_handle_cmd(uint8_t op_code, uint16_t handle, in attp_build_handle_cmd() argument [all …]
|
| D | gatt_cl.cc | 93 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 …]
|
| D | gatt_db.cc | 50 tGATT_TCB& tcb, uint16_t cid, uint8_t op_code, uint16_t handle, 285 tGATT_TCB& tcb, uint16_t cid, tGATT_SVC_DB* p_db, uint8_t op_code, in gatts_db_read_attr_value_by_type() argument 307 status = gatts_send_app_read_request(tcb, cid, op_code, attr.handle, in gatts_db_read_attr_value_by_type() 487 tGATT_TCB& tcb, uint16_t cid, tGATT_SVC_DB* p_db, uint8_t op_code, in gatts_read_attr_value_by_handle() argument 496 (bool)(op_code == GATT_REQ_READ_BLOB), in gatts_read_attr_value_by_handle() 500 status = gatts_send_app_read_request(tcb, cid, op_code, p_attr->handle, in gatts_read_attr_value_by_handle() 553 tGATT_STATUS gatts_write_attr_perm_check(tGATT_SVC_DB* p_db, uint8_t op_code, in gatts_write_attr_perm_check() argument 561 __func__, op_code, handle, offset, len, key_size); in gatts_write_attr_perm_check() 574 if ((op_code == GATT_CMD_WRITE || op_code == GATT_REQ_WRITE) && in gatts_write_attr_perm_check() 594 if ((op_code == GATT_SIGN_CMD_WRITE) && !(perm & GATT_WRITE_SIGNED_PERM)) { in gatts_write_attr_perm_check() [all …]
|
| D | gatt_int.h | 215 uint8_t op_code; member 235 uint8_t op_code; member 515 uint8_t op_code, tGATT_CL_MSG* p_msg); 516 BT_HDR* attp_build_sr_msg(tGATT_TCB& tcb, uint8_t op_code, tGATT_SR_MSG* p_msg, 523 uint8_t* 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 …]
|
| D | gatt_utils.cc | 845 uint8_t op_code, uint16_t handle, bool deq) { in gatt_send_error_rsp() argument 850 msg.error.cmd_code = op_code; in gatt_send_error_rsp() 1523 uint8_t op_code, BT_HDR* p_buf) { in gatt_cmd_enq() argument 1526 cmd.op_code = op_code; in gatt_cmd_enq() 1558 *p_op_code = cmd.op_code; in gatt_cmd_dequeue() 1575 uint8_t op_code, uint16_t handle, uint16_t len, in gatt_send_write_msg() argument 1584 return attp_send_cl_msg(tcb, p_clcb, op_code, &msg); in gatt_send_write_msg() 1750 uint8_t* gatt_dbg_op_name(uint8_t op_code) { in gatt_dbg_op_name() argument 1751 uint8_t pseduo_op_code_idx = op_code & (~GATT_WRITE_CMD_MASK); in gatt_dbg_op_name() 1753 if (op_code == GATT_CMD_WRITE) { in gatt_dbg_op_name() [all …]
|
| D | gatt_main.cc | 1011 uint8_t op_code, pseudo_op_code; in gatt_data_process() local 1019 STREAM_TO_UINT8(op_code, p); in gatt_data_process() 1022 pseudo_op_code = op_code & (~GATT_WRITE_CMD_MASK); in gatt_data_process() 1028 << ": ATT - Rcvd L2CAP data, unknown cmd: " << loghex(op_code); in gatt_data_process() 1029 gatt_send_error_rsp(tcb, cid, GATT_REQ_NOT_SUPPORTED, op_code, 0, false); in gatt_data_process() 1033 if (op_code == GATT_SIGN_CMD_WRITE) { in gatt_data_process() 1037 if ((op_code % 2) == 0) in gatt_data_process() 1038 gatt_server_handle_client_req(tcb, cid, op_code, msg_len, p); in gatt_data_process() 1040 gatt_client_handle_server_rsp(tcb, cid, op_code, msg_len, p); in gatt_data_process()
|
| D | gatt_auth.cc | 102 uint8_t op_code; in gatt_verify_signature() local 121 STREAM_TO_UINT8(op_code, p_orig); in gatt_verify_signature() 122 gatt_server_handle_client_req(tcb, cid, op_code, (uint16_t)(p_buf->len - 1), in gatt_verify_signature()
|
| /packages/modules/Bluetooth/system/gd/hci/ |
| D | hci_packets.pdl | 756 op_code : OpCode, 971 packet Inquiry : DiscoveryCommand (op_code = INQUIRY) { 988 packet InquiryCancel : DiscoveryCommand (op_code = INQUIRY_CANCEL) { 1003 packet PeriodicInquiryMode : DiscoveryCommand (op_code = PERIODIC_INQUIRY_MODE) { 1023 packet ExitPeriodicInquiryMode : DiscoveryCommand (op_code = EXIT_PERIODIC_INQUIRY_MODE) { 1054 packet CreateConnection : ConnectionManagementCommand (op_code = CREATE_CONNECTION) { 1077 packet Disconnect : AclCommand (op_code = DISCONNECT) { 1086 packet AddScoConnection : ConnectionManagementCommand (op_code = ADD_SCO_CONNECTION) { 1095 packet CreateConnectionCancel : ConnectionManagementCommand (op_code = CREATE_CONNECTION_CANCEL) { 1109 packet AcceptConnectionRequest : ConnectionManagementCommand (op_code = ACCEPT_CONNECTION_REQUEST) { [all …]
|
| D | hci_layer.cc | 56 static void abort_after_time_out(OpCode op_code) { in abort_after_time_out() argument 57 bluetooth::os::LogMetricHciTimeoutEvent(static_cast<uint32_t>(op_code)); in abort_after_time_out() 58 …ASSERT_LOG(false, "Done waiting for debug information after HCI timeout (%s)", OpCodeText(op_code)… in abort_after_time_out() 155 OpCode op_code = response_view.GetCommandOpCode(); in on_command_status() local 161 op_code, in on_command_status() 162 OpCodeText(op_code).c_str()); in on_command_status() 176 OpCode op_code = response_view.GetCommandOpCode(); in handle_command_response() local 177 if (op_code == OpCode::NONE) { in handle_command_response() 187 op_code, in handle_command_response() 188 OpCodeText(op_code).c_str()); in handle_command_response() [all …]
|
| D | hci_metrics_logging.cc | 70 OpCode op_code = command_view->GetOpCode(); in log_link_layer_connection_command() local 86 switch (op_code) { in log_link_layer_connection_command() 229 static_cast<uint32_t>(op_code), in log_link_layer_connection_command() 239 OpCode op_code = command_view->GetOpCode(); in log_link_layer_connection_command_status() local 254 switch (op_code) { in log_link_layer_connection_command_status() 409 static_cast<uint32_t>(op_code), in log_link_layer_connection_command_status() 419 OpCode op_code = command_complete_view.GetCommandOpCode(); in log_link_layer_connection_command_complete() local 436 switch (op_code) { in log_link_layer_connection_command_complete() 490 static_cast<uint32_t>(op_code), in log_link_layer_connection_command_complete() 740 OpCode op_code = command_view->GetOpCode(); in log_classic_pairing_command_status() local [all …]
|
| D | le_address_manager.cc | 574 auto op_code = view.GetCommandOpCode(); in on_command_complete() local 578 LOG_ERROR("Received %s complete with invalid packet", hci::OpCodeText(op_code).c_str()); in on_command_complete() 585 hci::OpCodeText(op_code).c_str(), in on_command_complete() 595 auto op_code = view.GetCommandOpCode(); in OnCommandComplete() local 596 LOG_INFO("Received command complete with op_code %s", OpCodeText(op_code).c_str()); in OnCommandComplete() 598 switch (op_code) { in OnCommandComplete() 655 LOG_ERROR("Received UNSUPPORTED command %s complete", hci::OpCodeText(op_code).c_str()); in OnCommandComplete()
|
| /packages/modules/Bluetooth/tools/rootcanal/packets/hci/ |
| D | hci_packets.pdl | 756 op_code : OpCode, 961 packet Inquiry : Command (op_code = INQUIRY) { 978 packet InquiryCancel : Command (op_code = INQUIRY_CANCEL) { 993 packet PeriodicInquiryMode : Command (op_code = PERIODIC_INQUIRY_MODE) { 1013 packet ExitPeriodicInquiryMode : Command (op_code = EXIT_PERIODIC_INQUIRY_MODE) { 1044 packet CreateConnection : Command (op_code = CREATE_CONNECTION) { 1067 packet Disconnect : Command (op_code = DISCONNECT) { 1076 packet AddScoConnection : Command (op_code = ADD_SCO_CONNECTION) { 1085 packet CreateConnectionCancel : Command (op_code = CREATE_CONNECTION_CANCEL) { 1099 packet AcceptConnectionRequest : Command (op_code = ACCEPT_CONNECTION_REQUEST) { [all …]
|
| /packages/modules/Bluetooth/system/gd/packet/parser/test/ |
| D | rust_test_packets.pdl | 54 op_code : OpCode, 66 packet AddRes: ResCommand (op_code = ADD_RES) { 69 packet SubRes: ResCommand (op_code = SUB_RES) { 72 packet AddCommand: ComputeCommand (op_code = ADD) { 75 packet SubCommand: ComputeCommand (op_code = SUB) { 78 packet AddErr: ErrCommand(op_code = ADD_ERR) { 81 packet SubErr: ErrCommand(op_code = SUB_ERR) {
|
| /packages/modules/Bluetooth/system/gd/hci/acl_manager/ |
| D | event_checkers.h | 32 OpCode op_code = status_view.GetCommandOpCode(); in check_command_complete() local 35 …ERROR("Received command complete with error code %s, opcode 0x%02hx", error_code.c_str(), op_code); in check_command_complete() 49 OpCode op_code = status_view.GetCommandOpCode(); in check_command_status() local 52 …G_ERROR("Received command status with error code %s, opcode 0x%02hx", error_code.c_str(), op_code); in check_command_status()
|
| D | le_impl_test.cc | 151 [[maybe_unused]] hci::CommandCompleteView ReturnCommandComplete(hci::OpCode op_code, hci::ErrorCode… in ReturnCommandComplete() argument 153 …auto builder = hci::CommandCompleteBuilder::Create(uint8_t{1}, op_code, std::make_unique<RawBuilde… in ReturnCommandComplete() 158 [[maybe_unused]] hci::CommandStatusView ReturnCommandStatus(hci::OpCode op_code, hci::ErrorCode err… in ReturnCommandStatus() argument 161 hci::ErrorCode::SUCCESS, uint8_t{1}, op_code, std::make_unique<RawBuilder>(success_vector)); in ReturnCommandStatus() 184 bool IsSupported(OpCode op_code) const override { in IsSupported() 186 return supported_opcodes_.count(op_code) == 1; in IsSupported() 189 void AddSupported(OpCode op_code) { in AddSupported() argument 191 supported_opcodes_.insert(op_code); in AddSupported() 325 CommandView GetCommand(OpCode op_code) { in GetCommand() argument 338 …d_queue_.empty(), "Expecting command %s but command queue was empty", OpCodeText(op_code).c_str()); in GetCommand() [all …]
|
| /packages/modules/Bluetooth/system/bta/test/ |
| D | bta_gatt_test.cc | 162 .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/stack/test/gatt/ |
| D | mock_gatt_utils_ref.cc | 35 BT_HDR* attp_build_sr_msg(tGATT_TCB& tcb, uint8_t op_code, tGATT_SR_MSG* p_msg, in attp_build_sr_msg() argument 43 uint8_t op_code, tGATT_CL_MSG* p_msg) { in attp_send_cl_msg() argument 65 uint32_t gatt_sr_enqueue_cmd(tGATT_TCB& tcb, uint16_t cid, uint8_t op_code, in gatt_sr_enqueue_cmd() argument
|
| D | gatt_sr_test.cc | 69 BT_HDR* attp_build_sr_msg(tGATT_TCB& tcb, uint8_t op_code, tGATT_SR_MSG* p_msg, in attp_build_sr_msg() argument 71 test_state_.attp_build_sr_msg.op_code_ = op_code; in attp_build_sr_msg() 78 uint8_t op_code, tGATT_CL_MSG* p_msg) { in attp_send_cl_msg() argument 89 tGATT_TCB& tcb, uint16_t cid, tGATT_SVC_DB* p_db, uint8_t op_code, in gatts_db_read_attr_value_by_type() argument 108 tGATT_TCB& tcb, uint16_t cid, tGATT_SVC_DB* p_db, uint8_t op_code, in gatts_read_attr_value_by_handle() argument 114 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/tools/rootcanal/model/controller/ |
| D | controller_properties.h | 170 bool SupportsCommand(bluetooth::hci::OpCodeIndex op_code) const { in SupportsCommand() 171 int index = static_cast<int>(op_code); in SupportsCommand()
|
| D | dual_mode_controller.cc | 56 bluetooth::hci::OpCode op_code) const { in SendCommandCompleteUnknownOpCodeEvent() 58 kNumCommandPackets, op_code, in SendCommandCompleteUnknownOpCodeEvent() 157 OpCode op_code = command_packet.GetOpCode(); in HandleCommand() local 158 const bool is_vendor_command = (static_cast<uint16_t>(op_code) >> 10) == 0x3f; in HandleCommand() 160 hci_command_op_code_to_index_.count(op_code) > 0; in HandleCommand() 161 const bool is_implemented_command = hci_command_handlers_.count(op_code) > 0; in HandleCommand() 166 (op_code == OpCode::READ_LOCAL_SUPPORTED_COMMANDS) || in HandleCommand() 172 int index = static_cast<int>(hci_command_op_code_to_index_.at(op_code)); in HandleCommand() 179 op_code != OpCode::RESET && in HandleCommand() 180 op_code != OpCode::SET_CONTROLLER_TO_HOST_FLOW_CONTROL && in HandleCommand() [all …]
|
| /packages/modules/Bluetooth/system/test/mock/ |
| D | mock_stack_btm_ble.h | 534 std::function<void(uint8_t* p, uint16_t evt_len, uint16_t op_code, 536 body{[](uint8_t* p, uint16_t evt_len, uint16_t op_code, 538 void operator()(uint8_t* p, uint16_t evt_len, uint16_t op_code, in operator() 540 body(p, evt_len, op_code, p_enc_cplt_cback); in operator()
|
| /packages/modules/Bluetooth/system/main/shim/ |
| D | hci_layer.cc | 361 auto op_code = static_cast<const bluetooth::hci::OpCode>(command_op_code); in transmit_command() local 365 bluetooth::hci::CommandBuilder::Create(op_code, std::move(payload)); in transmit_command() 367 LOG_DEBUG("Sending command %s", bluetooth::hci::OpCodeText(op_code).c_str()); in transmit_command() 369 if (bluetooth::hci::Checker::IsCommandStatusOpcode(op_code)) { in transmit_command()
|
| /packages/modules/Bluetooth/system/profile/avrcp/ |
| D | connection_handler.cc | 573 uint16_t op_code = (uint16_t)(::bluetooth::Packet::Specialize<Packet>(packet)->GetOpcode()); in SendMessage() local 574 if (!browse && (op_code == (uint16_t)(Opcode::VENDOR))) { in SendMessage() 575 pkt->event = op_code; in SendMessage()
|
| /packages/modules/Bluetooth/system/stack/smp/ |
| D | smp_keys.cc | 216 void smp_concatenate_local(tSMP_CB* p_cb, uint8_t** p_data, uint8_t op_code) { in smp_concatenate_local() argument 220 UINT8_TO_STREAM(p, op_code); in smp_concatenate_local() 235 void smp_concatenate_peer(tSMP_CB* p_cb, uint8_t** p_data, uint8_t op_code) { in smp_concatenate_peer() argument 239 UINT8_TO_STREAM(p, op_code); in smp_concatenate_peer()
|