Home
last modified time | relevance | path

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

/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.h204 uint8_t op_code; member
223 uint8_t op_code; member
421 uint8_t op_code, tGATT_CL_MSG* p_msg);
422 extern BT_HDR* attp_build_sr_msg(tGATT_TCB& tcb, uint8_t op_code,
428 extern uint8_t* gatt_dbg_op_name(uint8_t op_code);
446 uint8_t op_code, uint16_t handle,
477 uint32_t trans_id, uint8_t op_code,
480 extern void gatt_server_handle_client_req(tGATT_TCB& p_tcb, uint8_t op_code,
483 uint8_t op_code, tGATTS_DATA* p_req_data);
484 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.cc852 uint8_t op_code, pseudo_op_code; in gatt_data_process() local
860 STREAM_TO_UINT8(op_code, p); in gatt_data_process()
863 pseudo_op_code = op_code & (~GATT_WRITE_CMD_MASK); in gatt_data_process()
869 << ": ATT - Rcvd L2CAP data, unknown cmd: " << loghex(op_code); in gatt_data_process()
870 gatt_send_error_rsp(tcb, GATT_REQ_NOT_SUPPORTED, op_code, 0, false); in gatt_data_process()
874 if (op_code == GATT_SIGN_CMD_WRITE) { in gatt_data_process()
878 if ((op_code % 2) == 0) in gatt_data_process()
879 gatt_server_handle_client_req(tcb, op_code, msg_len, p); in gatt_data_process()
881 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()
Dgatt_attr.cc48 uint8_t op_code, tGATTS_DATA* p_data);
Dgatt_api.cc537 << " waiting for op_code=" << loghex(p_tcb->sr_cmd.op_code); in GATTS_SendRsp()
542 p_tcb->sr_cmd.op_code, status, p_msg); in GATTS_SendRsp()
/system/bt/stack/mcap/
Dmca_cact.cc100 p_msg->op_code); in mca_ccb_snd_req()
103 (p_msg->op_code == MCA_OP_MDL_ABORT_REQ)) { in mca_ccb_snd_req()
123 *p++ = p_msg->op_code; in mca_ccb_snd_req()
125 if (p_msg->op_code == MCA_OP_MDL_CREATE_REQ) { in mca_ccb_snd_req()
158 MCA_TRACE_DEBUG("%s cong=%d req=%d", __func__, p_ccb->cong, p_msg->op_code); in mca_ccb_snd_rsp()
163 *p++ = p_msg->op_code; in mca_ccb_snd_rsp()
169 if (p_msg->op_code == MCA_OP_MDL_CREATE_RSP) { in mca_ccb_snd_rsp()
173 if (p_msg->op_code == MCA_OP_MDL_CREATE_RSP || in mca_ccb_snd_rsp()
174 p_msg->op_code == MCA_OP_MDL_RECONNECT_RSP) { in mca_ccb_snd_rsp()
254 evt_data.hdr.op_code = *p++; in mca_ccb_hdl_req()
[all …]
/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/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.h106 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()
Dbtm_ble.cc1144 void btm_ble_rand_enc_complete(uint8_t* p, uint16_t op_code, in btm_ble_rand_enc_complete() argument
1159 params.opcode = op_code; in btm_ble_rand_enc_complete()
1161 if (op_code == HCI_BLE_RAND) in btm_ble_rand_enc_complete()
/system/bt/stack/srvc/
Dsrvc_eng.cc30 uint8_t op_code, tGATTS_DATA* p_data);
/system/bt/bta/gatt/
Dbta_gattc_int.h143 uint8_t op_code; member
Dbta_gattc_act.cc917 uint8_t op = (uint8_t)p_data->op_cmpl.op_code; in bta_gattc_op_cmpl()
1321 p_buf->op_code = op; in bta_gattc_cmpl_sendmsg()
/system/nfc/src/nfc/include/
Drw_int.h157 uint8_t op_code; /* Command sent */ member