Home
last modified time | relevance | path

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

123456

/openbmc/qemu/include/sysemu/
H A Dblock-backend-global-state.h25 BlockBackend *blk_new(AioContext *ctx, uint64_t perm, uint64_t shared_perm);
27 BlockBackend * no_coroutine_fn
31 BlockBackend * coroutine_fn no_co_wrapper
35 BlockBackend * no_coroutine_fn
39 BlockBackend * coroutine_fn no_co_wrapper
43 int blk_get_refcnt(BlockBackend *blk);
44 void blk_ref(BlockBackend *blk);
46 void no_coroutine_fn blk_unref(BlockBackend *blk);
47 void coroutine_fn no_co_wrapper blk_co_unref(BlockBackend *blk);
50 BlockBackend *blk_by_name(const char *name);
[all …]
H A Dblock-backend-io.h26 const char *blk_name(const BlockBackend *blk);
28 BlockDriverState *blk_bs(BlockBackend *blk);
30 void blk_set_allow_write_beyond_eof(BlockBackend *blk, bool allow);
31 void blk_set_allow_aio_context_change(BlockBackend *blk, bool allow);
32 void blk_set_disable_request_queuing(BlockBackend *blk, bool disable);
33 bool blk_iostatus_is_enabled(const BlockBackend *blk);
35 char *blk_get_attached_dev_id(BlockBackend *blk);
37 BlockAIOCB *blk_aio_pwrite_zeroes(BlockBackend *blk, int64_t offset,
41 BlockAIOCB *blk_aio_preadv(BlockBackend *blk, int64_t offset,
44 BlockAIOCB *blk_aio_pwritev(BlockBackend *blk, int64_t offset,
[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.h297 BlockAIOCB *dma_blk_read(BlockBackend *blk,
300 BlockAIOCB *dma_blk_write(BlockBackend *blk,
308 void dma_acct_start(BlockBackend *blk, BlockAcctCookie *cookie,
/openbmc/qemu/block/
H A Dblock-backend.c43 struct BlockBackend { struct
49 QTAILQ_ENTRY(BlockBackend) link; /* for block_backends */ argument
50 QTAILQ_ENTRY(BlockBackend) monitor_link; /* for monitor_block_backends */
99 BlockBackend *blk; argument
108 static BlockBackend *bdrv_first_blk(BlockDriverState *bs);
111 static QTAILQ_HEAD(, BlockBackend) block_backends =
118 static QTAILQ_HEAD(, BlockBackend) monitor_block_backends =
122 blk_set_perm_locked(BlockBackend *blk, uint64_t perm, uint64_t shared_perm,
145 BlockBackend *blk = child->opaque; in blk_root_get_parent_desc()
169 BlockBackend *blk = opaque; in blk_vm_state_changed()
[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()
/openbmc/qemu/tests/unit/
H A Dtest-replication.c51 static void test_blk_read(BlockBackend *blk, long pattern, in test_blk_read()
96 static void test_blk_write(BlockBackend *blk, long pattern, int64_t offset, in test_blk_write()
171 static BlockBackend *start_primary(void) in start_primary()
173 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()
287 static BlockBackend *start_secondary(void) in start_secondary()
291 BlockBackend *blk; in start_secondary()
[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()
157 static void test_sync_op_blk_pwritev(BlockBackend *blk) in test_sync_op_blk_pwritev()
172 static void test_sync_op_blk_preadv_part(BlockBackend *blk) in test_sync_op_blk_preadv_part()
187 static void test_sync_op_blk_pwritev_part(BlockBackend *blk) in test_sync_op_blk_pwritev_part()
202 static void test_sync_op_blk_pwrite_compressed(BlockBackend *blk) in test_sync_op_blk_pwrite_compressed()
216 static void test_sync_op_blk_pwrite_zeroes(BlockBackend *blk) in test_sync_op_blk_pwrite_zeroes()
268 static void test_sync_op_blk_pdiscard(BlockBackend *blk) in test_sync_op_blk_pdiscard()
302 static void test_sync_op_blk_truncate(BlockBackend *blk) in test_sync_op_blk_truncate()
[all …]
H A Dtest-bdrv-drain.c185 static BlockBackend * no_coroutine_fn test_setup(void) in test_setup()
187 BlockBackend *blk; in test_setup()
215 test_drv_cb_common(BlockBackend *blk, enum drain_type drain_type, in test_drv_cb_common()
266 BlockBackend *blk = test_setup(); in test_drv_cb_drain_all()
273 BlockBackend *blk = test_setup(); in test_drv_cb_drain()
280 BlockBackend *blk = blk_all_next(NULL); in test_drv_cb_co_drain_all_entry()
286 BlockBackend *blk = test_setup(); in test_drv_cb_co_drain_all()
293 BlockBackend *blk = blk_all_next(NULL); in test_drv_cb_co_drain_entry()
299 BlockBackend *blk = test_setup(); in test_drv_cb_co_drain()
310 test_quiesce_common(BlockBackend *blk, enum drain_type drain_type, in test_quiesce_common()
[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()
/openbmc/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);
69 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,
/openbmc/qemu/
H A Dqemu-io-cmds.c58 static int init_check_command(BlockBackend *blk, const cmdinfo_t *ct) in init_check_command()
70 static int command(BlockBackend *blk, const cmdinfo_t *ct, int argc, in command()
341 static void *qemu_io_alloc(BlockBackend *blk, size_t len, int pattern, in qemu_io_alloc()
360 static void qemu_io_free(BlockBackend *blk, void *p, size_t len, in qemu_io_free()
388 static void *qemu_io_alloc_from_file(BlockBackend *blk, size_t len, in qemu_io_alloc_from_file()
496 create_iovec(BlockBackend *blk, QEMUIOVector *qiov, char **argv, int nr_iov, in create_iovec()
545 static int do_pread(BlockBackend *blk, char *buf, int64_t offset, in do_pread()
562 static int do_pwrite(BlockBackend *blk, char *buf, int64_t offset, in do_pwrite()
579 static int do_pwrite_zeroes(BlockBackend *blk, int64_t offset, in do_pwrite_zeroes()
593 static int do_write_compressed(BlockBackend *blk, char *buf, int64_t offset, in do_write_compressed()
[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()
/openbmc/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);
/openbmc/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);
/openbmc/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()
/openbmc/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()
/openbmc/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()
/openbmc/qemu/include/qemu/
H A Dtypedefs.h32 typedef struct BlockBackend BlockBackend; typedef
/openbmc/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