/packages/modules/Bluetooth/system/stack/gatt/ |
D | gatt_sr.cc | 57 uint32_t gatt_sr_enqueue_cmd(tGATT_TCB& tcb, uint16_t cid, uint8_t op_code, in gatt_sr_enqueue_cmd() argument 73 if ((p_cmd->op_code == 0) || in gatt_sr_enqueue_cmd() 74 (op_code == GATT_HANDLE_VALUE_CONF)) /* no pending request */ in gatt_sr_enqueue_cmd() 76 if (op_code == GATT_CMD_WRITE || op_code == GATT_SIGN_CMD_WRITE || in gatt_sr_enqueue_cmd() 77 op_code == GATT_REQ_MTU || op_code == GATT_HANDLE_VALUE_CONF) { in gatt_sr_enqueue_cmd() 81 p_cmd->op_code = op_code; in gatt_sr_enqueue_cmd() 102 if (cid == tcb.att_lcid) return (tcb.sr_cmd.op_code == 0); in gatt_sr_cmd_empty() 107 return (channel->server_outstanding_cmd_.op_code == 0); in gatt_sr_cmd_empty() 285 uint8_t op_code, tGATT_STATUS status, in gatt_sr_process_app_rsp() argument 295 if ((op_code == GATT_REQ_READ_MULTI) || in gatt_sr_process_app_rsp() [all …]
|
D | att_protocol.cc | 54 static BT_HDR* attp_build_mtu_cmd(uint8_t op_code, uint16_t rx_mtu) { in attp_build_mtu_cmd() argument 60 UINT8_TO_STREAM(p, op_code); in attp_build_mtu_cmd() 77 static BT_HDR* attp_build_exec_write_cmd(uint8_t op_code, uint8_t flag) { in attp_build_exec_write_cmd() argument 86 UINT8_TO_STREAM(p, op_code); in attp_build_exec_write_cmd() 88 if (op_code == GATT_REQ_EXEC_WRITE) { in attp_build_exec_write_cmd() 133 static BT_HDR* attp_build_browse_cmd(uint8_t op_code, uint16_t s_hdl, in attp_build_browse_cmd() argument 146 UINT8_TO_STREAM(p, op_code); in attp_build_browse_cmd() 198 static BT_HDR* attp_build_read_multi_cmd(uint8_t op_code, uint16_t payload_size, in attp_build_read_multi_cmd() argument 209 UINT8_TO_STREAM(p, op_code); in attp_build_read_multi_cmd() 227 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 | 51 tGATT_TCB& tcb, uint16_t cid, uint8_t op_code, uint16_t handle, 273 tGATT_TCB& tcb, uint16_t cid, tGATT_SVC_DB* p_db, uint8_t op_code, in gatts_db_read_attr_value_by_type() argument 295 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 549 __func__, op_code, handle, offset, len, key_size); in gatts_write_attr_perm_check() 562 if ((op_code == GATT_CMD_WRITE || op_code == GATT_REQ_WRITE) && in gatts_write_attr_perm_check() 582 if ((op_code == GATT_SIGN_CMD_WRITE) && !(perm & GATT_WRITE_SIGNED_PERM)) { in gatts_write_attr_perm_check() [all …]
|
D | gatt_int.h | 211 uint8_t op_code; member 231 uint8_t op_code; member 499 uint8_t op_code, tGATT_CL_MSG* p_msg); 500 extern BT_HDR* attp_build_sr_msg(tGATT_TCB& tcb, uint8_t op_code, 508 extern uint8_t* gatt_dbg_op_name(uint8_t op_code); 530 uint8_t err_code, uint8_t op_code, 561 uint32_t trans_id, uint8_t op_code, 566 uint8_t op_code, uint16_t len, 569 uint8_t op_code, tGATTS_DATA* p_req_data); 571 uint8_t op_code, uint16_t handle); [all …]
|
D | gatt_main.cc | 860 uint8_t op_code, pseudo_op_code; in gatt_data_process() local 868 STREAM_TO_UINT8(op_code, p); in gatt_data_process() 871 pseudo_op_code = op_code & (~GATT_WRITE_CMD_MASK); in gatt_data_process() 877 << ": ATT - Rcvd L2CAP data, unknown cmd: " << loghex(op_code); in gatt_data_process() 878 gatt_send_error_rsp(tcb, cid, GATT_REQ_NOT_SUPPORTED, op_code, 0, false); in gatt_data_process() 882 if (op_code == GATT_SIGN_CMD_WRITE) { in gatt_data_process() 886 if ((op_code % 2) == 0) in gatt_data_process() 887 gatt_server_handle_client_req(tcb, cid, op_code, msg_len, p); in gatt_data_process() 889 gatt_client_handle_server_rsp(tcb, cid, op_code, msg_len, p); in gatt_data_process()
|
D | gatt_utils.cc | 816 uint8_t op_code, uint16_t handle, bool deq) { in gatt_send_error_rsp() argument 821 msg.error.cmd_code = op_code; in gatt_send_error_rsp() 1487 uint8_t op_code, BT_HDR* p_buf) { in gatt_cmd_enq() argument 1490 cmd.op_code = op_code; in gatt_cmd_enq() 1522 *p_op_code = cmd.op_code; in gatt_cmd_dequeue() 1539 uint8_t op_code, uint16_t handle, uint16_t len, in gatt_send_write_msg() argument 1548 return attp_send_cl_msg(tcb, p_clcb, op_code, &msg); in gatt_send_write_msg() 1714 uint8_t* gatt_dbg_op_name(uint8_t op_code) { in gatt_dbg_op_name() argument 1715 uint8_t pseduo_op_code_idx = op_code & (~GATT_WRITE_CMD_MASK); in gatt_dbg_op_name() 1717 if (op_code == GATT_CMD_WRITE) { in gatt_dbg_op_name() [all …]
|
D | gatt_auth.cc | 103 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/gd/hci/ |
D | hci_packets.pdl | 663 op_code : OpCode, 877 packet Inquiry : DiscoveryCommand (op_code = INQUIRY) { 894 packet InquiryCancel : DiscoveryCommand (op_code = INQUIRY_CANCEL) { 909 packet PeriodicInquiryMode : DiscoveryCommand (op_code = PERIODIC_INQUIRY_MODE) { 929 packet ExitPeriodicInquiryMode : DiscoveryCommand (op_code = EXIT_PERIODIC_INQUIRY_MODE) { 960 packet CreateConnection : ConnectionManagementCommand (op_code = CREATE_CONNECTION) { 983 packet Disconnect : AclCommand (op_code = DISCONNECT) { 992 packet AddScoConnection : ConnectionManagementCommand (op_code = ADD_SCO_CONNECTION) { 1001 packet CreateConnectionCancel : ConnectionManagementCommand (op_code = CREATE_CONNECTION_CANCEL) { 1015 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() 149 OpCode op_code = response_view.GetCommandOpCode(); in on_command_status() local 155 op_code, in on_command_status() 156 OpCodeText(op_code).c_str()); in on_command_status() 170 OpCode op_code = response_view.GetCommandOpCode(); in handle_command_response() local 171 if (op_code == OpCode::NONE) { in handle_command_response() 177 …ommand_queue_.empty(), "Unexpected %s event with OpCode 0x%02hx (%s)", logging_id.c_str(), op_code, in handle_command_response() 178 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() 726 OpCode op_code = command_view->GetOpCode(); in log_classic_pairing_command_status() local [all …]
|
D | le_address_manager.cc | 554 auto op_code = view.GetCommandOpCode(); in on_command_complete() local 558 LOG_ERROR("Received %s complete with invalid packet", hci::OpCodeText(op_code).c_str()); in on_command_complete() 565 hci::OpCodeText(op_code).c_str(), in on_command_complete() 575 auto op_code = view.GetCommandOpCode(); in OnCommandComplete() local 576 LOG_INFO("Received command complete with op_code %s", OpCodeText(op_code).c_str()); in OnCommandComplete() 578 switch (op_code) { in OnCommandComplete() 634 LOG_ERROR("Received UNSUPPORTED command %s complete", hci::OpCodeText(op_code).c_str()); in OnCommandComplete()
|
D | le_scanning_manager_test.cc | 115 bool IsSupported(OpCode op_code) const override { in IsSupported() 116 return supported_opcodes_.count(op_code) == 1; in IsSupported() 119 void AddSupported(OpCode op_code) { in AddSupported() argument 120 supported_opcodes_.insert(op_code); in AddSupported()
|
/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 | 144 [[maybe_unused]] hci::CommandCompleteView ReturnCommandComplete(hci::OpCode op_code, hci::ErrorCode… in ReturnCommandComplete() argument 146 …auto builder = hci::CommandCompleteBuilder::Create(uint8_t{1}, op_code, std::make_unique<RawBuilde… in ReturnCommandComplete() 151 [[maybe_unused]] hci::CommandStatusView ReturnCommandStatus(hci::OpCode op_code, hci::ErrorCode err… in ReturnCommandStatus() argument 154 hci::ErrorCode::SUCCESS, uint8_t{1}, op_code, std::make_unique<RawBuilder>(success_vector)); in ReturnCommandStatus() 177 bool IsSupported(OpCode op_code) const override { in IsSupported() 179 return supported_opcodes_.count(op_code) == 1; in IsSupported() 182 void AddSupported(OpCode op_code) { in AddSupported() argument 184 supported_opcodes_.insert(op_code); in AddSupported() 318 CommandView GetCommand(OpCode op_code) { in GetCommand() argument 331 …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 | 164 .op_code = GATTC_OPTYPE_READ, in TEST_F() 199 .op_code = GATTC_OPTYPE_WRITE, in TEST_F() 231 .op_code = GATTC_OPTYPE_CONFIG, in TEST_F() 261 .op_code = GATTC_OPTYPE_EXE_WRITE, in TEST_F() 293 .op_code = GATTC_OPTYPE_READ, in TEST_F()
|
/packages/modules/Bluetooth/system/stack/test/gatt/ |
D | mock_gatt_utils_ref.cc | 36 BT_HDR* attp_build_sr_msg(tGATT_TCB& tcb, uint8_t op_code, tGATT_SR_MSG* p_msg, in attp_build_sr_msg() argument 44 uint8_t op_code, tGATT_CL_MSG* p_msg) { in attp_send_cl_msg() argument 66 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 | 70 BT_HDR* attp_build_sr_msg(tGATT_TCB& tcb, uint8_t op_code, tGATT_SR_MSG* p_msg, in attp_build_sr_msg() argument 72 test_state_.attp_build_sr_msg.op_code_ = op_code; in attp_build_sr_msg() 79 uint8_t op_code, tGATT_CL_MSG* p_msg) { in attp_send_cl_msg() argument 90 tGATT_TCB& tcb, uint16_t cid, tGATT_SVC_DB* p_db, uint8_t op_code, in gatts_db_read_attr_value_by_type() argument 109 tGATT_TCB& tcb, uint16_t cid, tGATT_SVC_DB* p_db, uint8_t op_code, in gatts_read_attr_value_by_handle() argument 115 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/main/shim/ |
D | hci_layer.cc | 368 auto op_code = static_cast<const bluetooth::hci::OpCode>(command_op_code); in transmit_command() local 372 bluetooth::hci::CommandBuilder::Create(op_code, std::move(payload)); in transmit_command() 374 LOG_DEBUG("Sending command %s", bluetooth::hci::OpCodeText(op_code).c_str()); in transmit_command() 376 if (bluetooth::hci::Checker::IsCommandStatusOpcode(op_code)) { in transmit_command() 634 auto op_code = static_cast<const bluetooth::hci::OpCode>(command_op_code); in transmit_command() local 636 LOG_DEBUG("Sending command %s", bluetooth::hci::OpCodeText(op_code).c_str()); in transmit_command() 638 if (bluetooth::hci::Checker::IsCommandStatusOpcode(op_code)) { in transmit_command()
|
/packages/modules/Bluetooth/system/profile/avrcp/ |
D | connection_handler.cc | 563 uint16_t op_code = (uint16_t)(::bluetooth::Packet::Specialize<Packet>(packet)->GetOpcode()); in SendMessage() local 564 if (!browse && (op_code == (uint16_t)(Opcode::VENDOR))) { in SendMessage() 565 pkt->event = op_code; in SendMessage()
|
/packages/modules/Bluetooth/system/stack/smp/ |
D | smp_keys.cc | 217 void smp_concatenate_local(tSMP_CB* p_cb, uint8_t** p_data, uint8_t op_code) { in smp_concatenate_local() argument 221 UINT8_TO_STREAM(p, op_code); in smp_concatenate_local() 236 void smp_concatenate_peer(tSMP_CB* p_cb, uint8_t** p_data, uint8_t op_code) { in smp_concatenate_peer() argument 240 UINT8_TO_STREAM(p, op_code); in smp_concatenate_peer()
|
/packages/modules/Bluetooth/system/stack/include/ |
D | ble_hci_link_interface.h | 38 uint16_t op_code,
|
/packages/modules/Bluetooth/system/stack/btm/ |
D | btm_ble_privacy.cc | 69 uint8_t op_code) { in btm_ble_enq_resolving_list_pending() argument 73 p_q->resolve_q_action[p_q->q_next] = op_code; in btm_ble_enq_resolving_list_pending()
|
/packages/modules/Bluetooth/system/blueberry/tests/gd/hci/ |
D | controller_test.py | 54 …controller_facade.OpCodeMsg(op_code=int(hci_packets.OpCode.LE_SET_EXTENDED_ADVERTISING_PARAMETERS)…
|