• Home
  • Raw
  • Download

Lines Matching refs:p_msg

352                           tGATT_SR_MSG* p_msg) {  in attp_build_sr_msg()  argument
360 p_msg->attr_value.len, p_msg->attr_value.offset); in attp_build_sr_msg()
361 offset = p_msg->attr_value.offset; in attp_build_sr_msg()
368 tcb.payload_size, op_code, p_msg->attr_value.handle, offset, in attp_build_sr_msg()
369 p_msg->attr_value.len, p_msg->attr_value.value); in attp_build_sr_msg()
375 return attp_build_err_cmd(p_msg->error.cmd_code, p_msg->error.handle, in attp_build_sr_msg()
376 p_msg->error.reason); in attp_build_sr_msg()
382 return attp_build_mtu_cmd(op_code, p_msg->mtu); in attp_build_sr_msg()
404 tGATT_STATUS attp_send_sr_msg(tGATT_TCB& tcb, uint16_t cid, BT_HDR* p_msg) { in attp_send_sr_msg() argument
405 if (p_msg == NULL) { in attp_send_sr_msg()
411 p_msg->offset = L2CAP_MIN_OFFSET; in attp_send_sr_msg()
412 return attp_send_msg_to_l2cap(tcb, cid, p_msg); in attp_send_sr_msg()
503 uint8_t op_code, tGATT_CL_MSG* p_msg) { in attp_send_cl_msg() argument
516 if (p_msg->mtu > GATT_MAX_MTU_SIZE) { in attp_send_cl_msg()
523 tcb.payload_size = p_msg->mtu; in attp_send_cl_msg()
524 p_cmd = attp_build_mtu_cmd(GATT_REQ_MTU, p_msg->mtu); in attp_send_cl_msg()
530 if (!GATT_HANDLE_IS_VALID(p_msg->browse.s_handle) || in attp_send_cl_msg()
531 !GATT_HANDLE_IS_VALID(p_msg->browse.e_handle) || in attp_send_cl_msg()
532 p_msg->browse.s_handle > p_msg->browse.e_handle) { in attp_send_cl_msg()
537 p_cmd = attp_build_browse_cmd(op_code, p_msg->browse.s_handle, in attp_send_cl_msg()
538 p_msg->browse.e_handle, p_msg->browse.uuid); in attp_send_cl_msg()
542 offset = p_msg->read_blob.offset; in attp_send_cl_msg()
546 (op_code == GATT_REQ_READ) ? p_msg->handle : p_msg->read_blob.handle; in attp_send_cl_msg()
557 offset = p_msg->attr_value.offset; in attp_send_cl_msg()
562 if (!GATT_HANDLE_IS_VALID(p_msg->attr_value.handle)) { in attp_send_cl_msg()
568 payload_size, op_code, p_msg->attr_value.handle, offset, in attp_send_cl_msg()
569 p_msg->attr_value.len, p_msg->attr_value.value); in attp_send_cl_msg()
573 p_cmd = attp_build_exec_write_cmd(op_code, p_msg->exec_write); in attp_send_cl_msg()
578 &p_msg->find_type_value); in attp_send_cl_msg()
584 p_msg->read_multi.num_handles, in attp_send_cl_msg()
585 p_msg->read_multi.handles); in attp_send_cl_msg()