Home
last modified time | relevance | path

Searched refs:cb (Results 1 – 25 of 135) sorted by relevance

123456

/qemu/plugins/
H A Dcore.c80 if (cb == NULL) { in plugin_unregister_cb__locked()
84 g_free(cb); in plugin_unregister_cb__locked()
134 func(cb->ctx->id); in plugin_cb__simple()
157 func(cb->ctx->id, cb->udata); in plugin_cb__udata()
180 if (cb) { in do_plugin_register_cb()
182 cb->udata = udata; in do_plugin_register_cb()
185 cb->ctx = ctx; in do_plugin_register_cb()
187 cb->udata = udata; in do_plugin_register_cb()
294 if (cb == NULL) { in qemu_plugin_vcpu_for_each()
299 args.cb = cb; in qemu_plugin_vcpu_for_each()
[all …]
H A Dapi.c62 plugin_reset_uninstall(id, cb, false); in qemu_plugin_uninstall()
65 void qemu_plugin_reset(qemu_plugin_id_t id, qemu_plugin_simple_cb_t cb) in qemu_plugin_reset() argument
67 plugin_reset_uninstall(id, cb, true); in qemu_plugin_reset()
78 qemu_plugin_vcpu_simple_cb_t cb) in qemu_plugin_register_vcpu_init_cb() argument
80 plugin_register_cb(id, QEMU_PLUGIN_EV_VCPU_INIT, cb); in qemu_plugin_register_vcpu_init_cb()
86 plugin_register_cb(id, QEMU_PLUGIN_EV_VCPU_EXIT, cb); in qemu_plugin_register_vcpu_exit_cb()
95 plugin_register_dyn_cb__udata(&tb->cbs, cb, flags, udata); in qemu_plugin_register_vcpu_tb_exec_cb()
137 qemu_plugin_vcpu_mem_cb_t cb, in qemu_plugin_register_vcpu_mem_cb() argument
158 plugin_register_cb(id, QEMU_PLUGIN_EV_VCPU_TB_TRANS, cb); in qemu_plugin_register_vcpu_tb_trans_cb()
164 plugin_register_cb(id, QEMU_PLUGIN_EV_VCPU_SYSCALL, cb); in qemu_plugin_register_vcpu_syscall_cb()
[all …]
H A Dplugin.h78 qemu_plugin_simple_cb_t cb,
93 qemu_plugin_vcpu_udata_cb_t cb,
98 void *cb,
103 void exec_inline_op(struct qemu_plugin_dyn_cb *cb, int cpu_index);
H A Dloader.c320 qemu_plugin_simple_cb_t cb; member
342 if (data->cb) { in plugin_reset_destroy__locked()
343 data->cb(ctx->id); in plugin_reset_destroy__locked()
361 if (data->cb) { in plugin_reset_destroy__locked()
362 data->cb(ctx->id); in plugin_reset_destroy__locked()
389 qemu_plugin_simple_cb_t cb, in plugin_reset_uninstall() argument
406 data->cb = cb; in plugin_reset_uninstall()
/qemu/target/hppa/
H A Dhelper.c65 target_ulong cb = 0; in cpu_hppa_put_psw() local
85 cb |= ((psw >> 38) & 1) << 60; in cpu_hppa_put_psw()
86 cb |= ((psw >> 37) & 1) << 56; in cpu_hppa_put_psw()
87 cb |= ((psw >> 36) & 1) << 52; in cpu_hppa_put_psw()
88 cb |= ((psw >> 35) & 1) << 48; in cpu_hppa_put_psw()
89 cb |= ((psw >> 34) & 1) << 44; in cpu_hppa_put_psw()
90 cb |= ((psw >> 33) & 1) << 40; in cpu_hppa_put_psw()
91 cb |= ((psw >> 32) & 1) << 36; in cpu_hppa_put_psw()
92 cb |= ((psw >> 15) & 1) << 32; in cpu_hppa_put_psw()
93 cb |= ((psw >> 14) & 1) << 28; in cpu_hppa_put_psw()
[all …]
/qemu/include/block/
H A Daio.h40 BlockCompletionFunc *cb; member
46 BlockCompletionFunc *cb, void *opaque);
297 #define aio_bh_schedule_oneshot(ctx, cb, opaque) \ argument
298 aio_bh_schedule_oneshot_full((ctx), (cb), (opaque), (stringify(cb)))
320 #define aio_bh_new(ctx, cb, opaque) \ argument
321 aio_bh_new_full((ctx), (cb), (opaque), (stringify(cb)), NULL)
330 #define aio_bh_new_guarded(ctx, cb, opaque, guard) \ argument
331 aio_bh_new_full((ctx), (cb), (opaque), (stringify(cb)), guard)
559 return timer_new_full(&ctx->tlg, type, scale, 0, cb, opaque); in aio_timer_new()
599 QEMUTimerCB *cb, void *opaque) in aio_timer_init() argument
[all …]
/qemu/include/qemu/
H A Dtimer.h87 QEMUTimerCB *cb; member
422 QEMUTimerCB *cb, void *opaque);
437 QEMUTimerCB *cb, void *opaque) in timer_init() argument
439 timer_init_full(ts, NULL, type, scale, 0, cb, opaque); in timer_init()
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()
544 return timer_new_full(NULL, type, scale, 0, cb, opaque); in timer_new()
562 return timer_new(type, SCALE_NS, cb, opaque); in timer_new_ns()
580 return timer_new(type, SCALE_US, cb, opaque); in timer_new_us()
[all …]
H A Dqemu-plugin.h161 void qemu_plugin_uninstall(qemu_plugin_id_t id, qemu_plugin_simple_cb_t cb);
175 void qemu_plugin_reset(qemu_plugin_id_t id, qemu_plugin_simple_cb_t cb);
188 qemu_plugin_vcpu_simple_cb_t cb);
201 qemu_plugin_vcpu_simple_cb_t cb);
212 qemu_plugin_vcpu_simple_cb_t cb);
223 qemu_plugin_vcpu_simple_cb_t cb);
300 qemu_plugin_vcpu_udata_cb_t cb,
343 qemu_plugin_vcpu_udata_cb_t cb,
565 qemu_plugin_vcpu_mem_cb_t cb,
640 qemu_plugin_vcpu_simple_cb_t cb);
[all …]
H A Dmain-loop.h388 #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
391 qemu_bh_new_full((cb), (opaque), (stringify(cb)), NULL)
392 QEMUBH *qemu_bh_new_full(QEMUBHFunc *cb, void *opaque, const char *name,
/qemu/accel/tcg/
H A Dplugin-gen.c110 tcg_gen_call2(cb->regular.f.vcpu_udata, cb->regular.info, NULL, in gen_udata_cb()
118 GArray *arr = cb->inline_insn.entry.score->data; in gen_inline_cb()
119 size_t offset = cb->inline_insn.entry.offset; in gen_inline_cb()
146 tcg_gen_call4(cb->regular.f.vcpu_mem, cb->regular.info, NULL, in gen_mem_cb()
157 switch (cb->type) { in inject_cb()
159 gen_udata_cb(cb); in inject_cb()
162 gen_inline_cb(cb); in inject_cb()
173 if (cb->rw & rw) { in inject_mem_cb()
174 switch (cb->type) { in inject_mem_cb()
176 gen_mem_cb(cb, meminfo, addr); in inject_mem_cb()
[all …]
/qemu/crypto/
H A Dder.c138 if (!cb) { in qcrypto_der_invoke_callback()
142 return cb(ctx, value, vlen, errp); in qcrypto_der_invoke_callback()
207 QCryptoDERDecodeCb cb, void *ctx, in qcrypto_der_extract_data() argument
228 QCryptoDERDecodeCb cb, in qcrypto_der_decode_tlv() argument
247 data_length = qcrypto_der_extract_data(data, dlen, cb, ctx, errp); in qcrypto_der_decode_tlv()
265 return qcrypto_der_decode_tlv(tag, data, dlen, cb, ctx, errp); in qcrypto_der_decode_int()
274 return qcrypto_der_decode_tlv(tag, data, dlen, cb, ctx, errp); in qcrypto_der_decode_seq()
283 return qcrypto_der_decode_tlv(tag, data, dlen, cb, ctx, errp); in qcrypto_der_decode_octet_str()
292 return qcrypto_der_decode_tlv(tag, data, dlen, cb, ctx, errp); in qcrypto_der_decode_bit_str()
301 return qcrypto_der_decode_tlv(tag, data, dlen, cb, ctx, errp); in qcrypto_der_decode_oid()
[all …]
H A Dder.h59 QCryptoDERDecodeCb cb,
81 QCryptoDERDecodeCb cb,
104 QCryptoDERDecodeCb cb,
127 QCryptoDERDecodeCb cb,
150 QCryptoDERDecodeCb cb,
175 QCryptoDERDecodeCb cb,
/qemu/tests/unit/
H A Dptimer-test-stubs.c25 QEMUBHFunc *cb; member
40 QEMUTimerCB *cb, void *opaque) in timer_init_full() argument
46 ts->cb = cb; in timer_init_full()
110 QEMUBH *qemu_bh_new_full(QEMUBHFunc *cb, void *opaque, const char *name, in qemu_bh_new_full() argument
115 bh->cb = cb; in qemu_bh_new_full()
H A Dtest-crypto-der.c183 QCryptoDERDecodeCb cb, void *opaque, in qcrypto_wrapped_decode_ctx_tag0() argument
186 return qcrypto_der_decode_ctx_tag(data, dlen, 0, cb, opaque, errp); in qcrypto_wrapped_decode_ctx_tag0()
190 QCryptoDERDecodeCb cb, void *opaque, in qcrypto_wrapped_decode_ctx_tag1() argument
193 return qcrypto_der_decode_ctx_tag(data, dlen, 1, cb, opaque, errp); in qcrypto_wrapped_decode_ctx_tag1()
199 QCryptoDERDecodeCb cb, void *opaque, Error **errp);
200 QCryptoDERDecodeCb cb; member
/qemu/util/
H A Daio-wait.c60 QEMUBHFunc *cb; member
69 data->cb(data->opaque); in aio_wait_bh()
75 void aio_wait_bh_oneshot(AioContext *ctx, QEMUBHFunc *cb, void *opaque) in aio_wait_bh_oneshot() argument
78 .cb = cb, in aio_wait_bh_oneshot()
H A Dqemu-timer.c97 QEMUTimerListNotifyCB *cb, in timerlist_new() argument
106 timer_list->notify_cb = cb; in timerlist_new()
362 QEMUTimerCB *cb, void *opaque) in timer_init_full() argument
368 ts->cb = cb; in timer_init_full()
506 QEMUTimerCB *cb; in timerlist_run_timers() local
571 cb = ts->cb; in timerlist_run_timers()
576 cb(opaque); in timerlist_run_timers()
594 QEMUTimerListNotifyCB *cb, void *opaque) in timerlistgroup_init() argument
598 tlg->tl[type] = timerlist_new(type, cb, opaque); in timerlistgroup_init()
H A Daiocb.c29 BlockCompletionFunc *cb, void *opaque) in qemu_aio_get() argument
36 acb->cb = cb; in qemu_aio_get()
H A Dfilemonitor-inotify.c41 QFileMonitorHandler cb; member
148 qev, watch->cb, in qemu_file_monitor_watch()
150 watch->cb(watch->id, qev, name, watch->opaque); in qemu_file_monitor_watch()
254 QFileMonitorHandler cb, in qemu_file_monitor_add_watch() argument
291 watch.cb = cb; in qemu_file_monitor_add_watch()
298 cb, opaque, watch.id); in qemu_file_monitor_add_watch()
/qemu/system/
H A Ddma-helpers.c102 trace_dma_complete(dbs, ret, dbs->common.cb); in dma_complete()
106 if (dbs->common.cb) { in dma_complete()
107 dbs->common.cb(dbs->common.opaque, ret); in dma_complete()
204 if (dbs->common.cb) { in dma_aio_cancel()
205 dbs->common.cb(dbs->common.opaque, -ECANCELED); in dma_aio_cancel()
217 BlockCompletionFunc *cb, in dma_blk_io() argument
220 DMAAIOCB *dbs = qemu_aio_get(&dma_aiocb_info, NULL, cb, opaque); in dma_blk_io()
247 return blk_aio_preadv(blk, offset, iov, 0, cb, cb_opaque); in dma_blk_read_io_func()
255 dma_blk_read_io_func, blk, cb, opaque, in dma_blk_read()
265 return blk_aio_pwritev(blk, offset, iov, 0, cb, cb_opaque); in dma_blk_write_io_func()
[all …]
/qemu/block/
H A Dnull.c158 acb->common.cb(acb->common.opaque, 0); in null_bh_cb()
165 acb->common.cb(acb->common.opaque, 0); in null_timer_cb()
171 BlockCompletionFunc *cb, in null_aio_common() argument
177 acb = qemu_aio_get(&null_aiocb_info, bs, cb, opaque); in null_aio_common()
195 BlockCompletionFunc *cb, in null_aio_preadv() argument
204 return null_aio_common(bs, cb, opaque); in null_aio_preadv()
210 BlockCompletionFunc *cb, in null_aio_pwritev() argument
213 return null_aio_common(bs, cb, opaque); in null_aio_pwritev()
217 BlockCompletionFunc *cb, in null_aio_flush() argument
220 return null_aio_common(bs, cb, opaque); in null_aio_flush()
/qemu/hw/core/
H A Dvm-change-state-handler.c56 VMChangeStateHandler *cb, in qdev_add_vm_change_state_handler() argument
59 return qdev_add_vm_change_state_handler_full(dev, cb, NULL, opaque); in qdev_add_vm_change_state_handler()
67 DeviceState *dev, VMChangeStateHandler *cb, in qdev_add_vm_change_state_handler_full() argument
72 return qemu_add_vm_change_state_handler_prio_full(cb, prepare_cb, opaque, in qdev_add_vm_change_state_handler_full()
/qemu/backends/
H A Dcryptodev-lkcf.c76 CryptoDevCompletionFunc cb; member
123 if (task->cb) { in cryptodev_lkcf_handle_response()
124 task->cb(task->opaque, task->status); in cryptodev_lkcf_handle_response()
270 if (task->cb) { in cryptodev_lkcf_cleanup()
277 if (task->cb) { in cryptodev_lkcf_cleanup()
495 task->cb = op_info->cb; in cryptodev_lkcf_operation()
570 CryptoDevCompletionFunc cb, in cryptodev_lkcf_create_session() argument
591 if (cb) { in cryptodev_lkcf_create_session()
592 cb(opaque, ret); in cryptodev_lkcf_create_session()
613 if (cb) { in cryptodev_lkcf_close_session()
[all …]
/qemu/include/sysemu/
H A Dblock-backend-io.h39 BlockCompletionFunc *cb, void *opaque);
43 BlockCompletionFunc *cb, void *opaque);
46 BlockCompletionFunc *cb, void *opaque);
48 BlockCompletionFunc *cb, void *opaque);
52 BlockCompletionFunc *cb, void *opaque);
55 BlockCompletionFunc *cb, void *opaque);
58 BlockCompletionFunc *cb, void *opaque);
60 BlockCompletionFunc *cb, void *opaque);
63 BlockCompletionFunc *cb, void *opaque);
106 BlockCompletionFunc *cb, void *opaque);
[all …]
H A Drunstate.h15 VMChangeStateEntry *qemu_add_vm_change_state_handler(VMChangeStateHandler *cb,
18 VMChangeStateHandler *cb, void *opaque, int priority);
20 qemu_add_vm_change_state_handler_prio_full(VMChangeStateHandler *cb,
24 VMChangeStateHandler *cb,
27 DeviceState *dev, VMChangeStateHandler *cb,
/qemu/subprojects/libvhost-user/
H A Dlibvhost-user-glib.c59 vug_src_dispatch(GSource *gsrc, GSourceFunc cb, gpointer data) in vug_src_dispatch() argument
65 ((vu_watch_cb)cb)(src->dev, src->gfd.revents, data); in vug_src_dispatch()
105 set_watch(VuDev *vu_dev, int fd, int vu_evt, vu_watch_cb cb, void *pvt) in set_watch() argument
112 g_assert(cb); in set_watch()
115 src = vug_source_new(dev, fd, vu_evt, cb, pvt); in set_watch()

123456