Home
last modified time | relevance | path

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

12

/system/nfc/src/nfc/nci/
Dnci_hrcv.cc54 uint8_t *pp, len, op_code; in nci_proc_core_rsp() local
61 NCI_MSG_PRS_HDR1(pp, op_code); in nci_proc_core_rsp()
63 << StringPrintf("nci_proc_core_rsp opcode:0x%x", op_code); in nci_proc_core_rsp()
67 switch (op_code) { in nci_proc_core_rsp()
96 LOG(ERROR) << StringPrintf("unknown opcode:0x%x", op_code); in nci_proc_core_rsp()
114 uint8_t *pp, len, op_code; in nci_proc_core_ntf() local
126 NCI_MSG_PRS_HDR1(pp, op_code); in nci_proc_core_ntf()
128 << StringPrintf("nci_proc_core_ntf opcode:0x%x", op_code); in nci_proc_core_ntf()
132 switch (op_code) { in nci_proc_core_ntf()
154 LOG(ERROR) << StringPrintf("unknown opcode:0x%x", op_code); in nci_proc_core_ntf()
[all …]
/system/bt/stack/gatt/
Dgatt_sr.cc50 uint32_t gatt_sr_enqueue_cmd(tGATT_TCB& tcb, uint8_t op_code, uint16_t handle) { in gatt_sr_enqueue_cmd() argument
54 if ((p_cmd->op_code == 0) || in gatt_sr_enqueue_cmd()
55 (op_code == GATT_HANDLE_VALUE_CONF)) /* no pending request */ in gatt_sr_enqueue_cmd()
57 if (op_code == GATT_CMD_WRITE || op_code == GATT_SIGN_CMD_WRITE || in gatt_sr_enqueue_cmd()
58 op_code == GATT_REQ_MTU || op_code == GATT_HANDLE_VALUE_CONF) { in gatt_sr_enqueue_cmd()
62 p_cmd->op_code = op_code; in gatt_sr_enqueue_cmd()
82 bool gatt_sr_cmd_empty(tGATT_TCB& tcb) { return (tcb.sr_cmd.op_code == 0); } in gatt_sr_cmd_empty()
231 uint8_t op_code, tGATT_STATUS status, in gatt_sr_process_app_rsp() argument
239 if (op_code == GATT_REQ_READ_MULTI) { in gatt_sr_process_app_rsp()
244 if (op_code == GATT_REQ_PREPARE_WRITE && status == GATT_SUCCESS) in gatt_sr_process_app_rsp()
[all …]
Datt_protocol.cc48 BT_HDR* attp_build_mtu_cmd(uint8_t op_code, uint16_t rx_mtu) { in attp_build_mtu_cmd() argument
54 UINT8_TO_STREAM(p, op_code); in attp_build_mtu_cmd()
71 BT_HDR* attp_build_exec_write_cmd(uint8_t op_code, uint8_t flag) { in attp_build_exec_write_cmd() argument
80 UINT8_TO_STREAM(p, op_code); in attp_build_exec_write_cmd()
82 if (op_code == GATT_REQ_EXEC_WRITE) { in attp_build_exec_write_cmd()
127 BT_HDR* attp_build_browse_cmd(uint8_t op_code, uint16_t s_hdl, uint16_t e_hdl, in attp_build_browse_cmd() argument
139 UINT8_TO_STREAM(p, op_code); in attp_build_browse_cmd()
219 BT_HDR* attp_build_handle_cmd(uint8_t op_code, uint16_t handle, in attp_build_handle_cmd() argument
227 UINT8_TO_STREAM(p, op_code); in attp_build_handle_cmd()
233 if (op_code == GATT_REQ_READ_BLOB) { in attp_build_handle_cmd()
[all …]
Dgatt_cl.cc82 uint8_t op_code = disc_type_to_att_opcode[p_clcb->op_subtype]; in gatt_act_discovery() local
124 tGATT_STATUS st = attp_send_cl_msg(*p_clcb->p_tcb, p_clcb, op_code, &cl_req); in gatt_act_discovery()
143 uint8_t op_code = 0; in gatt_act_read() local
150 op_code = GATT_REQ_READ_BY_TYPE; in gatt_act_read()
163 op_code = GATT_REQ_READ; in gatt_act_read()
173 op_code = GATT_REQ_READ_BLOB; in gatt_act_read()
181 op_code = GATT_REQ_READ_BLOB; in gatt_act_read()
187 op_code = GATT_REQ_READ_MULTI; in gatt_act_read()
192 op_code = GATT_REQ_READ; in gatt_act_read()
202 if (op_code != 0) rt = attp_send_cl_msg(tcb, p_clcb, op_code, &msg); in gatt_act_read()
[all …]
Dgatt_db.cc46 tGATT_TCB& tcb, uint8_t op_code, uint16_t handle, uint16_t offset,
255 tGATT_TCB& tcb, tGATT_SVC_DB* p_db, uint8_t op_code, BT_HDR* p_rsp, in gatts_db_read_attr_value_by_type() argument
277 status = gatts_send_app_read_request(tcb, op_code, attr.handle, 0, in gatts_db_read_attr_value_by_type()
443 tGATT_TCB& tcb, tGATT_SVC_DB* p_db, uint8_t op_code, uint16_t handle, in gatts_read_attr_value_by_handle() argument
451 (bool)(op_code == GATT_REQ_READ_BLOB), in gatts_read_attr_value_by_handle()
455 status = gatts_send_app_read_request(tcb, op_code, p_attr->handle, offset, in gatts_read_attr_value_by_handle()
508 tGATT_STATUS gatts_write_attr_perm_check(tGATT_SVC_DB* p_db, uint8_t op_code, in gatts_write_attr_perm_check() argument
516 __func__, op_code, handle, offset, len, sec_flag, key_size); in gatts_write_attr_perm_check()
529 if ((op_code == GATT_CMD_WRITE || op_code == GATT_REQ_WRITE) && in gatts_write_attr_perm_check()
549 if ((op_code == GATT_SIGN_CMD_WRITE) && !(perm & GATT_WRITE_SIGNED_PERM)) { in gatts_write_attr_perm_check()
[all …]
Dgatt_int.h205 uint8_t op_code; member
224 uint8_t op_code; member
438 uint8_t op_code, tGATT_CL_MSG* p_msg);
439 extern BT_HDR* attp_build_sr_msg(tGATT_TCB& tcb, uint8_t op_code,
445 extern uint8_t* gatt_dbg_op_name(uint8_t op_code);
463 uint8_t op_code, uint16_t handle,
494 uint32_t trans_id, uint8_t op_code,
497 extern void gatt_server_handle_client_req(tGATT_TCB& p_tcb, uint8_t op_code,
500 uint8_t op_code, tGATTS_DATA* p_req_data);
501 extern uint32_t gatt_sr_enqueue_cmd(tGATT_TCB& tcb, uint8_t op_code,
[all …]
Dgatt_utils.cc735 uint8_t op_code, uint16_t handle, bool deq) { in gatt_send_error_rsp() argument
740 msg.error.cmd_code = op_code; in gatt_send_error_rsp()
1130 uint8_t op_code, BT_HDR* p_buf) { in gatt_cmd_enq() argument
1133 cmd.op_code = op_code; in gatt_cmd_enq()
1151 *p_op_code = cmd.op_code; in gatt_cmd_dequeue()
1158 uint8_t gatt_send_write_msg(tGATT_TCB& tcb, tGATT_CLCB* p_clcb, uint8_t op_code, in gatt_send_write_msg() argument
1168 return attp_send_cl_msg(tcb, p_clcb, op_code, &msg); in gatt_send_write_msg()
1298 uint8_t* gatt_dbg_op_name(uint8_t op_code) { in gatt_dbg_op_name() argument
1299 uint8_t pseduo_op_code_idx = op_code & (~GATT_WRITE_CMD_MASK); in gatt_dbg_op_name()
1301 if (op_code == GATT_CMD_WRITE) { in gatt_dbg_op_name()
[all …]
Dgatt_main.cc848 uint8_t op_code, pseudo_op_code; in gatt_data_process() local
856 STREAM_TO_UINT8(op_code, p); in gatt_data_process()
859 pseudo_op_code = op_code & (~GATT_WRITE_CMD_MASK); in gatt_data_process()
865 << ": ATT - Rcvd L2CAP data, unknown cmd: " << loghex(op_code); in gatt_data_process()
866 gatt_send_error_rsp(tcb, GATT_REQ_NOT_SUPPORTED, op_code, 0, false); in gatt_data_process()
870 if (op_code == GATT_SIGN_CMD_WRITE) { in gatt_data_process()
874 if ((op_code % 2) == 0) in gatt_data_process()
875 gatt_server_handle_client_req(tcb, op_code, msg_len, p); in gatt_data_process()
877 gatt_client_handle_server_rsp(tcb, op_code, msg_len, p); in gatt_data_process()
Dgatt_auth.cc98 uint8_t op_code; in gatt_verify_signature() local
117 STREAM_TO_UINT8(op_code, p_orig); in gatt_verify_signature()
118 gatt_server_handle_client_req(tcb, op_code, (uint16_t)(p_buf->len - 1), in gatt_verify_signature()
/system/bt/gd/hci/
Dhci_packets.pdl612 op_code : OpCode,
813 packet Inquiry : DiscoveryCommand (op_code = INQUIRY) {
822 packet InquiryCancel : DiscoveryCommand (op_code = INQUIRY_CANCEL) {
829 packet PeriodicInquiryMode : DiscoveryCommand (op_code = PERIODIC_INQUIRY_MODE) {
841 packet ExitPeriodicInquiryMode : DiscoveryCommand (op_code = EXIT_PERIODIC_INQUIRY_MODE) {
864 packet CreateConnection : ConnectionManagementCommand (op_code = CREATE_CONNECTION) {
887 packet Disconnect : ConnectionManagementCommand (op_code = DISCONNECT) {
896 packet CreateConnectionCancel : ConnectionManagementCommand (op_code = CREATE_CONNECTION_CANCEL) {
910 packet AcceptConnectionRequest : ConnectionManagementCommand (op_code = ACCEPT_CONNECTION_REQUEST) {
924 packet RejectConnectionRequest : ConnectionManagementCommand (op_code = REJECT_CONNECTION_REQUEST) {
[all …]
Dhci_layer.cc51 static void on_hci_timeout(OpCode op_code) { in on_hci_timeout() argument
52 ASSERT_LOG(false, "Timed out waiting for 0x%02hx (%s)", op_code, OpCodeText(op_code).c_str()); in on_hci_timeout()
126 OpCode op_code = response_view.GetCommandOpCode(); in handle_command_response() local
127 if (op_code == OpCode::NONE) { in handle_command_response()
133 …ommand_queue_.empty(), "Unexpected %s event with OpCode 0x%02hx (%s)", logging_id.c_str(), op_code, in handle_command_response()
134 OpCodeText(op_code).c_str()); in handle_command_response()
135 …ASSERT_LOG(waiting_command_ == op_code, "Waiting for 0x%02hx (%s), got 0x%02hx (%s)", waiting_comm… in handle_command_response()
136 OpCodeText(waiting_command_).c_str(), op_code, OpCodeText(op_code).c_str()); in handle_command_response()
138 op_code, OpCodeText(op_code).c_str(), logging_id.c_str()); in handle_command_response()
164 OpCode op_code = cmd_view.GetOpCode(); in send_next_command() local
[all …]
Dle_advertising_manager_test.cc53 bool IsSupported(OpCode op_code) const override { in IsSupported()
54 return supported_opcodes_.count(op_code) == 1; in IsSupported()
57 void AddSupported(OpCode op_code) { in AddSupported() argument
58 supported_opcodes_.insert(op_code); in AddSupported()
114 std::future<size_t> GetCommandFuture(OpCode op_code = OpCode::NONE) { in GetCommandFuture() argument
116 command_op_code_ = op_code; in GetCommandFuture()
129 ConnectionManagementCommandView GetCommandPacket(OpCode op_code) { in GetCommandPacket() argument
138 EXPECT_EQ(command.GetOpCode(), op_code); in GetCommandPacket()
Dle_scanning_manager_test.cc52 bool IsSupported(OpCode op_code) const override { in IsSupported()
53 return supported_opcodes_.count(op_code) == 1; in IsSupported()
56 void AddSupported(OpCode op_code) { in AddSupported() argument
57 supported_opcodes_.insert(op_code); in AddSupported()
107 ConnectionManagementCommandView GetCommandPacket(OpCode op_code) { in GetCommandPacket() argument
111 EXPECT_EQ(command.GetOpCode(), op_code); in GetCommandPacket()
Dcontroller.h110 virtual bool IsSupported(OpCode op_code) const;
Dle_address_manager.cc379 std::string op_code = OpCodeText(view.GetCommandOpCode()); in OnCommandComplete() local
380 LOG_DEBUG("Received command complete with op_code %s", op_code.c_str()); in OnCommandComplete()
Dacl_manager_test.cc153 ConnectionManagementCommandView GetCommandPacket(OpCode op_code) { in GetCommandPacket() argument
165 EXPECT_EQ(command.GetOpCode(), op_code); in GetCommandPacket()
170 ConnectionManagementCommandView GetLastCommandPacket(OpCode op_code) { in GetLastCommandPacket() argument
185 EXPECT_EQ(command.GetOpCode(), op_code); in GetLastCommandPacket()
524 OpCode op_code = command.GetOpCode(); in TEST_F() local
525 EXPECT_EQ(op_code, OpCode::REJECT_CONNECTION_REQUEST); in TEST_F()
Dcontroller.cc448 bool is_supported(OpCode op_code) { in is_supported()
449 switch (op_code) { in is_supported()
925 bool Controller::IsSupported(bluetooth::hci::OpCode op_code) const { in IsSupported()
926 return impl_->is_supported(op_code); in IsSupported()
Dle_address_manager_test.cc71 CommandPacketView GetCommandPacket(OpCode op_code) { in GetCommandPacket() argument
82 EXPECT_EQ(command_packet_view.GetOpCode(), op_code); in GetCommandPacket()
/system/bt/gd/hci/acl_manager/
Devent_checkers.h32 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()
/system/bt/main/shim/
Dhci_layer.cc49 bool IsCommandStatusOpcode(bluetooth::hci::OpCode op_code) { in IsCommandStatusOpcode() argument
50 switch (op_code) { in IsCommandStatusOpcode()
151 const bluetooth::hci::OpCode op_code = in transmit_command() local
156 bluetooth::hci::CommandPacketBuilder::Create(op_code, std::move(payload)); in transmit_command()
158 if (IsCommandStatusOpcode(op_code)) { in transmit_command()
/system/nfc/src/nfc/tags/
Drw_t1t.cc96 ((p_t1t->prev_cmd_rsp_info.op_code == T1T_CMD_RID) || in rw_t1t_data_cback()
97 (p_t1t->prev_cmd_rsp_info.op_code == T1T_CMD_RALL) || in rw_t1t_data_cback()
103 p_t1t->prev_cmd_rsp_info.op_code, in rw_t1t_data_cback()
134 ((p_t1t->prev_cmd_rsp_info.op_code == T1T_CMD_RID) || in rw_t1t_data_cback()
135 (p_t1t->prev_cmd_rsp_info.op_code == T1T_CMD_RALL) || in rw_t1t_data_cback()
140 p_t1t->prev_cmd_rsp_info.op_code, in rw_t1t_data_cback()
180 p_t1t->prev_cmd_rsp_info.op_code = p_cmd_rsp_info->opcode; in rw_t1t_data_cback()
619 p_t1t->prev_cmd_rsp_info.op_code = p_cmd_rsp_info->opcode; in rw_t1t_process_error()
/system/bt/profile/avrcp/
Dconnection_handler.cc544 uint16_t op_code = (uint16_t)(::bluetooth::Packet::Specialize<Packet>(packet)->GetOpcode()); in SendMessage() local
545 if (!browse && (op_code == (uint16_t)(Opcode::VENDOR))) { in SendMessage()
546 pkt->event = op_code; in SendMessage()
/system/bt/stack/smp/
Dsmp_keys.cc236 void smp_concatenate_local(tSMP_CB* p_cb, uint8_t** p_data, uint8_t op_code) { in smp_concatenate_local() argument
240 UINT8_TO_STREAM(p, op_code); in smp_concatenate_local()
255 void smp_concatenate_peer(tSMP_CB* p_cb, uint8_t** p_data, uint8_t op_code) { in smp_concatenate_peer() argument
259 UINT8_TO_STREAM(p, op_code); in smp_concatenate_peer()
/system/bt/stack/btm/
Dbtm_ble_int.h103 extern void btm_ble_rand_enc_complete(uint8_t* p, uint16_t op_code,
Dbtm_ble_privacy.cc67 uint8_t op_code) { in btm_ble_enq_resolving_list_pending() argument
71 p_q->resolve_q_action[p_q->q_next] = op_code; in btm_ble_enq_resolving_list_pending()

12