/qemu/include/migration/ |
H A D | register.h | 40 void (*save_state)(QEMUFile *f, void *opaque); 53 int (*save_prepare)(void *opaque, Error **errp); 76 void (*save_cleanup)(void *opaque); 117 bool (*is_active)(void *opaque); 128 bool (*has_postcopy)(void *opaque); 145 bool (*is_active_iterate)(void *opaque); 167 int (*save_live_iterate)(QEMUFile *f, void *opaque); 252 int (*load_cleanup)(void *opaque); 264 int (*resume_prepare)(MigrationState *s, void *opaque); 277 bool (*switchover_ack_needed)(void *opaque); [all …]
|
/qemu/tests/unit/ |
H A D | test-coroutine.c | 42 Coroutine **p_co = opaque; in verify_self() 106 NestData *nd = opaque; in nest() 143 bool *done = opaque; in yield_5_times() 173 Coroutine *c2 = opaque; in c1_fn() 202 CoMutex *m = opaque; in mutex_fn() 292 *(bool *)opaque = true; in rwlock_yield_upgrade() 301 *(bool *)opaque = true; in rwlock_wrlock_yield() 334 *(bool *)opaque = true; in rwlock_rdlock_yield() 343 *(bool *)opaque = true; in rwlock_wrlock_downgrade() 351 *(bool *)opaque = true; in rwlock_rdlock() [all …]
|
/qemu/target/i386/ |
H A D | machine.c | 221 X86CPU *cpu = opaque; in cpu_pre_save() 315 X86CPU *cpu = opaque; in cpu_post_load() 410 X86CPU *cpu = opaque; in async_pf_msr_needed() 417 X86CPU *cpu = opaque; in async_pf_int_msr_needed() 424 X86CPU *cpu = opaque; in pv_eoi_msr_needed() 431 X86CPU *cpu = opaque; in steal_time_msr_needed() 438 X86CPU *cpu = opaque; in exception_info_needed() 468 X86CPU *cpu = opaque; in poll_control_msr_needed() 530 X86CPU *cpu = opaque; in fpop_ip_dp_needed() 551 X86CPU *cpu = opaque; in tsc_adjust_needed() [all …]
|
/qemu/hw/core/ |
H A D | reset.c | 57 void *opaque; member 76 lr->func(lr->opaque); in legacy_reset_hold() 95 void qemu_register_reset(QEMUResetHandler *func, void *opaque) in qemu_register_reset() argument 101 lr->opaque = opaque; in qemu_register_reset() 111 lr->opaque = opaque; in qemu_register_reset_nosnapshotload() 118 void *opaque; member 125 FindLegacyInfo *fli = opaque; in find_legacy_reset_cb() 129 if (lr && lr->func == fli->func && lr->opaque == fli->opaque) { in find_legacy_reset_cb() 146 fli.opaque = opaque; in find_legacy_reset() 153 void qemu_unregister_reset(QEMUResetHandler *func, void *opaque) in qemu_unregister_reset() argument [all …]
|
H A D | qdev-properties.c | 64 Property *prop = opaque; in field_prop_get() 81 Property *prop = opaque; in field_prop_set() 103 Property *prop = opaque; in qdev_propinfo_get_enum() 112 Property *prop = opaque; in qdev_propinfo_set_enum() 154 Property *prop = opaque; in prop_get_bit() 164 Property *prop = opaque; in prop_set_bit() 208 Property *prop = opaque; in prop_get_bit64() 218 Property *prop = opaque; in prop_set_bit64() 240 Property *prop = opaque; in get_bool() 249 Property *prop = opaque; in set_bool() [all …]
|
H A D | irq.c | 35 void *opaque; member 44 irq->handler(irq->opaque, irq->n, level); in qemu_set_irq() 48 void *opaque, int n) in qemu_extend_irqs() argument 58 s[i] = qemu_allocate_irq(handler, opaque, i); in qemu_extend_irqs() 65 return qemu_extend_irqs(NULL, 0, handler, opaque, n); in qemu_allocate_irqs() 68 qemu_irq qemu_allocate_irq(qemu_irq_handler handler, void *opaque, int n) in qemu_allocate_irq() argument 74 irq->opaque = opaque; in qemu_allocate_irq() 94 static void qemu_notirq(void *opaque, int line, int level) in qemu_notirq() argument 96 IRQState *irq = opaque; in qemu_notirq() 98 irq->handler(irq->opaque, irq->n, !level); in qemu_notirq() [all …]
|
H A D | qdev-properties-system.c | 67 Property *prop = opaque; in get_drive() 93 Property *prop = opaque; in set_drive_helper() 202 Property *prop = opaque; in release_drive() 246 Property *prop = opaque; in set_chr() 282 Property *prop = opaque; in release_chr() 306 Property *prop = opaque; in get_mac() 321 Property *prop = opaque; in set_mac() 383 Property *prop = opaque; in get_netdev() 394 Property *prop = opaque; in set_netdev() 462 Property *prop = opaque; in get_audiodev() [all …]
|
/qemu/hw/misc/ |
H A D | slavio_misc.c | 94 MiscState *s = opaque; in slavio_misc_update_irq() 115 MiscState *s = opaque; in slavio_set_power_fail() 129 MiscState *s = opaque; in slavio_cfg_mem_writeb() 139 MiscState *s = opaque; in slavio_cfg_mem_readb() 160 MiscState *s = opaque; in slavio_diag_mem_writeb() 169 MiscState *s = opaque; in slavio_diag_mem_readb() 190 MiscState *s = opaque; in slavio_mdm_mem_writeb() 199 MiscState *s = opaque; in slavio_mdm_mem_readb() 220 MiscState *s = opaque; in slavio_aux1_mem_writeb() 237 MiscState *s = opaque; in slavio_aux1_mem_readb() [all …]
|
/qemu/hw/m68k/ |
H A D | mcf5206.c | 95 static void m5206_timer_trigger(void *opaque) in m5206_timer_trigger() argument 97 m5206_timer_state *s = (m5206_timer_state *)opaque; in m5206_timer_trigger() 253 m5206_mbar_state *s = (m5206_mbar_state *)opaque; in m5206_mbar_set_irq() 412 val = m5206_mbar_readw(opaque, offset & ~1); in m5206_mbar_readb() 434 val = m5206_mbar_readl(opaque, offset & ~3); in m5206_mbar_readw() 552 return m5206_mbar_readb(opaque, addr); in m5206_mbar_readfn() 554 return m5206_mbar_readw(opaque, addr); in m5206_mbar_readfn() 556 return m5206_mbar_readl(opaque, addr); in m5206_mbar_readfn() 567 m5206_mbar_writeb(opaque, addr, value); in m5206_mbar_writefn() 570 m5206_mbar_writew(opaque, addr, value); in m5206_mbar_writefn() [all …]
|
/qemu/migration/ |
H A D | vmstate.c | 27 void *opaque); 32 void *opaque, int version_id) in vmstate_field_exists() argument 92 void *opaque) in vmstate_handle_alloc() argument 95 gsize size = vmstate_size(opaque, field); in vmstate_handle_alloc() 96 size *= vmstate_n_elems(opaque, field); in vmstate_handle_alloc() 125 ret = vmsd->pre_load(opaque); in vmstate_load_state() 330 if (vmsd->needed && !vmsd->needed(opaque)) { in vmstate_section_needed() 359 ret = vmsd->pre_save(opaque); in vmstate_save_state_v() 415 vmsd->post_save(opaque); in vmstate_save_state_v() 446 int ps_ret = vmsd->post_save(opaque); in vmstate_save_state_v() [all …]
|
/qemu/replay/ |
H A D | replay-events.c | 22 void *opaque; member 38 aio_bh_call(event->opaque); in replay_run_event() 51 replay_event_char_read_run(event->opaque); in replay_run_event() 54 aio_bh_call(event->opaque); in replay_run_event() 57 replay_event_net_run(event->opaque); in replay_run_event() 106 void *opaque, in replay_add_event() argument 115 e.opaque = opaque; in replay_add_event() 124 event->opaque = opaque; in replay_add_event() 144 QEMUBHFunc *cb, void *opaque) in replay_bh_schedule_oneshot_event() argument 150 aio_bh_schedule_oneshot(ctx, cb, opaque); in replay_bh_schedule_oneshot_event() [all …]
|
/qemu/hw/ppc/ |
H A D | prep_systemio.c | 68 PrepSystemIoState *s = opaque; in prep_port0092_write() 84 static uint32_t prep_port0092_read(void *opaque, uint32_t addr) in prep_port0092_read() argument 86 PrepSystemIoState *s = opaque; in prep_port0092_read() 131 static uint32_t prep_port0818_read(void *opaque, uint32_t addr) in prep_port0818_read() argument 148 static uint32_t prep_port080c_read(void *opaque, uint32_t addr) in prep_port080c_read() argument 150 PrepSystemIoState *s = opaque; in prep_port080c_read() 170 PrepSystemIoState *s = opaque; in prep_port081c_write() 177 PrepSystemIoState *s = opaque; in prep_port081c_read() 186 PrepSystemIoState *s = opaque; in prep_port0852_read() 199 PrepSystemIoState *s = opaque; in prep_port0850_read() [all …]
|
/qemu/include/block/ |
H A D | aio.h | 30 typedef void BlockCompletionFunc(void *opaque, int ret); 41 void *opaque; member 46 BlockCompletionFunc *cb, void *opaque); 52 typedef void QEMUBHFunc(void *opaque); 53 typedef bool AioPollFn(void *opaque); 54 typedef void IOHandler(void *opaque); 297 #define aio_bh_schedule_oneshot(ctx, cb, opaque) \ argument 320 #define aio_bh_new(ctx, cb, opaque) \ argument 330 #define aio_bh_new_guarded(ctx, cb, opaque, guard) \ argument 468 void *opaque); [all …]
|
/qemu/include/qemu/ |
H A D | main-loop.h | 115 typedef int PollingFunc(void *opaque); 135 int qemu_add_polling_cb(PollingFunc *func, void *opaque); 146 void qemu_del_polling_cb(PollingFunc *func, void *opaque); 149 typedef void WaitObjectFunc(void *opaque); 182 typedef void IOReadHandler(void *opaque, const uint8_t *buf, int size); 197 typedef int IOCanReadHandler(void *opaque); 230 void *opaque); 388 #define qemu_bh_new_guarded(cb, opaque, guard) \ argument 389 qemu_bh_new_full((cb), (opaque), (stringify(cb)), guard) 390 #define qemu_bh_new(cb, opaque) \ argument [all …]
|
H A D | timer.h | 81 typedef void QEMUTimerCB(void *opaque); 88 void *opaque; member 456 timer_init(ts, type, SCALE_NS, cb, opaque); in timer_init_ns() 473 timer_init(ts, type, SCALE_US, cb, opaque); in timer_init_us() 490 timer_init(ts, type, SCALE_MS, cb, opaque); in timer_init_ms() 560 void *opaque) in timer_new_ns() argument 562 return timer_new(type, SCALE_NS, cb, opaque); in timer_new_ns() 578 void *opaque) in timer_new_us() argument 580 return timer_new(type, SCALE_US, cb, opaque); in timer_new_us() 596 void *opaque) in timer_new_ms() argument [all …]
|
/qemu/target/arm/ |
H A D | machine.c | 14 ARMCPU *cpu = opaque; in vfp_needed() 24 ARMCPU *cpu = opaque; in get_fpscr() 35 ARMCPU *cpu = opaque; in put_fpscr() 108 ARMCPU *cpu = opaque; in iwmmxt_needed() 134 ARMCPU *cpu = opaque; in sve_needed() 186 ARMCPU *cpu = opaque; in za_needed() 210 ARMCPU *cpu = opaque; in serror_needed() 247 ARMCPU *cpu = opaque; in m_needed() 275 ARMCPU *cpu = opaque; in csselr_vmstate_validate() 283 ARMCPU *cpu = opaque; in m_csselr_needed() [all …]
|
/qemu/io/ |
H A D | task.c | 30 gpointer opaque; member 40 gpointer opaque; member 53 gpointer opaque, in qio_task_new() argument 63 task->opaque = opaque; in qio_task_new() 68 trace_qio_task_new(task, source, func, opaque); in qio_task_new() 89 task->destroy(task->opaque); in qio_task_free() 109 QIOTask *task = opaque; in qio_task_thread_result() 120 QIOTask *task = opaque; in qio_task_thread_worker() 152 gpointer opaque, in qio_task_run_in_thread() argument 164 data->opaque = opaque; in qio_task_run_in_thread() [all …]
|
/qemu/hw/pcmcia/ |
H A D | pxa2xx.c | 36 static uint64_t pxa2xx_pcmcia_common_read(void *opaque, in pxa2xx_pcmcia_common_read() argument 39 PXA2xxPCMCIAState *s = (PXA2xxPCMCIAState *) opaque; in pxa2xx_pcmcia_common_read() 53 PXA2xxPCMCIAState *s = (PXA2xxPCMCIAState *) opaque; in pxa2xx_pcmcia_common_write() 62 static uint64_t pxa2xx_pcmcia_attr_read(void *opaque, in pxa2xx_pcmcia_attr_read() argument 65 PXA2xxPCMCIAState *s = (PXA2xxPCMCIAState *) opaque; in pxa2xx_pcmcia_attr_read() 79 PXA2xxPCMCIAState *s = (PXA2xxPCMCIAState *) opaque; in pxa2xx_pcmcia_attr_write() 88 static uint64_t pxa2xx_pcmcia_io_read(void *opaque, in pxa2xx_pcmcia_io_read() argument 91 PXA2xxPCMCIAState *s = (PXA2xxPCMCIAState *) opaque; in pxa2xx_pcmcia_io_read() 105 PXA2xxPCMCIAState *s = (PXA2xxPCMCIAState *) opaque; in pxa2xx_pcmcia_io_write() 134 PXA2xxPCMCIAState *s = (PXA2xxPCMCIAState *) opaque; in pxa2xx_pcmcia_set_irq() [all …]
|
/qemu/hw/i386/xen/ |
H A D | xen_platform.c | 141 static void del_nic_peer(NICState *nic, void *opaque) in del_nic_peer() argument 230 uint32_t flags = *(uint32_t *)opaque; in unplug_disks() 267 PCIXenPlatformState *s = opaque; in platform_fixed_ioport_writew() 313 PCIXenPlatformState *s = opaque; in platform_fixed_ioport_writeb() 355 PCIXenPlatformState *s = opaque; in platform_fixed_ioport_readb() 369 static void platform_fixed_ioport_reset(void *opaque) in platform_fixed_ioport_reset() argument 371 PCIXenPlatformState *s = opaque; in platform_fixed_ioport_reset() 376 static uint64_t platform_fixed_ioport_read(void *opaque, in platform_fixed_ioport_read() argument 436 return platform_fixed_ioport_readb(opaque, 0); in xen_platform_ioport_readb() 445 PCIXenPlatformState *s = opaque; in xen_platform_ioport_writeb() [all …]
|
/qemu/block/ |
H A D | null.c | 84 BDRVNullState *s = bs->opaque; in null_file_open() 105 BDRVNullState *s = bs->opaque; in null_co_getlength() 111 BDRVNullState *s = bs->opaque; in null_co_common() 124 BDRVNullState *s = bs->opaque; in null_co_preadv() 155 static void null_bh_cb(void *opaque) in null_bh_cb() argument 157 NullAIOCB *acb = opaque; in null_bh_cb() 162 static void null_timer_cb(void *opaque) in null_timer_cb() argument 164 NullAIOCB *acb = opaque; in null_timer_cb() 175 BDRVNullState *s = bs->opaque; in null_aio_common() 198 BDRVNullState *s = bs->opaque; in null_aio_preadv() [all …]
|
/qemu/tests/bench/ |
H A D | benchmark-crypto-cipher.c | 103 static void test_cipher_speed_ecb_aes_128(const void *opaque) in test_cipher_speed_ecb_aes_128() argument 105 size_t chunk_size = (size_t)opaque; in test_cipher_speed_ecb_aes_128() 111 static void test_cipher_speed_ecb_aes_256(const void *opaque) in test_cipher_speed_ecb_aes_256() argument 113 size_t chunk_size = (size_t)opaque; in test_cipher_speed_ecb_aes_256() 119 static void test_cipher_speed_cbc_aes_128(const void *opaque) in test_cipher_speed_cbc_aes_128() argument 121 size_t chunk_size = (size_t)opaque; in test_cipher_speed_cbc_aes_128() 129 size_t chunk_size = (size_t)opaque; in test_cipher_speed_cbc_aes_256() 137 size_t chunk_size = (size_t)opaque; in test_cipher_speed_ctr_aes_128() 145 size_t chunk_size = (size_t)opaque; in test_cipher_speed_ctr_aes_256() 153 size_t chunk_size = (size_t)opaque; in test_cipher_speed_xts_aes_128() [all …]
|
/qemu/include/sysemu/ |
H A D | block-backend-common.h | 45 void (*change_media_cb)(void *opaque, bool load, Error **errp); 54 void (*eject_request_cb)(void *opaque, bool force); 60 bool (*is_medium_locked)(void *opaque); 65 void (*drained_begin)(void *opaque); 69 void (*drained_end)(void *opaque); 73 bool (*drained_poll)(void *opaque); 86 bool (*is_tray_open)(void *opaque); 91 void (*resize_cb)(void *opaque);
|
/qemu/hw/intc/ |
H A D | bcm2836_control.c | 143 BCM2836ControlState *s = opaque; in bcm2836_control_set_local_irq() 180 BCM2836ControlState *s = opaque; in bcm2836_control_set_gpu_irq() 189 BCM2836ControlState *s = opaque; in bcm2836_control_set_gpu_fiq() 196 static void bcm2836_control_local_timer_set_next(void *opaque) in bcm2836_control_local_timer_set_next() argument 198 BCM2836ControlState *s = opaque; in bcm2836_control_local_timer_set_next() 209 static void bcm2836_control_local_timer_tick(void *opaque) in bcm2836_control_local_timer_tick() argument 211 BCM2836ControlState *s = opaque; in bcm2836_control_local_timer_tick() 221 BCM2836ControlState *s = opaque; in bcm2836_control_local_timer_control() 233 BCM2836ControlState *s = opaque; in bcm2836_control_local_timer_ack() 246 BCM2836ControlState *s = opaque; in bcm2836_control_read() [all …]
|
/qemu/hw/input/ |
H A D | pckbd.c | 240 KBDState *s = opaque; in kbd_update_kbd_irq() 252 KBDState *s = opaque; in kbd_update_aux_irq() 264 KBDState *s = opaque; in kbd_throttle_timeout() 274 KBDState *s = opaque; in kbd_read_status() 317 KBDState *s = opaque; in kbd_write_command() 402 KBDState *s = opaque; in kbd_read_data() 426 KBDState *s = opaque; in kbd_write_data() 475 KBDState *s = opaque; in kbd_reset() 496 KBDState *s = opaque; in kbd_outport_post_load() 503 KBDState *s = opaque; in kbd_outport_needed() [all …]
|
/qemu/target/riscv/ |
H A D | machine.c | 29 RISCVCPU *cpu = opaque; in pmp_needed() 36 RISCVCPU *cpu = opaque; in pmp_post_load() 74 RISCVCPU *cpu = opaque; in hyper_needed() 130 RISCVCPU *cpu = opaque; in vector_needed() 155 RISCVCPU *cpu = opaque; in pointermasking_needed() 207 RISCVCPU *cpu = opaque; in cpu_kvmtimer_post_load() 231 RISCVCPU *cpu = opaque; in debug_needed() 238 RISCVCPU *cpu = opaque; in debug_post_load() 265 RISCVCPU *cpu = opaque; in riscv_cpu_post_load() 275 RISCVCPU *cpu = opaque; in smstateen_needed() [all …]
|