Lines Matching refs:op_code
82 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()
204 if (op_code == 0 || (rt != GATT_SUCCESS && rt != GATT_CMD_STARTED)) { in gatt_act_read()
219 uint8_t op_code = (sec_act == GATT_SEC_SIGN_DATA) ? GATT_SIGN_CMD_WRITE in gatt_act_write() local
221 uint8_t rt = gatt_send_write_msg(tcb, p_clcb, op_code, attr.handle, in gatt_act_write()
226 "gatt_act_write() failed op_code=0x%x rt=%d", op_code, rt); in gatt_act_write()
418 UNUSED_ATTR uint8_t op_code, uint16_t len, in gatt_process_read_info_rsp() argument
507 UNUSED_ATTR uint8_t op_code, in gatt_process_error_rsp() argument
564 uint8_t op_code, uint16_t len, in gatt_process_prep_write_rsp() argument
573 gatt_dbg_op_name(op_code), len); in gatt_process_prep_write_rsp()
608 void gatt_process_notification(tGATT_TCB& tcb, uint8_t op_code, uint16_t len, in gatt_process_notification() argument
616 uint8_t event = (op_code == GATT_HANDLE_VALUE_NOTIF) in gatt_process_notification()
638 if (op_code == GATT_HANDLE_VALUE_IND) in gatt_process_notification()
700 uint8_t op_code, uint16_t len, in gatt_process_read_by_type_rsp() argument
728 op_code, value_len, (tcb.payload_size - 2), (len - 1)); in gatt_process_read_by_type_rsp()
733 if (op_code == GATT_RSP_READ_BY_GRP_TYPE) handle_len = 4; in gatt_process_read_by_type_rsp()
756 op_code == GATT_RSP_READ_BY_GRP_TYPE) { in gatt_process_read_by_type_rsp()
905 UNUSED_ATTR uint8_t op_code, uint16_t len, in gatt_process_read_rsp() argument
1048 if (cmd.op_code == GATT_CMD_WRITE || cmd.op_code == GATT_SIGN_CMD_WRITE) { in gatt_cl_send_next_cmd_inq()
1070 void gatt_client_handle_server_rsp(tGATT_TCB& tcb, uint8_t op_code, in gatt_client_handle_server_rsp() argument
1072 if (op_code == GATT_HANDLE_VALUE_IND || op_code == GATT_HANDLE_VALUE_NOTIF) { in gatt_client_handle_server_rsp()
1080 gatt_process_notification(tcb, op_code, len, p_data); in gatt_client_handle_server_rsp()
1087 if (!p_clcb || (rsp_code != op_code && op_code != GATT_RSP_ERROR)) { in gatt_client_handle_server_rsp()
1090 op_code, rsp_code); in gatt_client_handle_server_rsp()
1112 switch (op_code) { in gatt_client_handle_server_rsp()
1114 gatt_process_error_rsp(tcb, p_clcb, op_code, len, p_data); in gatt_client_handle_server_rsp()
1122 gatt_process_read_info_rsp(tcb, p_clcb, op_code, len, p_data); in gatt_client_handle_server_rsp()
1127 gatt_process_read_by_type_rsp(tcb, p_clcb, op_code, len, p_data); in gatt_client_handle_server_rsp()
1133 gatt_process_read_rsp(tcb, p_clcb, op_code, len, p_data); in gatt_client_handle_server_rsp()
1145 gatt_process_prep_write_rsp(tcb, p_clcb, op_code, len, p_data); in gatt_client_handle_server_rsp()
1153 LOG(ERROR) << __func__ << ": Unknown opcode = " << std::hex << op_code; in gatt_client_handle_server_rsp()