Lines Matching refs:p

20 	struct hgsmi_buffer_location *p;  in hgsmi_report_flags_location()  local
22 p = hgsmi_buffer_alloc(ctx, sizeof(*p), HGSMI_CH_HGSMI, in hgsmi_report_flags_location()
24 if (!p) 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()
30 hgsmi_buffer_submit(ctx, p); in hgsmi_report_flags_location()
31 hgsmi_buffer_free(ctx, p); in hgsmi_report_flags_location()
45 struct vbva_caps *p; in hgsmi_send_caps_info() local
47 p = hgsmi_buffer_alloc(ctx, sizeof(*p), HGSMI_CH_VBVA, VBVA_INFO_CAPS); in hgsmi_send_caps_info()
48 if (!p) 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()
54 hgsmi_buffer_submit(ctx, p); in hgsmi_send_caps_info()
56 WARN_ON_ONCE(p->rc < 0); in hgsmi_send_caps_info()
58 hgsmi_buffer_free(ctx, p); in hgsmi_send_caps_info()
85 struct vbva_conf32 *p; in hgsmi_query_conf() local
87 p = hgsmi_buffer_alloc(ctx, sizeof(*p), HGSMI_CH_VBVA, in hgsmi_query_conf()
89 if (!p) in hgsmi_query_conf()
92 p->index = index; in hgsmi_query_conf()
93 p->value = U32_MAX; in hgsmi_query_conf()
95 hgsmi_buffer_submit(ctx, p); in hgsmi_query_conf()
97 *value_ret = p->value; in hgsmi_query_conf()
99 hgsmi_buffer_free(ctx, p); in hgsmi_query_conf()
121 struct vbva_mouse_pointer_shape *p; in hgsmi_update_pointer_shape() local
150 p = hgsmi_buffer_alloc(ctx, sizeof(*p) + pixel_len + 4, HGSMI_CH_VBVA, in hgsmi_update_pointer_shape()
152 if (!p) 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()
164 hgsmi_buffer_submit(ctx, p); in hgsmi_update_pointer_shape()
166 switch (p->result) { in hgsmi_update_pointer_shape()
180 hgsmi_buffer_free(ctx, p); in hgsmi_update_pointer_shape()
201 struct vbva_cursor_position *p; in hgsmi_cursor_position() local
203 p = hgsmi_buffer_alloc(ctx, sizeof(*p), HGSMI_CH_VBVA, in hgsmi_cursor_position()
205 if (!p) 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()
212 hgsmi_buffer_submit(ctx, p); in hgsmi_cursor_position()
214 *x_host = p->x; in hgsmi_cursor_position()
215 *y_host = p->y; in hgsmi_cursor_position()
217 hgsmi_buffer_free(ctx, p); in hgsmi_cursor_position()