/qemu/hw/display/ |
A D | virtio-gpu-base.c | 28 g->enable = 0; in virtio_gpu_base_reset() 32 g->scanout[i].width = 0; in virtio_gpu_base_reset() 34 g->scanout[i].x = 0; in virtio_gpu_base_reset() 35 g->scanout[i].y = 0; in virtio_gpu_base_reset() 36 g->scanout[i].ds = NULL; in virtio_gpu_base_reset() 123 vgc->gl_flushed(g); in virtio_gpu_gl_flushed() 192 g->virtio_config.num_scanouts = cpu_to_le32(g->conf.max_outputs); in virtio_gpu_base_device_realize() 207 g->req_state[0].width = g->conf.xres; in virtio_gpu_base_device_realize() 208 g->req_state[0].height = g->conf.yres; in virtio_gpu_base_device_realize() 212 g->scanout[i].con = in virtio_gpu_base_device_realize() [all …]
|
A D | vhost-user-gpu.c | 235 g->parent_obj.enable = 1; in vhost_user_gpu_handle_display() 263 g->parent_obj.enable = 1; in vhost_user_gpu_handle_display() 311 g->backend_blocked = true; in vhost_user_gpu_handle_display() 356 VhostUserGPU *g = opaque; in vhost_user_gpu_chr_read() local 420 if (g->backend_blocked) { in vhost_user_gpu_gl_flushed() 421 vhost_user_gpu_unblock(g); in vhost_user_gpu_gl_flushed() 422 g->backend_blocked = false; in vhost_user_gpu_gl_flushed() 453 g->vhost_gpu_fd = sv[0]; in vhost_user_gpu_do_set_socket() 533 g->vhost_gpu_fd = -1; in vhost_user_gpu_set_status() 639 g->vhost_gpu_fd = -1; in vhost_user_gpu_device_realize() [all …]
|
A D | virtio-gpu-virgl.c | 56 struct VirtIOGPU *g; member 68 VirtIOGPU *g = opaque; in virtio_gpu_virgl_resume_cmdq_bh() local 70 virtio_gpu_process_cmdq(g); in virtio_gpu_virgl_resume_cmdq_bh() 120 vmr->g = g; in virtio_gpu_virgl_map_resource_blob() 476 g->stats.req_3d++; in virgl_cmd_submit_3d() 978 VirtIOGPU *g = opaque; in virgl_write_fence() local 993 g->inflight--; in virgl_write_fence() 1004 VirtIOGPU *g = opaque; in virgl_create_context() local 1017 VirtIOGPU *g = opaque; in virgl_destroy_context() local 1026 VirtIOGPU *g = opaque; in virgl_make_context_current() local [all …]
|
A D | virtio-gpu.c | 287 if (res->hostmem + g->hostmem < g->conf_max_hostmem) { in virtio_gpu_resource_create_2d() 1065 if (g->stats.max_inflight < g->inflight) { in virtio_gpu_process_cmdq() 1066 g->stats.max_inflight = g->inflight; in virtio_gpu_process_cmdq() 1086 g->inflight--; in virtio_gpu_process_fenceq() 1127 vgc->handle_ctrl(VIRTIO_DEVICE(g), g->ctrl_vq); in virtio_gpu_ctrl_bh() 1165 virtio_gpu_handle_cursor(&g->parent_obj.parent_obj, g->cursor_vq); in virtio_gpu_cursor_bh() 1289 g->hostmem = 0; in virtio_gpu_load() 1517 g->ctrl_bh = virtio_bh_new_guarded(qdev, virtio_gpu_ctrl_bh, g); in virtio_gpu_device_realize() 1518 g->cursor_bh = virtio_bh_new_guarded(qdev, virtio_gpu_cursor_bh, g); in virtio_gpu_device_realize() 1519 g->reset_bh = qemu_bh_new(virtio_gpu_reset_bh, g); in virtio_gpu_device_realize() [all …]
|
A D | virtio-vga.c | 15 if (g->enable) { in virtio_vga_base_invalidate_display() 16 g->hw_ops->invalidate(g); in virtio_vga_base_invalidate_display() 27 if (g->enable) { in virtio_vga_base_update_display() 28 g->hw_ops->gfx_update(g); in virtio_vga_base_update_display() 39 if (g->enable) { in virtio_vga_base_text_update() 41 g->hw_ops->text_update(g, chardata); in virtio_vga_base_text_update() 55 if (g->hw_ops->ui_info) { in virtio_vga_base_ui_info() 56 g->hw_ops->ui_info(g, idx, info); in virtio_vga_base_ui_info() 66 g->hw_ops->gl_block(g, block); in virtio_vga_base_gl_block() 75 return g->hw_ops->get_flags(g); in virtio_vga_base_get_flags() [all …]
|
A D | virtio-gpu-rutabaga.c | 69 VirtIOGPU *g = VIRTIO_GPU(b); in virtio_gpu_rutabaga_gl_flushed() local 70 virtio_gpu_process_cmdq(g); in virtio_gpu_rutabaga_gl_flushed() 176 rutabaga_cmd_resource_unref(VirtIOGPU *g, in rutabaga_cmd_resource_unref() argument 202 rutabaga_cmd_context_create(VirtIOGPU *g, in rutabaga_cmd_context_create() argument 340 rutabaga_cmd_submit_3d(VirtIOGPU *g, in rutabaga_cmd_submit_3d() argument 500 virtio_gpu_cleanup_mapping(g, res); in rutabaga_cmd_detach_backing() 776 rutabaga_cmd_submit_3d(g, cmd); in virtio_gpu_rutabaga_process_cmd() 818 virtio_gpu_get_edid(g, cmd); in virtio_gpu_rutabaga_process_cmd() 988 builder.user_data = (uint64_t)g; in virtio_gpu_rutabaga_init() 1052 VirtIOGPU *g = VIRTIO_GPU(vdev); in virtio_gpu_rutabaga_handle_ctrl() local [all …]
|
A D | virtio-gpu-gl.c | 32 VirtIOGPUGL *gl = VIRTIO_GPU_GL(g); in virtio_gpu_gl_update_cursor_data() 58 VirtIOGPU *g = VIRTIO_GPU(b); in virtio_gpu_gl_flushed() local 60 virtio_gpu_process_cmdq(g); in virtio_gpu_gl_flushed() 65 VirtIOGPU *g = VIRTIO_GPU(vdev); in virtio_gpu_gl_handle_ctrl() local 75 virtio_gpu_virgl_reset(g); in virtio_gpu_gl_handle_ctrl() 100 virtio_gpu_process_cmdq(g); in virtio_gpu_gl_handle_ctrl() 101 virtio_gpu_virgl_fence_poll(g); in virtio_gpu_gl_handle_ctrl() 106 VirtIOGPU *g = VIRTIO_GPU(vdev); in virtio_gpu_gl_reset() local 147 g->capset_ids = virtio_gpu_virgl_get_capsets(g); in virtio_gpu_gl_device_realize() 148 VIRTIO_GPU_BASE(g)->virtio_config.num_capsets = g->capset_ids->len; in virtio_gpu_gl_device_realize() [all …]
|
A D | pl110_template.h | 149 unsigned int r, g, b; in glue() local 165 g = data & 0x3f; in glue() 172 g = (data & 0x3f) << 2; in glue() 180 g = (data & 0x3f) << 2; in glue() 195 unsigned int r, g, b; in glue() local 207 g = (data >> 8) & 0xff; in glue() 226 unsigned int r, g, b; in glue() local 241 g = (data & 0x1f) << 3; in glue() 264 unsigned int r, g, b; in glue() local 279 g = (data & 0xf) << 4; in glue() [all …]
|
A D | virtio-gpu-pci.c | 32 VirtIOGPUBase *g = vgpu->vgpu; in virtio_gpu_pci_base_realize() local 33 DeviceState *vdev = DEVICE(g); in virtio_gpu_pci_base_realize() 36 if (virtio_gpu_hostmem_enabled(g->conf)) { in virtio_gpu_pci_base_realize() 39 memory_region_init(&g->hostmem, OBJECT(g), "virtio-gpu-hostmem", in virtio_gpu_pci_base_realize() 40 g->conf.hostmem); in virtio_gpu_pci_base_realize() 45 &g->hostmem); in virtio_gpu_pci_base_realize() 46 virtio_pci_add_shm_cap(vpci_dev, 4, 0, g->conf.hostmem, in virtio_gpu_pci_base_realize() 55 for (i = 0; i < g->conf.max_outputs; i++) { in virtio_gpu_pci_base_realize() 56 object_property_set_link(OBJECT(g->scanout[i].con), "device", in virtio_gpu_pci_base_realize()
|
A D | omap_lcdc.c | 80 uint8_t v, r, g, b; in draw_line2_32() local 85 g = pal[v & 3] & 0xf0; in draw_line2_32() 91 g = pal[v & 3] & 0xf0; in draw_line2_32() 97 g = pal[v & 3] & 0xf0; in draw_line2_32() 119 uint8_t v, r, g, b; in draw_line4_32() local 146 uint8_t v, r, g, b; in draw_line8_32() local 151 g = pal[v] & 0xf0; in draw_line8_32() 166 uint8_t r, g, b; in draw_line12_32() local 171 g = v & 0xf0; in draw_line12_32() 186 uint8_t r, g, b; in draw_line16_32() local [all …]
|
A D | virtio-gpu-udmabuf.c | 160 static void virtio_gpu_free_dmabuf(VirtIOGPU *g, VGPUDMABuf *dmabuf) in virtio_gpu_free_dmabuf() argument 164 scanout = &g->parent_obj.scanout[dmabuf->scanout_id]; in virtio_gpu_free_dmabuf() 167 QTAILQ_REMOVE(&g->dmabuf.bufs, dmabuf, next); in virtio_gpu_free_dmabuf() 172 *virtio_gpu_create_dmabuf(VirtIOGPU *g, in virtio_gpu_create_dmabuf() argument 190 QTAILQ_INSERT_HEAD(&g->dmabuf.bufs, dmabuf, next); in virtio_gpu_create_dmabuf() 195 int virtio_gpu_update_dmabuf(VirtIOGPU *g, in virtio_gpu_update_dmabuf() argument 205 new_primary = virtio_gpu_create_dmabuf(g, scanout_id, res, fb, r); in virtio_gpu_update_dmabuf() 210 if (g->dmabuf.primary[scanout_id]) { in virtio_gpu_update_dmabuf() 211 old_primary = g->dmabuf.primary[scanout_id]; in virtio_gpu_update_dmabuf() 216 g->dmabuf.primary[scanout_id] = new_primary; in virtio_gpu_update_dmabuf() [all …]
|
A D | vga-helpers.h | 337 uint32_t v, r, g, b; in vga_draw_line15_le() local 343 g = (v >> 2) & 0xf8; in vga_draw_line15_le() 356 uint32_t v, r, g, b; in vga_draw_line15_be() local 362 g = (v >> 2) & 0xf8; in vga_draw_line15_be() 378 uint32_t v, r, g, b; in vga_draw_line16_le() local 384 g = (v >> 3) & 0xfc; in vga_draw_line16_le() 397 uint32_t v, r, g, b; in vga_draw_line16_be() local 419 uint32_t r, g, b; in vga_draw_line24_le() local 437 uint32_t r, g, b; in vga_draw_line24_be() local 458 uint32_t r, g, b; in vga_draw_line32_le() local [all …]
|
/qemu/tests/qemu-iotests/sample_images/ |
A D | iotest-dirtylog-10G-4M.vhdx.bz2 |
|
A D | iotest-dynamic-1G.vhdx.bz2 |
|
/qemu/include/ui/ |
A D | pixel_ops.h | 1 static inline unsigned int rgb_to_pixel8(unsigned int r, unsigned int g, in rgb_to_pixel8() argument 4 return ((r >> 5) << 5) | ((g >> 5) << 2) | (b >> 6); in rgb_to_pixel8() 7 static inline unsigned int rgb_to_pixel15(unsigned int r, unsigned int g, in rgb_to_pixel15() argument 10 return ((r >> 3) << 10) | ((g >> 3) << 5) | (b >> 3); in rgb_to_pixel15() 16 return ((b >> 3) << 10) | ((g >> 3) << 5) | (r >> 3); in rgb_to_pixel15bgr() 22 return ((r >> 3) << 11) | ((g >> 2) << 5) | (b >> 3); in rgb_to_pixel16() 28 return ((b >> 3) << 11) | ((g >> 2) << 5) | (r >> 3); in rgb_to_pixel16bgr() 34 return (r << 16) | (g << 8) | b; in rgb_to_pixel24() 40 return (b << 16) | (g << 8) | r; in rgb_to_pixel24bgr() 46 return (r << 16) | (g << 8) | b; in rgb_to_pixel32() [all …]
|
/qemu/contrib/vhost-user-gpu/ |
A D | virgl.c | 38 virgl_cmd_context_create(VuGpu *g, in virgl_cmd_context_create() argument 170 virgl_cmd_get_capset(VuGpu *g, in virgl_cmd_get_capset() argument 196 virgl_cmd_submit_3d(VuGpu *g, in virgl_cmd_submit_3d() argument 457 vg_wait_ok(g); in virgl_cmd_resource_flush() 544 vg_get_edid(g, cmd); in vg_virgl_process_cmd() 576 VuGpu *g = opaque; in virgl_write_fence() local 591 g->inflight--; in virgl_write_fence() 600 VuGpu *g = opaque; in virgl_get_drm_fd() local 602 return g->drm_rnode_fd; in virgl_get_drm_fd() 624 vg_virgl_init(VuGpu *g) in vg_virgl_init() argument [all …]
|
A D | vhost-user-gpu.c | 115 g->sock_fd = -1; in vg_sock_fd_close() 122 VuGpu *g = user_data; in source_wait_cb() local 129 g->wait_in = 0; in source_wait_cb() 136 vg_wait_ok(VuGpu *g) in vg_wait_ok() argument 139 g->wait_in = g_unix_fd_add(g->sock_fd, G_IO_IN | G_IO_HUP, in vg_wait_ok() 1095 g->wait_in = 0; in protocol_features_cb() 1118 g->wait_in = g_unix_fd_add(g->sock_fd, G_IO_IN | G_IO_HUP, in set_gpu_protocol_features() 1170 g->virgl = virgl; in vg_set_features() 1216 vg_destroy(VuGpu *g) in vg_destroy() argument 1282 vugbm_device_init(&g.gdev, g.drm_rnode_fd); in main() [all …]
|
/qemu/tests/avocado/ |
A D | reverse_debugging.py | 63 def get_reg_le(g, reg): argument 71 def get_reg_be(g, reg): argument 82 def get_pc(self, g): argument 86 pc = self.get_pc(g) 91 def gdb_step(g): argument 95 def gdb_bstep(g): argument 133 g.connect() 149 self.gdb_step(g) 162 self.gdb_step(g) 178 g.cmd(b'c') [all …]
|
/qemu/tests/tcg/multiarch/ |
A D | sha512.c | 264 uint64_t t1 = *h + Sigma1(e) + Ch(e, f, g) + k + w; in Round() 276 Round(a, b, c, &d, e, f, g, &h, 0x428a2f98d728ae22ull, w0 = be64_to_cpu(chunk[0])); in Transform() 277 Round(h, a, b, &c, d, e, f, &g, 0x7137449123ef65cdull, w1 = be64_to_cpu(chunk[1])); in Transform() 278 Round(g, h, a, &b, c, d, e, &f, 0xb5c0fbcfec4d3b2full, w2 = be64_to_cpu(chunk[2])); in Transform() 279 Round(f, g, h, &a, b, c, d, &e, 0xe9b5dba58189dbbcull, w3 = be64_to_cpu(chunk[3])); in Transform() 280 Round(e, f, g, &h, a, b, c, &d, 0x3956c25bf348b538ull, w4 = be64_to_cpu(chunk[4])); in Transform() 281 Round(d, e, f, &g, h, a, b, &c, 0x59f111f1b605d019ull, w5 = be64_to_cpu(chunk[5])); in Transform() 282 Round(c, d, e, &f, g, h, a, &b, 0x923f82a4af194f9bull, w6 = be64_to_cpu(chunk[6])); in Transform() 283 Round(b, c, d, &e, f, g, h, &a, 0xab1c5ed5da6d8118ull, w7 = be64_to_cpu(chunk[7])); in Transform() 284 Round(a, b, c, &d, e, f, g, &h, 0xd807aa98a3030242ull, w8 = be64_to_cpu(chunk[8])); in Transform() [all …]
|
/qemu/include/hw/virtio/ |
A D | virtio-gpu.h | 162 void (*gl_flushed)(VirtIOGPUBase *g); 222 void (*update_cursor_data)(VirtIOGPU *g, 225 void (*resource_destroy)(VirtIOGPU *g, 298 void virtio_gpu_base_reset(VirtIOGPUBase *g); 308 void virtio_gpu_ctrl_response(VirtIOGPU *g, 317 void virtio_gpu_get_edid(VirtIOGPU *g, 328 void virtio_gpu_process_cmdq(VirtIOGPU *g); 355 int virtio_gpu_update_dmabuf(VirtIOGPU *g, 361 void virtio_gpu_update_scanout(VirtIOGPU *g, 373 void virtio_gpu_virgl_reset(VirtIOGPU *g); [all …]
|
/qemu/ui/ |
A D | vnc-enc-zywrle.h | 253 #define ZYWRLE_LOAD_PIXEL32(src, r, g, b) \ argument 256 g = ((uint8_t*)src)[L_1]; \ 259 #define ZYWRLE_SAVE_PIXEL32(dst, r, g, b) \ argument 262 ((uint8_t*)dst)[L_1] = (uint8_t)g; \ 472 #define ZYWRLE_LOAD_COEFF(src, r, g, b) \ argument 475 g = ((int8_t*)src)[1]; \ 479 #define ZYWRLE_SAVE_COEFF(dst, r, g, b) \ argument 482 ((int8_t*)dst)[1] = (int8_t)g; \ 503 #define ZYWRLE_RGBYUV_(r, g, b, y, u, v, ymask, uvmask) \ argument 591 ZYWRLE_SAVE_PIXEL(data, r, g, b);) [all …]
|
/qemu/tcg/ |
A D | tcg-op-gvec.c | 1211 type = choose_vector_type(g->opt_opc, g->vece, oprsz, g->prefer_i64); in tcg_gen_gvec_2() 1275 type = choose_vector_type(g->opt_opc, g->vece, oprsz, g->prefer_i64); in tcg_gen_gvec_2i() 1341 type = choose_vector_type(g->opt_opc, g->vece, oprsz, g->prefer_i64); in tcg_gen_gvec_2s() 1421 type = choose_vector_type(g->opt_opc, g->vece, oprsz, g->prefer_i64); in tcg_gen_gvec_3() 1488 type = choose_vector_type(g->opt_opc, g->vece, oprsz, g->prefer_i64); in tcg_gen_gvec_3i() 1499 c, g->load_dest, g->write_aofs, g->fniv); in tcg_gen_gvec_3i() 1511 c, g->load_dest, g->write_aofs, g->fniv); in tcg_gen_gvec_3i() 1515 c, g->load_dest, g->write_aofs, g->fniv); in tcg_gen_gvec_3i() 1521 g->load_dest, g->write_aofs, g->fni8); in tcg_gen_gvec_3i() 1524 g->load_dest, g->write_aofs, g->fni4); in tcg_gen_gvec_3i() [all …]
|
/qemu/.gitlab-ci.d/ |
A D | cirrus.yml | 26 -e "s|[@]CI_COMMIT_SHA@|$CI_COMMIT_SHA|g" 30 -e "s|[@]CIRRUS_VM_CPUS@|$CIRRUS_VM_CPUS|g" 31 -e "s|[@]CIRRUS_VM_RAM@|$CIRRUS_VM_RAM|g" 32 -e "s|[@]UPDATE_COMMAND@|$UPDATE_COMMAND|g" 36 -e "s|[@]PKGS@|$PKGS|g" 37 -e "s|[@]MAKE@|$MAKE|g" 38 -e "s|[@]PYTHON@|$PYTHON|g" 39 -e "s|[@]PIP3@|$PIP3|g" 40 -e "s|[@]PYPI_PKGS@|$PYPI_PKGS|g" 41 -e "s|[@]CONFIGURE_ARGS@|$CONFIGURE_ARGS|g" [all …]
|
/qemu/audio/ |
A D | paaudio.c | 33 paaudio *g; member 41 paaudio *g; member 520 paaudio *g = pa->g = drv_opaque; in qpa_init_out() local 569 paaudio *g = pa->g = drv_opaque; in qpa_init_in() local 823 paaudio *g; in qpa_audio_init() local 857 g->dev = dev; in qpa_audio_init() 867 if (!g->conn) { in qpa_audio_init() 870 if (!g->conn) { in qpa_audio_init() 871 g_free(g); in qpa_audio_init() 877 return g; in qpa_audio_init() [all …]
|
/qemu/system/ |
A D | memory_mapping.c | 208 if (!QTAILQ_EMPTY(&g->list->head)) { in guest_phys_block_add_section() 211 predecessor = QTAILQ_LAST(&g->list->head); in guest_phys_block_add_section() 235 QTAILQ_INSERT_TAIL(&g->list->head, block, next); in guest_phys_block_add_section() 236 ++g->list->num; in guest_phys_block_add_section() 254 GuestPhysListener *g = opaque; in guest_phys_ram_populate_cb() local 256 guest_phys_block_add_section(g, section); in guest_phys_ram_populate_cb() 282 guest_phys_block_add_section(g, section); in guest_phys_blocks_region_add() 287 GuestPhysListener g = { 0 }; in guest_phys_blocks_append() local 289 g.list = list; in guest_phys_blocks_append() 290 g.listener.region_add = &guest_phys_blocks_region_add; in guest_phys_blocks_append() [all …]
|