Lines Matching refs:ctx
14 * @ctx: The context of the guest heap to use.
17 int hgsmi_report_flags_location(struct gen_pool *ctx, u32 location)
21 p = hgsmi_buffer_alloc(ctx, sizeof(*p), HGSMI_CH_HGSMI,
29 hgsmi_buffer_submit(ctx, p);
30 hgsmi_buffer_free(ctx, p);
38 * @ctx: The context of the guest heap to use.
41 int hgsmi_send_caps_info(struct gen_pool *ctx, u32 caps)
45 p = hgsmi_buffer_alloc(ctx, sizeof(*p), HGSMI_CH_VBVA, VBVA_INFO_CAPS);
52 hgsmi_buffer_submit(ctx, p);
56 hgsmi_buffer_free(ctx, p);
61 int hgsmi_test_query_conf(struct gen_pool *ctx)
66 ret = hgsmi_query_conf(ctx, U32_MAX, &value);
76 * @ctx: The context containing the heap used.
80 int hgsmi_query_conf(struct gen_pool *ctx, u32 index, u32 *value_ret)
84 p = hgsmi_buffer_alloc(ctx, sizeof(*p), HGSMI_CH_VBVA,
92 hgsmi_buffer_submit(ctx, p);
96 hgsmi_buffer_free(ctx, p);
104 * @ctx: The context containing the heap to be used.
113 int hgsmi_update_pointer_shape(struct gen_pool *ctx, u32 flags,
138 p = hgsmi_buffer_alloc(ctx, sizeof(*p) + pixel_len, HGSMI_CH_VBVA,
152 hgsmi_buffer_submit(ctx, p);
168 hgsmi_buffer_free(ctx, p);
178 * @ctx: The context containing the heap used.
185 int hgsmi_cursor_position(struct gen_pool *ctx, bool report_position,
190 p = hgsmi_buffer_alloc(ctx, sizeof(*p), HGSMI_CH_VBVA,
199 hgsmi_buffer_submit(ctx, p);
204 hgsmi_buffer_free(ctx, p);