Lines Matching refs:op_code
82 UINT8 op_code = disc_type_to_att_opcode[p_clcb->op_subtype];
116 st = attp_send_cl_msg(p_clcb->p_tcb, p_clcb->clcb_idx, op_code, &cl_req);
141 UINT8 op_code = 0;
149 op_code = GATT_REQ_READ_BY_TYPE;
165 op_code = GATT_REQ_READ;
177 op_code = GATT_REQ_READ_BLOB;
185 op_code = GATT_REQ_READ_BLOB;
191 op_code = GATT_REQ_READ_MULTI;
196 op_code = GATT_REQ_READ;
206 if (op_code != 0)
207 rt = attp_send_cl_msg(p_tcb, p_clcb->clcb_idx, op_code, &msg);
209 if ( op_code == 0 || (rt != GATT_SUCCESS && rt != GATT_CMD_STARTED))
227 UINT8 rt = GATT_SUCCESS, op_code = 0;
236 op_code = (sec_act == GATT_SEC_SIGN_DATA) ? GATT_SIGN_CMD_WRITE : GATT_CMD_WRITE;
239 op_code,
283 GATT_TRACE_ERROR("gatt_act_write() failed op_code=0x%x rt=%d", op_code, rt);
458 void gatt_process_read_info_rsp(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 op_code,
465 UNUSED(op_code);
557 void gatt_process_error_rsp(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 op_code,
564 UNUSED(op_code);
610 void gatt_process_prep_write_rsp (tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 op_code,
616 GATT_TRACE_ERROR("value resp op_code = %s len = %d", gatt_dbg_op_name(op_code), len);
658 void gatt_process_notification(tGATT_TCB *p_tcb, UINT8 op_code,
666 event = (op_code == GATT_HANDLE_VALUE_NOTIF) ? GATTC_OPTYPE_NOTIFICATION : GATTC_OPTYPE_INDICATION;
683 if (op_code == GATT_HANDLE_VALUE_IND)
744 void gatt_process_read_by_type_rsp (tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 op_code,
769 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)",
770 op_code, value_len, (p_tcb->payload_size - 2), (len-1));
775 if (op_code == GATT_RSP_READ_BY_GRP_TYPE)
801 op_code == GATT_RSP_READ_BY_GRP_TYPE)
946 void gatt_process_read_rsp(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 op_code,
952 UNUSED(op_code);
1120 if (p_cmd->op_code != GATT_CMD_WRITE && p_cmd->op_code != GATT_SIGN_CMD_WRITE)
1161 void gatt_client_handle_server_rsp (tGATT_TCB *p_tcb, UINT8 op_code,
1167 if (op_code != GATT_HANDLE_VALUE_IND && op_code != GATT_HANDLE_VALUE_NOTIF)
1173 if (p_clcb == NULL || (rsp_code != op_code && op_code != GATT_RSP_ERROR))
1176 Request(%02x) Ignored", op_code, rsp_code);
1187 /* The message has to be smaller than the agreed MTU, len does not count op_code */
1191 if (op_code != GATT_HANDLE_VALUE_NOTIF &&
1192 op_code != GATT_HANDLE_VALUE_IND)
1197 switch (op_code)
1200 gatt_process_error_rsp(p_tcb, p_clcb, op_code, len, p_data);
1208 gatt_process_read_info_rsp(p_tcb, p_clcb, op_code, len, p_data);
1213 gatt_process_read_by_type_rsp(p_tcb, p_clcb, op_code, len, p_data);
1219 gatt_process_read_rsp(p_tcb, p_clcb, op_code, len, p_data);
1231 gatt_process_prep_write_rsp(p_tcb, p_clcb, op_code, len, p_data);
1240 gatt_process_notification(p_tcb, op_code, len, p_data);
1244 GATT_TRACE_ERROR("Unknown opcode = %d", op_code);
1249 if (op_code != GATT_HANDLE_VALUE_IND && op_code != GATT_HANDLE_VALUE_NOTIF)