Home
last modified time | relevance | path

Searched full:cb (Results 1 – 25 of 162) sorted by relevance

1234567

/qemu/plugins/
H A Dcore.c66 struct qemu_plugin_cb *cb = ctx->callbacks[ev]; in plugin_unregister_cb__locked() local
68 if (cb == NULL) { in plugin_unregister_cb__locked()
71 QLIST_REMOVE_RCU(cb, entry); in plugin_unregister_cb__locked()
72 g_free(cb); in plugin_unregister_cb__locked()
88 struct qemu_plugin_cb *cb, *next; in plugin_vcpu_cb__simple() local
96 QLIST_FOREACH_SAFE_RCU(cb, &plugin.cb_lists[ev], entry, next) { in plugin_vcpu_cb__simple()
97 qemu_plugin_vcpu_simple_cb_t func = cb->f.vcpu_simple; in plugin_vcpu_cb__simple()
99 func(cb->ctx->id, cpu->cpu_index); in plugin_vcpu_cb__simple()
115 struct qemu_plugin_cb *cb, *next; in plugin_cb__simple() local
119 QLIST_FOREACH_SAFE_RCU(cb, &plugin.cb_lists[ev], entry, next) { in plugin_cb__simple()
[all …]
H A Dapi.c52 void qemu_plugin_uninstall(qemu_plugin_id_t id, qemu_plugin_simple_cb_t cb) in qemu_plugin_uninstall() argument
54 plugin_reset_uninstall(id, cb, false); in qemu_plugin_uninstall()
57 void qemu_plugin_reset(qemu_plugin_id_t id, qemu_plugin_simple_cb_t cb) in qemu_plugin_reset() argument
59 plugin_reset_uninstall(id, cb, true); in qemu_plugin_reset()
70 qemu_plugin_vcpu_simple_cb_t cb) in qemu_plugin_register_vcpu_init_cb() argument
72 plugin_register_cb(id, QEMU_PLUGIN_EV_VCPU_INIT, cb); in qemu_plugin_register_vcpu_init_cb()
76 qemu_plugin_vcpu_simple_cb_t cb) in qemu_plugin_register_vcpu_exit_cb() argument
78 plugin_register_cb(id, QEMU_PLUGIN_EV_VCPU_EXIT, cb); in qemu_plugin_register_vcpu_exit_cb()
87 qemu_plugin_vcpu_udata_cb_t cb, in qemu_plugin_register_vcpu_tb_exec_cb() argument
92 plugin_register_dyn_cb__udata(&tb->cbs, cb, flags, udata); in qemu_plugin_register_vcpu_tb_exec_cb()
[all …]
H A Dplugin.h79 qemu_plugin_simple_cb_t cb,
94 qemu_plugin_vcpu_udata_cb_t cb,
99 qemu_plugin_vcpu_udata_cb_t cb,
107 void *cb,
113 struct qemu_plugin_inline_cb *cb,
/qemu/crypto/
H A Dder.h45 * @cb: callback invoked when decode succeed, if cb equals NULL, no
47 * @opaque: parameter passed to cb
52 * will be set to the rest length of data, if cb is not NULL, must
59 QCryptoDERDecodeCb cb,
69 * @cb: callback invoked when decode succeed, if cb equals NULL, no
71 * @opaque: parameter passed to cb
74 * will be set to the rest length of data, if cb is not NULL, must
81 QCryptoDERDecodeCb cb,
92 * @cb: callback invoked when decode succeed, if cb equals NULL, no
94 * @opaque: parameter passed to cb
[all …]
H A Dder.c134 static int qcrypto_der_invoke_callback(QCryptoDERDecodeCb cb, void *ctx, in qcrypto_der_invoke_callback() argument
138 if (!cb) { in qcrypto_der_invoke_callback()
142 return cb(ctx, value, vlen, errp); in qcrypto_der_invoke_callback()
146 QCryptoDERDecodeCb cb, void *ctx, in qcrypto_der_extract_definite_data() argument
164 if (qcrypto_der_invoke_callback(cb, ctx, value, vlen, errp) != 0) { in qcrypto_der_extract_definite_data()
200 if (qcrypto_der_invoke_callback(cb, ctx, value, vlen, errp) != 0) { in qcrypto_der_extract_definite_data()
207 QCryptoDERDecodeCb cb, void *ctx, in qcrypto_der_extract_data() argument
223 return qcrypto_der_extract_definite_data(data, dlen, cb, ctx, errp); in qcrypto_der_extract_data()
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()
[all …]
/qemu/accel/tcg/
H A Dplugin-gen.c56 * (1) copy the CB descriptors, and keep track of it so that they can be in gen_enable_mem_helper()
117 static void gen_udata_cb(struct qemu_plugin_regular_cb *cb) in gen_udata_cb() argument
120 tcg_gen_call2(cb->f.vcpu_udata, cb->info, NULL, in gen_udata_cb()
122 tcgv_ptr_temp(tcg_constant_ptr(cb->userp))); in gen_udata_cb()
164 static void gen_udata_cond_cb(struct qemu_plugin_conditional_cb *cb) in gen_udata_cond_cb() argument
166 TCGv_ptr ptr = gen_plugin_u64_ptr(cb->entry); in gen_udata_cond_cb()
170 /* Condition should be negated, as calling the cb is the "else" path */ in gen_udata_cond_cb()
171 TCGCond cond = tcg_invert_cond(plugin_cond_to_tcgcond(cb->cond)); in gen_udata_cond_cb()
174 tcg_gen_brcondi_i64(cond, val, cb->imm, after_cb); in gen_udata_cond_cb()
176 tcg_gen_call2(cb->f.vcpu_udata, cb->info, NULL, in gen_udata_cond_cb()
[all …]
/qemu/include/qemu/
H A Dqemu-plugin.h160 * @cb: callback to be called once the plugin has been removed
164 * plugin receives callbacks until @cb is called.
169 void qemu_plugin_uninstall(qemu_plugin_id_t id, qemu_plugin_simple_cb_t cb);
174 * @cb: callback to be called once the plugin has been reset
180 * callbacks until @cb is called.
183 void qemu_plugin_reset(qemu_plugin_id_t id, qemu_plugin_simple_cb_t cb);
188 * @cb: callback function
190 * The @cb function is called every time a vCPU is initialized.
196 qemu_plugin_vcpu_simple_cb_t cb);
201 * @cb: callback function
[all …]
H A Dtimer.h87 QEMUTimerCB *cb; member
261 * @cb: the callback to call on notification
270 QEMUTimerListNotifyCB *cb, void *opaque);
344 * @cb: the callback to call when a notify is required
351 * list is modified. If @cb is specified as null, qemu_notify()
355 QEMUTimerListNotifyCB *cb, void *opaque);
402 * @cb: the callback to be called when the timer expires
416 QEMUTimerCB *cb, void *opaque);
423 * @cb: the callback to call when the timer expires
431 QEMUTimerCB *cb, void *opaque) in timer_init() argument
[all …]
/qemu/hw/core/
H A Dvm-change-state-handler.c42 * @cb: the callback function to be invoked
54 * Note that the parameter `cb` and `cb_ret` are mutually exclusive.
59 VMChangeStateHandler *cb, in qdev_add_vm_change_state_handler() argument
63 assert(!cb || !cb_ret); in qdev_add_vm_change_state_handler()
64 return qdev_add_vm_change_state_handler_full(dev, cb, NULL, cb_ret, opaque); in qdev_add_vm_change_state_handler()
72 DeviceState *dev, VMChangeStateHandler *cb, VMChangeStateHandler *prepare_cb, in qdev_add_vm_change_state_handler_full() argument
77 assert(!cb || !cb_ret); in qdev_add_vm_change_state_handler_full()
78 return qemu_add_vm_change_state_handler_prio_full(cb, prepare_cb, cb_ret, in qdev_add_vm_change_state_handler_full()
/qemu/target/hppa/
H A Dhelper.c81 target_ulong cb = 0; in cpu_hppa_put_psw() local
101 cb |= ((psw >> 38) & 1) << 60; in cpu_hppa_put_psw()
102 cb |= ((psw >> 37) & 1) << 56; in cpu_hppa_put_psw()
103 cb |= ((psw >> 36) & 1) << 52; in cpu_hppa_put_psw()
104 cb |= ((psw >> 35) & 1) << 48; in cpu_hppa_put_psw()
105 cb |= ((psw >> 34) & 1) << 44; in cpu_hppa_put_psw()
106 cb |= ((psw >> 33) & 1) << 40; in cpu_hppa_put_psw()
107 cb |= ((psw >> 32) & 1) << 36; in cpu_hppa_put_psw()
108 cb |= ((psw >> 15) & 1) << 32; in cpu_hppa_put_psw()
109 cb |= ((psw >> 14) & 1) << 28; in cpu_hppa_put_psw()
[all …]
/qemu/include/block/
H A Daio.h41 BlockCompletionFunc *cb; member
47 BlockCompletionFunc *cb, void *opaque);
291 void aio_bh_schedule_oneshot_full(AioContext *ctx, QEMUBHFunc *cb, void *opaque,
298 * A convenience wrapper for aio_bh_schedule_oneshot_full() that uses cb as the
301 #define aio_bh_schedule_oneshot(ctx, cb, opaque) \ argument
302 aio_bh_schedule_oneshot_full((ctx), (cb), (opaque), (stringify(cb)))
312 * @reentrancy_guard: A guard set when entering a cb to prevent
315 QEMUBH *aio_bh_new_full(AioContext *ctx, QEMUBHFunc *cb, void *opaque,
321 * A convenience wrapper for aio_bh_new_full() that uses the cb as the name
324 #define aio_bh_new(ctx, cb, opaque) \ argument
[all …]
/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()
243 BlockCompletionFunc *cb, void *cb_opaque, in dma_blk_read_io_func() argument
247 return blk_aio_preadv(blk, offset, iov, 0, cb, cb_opaque); in dma_blk_read_io_func()
252 void (*cb)(void *opaque, int ret), void *opaque) in dma_blk_read()
[all …]
H A Drunstate.c298 VMChangeStateHandler *cb; member
311 * @cb: the callback to invoke
322 VMChangeStateHandler *cb, void *opaque, int priority) in qemu_add_vm_change_state_handler_prio() argument
324 return qemu_add_vm_change_state_handler_prio_full(cb, NULL, NULL, in qemu_add_vm_change_state_handler_prio()
330 * @cb: the main callback to invoke
347 qemu_add_vm_change_state_handler_prio_full(VMChangeStateHandler *cb, in qemu_add_vm_change_state_handler_prio_full() argument
356 e->cb = cb; in qemu_add_vm_change_state_handler_prio_full()
374 VMChangeStateEntry *qemu_add_vm_change_state_handler(VMChangeStateHandler *cb, in qemu_add_vm_change_state_handler() argument
377 return qemu_add_vm_change_state_handler_prio(cb, opaque, 0); in qemu_add_vm_change_state_handler()
401 if (e->cb) { in vm_state_notify()
[all …]
/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()
/qemu/include/system/
H A Dcryptodev.h184 CryptoDevCompletionFunc cb; member
185 void *opaque; /* argument for cb */
203 CryptoDevCompletionFunc cb,
209 CryptoDevCompletionFunc cb,
355 * @cb: callback when session create is compeleted
360 * Returns: 0 for success and cb will be called when creation is completed,
361 * negative value for error, and cb will not be called.
367 CryptoDevCompletionFunc cb,
376 * @cb: callback when session create is compeleted
382 * Returns: 0 for success and cb will be called when creation is completed,
[all …]
H A Dblock-backend-io.h46 BlockCompletionFunc *cb, void *opaque);
50 BlockCompletionFunc *cb, void *opaque);
53 BlockCompletionFunc *cb, void *opaque);
55 BlockCompletionFunc *cb, void *opaque);
59 BlockCompletionFunc *cb, void *opaque);
62 BlockCompletionFunc *cb, void *opaque);
65 BlockCompletionFunc *cb, void *opaque);
67 BlockCompletionFunc *cb, void *opaque);
70 BlockCompletionFunc *cb, void *opaque);
113 BlockCompletionFunc *cb, void *opaque);
[all …]
H A Drunstate.h17 VMChangeStateEntry *qemu_add_vm_change_state_handler(VMChangeStateHandler *cb,
20 VMChangeStateHandler *cb, void *opaque, int priority);
22 qemu_add_vm_change_state_handler_prio_full(VMChangeStateHandler *cb,
27 VMChangeStateHandler *cb,
31 DeviceState *dev, VMChangeStateHandler *cb, VMChangeStateHandler *prepare_cb,
/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/backends/
H A Dcryptodev-lkcf.c76 CryptoDevCompletionFunc cb; member
105 CryptoDevCompletionFunc cb,
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()
271 task->cb(task->opaque, task->status); in cryptodev_lkcf_cleanup()
277 if (task->cb) { in cryptodev_lkcf_cleanup()
278 task->cb(task->opaque, task->status); in cryptodev_lkcf_cleanup()
498 task->cb = op_info->cb; in cryptodev_lkcf_operation()
573 CryptoDevCompletionFunc cb, in cryptodev_lkcf_create_session() argument
[all …]
/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 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()
H A Dqemu-timer.c98 QEMUTimerListNotifyCB *cb, in timerlist_new() argument
107 timer_list->notify_cb = cb; in timerlist_new()
353 QEMUTimerCB *cb, void *opaque) in timer_init_full() argument
359 ts->cb = cb; in timer_init_full()
493 QEMUTimerCB *cb; in timerlist_run_timers() local
558 cb = ts->cb; in timerlist_run_timers()
563 cb(opaque); in timerlist_run_timers()
581 QEMUTimerListNotifyCB *cb, void *opaque) in timerlistgroup_init() argument
585 tlg->tl[type] = timerlist_new(type, cb, opaque); in timerlistgroup_init()
/qemu/include/standard-headers/drm/
H A Ddrm_fourcc.h242 #define DRM_FORMAT_AYUV fourcc_code('A', 'Y', 'U', 'V') /* [31:0] A:Y:Cb:Cr 8:8:8:8 little endian …
243 #define DRM_FORMAT_AVUY8888 fourcc_code('A', 'V', 'U', 'Y') /* [31:0] A:Cr:Cb:Y 8:8:8:8 little endi…
244 #define DRM_FORMAT_XYUV8888 fourcc_code('X', 'Y', 'U', 'V') /* [31:0] X:Y:Cb:Cr 8:8:8:8 little endi…
245 #define DRM_FORMAT_XVUY8888 fourcc_code('X', 'V', 'U', 'Y') /* [31:0] X:Cr:Cb:Y 8:8:8:8 little endi…
246 #define DRM_FORMAT_VUY888 fourcc_code('V', 'U', '2', '4') /* [23:0] Cr:Cb:Y 8:8:8 little endian */
261 #define DRM_FORMAT_Y410 fourcc_code('Y', '4', '1', '0') /* [31:0] A:Cr:Y:Cb 2:10:10:10 litt…
262 #define DRM_FORMAT_Y412 fourcc_code('Y', '4', '1', '2') /* [63:0] A:0:Cr:0:Y:0:Cb:0 12:4:12…
263 #define DRM_FORMAT_Y416 fourcc_code('Y', '4', '1', '6') /* [63:0] A:Cr:Y:Cb 16:16:16:16 lit…
265 #define DRM_FORMAT_XVYU2101010 fourcc_code('X', 'V', '3', '0') /* [31:0] X:Cr:Y:Cb 2:10:10:10 littl…
266 #define DRM_FORMAT_XVYU12_16161616 fourcc_code('X', 'V', '3', '6') /* [63:0] X:0:Cr:0:Y:0:Cb:0 12:4…
[all …]
/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()
/qemu/audio/
H A Daudio.c403 struct capture_callback *cb; in audio_notify_capture() local
408 for (cb = cap->cb_head.lh_first; cb; cb = cb->entries.le_next) { in audio_notify_capture()
409 cb->ops.notify (cb->opaque, cmd); in audio_notify_capture()
1362 struct capture_callback *cb; in audio_run_capture() local
1368 for (cb = cap->cb_head.lh_first; cb; cb = cb->entries.le_next) { in audio_run_capture()
1369 cb->ops.capture (cb->opaque, cap->buf, in audio_run_capture()
1635 struct capture_callback *cb; in free_audio_state() local
1637 for (cb = cap->cb_head.lh_first; cb; cb = cb->entries.le_next) { in free_audio_state()
1638 cb->ops.destroy (cb->opaque); in free_audio_state()
1850 struct capture_callback *cb; in AUD_add_capture() local
[all …]

1234567