• Home
  • Raw
  • Download

Lines Matching refs:op_code

49 static BT_HDR* attp_build_mtu_cmd(uint8_t op_code, uint16_t rx_mtu) {  in attp_build_mtu_cmd()  argument
55 UINT8_TO_STREAM(p, op_code); in attp_build_mtu_cmd()
72 static BT_HDR* attp_build_exec_write_cmd(uint8_t op_code, uint8_t flag) { in attp_build_exec_write_cmd() argument
81 UINT8_TO_STREAM(p, op_code); in attp_build_exec_write_cmd()
83 if (op_code == GATT_REQ_EXEC_WRITE) { in attp_build_exec_write_cmd()
128 static BT_HDR* attp_build_browse_cmd(uint8_t op_code, uint16_t s_hdl, in attp_build_browse_cmd() argument
141 UINT8_TO_STREAM(p, op_code); in attp_build_browse_cmd()
193 static BT_HDR* attp_build_read_multi_cmd(uint8_t op_code, uint16_t payload_size, in attp_build_read_multi_cmd() argument
204 UINT8_TO_STREAM(p, op_code); in attp_build_read_multi_cmd()
222 static BT_HDR* attp_build_handle_cmd(uint8_t op_code, uint16_t handle, in attp_build_handle_cmd() argument
230 UINT8_TO_STREAM(p, op_code); in attp_build_handle_cmd()
236 if (op_code == GATT_REQ_READ_BLOB) { in attp_build_handle_cmd()
253 static BT_HDR* attp_build_opcode_cmd(uint8_t op_code) { in attp_build_opcode_cmd() argument
260 UINT8_TO_STREAM(p, op_code); in attp_build_opcode_cmd()
275 static BT_HDR* attp_build_value_cmd(uint16_t payload_size, uint8_t op_code, in attp_build_value_cmd() argument
283 UINT8_TO_STREAM(p, op_code); in attp_build_value_cmd()
287 if (op_code == GATT_RSP_READ_BY_TYPE) { in attp_build_value_cmd()
293 if (op_code != GATT_RSP_READ_BLOB && op_code != GATT_RSP_READ) { in attp_build_value_cmd()
298 if (op_code == GATT_REQ_PREPARE_WRITE || op_code == GATT_RSP_PREPARE_WRITE) { in attp_build_value_cmd()
308 if (op_code == GATT_RSP_READ_BY_TYPE) *p_pair_len = (len + 2); in attp_build_value_cmd()
351 BT_HDR* attp_build_sr_msg(tGATT_TCB& tcb, uint8_t op_code, in attp_build_sr_msg() argument
355 switch (op_code) { in attp_build_sr_msg()
368 tcb.payload_size, op_code, p_msg->attr_value.handle, offset, in attp_build_sr_msg()
372 return attp_build_opcode_cmd(op_code); in attp_build_sr_msg()
379 return attp_build_exec_write_cmd(op_code, 0); in attp_build_sr_msg()
382 return attp_build_mtu_cmd(op_code, p_msg->mtu); in attp_build_sr_msg()
385 LOG(FATAL) << "attp_build_sr_msg: unknown op code = " << +op_code; in attp_build_sr_msg()
503 uint8_t op_code, tGATT_CL_MSG* p_msg) { in attp_send_cl_msg() argument
514 switch (op_code) { in attp_send_cl_msg()
519 op_code); in attp_send_cl_msg()
533 LOG_WARN("GATT message has invalid handle op_code:%hhu", op_code); in attp_send_cl_msg()
537 p_cmd = attp_build_browse_cmd(op_code, p_msg->browse.s_handle, in attp_send_cl_msg()
546 (op_code == GATT_REQ_READ) ? p_msg->handle : p_msg->read_blob.handle; in attp_send_cl_msg()
549 LOG_WARN("GATT message has invalid handle op_code:%hhu", op_code); in attp_send_cl_msg()
553 p_cmd = attp_build_handle_cmd(op_code, handle, offset); in attp_send_cl_msg()
563 LOG_WARN("GATT message has invalid handle op_code:%hhu", op_code); in attp_send_cl_msg()
568 payload_size, op_code, p_msg->attr_value.handle, offset, in attp_send_cl_msg()
573 p_cmd = attp_build_exec_write_cmd(op_code, p_msg->exec_write); in attp_send_cl_msg()
583 p_cmd = attp_build_read_multi_cmd(op_code, payload_size, in attp_send_cl_msg()
596 op_code); in attp_send_cl_msg()
600 return attp_cl_send_cmd(tcb, p_clcb, op_code, p_cmd); in attp_send_cl_msg()