Lines Matching refs:bs

81 int64_t coroutine_fn GRAPH_RDLOCK bdrv_co_nb_sectors(BlockDriverState *bs);
82 int64_t coroutine_mixed_fn bdrv_nb_sectors(BlockDriverState *bs);
84 int64_t coroutine_fn GRAPH_RDLOCK bdrv_co_getlength(BlockDriverState *bs);
85 int64_t co_wrapper_mixed_bdrv_rdlock bdrv_getlength(BlockDriverState *bs);
88 bdrv_co_get_allocated_file_size(BlockDriverState *bs);
91 bdrv_get_allocated_file_size(BlockDriverState *bs);
97 bdrv_co_delete_file(BlockDriverState *bs, Error **errp);
100 bdrv_co_delete_file_noerr(BlockDriverState *bs);
108 bdrv_co_ioctl(BlockDriverState *bs, int req, void *buf);
111 int coroutine_fn GRAPH_RDLOCK bdrv_co_flush(BlockDriverState *bs);
117 int coroutine_fn GRAPH_RDLOCK bdrv_co_zone_report(BlockDriverState *bs,
121 int coroutine_fn GRAPH_RDLOCK bdrv_co_zone_mgmt(BlockDriverState *bs,
124 int coroutine_fn GRAPH_RDLOCK bdrv_co_zone_append(BlockDriverState *bs,
129 bool bdrv_can_write_zeroes_with_unmap(BlockDriverState *bs);
132 bdrv_co_block_status(BlockDriverState *bs, int64_t offset, int64_t bytes,
135 bdrv_block_status(BlockDriverState *bs, int64_t offset, int64_t bytes,
139 bdrv_co_block_status_above(BlockDriverState *bs, BlockDriverState *base,
143 bdrv_block_status_above(BlockDriverState *bs, BlockDriverState *base,
148 bdrv_co_is_allocated(BlockDriverState *bs, int64_t offset, int64_t bytes,
151 bdrv_is_allocated(BlockDriverState *bs, int64_t offset,
159 bdrv_is_allocated_above(BlockDriverState *bs, BlockDriverState *base,
164 bdrv_co_is_zero_fast(BlockDriverState *bs, int64_t offset, int64_t bytes);
167 bdrv_apply_auto_read_only(BlockDriverState *bs, const char *errmsg,
170 bool bdrv_is_read_only(BlockDriverState *bs);
171 bool bdrv_is_writable(BlockDriverState *bs);
172 bool bdrv_is_sg(BlockDriverState *bs);
173 int bdrv_get_flags(BlockDriverState *bs);
175 bool coroutine_fn GRAPH_RDLOCK bdrv_co_is_inserted(BlockDriverState *bs);
176 bool co_wrapper_bdrv_rdlock bdrv_is_inserted(BlockDriverState *bs);
179 bdrv_co_lock_medium(BlockDriverState *bs, bool locked);
182 bdrv_co_eject(BlockDriverState *bs, bool eject_flag);
184 const char *bdrv_get_format_name(BlockDriverState *bs);
186 bool GRAPH_RDLOCK bdrv_supports_compressed_writes(BlockDriverState *bs);
187 const char *bdrv_get_node_name(const BlockDriverState *bs);
190 bdrv_get_device_name(const BlockDriverState *bs);
193 bdrv_get_device_or_node_name(const BlockDriverState *bs);
196 bdrv_co_get_info(BlockDriverState *bs, BlockDriverInfo *bdi);
199 bdrv_get_info(BlockDriverState *bs, BlockDriverInfo *bdi);
202 bdrv_get_specific_info(BlockDriverState *bs, Error **errp);
204 BlockStatsSpecific *bdrv_get_specific_stats(BlockDriverState *bs);
205 void bdrv_round_to_subclusters(BlockDriverState *bs,
210 void bdrv_get_backing_filename(BlockDriverState *bs,
214 bdrv_co_change_backing_file(BlockDriverState *bs, const char *backing_file,
218 bdrv_change_backing_file(BlockDriverState *bs, const char *backing_file,
221 int bdrv_save_vmstate(BlockDriverState *bs, const uint8_t *buf,
224 int bdrv_load_vmstate(BlockDriverState *bs, uint8_t *buf,
231 size_t bdrv_min_mem_align(BlockDriverState *bs);
233 size_t bdrv_opt_mem_align(BlockDriverState *bs);
234 void *qemu_blockalign(BlockDriverState *bs, size_t size);
235 void *qemu_blockalign0(BlockDriverState *bs, size_t size);
236 void *qemu_try_blockalign(BlockDriverState *bs, size_t size);
237 void *qemu_try_blockalign0(BlockDriverState *bs, size_t size);
239 void bdrv_enable_copy_on_read(BlockDriverState *bs);
240 void bdrv_disable_copy_on_read(BlockDriverState *bs);
243 bdrv_co_debug_event(BlockDriverState *bs, BlkdebugEvent event);
246 bdrv_debug_event(BlockDriverState *bs, BlkdebugEvent event);
251 bdrv_co_debug_event(child->bs, evt); \
258 bdrv_debug_event(child->bs, evt); \
267 AioContext *bdrv_get_aio_context(BlockDriverState *bs);
280 AioContext *coroutine_fn bdrv_co_enter(BlockDriverState *bs);
286 void coroutine_fn bdrv_co_leave(BlockDriverState *bs, AioContext *old_ctx);
291 bdrv_co_can_store_new_dirty_bitmap(BlockDriverState *bs, const char *name,
294 bdrv_can_store_new_dirty_bitmap(BlockDriverState *bs, const char *name,
353 #define BDRV_POLL_WHILE(bs, cond) ({ \ argument
354 BlockDriverState *bs_ = (bs); \
359 void bdrv_drain(BlockDriverState *bs);
366 bdrv_check(BlockDriverState *bs, BdrvCheckResult *res, BdrvCheckMode fix);
370 bdrv_invalidate_cache(BlockDriverState *bs, Error **errp);
372 int co_wrapper_mixed_bdrv_rdlock bdrv_flush(BlockDriverState *bs);
378 bdrv_readv_vmstate(BlockDriverState *bs, QEMUIOVector *qiov, int64_t pos);
381 bdrv_writev_vmstate(BlockDriverState *bs, QEMUIOVector *qiov, int64_t pos);
417 bdrv_drain_poll(BlockDriverState *bs, BdrvChild *ignore_parent,
434 void bdrv_drained_begin(BlockDriverState *bs);
442 void bdrv_do_drained_begin_quiesce(BlockDriverState *bs, BdrvChild *parent);
455 void bdrv_drained_end(BlockDriverState *bs);