Lines Matching refs:p_msg
345 tGATT_SR_MSG* p_msg) { in attp_build_sr_msg() argument
353 p_msg->attr_value.len, p_msg->attr_value.offset); in attp_build_sr_msg()
354 offset = p_msg->attr_value.offset; in attp_build_sr_msg()
361 tcb.payload_size, op_code, p_msg->attr_value.handle, offset, in attp_build_sr_msg()
362 p_msg->attr_value.len, p_msg->attr_value.value); in attp_build_sr_msg()
368 return attp_build_err_cmd(p_msg->error.cmd_code, p_msg->error.handle, in attp_build_sr_msg()
369 p_msg->error.reason); in attp_build_sr_msg()
375 return attp_build_mtu_cmd(op_code, p_msg->mtu); in attp_build_sr_msg()
397 tGATT_STATUS attp_send_sr_msg(tGATT_TCB& tcb, BT_HDR* p_msg) { in attp_send_sr_msg() argument
398 if (p_msg == NULL) return GATT_NO_RESOURCES; in attp_send_sr_msg()
400 p_msg->offset = L2CAP_MIN_OFFSET; in attp_send_sr_msg()
401 return attp_send_msg_to_l2cap(tcb, p_msg); in attp_send_sr_msg()
458 uint8_t op_code, tGATT_CL_MSG* p_msg) { in attp_send_cl_msg() argument
463 if (p_msg->mtu > GATT_MAX_MTU_SIZE) return GATT_ILLEGAL_PARAMETER; in attp_send_cl_msg()
465 tcb.payload_size = p_msg->mtu; in attp_send_cl_msg()
466 p_cmd = attp_build_mtu_cmd(GATT_REQ_MTU, p_msg->mtu); in attp_send_cl_msg()
472 if (!GATT_HANDLE_IS_VALID(p_msg->browse.s_handle) || in attp_send_cl_msg()
473 !GATT_HANDLE_IS_VALID(p_msg->browse.e_handle) || in attp_send_cl_msg()
474 p_msg->browse.s_handle > p_msg->browse.e_handle) in attp_send_cl_msg()
477 p_cmd = attp_build_browse_cmd(op_code, p_msg->browse.s_handle, in attp_send_cl_msg()
478 p_msg->browse.e_handle, p_msg->browse.uuid); in attp_send_cl_msg()
482 offset = p_msg->read_blob.offset; in attp_send_cl_msg()
486 (op_code == GATT_REQ_READ) ? p_msg->handle : p_msg->read_blob.handle; in attp_send_cl_msg()
498 offset = p_msg->attr_value.offset; in attp_send_cl_msg()
503 if (!GATT_HANDLE_IS_VALID(p_msg->attr_value.handle)) in attp_send_cl_msg()
507 tcb.payload_size, op_code, p_msg->attr_value.handle, offset, in attp_send_cl_msg()
508 p_msg->attr_value.len, p_msg->attr_value.value); in attp_send_cl_msg()
512 p_cmd = attp_build_exec_write_cmd(op_code, p_msg->exec_write); in attp_send_cl_msg()
517 &p_msg->find_type_value); in attp_send_cl_msg()
522 p_msg->read_multi.num_handles, in attp_send_cl_msg()
523 p_msg->read_multi.handles); in attp_send_cl_msg()