Lines Matching refs:p
34 struct vbva_infoscreen *p; in hgsmi_process_display_info() local
36 p = hgsmi_buffer_alloc(ctx, sizeof(*p), HGSMI_CH_VBVA, in hgsmi_process_display_info()
38 if (!p) in hgsmi_process_display_info()
41 p->view_index = display; in hgsmi_process_display_info()
42 p->origin_x = origin_x; in hgsmi_process_display_info()
43 p->origin_y = origin_y; in hgsmi_process_display_info()
44 p->start_offset = start_offset; in hgsmi_process_display_info()
45 p->line_size = pitch; in hgsmi_process_display_info()
46 p->width = width; in hgsmi_process_display_info()
47 p->height = height; in hgsmi_process_display_info()
48 p->bits_per_pixel = bpp; in hgsmi_process_display_info()
49 p->flags = flags; in hgsmi_process_display_info()
51 hgsmi_buffer_submit(ctx, p); in hgsmi_process_display_info()
52 hgsmi_buffer_free(ctx, p); in hgsmi_process_display_info()
72 struct vbva_report_input_mapping *p; in hgsmi_update_input_mapping() local
74 p = hgsmi_buffer_alloc(ctx, sizeof(*p), HGSMI_CH_VBVA, in hgsmi_update_input_mapping()
76 if (!p) in hgsmi_update_input_mapping()
79 p->x = origin_x; in hgsmi_update_input_mapping()
80 p->y = origin_y; in hgsmi_update_input_mapping()
81 p->cx = width; in hgsmi_update_input_mapping()
82 p->cy = height; in hgsmi_update_input_mapping()
84 hgsmi_buffer_submit(ctx, p); in hgsmi_update_input_mapping()
85 hgsmi_buffer_free(ctx, p); in hgsmi_update_input_mapping()
100 struct vbva_query_mode_hints *p; in hgsmi_get_mode_hints() local
107 p = hgsmi_buffer_alloc(ctx, sizeof(*p) + size, HGSMI_CH_VBVA, in hgsmi_get_mode_hints()
109 if (!p) in hgsmi_get_mode_hints()
112 p->hints_queried_count = screens; in hgsmi_get_mode_hints()
113 p->hint_structure_guest_size = sizeof(struct vbva_modehint); in hgsmi_get_mode_hints()
114 p->rc = VERR_NOT_SUPPORTED; in hgsmi_get_mode_hints()
116 hgsmi_buffer_submit(ctx, p); in hgsmi_get_mode_hints()
118 if (p->rc < 0) { in hgsmi_get_mode_hints()
119 hgsmi_buffer_free(ctx, p); in hgsmi_get_mode_hints()
123 memcpy(hints, ((u8 *)p) + sizeof(struct vbva_query_mode_hints), size); in hgsmi_get_mode_hints()
124 hgsmi_buffer_free(ctx, p); in hgsmi_get_mode_hints()