Lines Matching refs:op_code

48 BT_HDR* attp_build_mtu_cmd(uint8_t op_code, uint16_t rx_mtu) {  in attp_build_mtu_cmd()  argument
54 UINT8_TO_STREAM(p, op_code); in attp_build_mtu_cmd()
71 BT_HDR* attp_build_exec_write_cmd(uint8_t op_code, uint8_t flag) { in attp_build_exec_write_cmd() argument
80 UINT8_TO_STREAM(p, op_code); in attp_build_exec_write_cmd()
82 if (op_code == GATT_REQ_EXEC_WRITE) { in attp_build_exec_write_cmd()
127 BT_HDR* attp_build_browse_cmd(uint8_t op_code, uint16_t s_hdl, uint16_t e_hdl, in attp_build_browse_cmd() argument
139 UINT8_TO_STREAM(p, op_code); in attp_build_browse_cmd()
219 BT_HDR* attp_build_handle_cmd(uint8_t op_code, uint16_t handle, in attp_build_handle_cmd() argument
227 UINT8_TO_STREAM(p, op_code); in attp_build_handle_cmd()
233 if (op_code == GATT_REQ_READ_BLOB) { in attp_build_handle_cmd()
250 BT_HDR* attp_build_opcode_cmd(uint8_t op_code) { in attp_build_opcode_cmd() argument
257 UINT8_TO_STREAM(p, op_code); in attp_build_opcode_cmd()
272 BT_HDR* attp_build_value_cmd(uint16_t payload_size, uint8_t op_code, in attp_build_value_cmd() argument
280 UINT8_TO_STREAM(p, op_code); in attp_build_value_cmd()
284 if (op_code == GATT_RSP_READ_BY_TYPE) { in attp_build_value_cmd()
290 if (op_code != GATT_RSP_READ_BLOB && op_code != GATT_RSP_READ) { in attp_build_value_cmd()
295 if (op_code == GATT_REQ_PREPARE_WRITE || op_code == GATT_RSP_PREPARE_WRITE) { in attp_build_value_cmd()
305 if (op_code == GATT_RSP_READ_BY_TYPE) *p_pair_len = (len + 2); in attp_build_value_cmd()
344 BT_HDR* attp_build_sr_msg(tGATT_TCB& tcb, uint8_t op_code, in attp_build_sr_msg() argument
348 switch (op_code) { in attp_build_sr_msg()
361 tcb.payload_size, op_code, p_msg->attr_value.handle, offset, in attp_build_sr_msg()
365 return attp_build_opcode_cmd(op_code); in attp_build_sr_msg()
372 return attp_build_exec_write_cmd(op_code, 0); in attp_build_sr_msg()
375 return attp_build_mtu_cmd(op_code, p_msg->mtu); in attp_build_sr_msg()
378 LOG(FATAL) << "attp_build_sr_msg: unknown op code = " << +op_code; in attp_build_sr_msg()
458 uint8_t op_code, tGATT_CL_MSG* p_msg) { in attp_send_cl_msg() argument
461 switch (op_code) { in attp_send_cl_msg()
477 p_cmd = attp_build_browse_cmd(op_code, p_msg->browse.s_handle, in attp_send_cl_msg()
486 (op_code == GATT_REQ_READ) ? p_msg->handle : p_msg->read_blob.handle; in attp_send_cl_msg()
490 p_cmd = attp_build_handle_cmd(op_code, handle, offset); in attp_send_cl_msg()
494 p_cmd = attp_build_opcode_cmd(op_code); in attp_send_cl_msg()
507 tcb.payload_size, op_code, p_msg->attr_value.handle, offset, in attp_send_cl_msg()
512 p_cmd = attp_build_exec_write_cmd(op_code, p_msg->exec_write); in attp_send_cl_msg()
532 return attp_cl_send_cmd(tcb, p_clcb, op_code, p_cmd); in attp_send_cl_msg()