Lines Matching refs:op_code
46 BT_HDR *attp_build_mtu_cmd(UINT8 op_code, UINT16 rx_mtu)
55 UINT8_TO_STREAM (p, op_code);
72 BT_HDR *attp_build_exec_write_cmd (UINT8 op_code, UINT8 flag)
84 UINT8_TO_STREAM (p, op_code);
86 if (op_code == GATT_REQ_EXEC_WRITE)
136 BT_HDR *attp_build_browse_cmd(UINT8 op_code, UINT16 s_hdl, UINT16 e_hdl, tBT_UUID uuid)
148 UINT8_TO_STREAM (p, op_code);
234 BT_HDR *attp_build_handle_cmd(UINT8 op_code, UINT16 handle, UINT16 offset)
245 UINT8_TO_STREAM (p, op_code);
251 if (op_code == GATT_REQ_READ_BLOB)
270 BT_HDR *attp_build_opcode_cmd(UINT8 op_code)
280 UINT8_TO_STREAM (p, op_code);
295 BT_HDR *attp_build_value_cmd (UINT16 payload_size, UINT8 op_code, UINT16 handle,
305 UINT8_TO_STREAM (p, op_code);
309 if (op_code == GATT_RSP_READ_BY_TYPE)
316 if (op_code != GATT_RSP_READ_BLOB && op_code != GATT_RSP_READ)
322 if (op_code == GATT_REQ_PREPARE_WRITE ||op_code == GATT_RSP_PREPARE_WRITE )
335 if (op_code == GATT_RSP_READ_BY_TYPE)
386 BT_HDR *attp_build_sr_msg(tGATT_TCB *p_tcb, UINT8 op_code, tGATT_SR_MSG *p_msg)
391 switch (op_code)
406 op_code,
414 p_cmd = attp_build_opcode_cmd(op_code);
422 p_cmd = attp_build_exec_write_cmd(op_code, 0);
426 p_cmd = attp_build_mtu_cmd(op_code, p_msg->mtu);
430 GATT_TRACE_DEBUG("attp_build_sr_msg: unknown op code = %d", op_code);
526 ** op_code: message op code.
533 tGATT_STATUS attp_send_cl_msg (tGATT_TCB *p_tcb, UINT16 clcb_idx, UINT8 op_code, tGATT_CL_MSG *p_msg)
541 switch (op_code)
560 p_cmd = attp_build_browse_cmd(op_code,
573 handle = (op_code == GATT_REQ_READ) ? p_msg->handle: p_msg->read_blob.handle;
577 p_cmd = attp_build_handle_cmd(op_code, handle, offset);
584 p_cmd = attp_build_opcode_cmd(op_code);
596 op_code, p_msg->attr_value.handle,
606 p_cmd = attp_build_exec_write_cmd(op_code, p_msg->exec_write);
624 status = attp_cl_send_cmd(p_tcb, clcb_idx, op_code, p_cmd);