Home
last modified time | relevance | path

Searched refs:current_cursor (Results 1 – 5 of 5) sorted by relevance

/openbmc/qemu/hw/display/
H A Dvirtio-gpu-gl.c45 if (width != s->current_cursor->width || in virtio_gpu_gl_update_cursor_data()
46 height != s->current_cursor->height) { in virtio_gpu_gl_update_cursor_data()
51 pixels = s->current_cursor->width * s->current_cursor->height; in virtio_gpu_gl_update_cursor_data()
52 memcpy(s->current_cursor->data, data, pixels * sizeof(uint32_t)); in virtio_gpu_gl_update_cursor_data()
H A Dvhost-user-gpu.c134 if (!s->current_cursor) { in vhost_user_gpu_handle_cursor()
135 s->current_cursor = cursor_alloc(64, 64); in vhost_user_gpu_handle_cursor()
138 s->current_cursor->hot_x = up->hot_x; in vhost_user_gpu_handle_cursor()
139 s->current_cursor->hot_y = up->hot_y; in vhost_user_gpu_handle_cursor()
141 memcpy(s->current_cursor->data, up->data, in vhost_user_gpu_handle_cursor()
144 dpy_cursor_define(s->con, s->current_cursor); in vhost_user_gpu_handle_cursor()
H A Dvirtio-gpu.c60 if (res->blob_size < (s->current_cursor->width * in virtio_gpu_update_cursor_data()
61 s->current_cursor->height * 4)) { in virtio_gpu_update_cursor_data()
66 if (pixman_image_get_width(res->image) != s->current_cursor->width || in virtio_gpu_update_cursor_data()
67 pixman_image_get_height(res->image) != s->current_cursor->height) { in virtio_gpu_update_cursor_data()
73 pixels = s->current_cursor->width * s->current_cursor->height; in virtio_gpu_update_cursor_data()
74 memcpy(s->current_cursor->data, data, in virtio_gpu_update_cursor_data()
96 if (!s->current_cursor) { in update_cursor()
97 s->current_cursor = cursor_alloc(64, 64); in update_cursor()
100 s->current_cursor->hot_x = cursor->hot_x; in update_cursor()
101 s->current_cursor->hot_y = cursor->hot_y; in update_cursor()
[all …]
H A Dvirtio-gpu-rutabaga.c46 if (res->width != s->current_cursor->width || in virtio_gpu_rutabaga_update_cursor()
47 res->height != s->current_cursor->height) { in virtio_gpu_rutabaga_update_cursor()
58 transfer_iovec.iov_base = s->current_cursor->data; in virtio_gpu_rutabaga_update_cursor()
/openbmc/qemu/include/hw/virtio/
H A Dvirtio-gpu.h81 QEMUCursor *current_cursor; member