Home
last modified time | relevance | path

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

/system/bt/stack/gatt/
Dgatt_sr.c46 UINT32 gatt_sr_enqueue_cmd (tGATT_TCB *p_tcb, UINT8 op_code, UINT16 handle) in gatt_sr_enqueue_cmd() argument
51 if ( (p_cmd->op_code == 0) || in gatt_sr_enqueue_cmd()
52 (op_code == GATT_HANDLE_VALUE_CONF)) /* no pending request */ in gatt_sr_enqueue_cmd()
54 if (op_code == GATT_CMD_WRITE || in gatt_sr_enqueue_cmd()
55 op_code == GATT_SIGN_CMD_WRITE || in gatt_sr_enqueue_cmd()
56 op_code == GATT_REQ_MTU || in gatt_sr_enqueue_cmd()
57 op_code == GATT_HANDLE_VALUE_CONF) in gatt_sr_enqueue_cmd()
64 p_cmd->op_code = op_code; in gatt_sr_enqueue_cmd()
86 return(p_tcb->sr_cmd.op_code == 0); in gatt_sr_cmd_empty()
254 UINT32 trans_id, UINT8 op_code, in gatt_sr_process_app_rsp() argument
[all …]
Datt_protocol.c48 BT_HDR *attp_build_mtu_cmd(UINT8 op_code, UINT16 rx_mtu) in attp_build_mtu_cmd() argument
55 UINT8_TO_STREAM(p, op_code); in attp_build_mtu_cmd()
72 BT_HDR *attp_build_exec_write_cmd (UINT8 op_code, UINT8 flag) in attp_build_exec_write_cmd() argument
82 UINT8_TO_STREAM(p, op_code); in attp_build_exec_write_cmd()
84 if (op_code == GATT_REQ_EXEC_WRITE) { in attp_build_exec_write_cmd()
128 BT_HDR *attp_build_browse_cmd(UINT8 op_code, UINT16 s_hdl, UINT16 e_hdl, tBT_UUID uuid) in attp_build_browse_cmd() argument
138 UINT8_TO_STREAM(p, op_code); in attp_build_browse_cmd()
218 BT_HDR *attp_build_handle_cmd(UINT8 op_code, UINT16 handle, UINT16 offset) 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.c83 UINT8 op_code = disc_type_to_att_opcode[p_clcb->op_subtype]; in gatt_act_discovery() local
117 st = attp_send_cl_msg(p_clcb->p_tcb, p_clcb->clcb_idx, op_code, &cl_req); in gatt_act_discovery()
142 UINT8 op_code = 0; in gatt_act_read() local
150 op_code = GATT_REQ_READ_BY_TYPE; in gatt_act_read()
166 op_code = GATT_REQ_READ; in gatt_act_read()
178 op_code = GATT_REQ_READ_BLOB; in gatt_act_read()
186 op_code = GATT_REQ_READ_BLOB; in gatt_act_read()
192 op_code = GATT_REQ_READ_MULTI; in gatt_act_read()
197 op_code = GATT_REQ_READ; in gatt_act_read()
207 if (op_code != 0) in gatt_act_read()
[all …]
Dgatt_int.h268 UINT8 op_code; member
289 UINT8 op_code; member
554 extern tGATT_STATUS attp_send_cl_msg (tGATT_TCB *p_tcb, UINT16 clcb_idx, UINT8 op_code, tGATT_CL_MS…
555 extern BT_HDR *attp_build_sr_msg(tGATT_TCB *p_tcb, UINT8 op_code, tGATT_SR_MSG *p_msg);
560 extern UINT8 * gatt_dbg_op_name(UINT8 op_code);
573 extern tGATT_STATUS gatt_send_error_rsp(tGATT_TCB *p_tcb, UINT8 err_code, UINT8 op_code, UINT16 han…
618 …cess_app_rsp (tGATT_TCB *p_tcb, tGATT_IF gatt_if, UINT32 trans_id, UINT8 op_code, tGATT_STATUS sta…
619 extern void gatt_server_handle_client_req (tGATT_TCB *p_tcb, UINT8 op_code,
622 UINT8 op_code, tGATTS_DATA *p_req_data);
623 extern UINT32 gatt_sr_enqueue_cmd (tGATT_TCB *p_tcb, UINT8 op_code, UINT16 handle);
[all …]
Dgatt_db.c47 static tGATT_STATUS gatts_send_app_read_request(tGATT_TCB *p_tcb, UINT8 op_code,
323 UINT8 op_code, in gatts_db_read_attr_value_by_type() argument
376 … status = gatts_send_app_read_request(p_tcb, op_code, p_attr->handle, 0, trans_id); in gatts_db_read_attr_value_by_type()
629 UINT8 op_code, in gatts_read_attr_value_by_handle() argument
650 (BOOLEAN)(op_code == GATT_REQ_READ_BLOB), in gatts_read_attr_value_by_handle()
655 … status = gatts_send_app_read_request(p_tcb, op_code, p_attr->handle, offset, trans_id); in gatts_read_attr_value_by_handle()
731 tGATT_STATUS gatts_write_attr_perm_check (tGATT_SVC_DB *p_db, UINT8 op_code, in gatts_write_attr_perm_check() argument
742 op_code, handle, offset, len, sec_flag, key_size); in gatts_write_attr_perm_check()
762 if ((op_code == GATT_CMD_WRITE || op_code == GATT_REQ_WRITE) in gatts_write_attr_perm_check()
782 if ((op_code == GATT_SIGN_CMD_WRITE) && !(perm & GATT_WRITE_SIGNED_PERM)) in gatts_write_attr_perm_check()
[all …]
Dgatt_main.c1001 UINT8 op_code, pseudo_op_code; in gatt_data_process() local
1008 STREAM_TO_UINT8(op_code, p); in gatt_data_process()
1011 pseudo_op_code = op_code & (~GATT_WRITE_CMD_MASK); in gatt_data_process()
1015 if (op_code == GATT_SIGN_CMD_WRITE) in gatt_data_process()
1022 if ((op_code % 2) == 0) in gatt_data_process()
1023 gatt_server_handle_client_req (p_tcb, op_code, msg_len, p); in gatt_data_process()
1025 gatt_client_handle_server_rsp (p_tcb, op_code, msg_len, p); in gatt_data_process()
1030 GATT_TRACE_ERROR ("ATT - Rcvd L2CAP data, unknown cmd: 0x%x", op_code); in gatt_data_process()
Dgatt_auth.c96 UINT8 op_code; in gatt_verify_signature() local
111 STREAM_TO_UINT8(op_code, p_orig); in gatt_verify_signature()
112 gatt_server_handle_client_req (p_tcb, op_code, (UINT16)(p_buf->len - 1), p_orig); in gatt_verify_signature()
Dgatt_utils.c1493 tGATT_STATUS gatt_send_error_rsp (tGATT_TCB *p_tcb, UINT8 err_code, UINT8 op_code, in gatt_send_error_rsp() argument
1500 error.cmd_code = op_code; in gatt_send_error_rsp()
2068 BOOLEAN gatt_cmd_enq(tGATT_TCB *p_tcb, UINT16 clcb_idx, BOOLEAN to_send, UINT8 op_code, BT_HDR *p_b… in gatt_cmd_enq() argument
2073 p_cmd->op_code = op_code; in gatt_cmd_enq()
2106 *p_op_code = p_cmd->op_code; in gatt_cmd_dequeue()
2124 UINT8 gatt_send_write_msg (tGATT_TCB *p_tcb, UINT16 clcb_idx, UINT8 op_code, in gatt_send_write_msg() argument
2137 return attp_send_cl_msg(p_tcb, clcb_idx, op_code, &msg); in gatt_send_write_msg()
2314 UINT8 * gatt_dbg_op_name(UINT8 op_code) in gatt_dbg_op_name() argument
2316 UINT8 pseduo_op_code_idx = op_code & (~GATT_WRITE_CMD_MASK); in gatt_dbg_op_name()
2318 if (op_code == GATT_CMD_WRITE ) in gatt_dbg_op_name()
[all …]
Dgatt_attr.c43 static void gatt_request_cback(UINT16 conn_id, UINT32 trans_id, UINT8 op_code, tGATTS_DATA *p_data);
Dgatt_api.c739 conn_id, p_tcb->sr_cmd.op_code); in GATTS_SendRsp()
744 …cmd_sent = gatt_sr_process_app_rsp (p_tcb, gatt_if, trans_id, p_tcb->sr_cmd.op_code, status, p_ms… in GATTS_SendRsp()
/system/bt/stack/mcap/
Dmca_cact.c105 MCA_TRACE_DEBUG ("mca_ccb_snd_req cong=%d req=%d", p_ccb->cong, p_msg->op_code); in mca_ccb_snd_req()
107 if ((p_ccb->status == MCA_CCB_STAT_PENDING) && (p_msg->op_code == MCA_OP_MDL_ABORT_REQ)) in mca_ccb_snd_req()
129 *p++ = p_msg->op_code; in mca_ccb_snd_req()
131 if (p_msg->op_code == MCA_OP_MDL_CREATE_REQ) { in mca_ccb_snd_req()
169 MCA_TRACE_DEBUG("%s cong=%d req=%d", __func__, p_ccb->cong, p_msg->op_code); in mca_ccb_snd_rsp()
174 *p++ = p_msg->op_code; in mca_ccb_snd_rsp()
177 if (p_msg->op_code == MCA_OP_MDL_CREATE_RSP) { in mca_ccb_snd_rsp()
181 else if (p_msg->op_code == MCA_OP_MDL_RECONNECT_RSP) { in mca_ccb_snd_rsp()
271 evt_data.hdr.op_code = *p++; in mca_ccb_hdl_req()
273 reject_opcode = evt_data.hdr.op_code+1; in mca_ccb_hdl_req()
[all …]
Dmca_api.c466 p_evt_data->op_code = MCA_OP_MDL_CREATE_REQ; in MCA_CreateMdl()
515 … && (p_ccb->p_rx_msg->mdl_id == mdl_id) && (p_ccb->p_rx_msg->op_code == MCA_OP_MDL_CREATE_REQ)) in MCA_CreateMdlRsp()
540 evt_data.op_code = MCA_OP_MDL_CREATE_RSP; in MCA_CreateMdlRsp()
635 p_evt_data->op_code = MCA_OP_MDL_RECONNECT_REQ; in MCA_ReconnectMdl()
677 (p_ccb->p_rx_msg->op_code == MCA_OP_MDL_RECONNECT_REQ)) in MCA_ReconnectMdlRsp()
700 evt_data.op_code = MCA_OP_MDL_RECONNECT_RSP; in MCA_ReconnectMdlRsp()
799 p_evt_data->op_code = MCA_OP_MDL_ABORT_REQ; in MCA_Abort()
839 p_evt_data->op_code = MCA_OP_MDL_DELETE_REQ; in MCA_Delete()
Dmca_int.h45 UINT8 op_code; /* the request/response opcode */ member
/system/bt/stack/include/
Dmca_api.h130 UINT8 op_code; /* The op (request/response) code */ member
136 UINT8 op_code; /* The op (request/response) code */ member
143 UINT8 op_code; /* The op (request/response) code */ member
151 UINT8 op_code; /* The op (request/response) code */ member
/system/bt/stack/btm/
Dbtm_ble_privacy.c65 void btm_ble_enq_resolving_list_pending(BD_ADDR pseudo_bda, UINT8 op_code) in btm_ble_enq_resolving_list_pending() argument
70 p_q->resolve_q_action[p_q->q_next] = op_code; in btm_ble_enq_resolving_list_pending()
Dbtm_ble_int.h404 extern void btm_ble_rand_enc_complete (UINT8 *p, UINT16 op_code, tBTM_RAND_ENC_CB *p_enc_cplt_cback…
Dbtm_ble.c1028 void btm_ble_rand_enc_complete (UINT8 *p, UINT16 op_code, tBTM_RAND_ENC_CB *p_enc_cplt_cback) in btm_ble_rand_enc_complete() argument
1045 params.opcode = op_code; in btm_ble_rand_enc_complete()
1047 if (op_code == HCI_BLE_RAND) in btm_ble_rand_enc_complete()
/system/bt/stack/srvc/
Dsrvc_eng.c34 static void srvc_eng_s_request_cback (UINT16 conn_id, UINT32 trans_id, UINT8 op_code, tGATTS_DATA *…
/system/bt/stack/smp/
Dsmp_keys.c455 void smp_concatenate_local( tSMP_CB *p_cb, UINT8 **p_data, UINT8 op_code) in smp_concatenate_local() argument
460 UINT8_TO_STREAM(p, op_code); in smp_concatenate_local()
475 void smp_concatenate_peer( tSMP_CB *p_cb, UINT8 **p_data, UINT8 op_code) in smp_concatenate_peer() argument
480 UINT8_TO_STREAM(p, op_code); in smp_concatenate_peer()
/system/bt/bta/gatt/
Dbta_gattc_int.h159 UINT8 op_code; member
Dbta_gattc_act.c1366 UINT8 op = (UINT8)p_data->op_cmpl.op_code; in bta_gattc_op_cmpl()
1910 p_buf->op_code = op; in bta_gattc_cmpl_sendmsg()
/system/bt/stack/gap/
Dgap_ble.c43 static void gap_ble_s_attr_request_cback (UINT16 conn_id, UINT32 trans_id, tGATTS_REQ_TYPE op_code,…