Lines Matching +full:y +full:- +full:rc
1 // SPDX-License-Identifier: MIT
2 /* Copyright (C) 2006-2017 Oracle Corporation */
12 * hgsmi_report_flags_location - Inform the host of the location of
25 return -ENOMEM; in hgsmi_report_flags_location()
27 p->buf_location = location; in hgsmi_report_flags_location()
28 p->buf_len = sizeof(struct hgsmi_host_flags); in hgsmi_report_flags_location()
37 * hgsmi_send_caps_info - Notify the host of HGSMI-related guest capabilities
49 return -ENOMEM; in hgsmi_send_caps_info()
51 p->rc = VERR_NOT_IMPLEMENTED; in hgsmi_send_caps_info()
52 p->caps = caps; in hgsmi_send_caps_info()
56 WARN_ON_ONCE(p->rc < 0); in hgsmi_send_caps_info()
72 return value == U32_MAX ? 0 : -EIO; in hgsmi_test_query_conf()
76 * hgsmi_query_conf - Query the host for an HGSMI configuration
90 return -ENOMEM; in hgsmi_query_conf()
92 p->index = index; in hgsmi_query_conf()
93 p->value = U32_MAX; in hgsmi_query_conf()
97 *value_ret = p->value; in hgsmi_query_conf()
105 * hgsmi_update_pointer_shape - Pass the host a new mouse pointer shape
123 int rc; in hgsmi_update_pointer_shape() local
133 return -EINVAL; in hgsmi_update_pointer_shape()
153 return -ENOMEM; in hgsmi_update_pointer_shape()
155 p->result = VINF_SUCCESS; in hgsmi_update_pointer_shape()
156 p->flags = flags; in hgsmi_update_pointer_shape()
157 p->hot_X = hot_x; in hgsmi_update_pointer_shape()
158 p->hot_y = hot_y; in hgsmi_update_pointer_shape()
159 p->width = width; in hgsmi_update_pointer_shape()
160 p->height = height; in hgsmi_update_pointer_shape()
162 memcpy(p->data, pixels, pixel_len); in hgsmi_update_pointer_shape()
166 switch (p->result) { in hgsmi_update_pointer_shape()
168 rc = 0; in hgsmi_update_pointer_shape()
171 rc = -ENOMEM; in hgsmi_update_pointer_shape()
174 rc = -EBUSY; in hgsmi_update_pointer_shape()
177 rc = -EINVAL; in hgsmi_update_pointer_shape()
182 return rc; in hgsmi_update_pointer_shape()
186 * hgsmi_cursor_position - Report the guest cursor position. The host may
187 * wish to use this information to re-position its
194 * @y: Guest cursor Y position.
196 * @y_host: Host cursor Y position is stored here. Optional.
199 u32 x, u32 y, u32 *x_host, u32 *y_host) in hgsmi_cursor_position() argument
206 return -ENOMEM; in hgsmi_cursor_position()
208 p->report_position = report_position; in hgsmi_cursor_position()
209 p->x = x; in hgsmi_cursor_position()
210 p->y = y; in hgsmi_cursor_position()
214 *x_host = p->x; in hgsmi_cursor_position()
215 *y_host = p->y; in hgsmi_cursor_position()