Home
last modified time | relevance | path

Searched refs:BlockBackend (Results 1 – 25 of 133) sorted by relevance

123456

/qemu/include/sysemu/
H A Dblock-backend-global-state.h27 BlockBackend * no_coroutine_fn
35 BlockBackend * no_coroutine_fn
43 int blk_get_refcnt(BlockBackend *blk);
44 void blk_ref(BlockBackend *blk);
51 BlockBackend *blk_next(BlockBackend *blk);
52 BlockBackend *blk_all_next(BlockBackend *blk);
59 void blk_remove_bs(BlockBackend *blk);
75 BlockBackend *blk_by_dev(void *dev);
84 bool blk_in_drain(BlockBackend *blk);
85 void blk_drain(BlockBackend *blk);
[all …]
H A Dblock-backend-io.h26 const char *blk_name(const BlockBackend *blk);
28 BlockDriverState *blk_bs(BlockBackend *blk);
35 char *blk_get_attached_dev_id(BlockBackend *blk);
47 BlockAIOCB *blk_aio_flush(BlockBackend *blk,
65 void blk_inc_in_flight(BlockBackend *blk);
66 void blk_dec_in_flight(BlockBackend *blk);
88 int64_t blk_nb_sectors(BlockBackend *blk);
92 bool blk_is_writable(BlockBackend *blk);
93 bool blk_enable_write_cache(BlockBackend *blk);
100 int blk_get_max_iov(BlockBackend *blk);
[all …]
H A Dblockdev.h45 void blockdev_mark_auto_del(BlockBackend *blk);
46 void blockdev_auto_del(BlockBackend *blk);
48 DriveInfo *blk_legacy_dinfo(BlockBackend *blk);
49 DriveInfo *blk_set_legacy_dinfo(BlockBackend *blk, DriveInfo *dinfo);
50 BlockBackend *blk_by_legacy_dinfo(DriveInfo *dinfo);
H A Dblock-ram-registrar.h23 BlockBackend *blk;
28 void blk_ram_registrar_init(BlockRAMRegistrar *r, BlockBackend *blk);
H A Ddma.h298 BlockAIOCB *dma_blk_read(BlockBackend *blk,
301 BlockAIOCB *dma_blk_write(BlockBackend *blk,
309 void dma_acct_start(BlockBackend *blk, BlockAcctCookie *cookie,
/qemu/block/
H A Dblock-backend.c43 struct BlockBackend { struct
99 BlockBackend *blk; argument
169 BlockBackend *blk = opaque; in blk_vm_state_changed()
357 BlockBackend *blk; in blk_new()
426 BlockBackend *blk; in blk_new_open()
556 BlockBackend *blk_all_next(BlockBackend *blk) in blk_all_next()
565 BlockBackend *blk = NULL; in blk_remove_all_bs()
586 BlockBackend *blk_next(BlockBackend *blk) in blk_next()
744 BlockBackend *blk = NULL; in blk_by_name()
1489 BlockBackend *blk;
[all …]
H A Dqapi-sysemu.c42 static BlockBackend *qmp_get_blk(const char *blk_name, const char *qdev_id, in qmp_get_blk()
45 BlockBackend *blk; in qmp_get_blk()
79 BlockBackend *blk; in do_open_tray()
143 BlockBackend *blk; in qmp_blockdev_close_tray()
175 BlockBackend *blk; in blockdev_remove_medium()
229 static void qmp_blockdev_insert_anon_medium(BlockBackend *blk, in qmp_blockdev_insert_anon_medium()
277 BlockBackend *blk; in blockdev_insert_medium()
316 BlockBackend *blk; in qmp_blockdev_change_medium()
425 BlockBackend *blk; in qmp_block_set_io_throttle()
518 BlockBackend *blk = qmp_get_blk(NULL, id, errp); in qmp_block_latency_histogram_set()
/qemu/tests/unit/
H A Dtest-replication.c173 BlockBackend *blk; in start_primary()
201 BlockBackend *blk; in teardown_primary()
213 BlockBackend *blk; in test_primary_read()
225 BlockBackend *blk; in test_primary_write()
237 BlockBackend *blk = NULL; in test_primary_start()
291 BlockBackend *blk; in start_secondary()
343 BlockBackend *blk; in teardown_secondary()
362 BlockBackend *blk; in test_secondary_read()
374 BlockBackend *blk; in test_secondary_write()
387 BlockBackend *top_blk, *local_blk; in test_secondary_start()
[all …]
H A Dtest-blockjob.c33 static BlockJob *mk_job(BlockBackend *blk, const char *id, in mk_job()
59 static BlockJob *do_test_id(BlockBackend *blk, const char *id, in do_test_id()
68 static BlockBackend *create_blk(const char *name) in create_blk()
71 BlockBackend *blk = blk_new(qemu_get_aio_context(), 0, BLK_PERM_ALL); in create_blk()
92 static void destroy_blk(BlockBackend *blk) in destroy_blk()
104 BlockBackend *blk[3]; in test_job_ids()
163 BlockBackend *blk;
205 BlockBackend *blk; in create_common()
229 BlockBackend *blk = s->blk; in cancel_common()
H A Dtest-block-iothread.c114 static void test_sync_op_blk_pread(BlockBackend *blk) in test_sync_op_blk_pread()
128 static void test_sync_op_blk_pwrite(BlockBackend *blk) in test_sync_op_blk_pwrite()
142 static void test_sync_op_blk_preadv(BlockBackend *blk) in test_sync_op_blk_preadv()
397 void (*blkfn)(BlockBackend *blk);
470 BlockBackend *blk; in test_sync_op()
553 BlockBackend *blk; in test_attach_blockjob()
617 BlockBackend *blk; in test_propagate_basic()
681 BlockBackend *blk; in test_propagate_diamond()
747 BlockBackend *blk; in test_propagate_mirror()
817 BlockBackend *blk; in test_attach_second_node()
[all …]
H A Dtest-bdrv-drain.c187 BlockBackend *blk; in test_setup()
266 BlockBackend *blk = test_setup(); in test_drv_cb_drain_all()
376 BlockBackend *blk; in test_nested()
426 BlockBackend *blk_a, *blk_b; in test_graph_change_drain_all()
526 BlockBackend *blk; in test_iothread_common()
980 BlockBackend *blk;
988 BlockBackend *blk = dbdd->blk; in test_co_delete_by_drain()
1035 BlockBackend *blk; in do_test_delete_by_drain()
1217 BlockBackend *blk; in test_detach_indirect()
1346 BlockBackend *blk; in test_append_to_drained()
[all …]
H A Dtest-image-locking.c34 static BlockBackend *open_image(const char *path, in open_image()
39 BlockBackend *blk; in open_image()
78 BlockBackend *blk1, *blk2, *blk3; in test_image_locking_basic()
119 BlockBackend *blk1, *blk2; in test_set_perm_abort()
H A Dtest-block-backend.c41 BlockBackend *blk = blk_new(qemu_get_aio_context(), in test_drain_aio_error()
58 BlockBackend *blk = blk_new(qemu_get_aio_context(), in test_drain_all_aio_error()
/qemu/
H A Dqemu-io-cmds.c695 static int read_f(BlockBackend *blk, int argc, char **argv);
708 static int read_f(BlockBackend *blk, int argc, char **argv) in read_f()
893 static int readv_f(BlockBackend *blk, int argc, char **argv);
905 static int readv_f(BlockBackend *blk, int argc, char **argv) in readv_f()
1048 static int write_f(BlockBackend *blk, int argc, char **argv) in write_f()
1346 BlockBackend *blk;
1721 static int flush_f(BlockBackend *blk, int argc, char **argv) in flush_f()
2031 static int info_f(BlockBackend *blk, int argc, char **argv) in info_f()
2265 static int map_f(BlockBackend *blk, int argc, char **argv) in map_f()
2676 static int help_f(BlockBackend *blk, int argc, char **argv) in help_f()
[all …]
H A Dqemu-io.c41 static BlockBackend *qemuio_blk;
71 static int close_f(BlockBackend *blk, int argc, char **argv) in close_f()
143 static int open_f(BlockBackend *blk, int argc, char **argv);
167 static int open_f(BlockBackend *blk, int argc, char **argv) in open_f()
271 static int quit_f(BlockBackend *blk, int argc, char **argv) in quit_f()
/qemu/include/hw/block/
H A Dflash.h18 BlockBackend *blk,
24 BlockBackend *pflash_cfi01_get_blk(PFlashCFI01 *fl);
37 BlockBackend *blk,
48 DeviceState *nand_init(BlockBackend *blk, int manf_id, int chip_id);
83 BlockBackend *m25p80_get_blk(DeviceState *dev);
H A Dblock.h21 BlockBackend *blk;
91 bool blk_check_size_and_read_all(BlockBackend *blk, DeviceState *dev,
105 void hd_geometry_guess(BlockBackend *blk,
/qemu/include/block/
H A Dblock_int-global-state.h250 void blk_dev_change_media_cb(BlockBackend *blk, bool load, Error **errp);
251 bool blk_dev_has_removable_media(BlockBackend *blk);
252 void blk_dev_eject_request(BlockBackend *blk, bool force);
253 bool blk_dev_is_medium_locked(BlockBackend *blk);
/qemu/include/
H A Dqemu-io.h28 typedef int (*cfunc_t)(BlockBackend *blk, int argc, char **argv);
48 int qemuio_command(BlockBackend *blk, const char *cmd);
/qemu/hw/block/
H A Dblock.c26 static int blk_pread_nonzeroes(BlockBackend *blk, hwaddr size, void *buf) in blk_pread_nonzeroes()
62 bool blk_check_size_and_read_all(BlockBackend *blk, DeviceState *dev, in blk_check_size_and_read_all()
105 BlockBackend *blk = conf->blk; in blkconf_blocksizes()
202 BlockBackend *blk = conf->blk; in blkconf_apply_backend_options()
H A Dhd-geometry.c55 static int guess_disk_lchs(BlockBackend *blk, in guess_disk_lchs()
98 static void guess_chs_for_size(BlockBackend *blk, in guess_chs_for_size()
117 void hd_geometry_guess(BlockBackend *blk, in hd_geometry_guess()
/qemu/block/export/
H A Dvirtio-blk-handler.c26 virtio_blk_sect_range_ok(BlockBackend *blk, uint32_t block_size, in virtio_blk_sect_range_ok()
56 BlockBackend *blk = handler->blk; in virtio_blk_discard_write_zeroes()
138 BlockBackend *blk = handler->blk; in virtio_blk_process_req()
/qemu/system/
H A Ddma-helpers.c246 BlockBackend *blk = opaque; in dma_blk_read_io_func()
250 BlockAIOCB *dma_blk_read(BlockBackend *blk, in dma_blk_read()
264 BlockBackend *blk = opaque; in dma_blk_write_io_func()
268 BlockAIOCB *dma_blk_write(BlockBackend *blk, in dma_blk_write()
317 void dma_acct_start(BlockBackend *blk, BlockAcctCookie *cookie, in dma_acct_start()
/qemu/include/qemu/
H A Dtypedefs.h32 typedef struct BlockBackend BlockBackend; typedef
/qemu/docs/devel/
H A Dzoned-storage.rst26 block layer while processing I/O requests. A BlockBackend has a root pointer to
29 the way up to the BlockBackend. If the zoned storage model in file-posix is
37 When the BlockBackend's BlockLimits model reports a zoned storage device, users

123456