Lines Matching defs:op_code
74 UINT8 op_code = disc_type_to_att_opcode[p_clcb->op_subtype];
100 if (attp_send_cl_msg(p_clcb->p_tcb, p_clcb->clcb_idx, op_code, &cl_req) != GATT_SUCCESS)
123 UINT8 op_code = 0;
131 op_code = GATT_REQ_READ_BY_TYPE;
147 op_code = GATT_REQ_READ;
159 op_code = GATT_REQ_READ_BLOB;
167 op_code = GATT_REQ_READ_BLOB;
173 op_code = GATT_REQ_READ_MULTI;
178 op_code = GATT_REQ_READ;
188 if ( op_code == 0 ||
189 (rt = attp_send_cl_msg(p_tcb, p_clcb->clcb_idx, op_code, &msg)) != GATT_SUCCESS)
207 UINT8 rt = GATT_SUCCESS, op_code;
216 op_code = (sec_act == GATT_SEC_SIGN_DATA) ? GATT_SIGN_CMD_WRITE : GATT_CMD_WRITE;
219 op_code,
263 GATT_TRACE_ERROR1("gatt_act_write() failed op_code=0x%x", op_code);
436 void gatt_process_read_info_rsp(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 op_code,
523 void gatt_process_error_rsp(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 op_code,
573 void gatt_process_prep_write_rsp (tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 op_code,
579 GATT_TRACE_ERROR2("value resp op_code = %s len = %d", gatt_dbg_op_name(op_code), len);
614 void gatt_process_notification(tGATT_TCB *p_tcb, UINT8 op_code,
622 event = (op_code == GATT_HANDLE_VALUE_NOTIF) ? GATTC_OPTYPE_NOTIFICATION : GATTC_OPTYPE_INDICATION;
633 if (op_code == GATT_HANDLE_VALUE_IND)
694 void gatt_process_read_by_type_rsp (tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 op_code,
712 GATT_TRACE_ERROR4("gatt_process_read_by_type_rsp: Discard response op_code=%d vale_len=%d > (MTU-2=%d or msg_len-1=%d)",
713 op_code, value_len, (p_tcb->payload_size - 2), (len-1));
718 if (op_code == GATT_RSP_READ_BY_GRP_TYPE)
744 op_code == GATT_RSP_READ_BY_GRP_TYPE)
889 void gatt_process_read_rsp(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 op_code,
977 void gatt_process_handle_rsp(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 op_code, UINT16 len, UINT8 *p_data)
985 if (op_code == GATT_RSP_WRITE)
1057 if (p_cmd->op_code != GATT_CMD_WRITE && p_cmd->op_code != GATT_SIGN_CMD_WRITE)
1096 void gatt_client_handle_server_rsp (tGATT_TCB *p_tcb, UINT8 op_code,
1102 if (op_code != GATT_HANDLE_VALUE_IND && op_code != GATT_HANDLE_VALUE_NOTIF)
1108 if (p_clcb == NULL || (rsp_code != op_code && op_code != GATT_RSP_ERROR))
1111 Request(%02x) Ignored", op_code, rsp_code);
1119 /* The message has to be smaller than the agreed MTU, len does not count op_code */
1123 if (op_code != GATT_HANDLE_VALUE_NOTIF &&
1124 op_code != GATT_HANDLE_VALUE_IND)
1129 switch (op_code)
1132 gatt_process_error_rsp(p_tcb, p_clcb, op_code, len, p_data);
1140 gatt_process_read_info_rsp(p_tcb, p_clcb, op_code, len, p_data);
1145 gatt_process_read_by_type_rsp(p_tcb, p_clcb, op_code, len, p_data);
1151 gatt_process_read_rsp(p_tcb, p_clcb, op_code, len, p_data);
1159 gatt_process_handle_rsp(p_tcb, p_clcb, op_code, len, p_data);
1163 gatt_process_prep_write_rsp(p_tcb, p_clcb, op_code, len, p_data);
1172 gatt_process_notification(p_tcb, op_code, len, p_data);
1176 GATT_TRACE_ERROR1("Unknown opcode = %d", op_code);
1181 if (op_code != GATT_HANDLE_VALUE_IND && op_code != GATT_HANDLE_VALUE_NOTIF)