Lines Matching full:op_code
83 UINT8 op_code = disc_type_to_att_opcode[p_clcb->op_subtype];
117 st = attp_send_cl_msg(p_clcb->p_tcb, p_clcb->clcb_idx, op_code, &cl_req);
142 UINT8 op_code = 0;
150 op_code = GATT_REQ_READ_BY_TYPE;
166 op_code = GATT_REQ_READ;
178 op_code = GATT_REQ_READ_BLOB;
186 op_code = GATT_REQ_READ_BLOB;
192 op_code = GATT_REQ_READ_MULTI;
197 op_code = GATT_REQ_READ;
207 if (op_code != 0)
208 rt = attp_send_cl_msg(p_tcb, p_clcb->clcb_idx, op_code, &msg);
210 if ( op_code == 0 || (rt != GATT_SUCCESS && rt != GATT_CMD_STARTED))
228 UINT8 rt = GATT_SUCCESS, op_code = 0;
237 op_code = (sec_act == GATT_SEC_SIGN_DATA) ? GATT_SIGN_CMD_WRITE : GATT_CMD_WRITE;
240 op_code,
284 GATT_TRACE_ERROR("gatt_act_write() failed op_code=0x%x rt=%d", op_code, rt);
459 void gatt_process_read_info_rsp(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 op_code,
466 UNUSED(op_code);
558 void gatt_process_error_rsp(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 op_code,
565 UNUSED(op_code);
611 void gatt_process_prep_write_rsp (tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 op_code,
621 GATT_TRACE_ERROR("value resp op_code = %s len = %d", gatt_dbg_op_name(op_code), len);
663 void gatt_process_notification(tGATT_TCB *p_tcb, UINT8 op_code,
671 event = (op_code == GATT_HANDLE_VALUE_NOTIF) ? GATTC_OPTYPE_NOTIFICATION : GATTC_OPTYPE_INDICATION;
689 if (op_code == GATT_HANDLE_VALUE_IND)
750 void gatt_process_read_by_type_rsp (tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 op_code,
775 GATT_TRACE_ERROR("gatt_process_read_by_type_rsp: Discard response op_code=%d vale_len=%d > (MTU-2=%d or msg_len-1=%d)",
776 op_code, value_len, (p_tcb->payload_size - 2), (len-1));
781 if (op_code == GATT_RSP_READ_BY_GRP_TYPE)
807 op_code == GATT_RSP_READ_BY_GRP_TYPE)
951 void gatt_process_read_rsp(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 op_code,
957 UNUSED(op_code);
1125 if (p_cmd->op_code != GATT_CMD_WRITE && p_cmd->op_code != GATT_SIGN_CMD_WRITE)
1166 void gatt_client_handle_server_rsp (tGATT_TCB *p_tcb, UINT8 op_code,
1172 if (op_code != GATT_HANDLE_VALUE_IND && op_code != GATT_HANDLE_VALUE_NOTIF)
1178 if (p_clcb == NULL || (rsp_code != op_code && op_code != GATT_RSP_ERROR))
1181 Request(%02x) Ignored", op_code, rsp_code);
1192 /* The message has to be smaller than the agreed MTU, len does not count op_code */
1196 if (op_code != GATT_HANDLE_VALUE_NOTIF &&
1197 op_code != GATT_HANDLE_VALUE_IND)
1202 switch (op_code)
1205 gatt_process_error_rsp(p_tcb, p_clcb, op_code, len, p_data);
1213 gatt_process_read_info_rsp(p_tcb, p_clcb, op_code, len, p_data);
1218 gatt_process_read_by_type_rsp(p_tcb, p_clcb, op_code, len, p_data);
1224 gatt_process_read_rsp(p_tcb, p_clcb, op_code, len, p_data);
1236 gatt_process_prep_write_rsp(p_tcb, p_clcb, op_code, len, p_data);
1245 gatt_process_notification(p_tcb, op_code, len, p_data);
1249 GATT_TRACE_ERROR("Unknown opcode = %d", op_code);
1254 if (op_code != GATT_HANDLE_VALUE_IND && op_code != GATT_HANDLE_VALUE_NOTIF)