Home
last modified time | relevance | path

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

123456

/openbmc/qemu/include/system/
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);
42 char *blk_get_attached_dev_id(BlockBackend *blk);
44 BlockAIOCB *blk_aio_pwrite_zeroes(BlockBackend *blk, int64_t offset,
48 BlockAIOCB *blk_aio_preadv(BlockBackend *blk, int64_t offset,
51 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);
/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-system.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-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()
H A Dtest-bdrv-drain.c185 static BlockBackend * no_coroutine_fn test_setup(void) in test_setup()
187 BlockBackend *blk; in test_setup()
217 test_drv_cb_common(BlockBackend *blk, enum drain_type drain_type, in test_drv_cb_common()
268 BlockBackend *blk = test_setup(); in test_drv_cb_drain_all()
275 BlockBackend *blk = test_setup(); in test_drv_cb_drain()
282 BlockBackend *blk = blk_all_next(NULL); in test_drv_cb_co_drain_all_entry()
288 BlockBackend *blk = test_setup(); in test_drv_cb_co_drain_all()
295 BlockBackend *blk = blk_all_next(NULL); in test_drv_cb_co_drain_entry()
301 BlockBackend *blk = test_setup(); in test_drv_cb_co_drain()
312 test_quiesce_common(BlockBackend *blk, enum drain_type drain_type, in test_quiesce_common()
[all …]
/openbmc/qemu/include/hw/block/
H A Dflash.h18 BlockBackend *blk,
24 BlockBackend *pflash_cfi01_get_blk(PFlashCFI01 *fl);
37 BlockBackend *blk,
51 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/
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/include/block/
H A Dblock_int-global-state.h252 void blk_dev_change_media_cb(BlockBackend *blk, bool load, Error **errp);
253 bool blk_dev_has_removable_media(BlockBackend *blk);
254 void blk_dev_eject_request(BlockBackend *blk, bool force);
255 bool blk_dev_is_medium_locked(BlockBackend *blk);
/openbmc/qemu/hw/block/
H A Dhd-geometry.c54 static int guess_disk_lchs(BlockBackend *blk, in guess_disk_lchs()
97 static void guess_chs_for_size(BlockBackend *blk, in guess_chs_for_size()
116 void hd_geometry_guess(BlockBackend *blk, in hd_geometry_guess()
H A Dblock.c27 static int blk_pread_nonzeroes(BlockBackend *blk, hwaddr size, void *buf) in blk_pread_nonzeroes()
63 bool blk_check_size_and_read_all(BlockBackend *blk, DeviceState *dev, in blk_check_size_and_read_all()
110 BlockBackend *blk = conf->blk; in blkconf_blocksizes()
207 BlockBackend *blk = conf->blk; in blkconf_apply_backend_options()
/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()
H A Dvirtio-blk-handler.h25 BlockBackend *blk;
/openbmc/qemu/hw/vmapple/
H A Dbdif.c29 BlockBackend *aux;
30 BlockBackend *root;
137 static void vblk_cmd(uint64_t devid, BlockBackend *blk, uint64_t gp_addr, in vblk_cmd()
/openbmc/qemu/include/hw/ppc/
H A Dpnv_pnor.h28 BlockBackend *blk;
/openbmc/qemu/include/hw/nvram/
H A Daspeed_otp.h22 BlockBackend *blk;

123456