Home
last modified time | relevance | path

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

123

/illumos-kvm-cmd/
H A Dballoon.c44 int qemu_balloon(ram_addr_t target, MonitorCompletion cb, void *opaque) in qemu_balloon() argument
48 qemu_balloon_event(qemu_balloon_event_opaque, target, cb, opaque); in qemu_balloon()
55 int qemu_balloon_status(MonitorCompletion cb, void *opaque) in qemu_balloon_status() argument
58 qemu_balloon_event(qemu_balloon_event_opaque, 0, cb, opaque); in qemu_balloon_status()
109 int do_info_balloon(Monitor *mon, MonitorCompletion cb, void *opaque) in do_info_balloon() argument
118 ret = qemu_balloon_status(cb, opaque); in do_info_balloon()
131 MonitorCompletion cb, void *opaque) in do_balloon() argument
140 ret = qemu_balloon(qdict_get_int(params, "value"), cb, opaque); in do_balloon()
146 cb(opaque, NULL); in do_balloon()
H A Dballoon.h20 MonitorCompletion cb, void *cb_data);
24 int qemu_balloon(ram_addr_t target, MonitorCompletion cb, void *opaque);
26 int qemu_balloon_status(MonitorCompletion cb, void *opaque);
29 int do_info_balloon(Monitor *mon, MonitorCompletion cb, void *opaque);
31 MonitorCompletion cb, void *opaque);
H A Dqemu-tool.c28 QEMUBHFunc *cb; member
76 QEMUBH *qemu_bh_new(QEMUBHFunc *cb, void *opaque) in qemu_bh_new() argument
81 bh->cb = cb; in qemu_bh_new()
94 bh->cb(bh->opaque); in qemu_bh_schedule()
H A Dasync.c119 QEMUBHFunc *cb; member
127 QEMUBH *qemu_bh_new(QEMUBHFunc *cb, void *opaque) in qemu_bh_new() argument
131 bh->cb = cb; in qemu_bh_new()
150 bh->cb(bh->opaque); in qemu_bh_poll()
H A Ddma-helpers.c94 dbs->common.cb(dbs->common.opaque, ret); in dma_bdrv_cb()
149 BlockDriverCompletionFunc *cb, void *opaque, in dma_bdrv_io() argument
152 DMAAIOCB *dbs = qemu_aio_get(&dma_aio_pool, bs, cb, opaque); in dma_bdrv_io()
178 void (*cb)(void *opaque, int ret), void *opaque) in dma_bdrv_read()
180 return dma_bdrv_io(bs, sg, sector, cb, opaque, 0); in dma_bdrv_read()
185 void (*cb)(void *opaque, int ret), void *opaque) in dma_bdrv_write()
187 return dma_bdrv_io(bs, sg, sector, cb, opaque, 1); in dma_bdrv_write()
H A Dblock_int.h70 BlockDriverCompletionFunc *cb, void *opaque);
73 BlockDriverCompletionFunc *cb, void *opaque);
75 BlockDriverCompletionFunc *cb, void *opaque);
120 BlockDriverCompletionFunc *cb, void *opaque);
213 BlockDriverCompletionFunc *cb; member
221 BlockDriverCompletionFunc *cb, void *opaque);
H A Dblock.c48 BlockDriverCompletionFunc *cb, void *opaque);
51 BlockDriverCompletionFunc *cb, void *opaque);
2064 cb, opaque); in bdrv_aio_readv()
2076 BlockDriverCompletionFunc *cb; member
2090 b->cb(b->opaque, ret); in block_complete_cb()
2103 blkdata->cb = cb; in blk_dirty_cb_alloc()
2131 cb = &block_complete_cb; in bdrv_aio_writev()
2136 cb, opaque); in bdrv_aio_writev()
2156 BlockDriverCompletionFunc *cb; member
2324 mcb->callbacks[i].cb = reqs[i].cb; in bdrv_aio_multiwrite()
[all …]
H A Ddma.h37 BlockDriverCompletionFunc *cb, void *opaque);
40 BlockDriverCompletionFunc *cb, void *opaque);
H A Dblock.h116 BlockDriverCompletionFunc *cb, void *opaque);
119 BlockDriverCompletionFunc *cb, void *opaque);
121 BlockDriverCompletionFunc *cb, void *opaque);
129 BlockDriverCompletionFunc *cb; member
143 BlockDriverCompletionFunc *cb, void *opaque);
/illumos-kvm-cmd/block/
H A Dqed-gencb.c16 void *gencb_alloc(size_t len, BlockDriverCompletionFunc *cb, void *opaque) in gencb_alloc() argument
19 gencb->cb = cb; in gencb_alloc()
27 BlockDriverCompletionFunc *cb = gencb->cb; in gencb_complete() local
31 cb(user_opaque, ret); in gencb_complete()
H A Draw.c26 BlockDriverCompletionFunc *cb, void *opaque) in raw_aio_readv() argument
28 return bdrv_aio_readv(bs->file, sector_num, qiov, nb_sectors, cb, opaque); in raw_aio_readv()
33 BlockDriverCompletionFunc *cb, void *opaque) in raw_aio_writev() argument
35 return bdrv_aio_writev(bs->file, sector_num, qiov, nb_sectors, cb, opaque); in raw_aio_writev()
48 BlockDriverCompletionFunc *cb, void *opaque) in raw_aio_flush() argument
50 return bdrv_aio_flush(bs->file, cb, opaque); in raw_aio_flush()
96 BlockDriverCompletionFunc *cb, void *opaque) in raw_aio_ioctl() argument
98 return bdrv_aio_ioctl(bs->file, req, buf, cb, opaque); in raw_aio_ioctl()
H A Dqed-cluster.c65 QEDFindClusterFunc *cb; member
99 find_cluster_cb->cb(find_cluster_cb->opaque, ret, offset, len); in qed_find_cluster_cb()
124 size_t len, QEDFindClusterFunc *cb, void *opaque) in qed_find_cluster() argument
136 cb(opaque, QED_CLUSTER_L1, 0, len); in qed_find_cluster()
140 cb(opaque, -EINVAL, 0, 0); in qed_find_cluster()
148 find_cluster_cb->cb = cb; in qed_find_cluster()
H A Dqed-table.c52 BlockDriverCompletionFunc *cb, void *opaque) in qed_read_table() argument
55 cb, opaque); in qed_read_table()
127 BlockDriverCompletionFunc *cb, void *opaque) in qed_write_table() argument
143 write_table_cb = gencb_alloc(sizeof(*write_table_cb), cb, opaque); in qed_write_table()
196 BlockDriverCompletionFunc *cb, void *opaque) in qed_write_l1_table() argument
200 s->l1_table, index, n, false, cb, opaque); in qed_write_l1_table()
255 BlockDriverCompletionFunc *cb, void *opaque) in qed_read_l2_table() argument
264 cb(opaque, 0); in qed_read_l2_table()
271 read_l2_table_cb = gencb_alloc(sizeof(*read_l2_table_cb), cb, opaque); in qed_read_l2_table()
298 BlockDriverCompletionFunc *cb, void *opaque) in qed_write_l2_table() argument
[all …]
H A Dblkdebug.c320 acb->common.cb(acb->common.opaque, acb->ret); in error_callback_bh()
331 BlockDriverCompletionFunc *cb, void *opaque) in inject_error() argument
346 acb = qemu_aio_get(&blkdebug_aio_pool, bs, cb, opaque); in inject_error()
358 BlockDriverCompletionFunc *cb, void *opaque) in blkdebug_aio_readv() argument
363 return inject_error(bs, cb, opaque); in blkdebug_aio_readv()
367 bdrv_aio_readv(bs->file, sector_num, qiov, nb_sectors, cb, opaque); in blkdebug_aio_readv()
373 BlockDriverCompletionFunc *cb, void *opaque) in blkdebug_aio_writev() argument
378 return inject_error(bs, cb, opaque); in blkdebug_aio_writev()
382 bdrv_aio_writev(bs->file, sector_num, qiov, nb_sectors, cb, opaque); in blkdebug_aio_writev()
406 BlockDriverCompletionFunc *cb, void *opaque) in blkdebug_aio_flush() argument
[all …]
H A Dqed.c574 QEDIsAllocatedCB *cb = opaque; in qed_is_allocated_cb() local
575 *cb->pnum = len / BDRV_SECTOR_SIZE; in qed_is_allocated_cb()
585 QEDIsAllocatedCB cb = { in bdrv_qed_is_allocated() local
595 while (cb.is_allocated == -1) { in bdrv_qed_is_allocated()
603 return cb.is_allocated; in bdrv_qed_is_allocated()
642 cb(opaque, l); in qed_read_backing_file()
656 cb(opaque, 0); in qed_read_backing_file()
667 cb(opaque, -EIO); in qed_read_backing_file()
726 cb(opaque, 0); in qed_copy_from_backing_file()
763 BlockDriverCompletionFunc *cb = acb->common.cb; in qed_aio_complete_bh() local
[all …]
H A Dqed.h193 BlockDriverCompletionFunc *cb; member
197 void *gencb_alloc(size_t len, BlockDriverCompletionFunc *cb, void *opaque);
215 BlockDriverCompletionFunc *cb, void *opaque);
221 BlockDriverCompletionFunc *cb, void *opaque);
224 BlockDriverCompletionFunc *cb, void *opaque);
232 size_t len, QEDFindClusterFunc *cb, void *opaque);
H A Dblkverify.c241 BlockDriverCompletionFunc *cb, in blkverify_aio_get() argument
244 BlkverifyAIOCB *acb = qemu_aio_get(&blkverify_aio_pool, bs, cb, opaque); in blkverify_aio_get()
268 acb->common.cb(acb->common.opaque, acb->ret); in blkverify_aio_bh()
310 BlockDriverCompletionFunc *cb, void *opaque) in blkverify_aio_readv() argument
314 nb_sectors, cb, opaque); in blkverify_aio_readv()
334 BlockDriverCompletionFunc *cb, void *opaque) in blkverify_aio_writev() argument
338 nb_sectors, cb, opaque); in blkverify_aio_writev()
352 BlockDriverCompletionFunc *cb, in blkverify_aio_flush() argument
358 return bdrv_aio_flush(s->test_file, cb, opaque); in blkverify_aio_flush()
H A Draw-posix-aio.h32 BlockDriverCompletionFunc *cb, void *opaque, int type);
35 BlockDriverCompletionFunc *cb, void *opaque);
41 BlockDriverCompletionFunc *cb, void *opaque, int type);
H A Dvdi.c494 BlockDriverCompletionFunc *cb, void *opaque, int is_write) in vdi_aio_setup() argument
499 bs, sector_num, qiov, nb_sectors, cb, opaque, is_write); in vdi_aio_setup()
501 acb = qemu_aio_get(&vdi_aio_pool, bs, cb, opaque); in vdi_aio_setup()
525 static int vdi_schedule_bh(QEMUBHFunc *cb, VdiAIOCB *acb) in vdi_schedule_bh() argument
533 acb->bh = qemu_bh_new(cb, acb); in vdi_schedule_bh()
622 acb->common.cb(acb->common.opaque, ret); in vdi_aio_read_cb()
628 BlockDriverCompletionFunc *cb, void *opaque) in vdi_aio_readv() argument
632 acb = vdi_aio_setup(bs, sector_num, qiov, nb_sectors, cb, opaque, 0); in vdi_aio_readv()
777 acb->common.cb(acb->common.opaque, ret); in vdi_aio_write_cb()
783 BlockDriverCompletionFunc *cb, void *opaque) in vdi_aio_writev() argument
[all …]
H A Dqcow2.c410 static int qcow2_schedule_bh(QEMUBHFunc *cb, QCowAIOCB *acb) in qcow2_schedule_bh() argument
415 acb->bh = qemu_bh_new(cb, acb); in qcow2_schedule_bh()
557 acb->common.cb(acb->common.opaque, ret); in qcow2_aio_read_cb()
564 BlockDriverCompletionFunc *cb, in qcow2_aio_setup() argument
569 acb = qemu_aio_get(&qcow2_aio_pool, bs, cb, opaque); in qcow2_aio_setup()
590 BlockDriverCompletionFunc *cb, in qcow2_aio_readv() argument
595 acb = qcow2_aio_setup(bs, sector_num, qiov, nb_sectors, cb, opaque, 0); in qcow2_aio_readv()
714 acb->common.cb(acb->common.opaque, ret); in qcow2_aio_write_cb()
722 BlockDriverCompletionFunc *cb, in qcow2_aio_writev() argument
1233 BlockDriverCompletionFunc *cb, in qcow2_aio_flush() argument
[all …]
H A Draw-posix.c543 BlockDriverCompletionFunc *cb, void *opaque, int type) in raw_aio_submit() argument
561 nb_sectors, cb, opaque, type); in raw_aio_submit()
567 cb, opaque, type); in raw_aio_submit()
572 BlockDriverCompletionFunc *cb, void *opaque) in raw_aio_readv() argument
575 cb, opaque, QEMU_AIO_READ); in raw_aio_readv()
580 BlockDriverCompletionFunc *cb, void *opaque) in raw_aio_writev() argument
583 cb, opaque, QEMU_AIO_WRITE); in raw_aio_writev()
587 BlockDriverCompletionFunc *cb, void *opaque) in raw_aio_flush() argument
594 return paio_submit(bs, s->fd, 0, NULL, 0, cb, opaque, QEMU_AIO_FLUSH); in raw_aio_flush()
1014 BlockDriverCompletionFunc *cb, void *opaque) in hdev_aio_ioctl() argument
[all …]
/illumos-kvm-cmd/audio/
H A Daudio.c734 for (cb = cap->cb_head.lh_first; cb; cb = cb->entries.le_next) { in audio_notify_capture()
735 cb->ops.notify (cb->opaque, cmd); in audio_notify_capture()
1507 for (cb = cap->cb_head.lh_first; cb; cb = cb->entries.le_next) { in audio_run_capture()
1508 cb->ops.capture (cb->opaque, cap->buf, in audio_run_capture()
1780 for (cb = cap->cb_head.lh_first; cb; cb = cb->entries.le_next) { in audio_atexit()
1781 cb->ops.destroy (cb->opaque); in audio_atexit()
1938 cb = audio_calloc (AUDIO_FUNC, 1, sizeof (*cb)); in AUD_add_capture()
1939 if (!cb) { in AUD_add_capture()
1944 cb->ops = *ops; in AUD_add_capture()
2007 qemu_free (cb); in AUD_add_capture()
[all …]
/illumos-kvm-cmd/hw/
H A Dppc.h5 clk_setup_cb cb; member
10 if (clk->cb != NULL) in clk_setup()
11 (*clk->cb)(clk->opaque, freq); in clk_setup()
H A Dsysbus.c57 if (dev->mmio[n].cb) { in sysbus_mmio_map()
58 dev->mmio[n].cb(dev, addr); in sysbus_mmio_map()
100 mmio_mapfunc cb) in sysbus_init_mmio_cb() argument
108 dev->mmio[n].cb = cb; in sysbus_init_mmio_cb()
H A Dsysbus.h24 mmio_mapfunc cb; member
48 mmio_mapfunc cb);

Completed in 70 milliseconds

123