Lines Matching refs:PCIQXLDevice
118 static void qxl_send_events(PCIQXLDevice *d, uint32_t events);
119 static int qxl_destroy_primary(PCIQXLDevice *d, qxl_async_io async);
120 static void qxl_reset_memslots(PCIQXLDevice *d);
121 static void qxl_reset_surfaces(PCIQXLDevice *d);
122 static void qxl_ring_set_dirty(PCIQXLDevice *qxl);
126 void qxl_set_guest_bug(PCIQXLDevice *qxl, const char *msg, ...) in qxl_set_guest_bug()
141 static void qxl_clear_guest_bug(PCIQXLDevice *qxl) in qxl_clear_guest_bug()
146 void qxl_spice_update_area(PCIQXLDevice *qxl, uint32_t surface_id, in qxl_spice_update_area()
166 static void qxl_spice_destroy_surface_wait_complete(PCIQXLDevice *qxl, in qxl_spice_destroy_surface_wait_complete()
176 static void qxl_spice_destroy_surface_wait(PCIQXLDevice *qxl, uint32_t id, in qxl_spice_destroy_surface_wait()
193 static void qxl_spice_flush_surfaces_async(PCIQXLDevice *qxl) in qxl_spice_flush_surfaces_async()
202 void qxl_spice_loadvm_commands(PCIQXLDevice *qxl, struct QXLCommandExt *ext, in qxl_spice_loadvm_commands()
209 void qxl_spice_oom(PCIQXLDevice *qxl) in qxl_spice_oom()
215 void qxl_spice_reset_memslots(PCIQXLDevice *qxl) in qxl_spice_reset_memslots()
221 static void qxl_spice_destroy_surfaces_complete(PCIQXLDevice *qxl) in qxl_spice_destroy_surfaces_complete()
231 static void qxl_spice_destroy_surfaces(PCIQXLDevice *qxl, qxl_async_io async) in qxl_spice_destroy_surfaces()
244 static void qxl_spice_monitors_config_async(PCIQXLDevice *qxl, int replay) in qxl_spice_monitors_config_async()
288 void qxl_spice_reset_image_cache(PCIQXLDevice *qxl) in qxl_spice_reset_image_cache()
294 void qxl_spice_reset_cursor(PCIQXLDevice *qxl) in qxl_spice_reset_cursor()
326 static void init_qxl_rom(PCIQXLDevice *d) in init_qxl_rom()
398 static void init_qxl_ram(PCIQXLDevice *d) in init_qxl_ram()
429 static void qxl_rom_set_dirty(PCIQXLDevice *qxl) in qxl_rom_set_dirty()
435 static void qxl_ram_set_dirty(PCIQXLDevice *qxl, void *ptr) in qxl_ram_set_dirty()
446 static void qxl_ring_set_dirty(PCIQXLDevice *qxl) in qxl_ring_set_dirty()
457 static int qxl_track_command(PCIQXLDevice *qxl, struct QXLCommandExt *ext) in qxl_track_command()
524 PCIQXLDevice *qxl = container_of(sin, PCIQXLDevice, ssd.qxl); in interface_attached_worker()
538 PCIQXLDevice *qxl = container_of(sin, PCIQXLDevice, ssd.qxl); in interface_set_compression_level()
548 PCIQXLDevice *qxl = container_of(sin, PCIQXLDevice, ssd.qxl); in interface_get_init_info()
615 PCIQXLDevice *qxl = container_of(sin, PCIQXLDevice, ssd.qxl); in interface_get_command()
671 PCIQXLDevice *qxl = container_of(sin, PCIQXLDevice, ssd.qxl); in interface_req_cmd_notification()
690 static inline void qxl_push_free_res(PCIQXLDevice *d, int flush) in qxl_push_free_res()
738 PCIQXLDevice *qxl = container_of(sin, PCIQXLDevice, ssd.qxl); in interface_release_resource()
790 PCIQXLDevice *qxl = container_of(sin, PCIQXLDevice, ssd.qxl); in interface_get_cursor_command()
833 PCIQXLDevice *qxl = container_of(sin, PCIQXLDevice, ssd.qxl); in interface_req_cursor_notification()
866 PCIQXLDevice *qxl = container_of(sin, PCIQXLDevice, ssd.qxl); in interface_flush_resources()
876 static void qxl_create_guest_primary_complete(PCIQXLDevice *d);
879 static void interface_async_complete_io(PCIQXLDevice *qxl, QXLCookie *cookie) in interface_async_complete_io()
926 PCIQXLDevice *qxl = container_of(sin, PCIQXLDevice, ssd.qxl); in interface_update_area_complete()
966 PCIQXLDevice *qxl = container_of(sin, PCIQXLDevice, ssd.qxl); in interface_async_complete()
991 PCIQXLDevice *qxl = container_of(sin, PCIQXLDevice, ssd.qxl); in interface_set_client_capabilities()
1047 PCIQXLDevice *qxl = container_of(sin, PCIQXLDevice, ssd.qxl); in interface_client_monitors_config()
1153 static void qxl_enter_vga_mode(PCIQXLDevice *d) in qxl_enter_vga_mode()
1169 static void qxl_exit_vga_mode(PCIQXLDevice *d) in qxl_exit_vga_mode()
1181 static void qxl_update_irq(PCIQXLDevice *d) in qxl_update_irq()
1190 static void qxl_check_state(PCIQXLDevice *d) in qxl_check_state()
1199 static void qxl_reset_state(PCIQXLDevice *d) in qxl_reset_state()
1214 static void qxl_soft_reset(PCIQXLDevice *d) in qxl_soft_reset()
1230 static void qxl_hard_reset(PCIQXLDevice *d, int loadvm) in qxl_hard_reset()
1261 PCIQXLDevice *d = PCI_QXL(PCI_DEVICE(dev)); in qxl_reset_handler()
1269 PCIQXLDevice *qxl = container_of(vga, PCIQXLDevice, vga); in qxl_vga_ioport_write()
1294 static int qxl_add_memslot(PCIQXLDevice *d, uint32_t slot_id, uint64_t delta, in qxl_add_memslot()
1385 static void qxl_del_memslot(PCIQXLDevice *d, uint32_t slot_id) in qxl_del_memslot()
1391 static void qxl_reset_memslots(PCIQXLDevice *d) in qxl_reset_memslots()
1397 static void qxl_reset_surfaces(PCIQXLDevice *d) in qxl_reset_surfaces()
1405 static bool qxl_get_check_slot_offset(PCIQXLDevice *qxl, QXLPHYSICAL pqxl, in qxl_get_check_slot_offset()
1460 void *qxl_phys2virt(PCIQXLDevice *qxl, QXLPHYSICAL pqxl, int group_id, in qxl_phys2virt()
1483 static void qxl_create_guest_primary_complete(PCIQXLDevice *qxl) in qxl_create_guest_primary_complete()
1489 static void qxl_create_guest_primary(PCIQXLDevice *qxl, int loadvm, in qxl_create_guest_primary()
1549 static int qxl_destroy_primary(PCIQXLDevice *d, qxl_async_io async) in qxl_destroy_primary()
1561 static void qxl_set_mode(PCIQXLDevice *d, unsigned int modenr, int loadvm) in qxl_set_mode()
1615 PCIQXLDevice *d = opaque;
1860 PCIQXLDevice *qxl = opaque;
1877 PCIQXLDevice *d = opaque;
1881 static void qxl_send_events(PCIQXLDevice *d, uint32_t events)
1929 PCIQXLDevice *qxl = opaque;
1934 static void qxl_dirty_one_surface(PCIQXLDevice *qxl, QXLPHYSICAL pqxl,
1950 static void qxl_dirty_surfaces(PCIQXLDevice *qxl)
1984 PCIQXLDevice *qxl = opaque;
2004 PCIQXLDevice *qxl = container_of(dcl, PCIQXLDevice, ssd.dcl);
2014 PCIQXLDevice *qxl = container_of(dcl, PCIQXLDevice, ssd.dcl);
2024 PCIQXLDevice *qxl = container_of(dcl, PCIQXLDevice, ssd.dcl);
2038 static void qxl_init_ramsize(PCIQXLDevice *qxl)
2086 static void qxl_realize_common(PCIQXLDevice *qxl, Error **errp)
2219 PCIQXLDevice *qxl = PCI_QXL(dev);
2260 PCIQXLDevice *qxl = PCI_QXL(dev);
2275 PCIQXLDevice* d = opaque;
2293 PCIQXLDevice* d = opaque;
2301 static void qxl_create_memslots(PCIQXLDevice *d)
2315 PCIQXLDevice* d = opaque;
2381 PCIQXLDevice *qxl = opaque;
2423 VMSTATE_UINT64(guest_monitors_config, PCIQXLDevice),
2436 VMSTATE_PCI_DEVICE(pci, PCIQXLDevice),
2437 VMSTATE_STRUCT(vga, PCIQXLDevice, 0, vmstate_vga_common, VGACommonState),
2438 VMSTATE_UINT32(shadow_rom.mode, PCIQXLDevice),
2439 VMSTATE_UINT32(num_free_res, PCIQXLDevice),
2440 VMSTATE_UINT32(last_release_offset, PCIQXLDevice),
2441 VMSTATE_UINT32(mode, PCIQXLDevice),
2442 VMSTATE_UINT32(ssd.unique, PCIQXLDevice),
2443 VMSTATE_INT32_EQUAL(num_memslots, PCIQXLDevice, NULL),
2444 VMSTATE_STRUCT_ARRAY(guest_slots, PCIQXLDevice, NUM_MEMSLOTS, 0,
2446 VMSTATE_STRUCT(guest_primary.surface, PCIQXLDevice, 0,
2448 VMSTATE_INT32_EQUAL(ssd.num_surfaces, PCIQXLDevice, NULL),
2449 VMSTATE_VARRAY_INT32(guest_surfaces.cmds, PCIQXLDevice,
2452 VMSTATE_UINT64(guest_cursor, PCIQXLDevice),
2462 DEFINE_PROP_UINT32("ram_size", PCIQXLDevice, vga.vram_size, 64 * MiB),
2463 DEFINE_PROP_UINT64("vram_size", PCIQXLDevice, vram32_size, 64 * MiB),
2464 DEFINE_PROP_UINT32("revision", PCIQXLDevice, revision,
2466 DEFINE_PROP_UINT32("debug", PCIQXLDevice, debug, 0),
2467 DEFINE_PROP_UINT32("guestdebug", PCIQXLDevice, guestdebug, 0),
2468 DEFINE_PROP_UINT32("cmdlog", PCIQXLDevice, cmdlog, 0),
2469 DEFINE_PROP_UINT32("ram_size_mb", PCIQXLDevice, ram_size_mb, -1),
2470 DEFINE_PROP_UINT32("vram_size_mb", PCIQXLDevice, vram32_size_mb, -1),
2471 DEFINE_PROP_UINT32("vram64_size_mb", PCIQXLDevice, vram_size_mb, -1),
2472 DEFINE_PROP_UINT32("vgamem_mb", PCIQXLDevice, vgamem_size_mb, 16),
2473 DEFINE_PROP_INT32("surfaces", PCIQXLDevice, ssd.num_surfaces, 1024),
2474 DEFINE_PROP_UINT16("max_outputs", PCIQXLDevice, max_outputs, 0),
2475 DEFINE_PROP_UINT32("xres", PCIQXLDevice, xres, 0),
2476 DEFINE_PROP_UINT32("yres", PCIQXLDevice, yres, 0),
2477 DEFINE_PROP_BOOL("global-vmstate", PCIQXLDevice, vga.global_vmstate, false),
2497 .instance_size = sizeof(PCIQXLDevice),