Lines Matching defs:bs

136 size_t bdrv_opt_mem_align(BlockDriverState *bs)  in bdrv_opt_mem_align()
147 size_t bdrv_min_mem_align(BlockDriverState *bs) in bdrv_min_mem_align()
277 bool bdrv_is_read_only(BlockDriverState *bs) in bdrv_is_read_only()
284 bdrv_can_set_read_only(BlockDriverState *bs, bool read_only, in bdrv_can_set_read_only()
318 int bdrv_apply_auto_read_only(BlockDriverState *bs, const char *errmsg, in bdrv_apply_auto_read_only()
398 char *bdrv_get_full_backing_filename(BlockDriverState *bs, Error **errp) in bdrv_get_full_backing_filename()
413 BlockDriverState *bs; in bdrv_new() local
744 int coroutine_fn bdrv_co_delete_file(BlockDriverState *bs, Error **errp) in bdrv_co_delete_file()
772 void coroutine_fn bdrv_co_delete_file_noerr(BlockDriverState *bs) in bdrv_co_delete_file_noerr()
801 int bdrv_probe_blocksizes(BlockDriverState *bs, BlockSizes *bsz) in bdrv_probe_blocksizes()
822 int bdrv_probe_geometry(BlockDriverState *bs, HDGeometry *geo) in bdrv_probe_geometry()
1052 int coroutine_fn bdrv_co_refresh_total_sectors(BlockDriverState *bs, in bdrv_co_refresh_total_sectors()
1089 static void bdrv_join_options(BlockDriverState *bs, QDict *options, in bdrv_join_options()
1205 BlockDriverState *bs = child->opaque; in bdrv_child_cb_drained_begin() local
1211 BlockDriverState *bs = child->opaque; in bdrv_child_cb_drained_poll() local
1217 BlockDriverState *bs = child->opaque; in bdrv_child_cb_drained_end() local
1223 BlockDriverState *bs = child->opaque; in bdrv_child_cb_inactivate() local
1233 BlockDriverState *bs = child->opaque; in bdrv_child_cb_change_aio_ctx() local
1441 BlockDriverState *bs = child->opaque; in bdrv_child_cb_attach() local
1483 BlockDriverState *bs = child->opaque; in bdrv_child_cb_detach() local
1514 BlockDriverState *bs = c->opaque; in child_of_bds_get_parent_aio_context() local
1541 static int bdrv_open_flags(BlockDriverState *bs, int flags) in bdrv_open_flags()
1597 static void bdrv_assign_node_name(BlockDriverState *bs, in bdrv_assign_node_name()
1642 bdrv_open_driver(BlockDriverState *bs, BlockDriver *drv, const char *node_name, in bdrv_open_driver()
1744 BlockDriverState *bs; in bdrv_new_open_driver_opts() local
1854 static int bdrv_open_common(BlockDriverState *bs, BlockBackend *file, in bdrv_open_common()
2158 static int bdrv_reopen_get_flags(BlockReopenQueue *q, BlockDriverState *bs) in bdrv_reopen_get_flags()
2175 static bool bdrv_is_writable_after_reopen(BlockDriverState *bs, in bdrv_is_writable_after_reopen()
2188 bool bdrv_is_writable(BlockDriverState *bs) in bdrv_is_writable()
2235 bdrv_parent_perms_conflict(BlockDriverState *bs, Error **errp) in bdrv_parent_perms_conflict()
2261 bdrv_child_perm(BlockDriverState *bs, BlockDriverState *child_bs, in bdrv_child_perm()
2290 bdrv_topological_dfs(GSList *list, GHashTable *found, BlockDriverState *bs) in bdrv_topological_dfs()
2355 BlockDriverState *bs = opaque; in bdrv_drv_set_perm_commit() local
2368 BlockDriverState *bs = opaque; in bdrv_drv_set_perm_abort() local
2386 bdrv_drv_set_perm(BlockDriverState *bs, uint64_t perm, uint64_t shared_perm, in bdrv_drv_set_perm()
2499 bdrv_node_refresh_perm(BlockDriverState *bs, BlockReopenQueue *q, in bdrv_node_refresh_perm()
2582 BlockDriverState *bs; in bdrv_do_refresh_perms() local
2623 void bdrv_get_cumulative_perm(BlockDriverState *bs, uint64_t *perm, in bdrv_get_cumulative_perm()
2677 bdrv_refresh_perms(BlockDriverState *bs, Transaction *tran, Error **errp) in bdrv_refresh_perms()
2731 int bdrv_child_refresh_perms(BlockDriverState *bs, BdrvChild *c, Error **errp) in bdrv_child_refresh_perms()
2750 static void bdrv_filter_default_perms(BlockDriverState *bs, BdrvChild *c, in bdrv_filter_default_perms()
2761 static void bdrv_default_perms_for_cow(BlockDriverState *bs, BdrvChild *c, in bdrv_default_perms_for_cow()
2797 static void bdrv_default_perms_for_storage(BlockDriverState *bs, BdrvChild *c, in bdrv_default_perms_for_storage()
2877 void bdrv_default_perms(BlockDriverState *bs, BdrvChild *c, in bdrv_default_perms()
3013 BlockDriverState *bs = s->child->bs; in bdrv_attach_child_common_abort() local
3304 BlockDriverState *bs; member
3321 static void bdrv_set_inherits_from(BlockDriverState *bs, in bdrv_set_inherits_from()
3384 bdrv_parent_cb_change_media(BlockDriverState *bs, bool load) in bdrv_parent_cb_change_media()
3412 static BdrvChildRole bdrv_backing_role(BlockDriverState *bs) in bdrv_backing_role()
3530 int bdrv_set_backing_hd_drained(BlockDriverState *bs, in bdrv_set_backing_hd_drained()
3554 int bdrv_set_backing_hd(BlockDriverState *bs, BlockDriverState *backing_hd, in bdrv_set_backing_hd()
3586 int bdrv_open_backing_file(BlockDriverState *bs, QDict *parent_options, in bdrv_open_backing_file()
3703 BlockDriverState *bs = NULL; in bdrv_open_child_bs() local
3751 BlockDriverState *bs; in bdrv_open_child_common() local
3831 BlockDriverState *bs = NULL; in bdrv_open_blockdev_ref() local
3870 static BlockDriverState *bdrv_append_temp_snapshot(BlockDriverState *bs, in bdrv_append_temp_snapshot()
3957 BlockDriverState *bs; in bdrv_open_inherit() local
4275 static int bdrv_reset_options_allowed(BlockDriverState *bs, in bdrv_reset_options_allowed()
4303 bdrv_recurse_has_child(BlockDriverState *bs, BlockDriverState *child) in bdrv_recurse_has_child()
4345 bdrv_reopen_queue_child(BlockReopenQueue *bs_queue, BlockDriverState *bs, in bdrv_reopen_queue_child()
4503 BlockDriverState *bs, in bdrv_reopen_queue()
4619 BlockDriverState *bs = bs_entry->state.bs; in bdrv_reopen_multiple() local
4646 int bdrv_reopen(BlockDriverState *bs, QDict *opts, bool keep_old_opts, in bdrv_reopen()
4658 int bdrv_reopen_set_read_only(BlockDriverState *bs, bool read_only, in bdrv_reopen_set_read_only()
4697 BlockDriverState *bs = reopen_state->bs; in bdrv_reopen_parse_file_or_backing() local
5058 BlockDriverState *bs; in bdrv_reopen_commit() local
5118 static void bdrv_close(BlockDriverState *bs) in bdrv_close()
5426 int bdrv_drop_filter(BlockDriverState *bs, Error **errp) in bdrv_drop_filter()
5535 static void bdrv_delete(BlockDriverState *bs) in bdrv_delete()
5566 BlockDriverState *bdrv_insert_node(BlockDriverState *bs, QDict *options, in bdrv_insert_node()
5636 int coroutine_fn bdrv_co_check(BlockDriverState *bs, in bdrv_co_check()
5661 bdrv_co_change_backing_file(BlockDriverState *bs, const char *backing_file, in bdrv_co_change_backing_file()
5708 BlockDriverState *bs) in bdrv_find_overlay()
5728 BlockDriverState *bdrv_find_base(BlockDriverState *bs) in bdrv_find_base()
5741 bdrv_is_backing_chain_frozen(BlockDriverState *bs, BlockDriverState *base, in bdrv_is_backing_chain_frozen()
5769 int bdrv_freeze_backing_chain(BlockDriverState *bs, BlockDriverState *base, in bdrv_freeze_backing_chain()
5806 void bdrv_unfreeze_backing_chain(BlockDriverState *bs, BlockDriverState *base) in bdrv_unfreeze_backing_chain()
5958 bdrv_sum_allocated_file_size(BlockDriverState *bs) in bdrv_sum_allocated_file_size()
5982 int64_t coroutine_fn bdrv_co_get_allocated_file_size(BlockDriverState *bs) in bdrv_co_get_allocated_file_size()
6050 int64_t coroutine_fn bdrv_co_nb_sectors(BlockDriverState *bs) in bdrv_co_nb_sectors()
6072 int64_t coroutine_mixed_fn bdrv_nb_sectors(BlockDriverState *bs) in bdrv_nb_sectors()
6094 int64_t coroutine_fn bdrv_co_getlength(BlockDriverState *bs) in bdrv_co_getlength()
6110 bool bdrv_is_sg(BlockDriverState *bs) in bdrv_is_sg()
6119 bool bdrv_supports_compressed_writes(BlockDriverState *bs) in bdrv_supports_compressed_writes()
6140 const char *bdrv_get_format_name(BlockDriverState *bs) in bdrv_get_format_name()
6216 BlockDriverState *bs; in bdrv_find_node() local
6234 BlockDriverState *bs; in bdrv_named_nodes_list() local
6341 BlockDriverState *bs; in bdrv_get_xdbg_block_graph() local
6391 BlockDriverState *bs; in bdrv_lookup_bs() local
6436 BlockDriverState *bdrv_next_node(BlockDriverState *bs) in bdrv_next_node()
6445 BlockDriverState *bdrv_next_all_states(BlockDriverState *bs) in bdrv_next_all_states()
6454 const char *bdrv_get_node_name(const BlockDriverState *bs) in bdrv_get_node_name()
6460 const char *bdrv_get_parent_name(const BlockDriverState *bs) in bdrv_get_parent_name()
6480 const char *bdrv_get_device_name(const BlockDriverState *bs) in bdrv_get_device_name()
6490 const char *bdrv_get_device_or_node_name(const BlockDriverState *bs) in bdrv_get_device_or_node_name()
6496 int bdrv_get_flags(BlockDriverState *bs) in bdrv_get_flags()
6502 int bdrv_has_zero_init_1(BlockDriverState *bs) in bdrv_has_zero_init_1()
6508 int coroutine_mixed_fn bdrv_has_zero_init(BlockDriverState *bs) in bdrv_has_zero_init()
6535 bool bdrv_can_write_zeroes_with_unmap(BlockDriverState *bs) in bdrv_can_write_zeroes_with_unmap()
6545 void bdrv_get_backing_filename(BlockDriverState *bs, in bdrv_get_backing_filename()
6552 int coroutine_fn bdrv_co_get_info(BlockDriverState *bs, BlockDriverInfo *bdi) in bdrv_co_get_info()
6590 ImageInfoSpecific *bdrv_get_specific_info(BlockDriverState *bs, in bdrv_get_specific_info()
6601 BlockStatsSpecific *bdrv_get_specific_stats(BlockDriverState *bs) in bdrv_get_specific_stats()
6611 void coroutine_fn bdrv_co_debug_event(BlockDriverState *bs, BlkdebugEvent event) in bdrv_co_debug_event()
6624 bdrv_find_debug_node(BlockDriverState *bs) in bdrv_find_debug_node()
6639 int bdrv_debug_breakpoint(BlockDriverState *bs, const char *event, in bdrv_debug_breakpoint()
6653 int bdrv_debug_remove_breakpoint(BlockDriverState *bs, const char *tag) in bdrv_debug_remove_breakpoint()
6666 int bdrv_debug_resume(BlockDriverState *bs, const char *tag) in bdrv_debug_resume()
6682 bool bdrv_debug_is_suspended(BlockDriverState *bs, const char *tag) in bdrv_debug_is_suspended()
6702 BlockDriverState *bdrv_find_backing_image(BlockDriverState *bs, in bdrv_find_backing_image()
6827 int bdrv_activate(BlockDriverState *bs, Error **errp) in bdrv_activate()
6902 int coroutine_fn bdrv_co_invalidate_cache(BlockDriverState *bs, Error **errp) in bdrv_co_invalidate_cache()
6923 BlockDriverState *bs; in bdrv_activate_all() local
6941 bdrv_has_bds_parent(BlockDriverState *bs, bool only_active) in bdrv_has_bds_parent()
6958 static int GRAPH_RDLOCK bdrv_inactivate_recurse(BlockDriverState *bs) in bdrv_inactivate_recurse()
7024 BlockDriverState *bs = NULL; in bdrv_inactivate_all() local
7054 bool coroutine_fn bdrv_co_is_inserted(BlockDriverState *bs) in bdrv_co_is_inserted()
7078 void coroutine_fn bdrv_co_eject(BlockDriverState *bs, bool eject_flag) in bdrv_co_eject()
7093 void coroutine_fn bdrv_co_lock_medium(BlockDriverState *bs, bool locked) in bdrv_co_lock_medium()
7106 void bdrv_ref(BlockDriverState *bs) in bdrv_ref()
7115 void bdrv_unref(BlockDriverState *bs) in bdrv_unref()
7129 BlockDriverState *bs = opaque; in bdrv_schedule_unref_bh() local
7142 void bdrv_schedule_unref(BlockDriverState *bs) in bdrv_schedule_unref()
7155 bool bdrv_op_is_blocked(BlockDriverState *bs, BlockOpType op, Error **errp) in bdrv_op_is_blocked()
7171 void bdrv_op_block(BlockDriverState *bs, BlockOpType op, Error *reason) in bdrv_op_block()
7182 void bdrv_op_unblock(BlockDriverState *bs, BlockOpType op, Error *reason) in bdrv_op_unblock()
7195 void bdrv_op_block_all(BlockDriverState *bs, Error *reason) in bdrv_op_block_all()
7204 void bdrv_op_unblock_all(BlockDriverState *bs, Error *reason) in bdrv_op_unblock_all()
7213 bool bdrv_op_blocker_is_empty(BlockDriverState *bs) in bdrv_op_blocker_is_empty()
7324 BlockDriverState *bs; in bdrv_img_create() local
7422 AioContext *bdrv_get_aio_context(BlockDriverState *bs) in bdrv_get_aio_context()
7428 AioContext *coroutine_fn bdrv_co_enter(BlockDriverState *bs) in bdrv_co_enter()
7446 void coroutine_fn bdrv_co_leave(BlockDriverState *bs, AioContext *old_ctx) in bdrv_co_leave()
7460 static void bdrv_detach_aio_context(BlockDriverState *bs) in bdrv_detach_aio_context()
7486 static void bdrv_attach_aio_context(BlockDriverState *bs, in bdrv_attach_aio_context()
7512 BlockDriverState *bs; member
7558 BlockDriverState *bs = (BlockDriverState *) state->bs; in bdrv_set_aio_context_clean() local
7569 BlockDriverState *bs = (BlockDriverState *) state->bs; in bdrv_set_aio_context_commit() local
7590 static bool bdrv_change_aio_context(BlockDriverState *bs, AioContext *ctx, in bdrv_change_aio_context()
7640 int bdrv_try_change_aio_context(BlockDriverState *bs, AioContext *ctx, in bdrv_try_change_aio_context()
7679 void bdrv_add_aio_context_notifier(BlockDriverState *bs, in bdrv_add_aio_context_notifier()
7694 void bdrv_remove_aio_context_notifier(BlockDriverState *bs, in bdrv_remove_aio_context_notifier()
7721 int bdrv_amend_options(BlockDriverState *bs, QemuOpts *opts, in bdrv_amend_options()
7752 bool bdrv_recurse_can_replace(BlockDriverState *bs, in bdrv_recurse_can_replace()
7835 static const char *const *strong_options(BlockDriverState *bs, in strong_options()
7865 static bool append_strong_runtime_options(QDict *d, BlockDriverState *bs) in append_strong_runtime_options()
7920 static bool GRAPH_RDLOCK bdrv_backing_overridden(BlockDriverState *bs) in bdrv_backing_overridden()
7945 void bdrv_refresh_filename(BlockDriverState *bs) in bdrv_refresh_filename()
8074 char *bdrv_dirname(BlockDriverState *bs, Error **errp) in bdrv_dirname()
8202 BdrvChild *bdrv_cow_child(BlockDriverState *bs) in bdrv_cow_child()
8226 BdrvChild *bdrv_filter_child(BlockDriverState *bs) in bdrv_filter_child()
8257 BdrvChild *bdrv_filter_or_cow_child(BlockDriverState *bs) in bdrv_filter_or_cow_child()
8279 BdrvChild *bdrv_primary_child(BlockDriverState *bs) in bdrv_primary_child()
8295 bdrv_do_skip_filters(BlockDriverState *bs, bool stop_on_explicit_filter) in bdrv_do_skip_filters()
8333 BlockDriverState *bdrv_skip_implicit_filters(BlockDriverState *bs) in bdrv_skip_implicit_filters()
8343 BlockDriverState *bdrv_skip_filters(BlockDriverState *bs) in bdrv_skip_filters()
8353 BlockDriverState *bdrv_backing_chain_next(BlockDriverState *bs) in bdrv_backing_chain_next()
8367 static bool bdrv_bsc_range_overlaps_locked(BlockDriverState *bs, in bdrv_bsc_range_overlaps_locked()
8389 bool bdrv_bsc_is_data(BlockDriverState *bs, int64_t offset, int64_t *pnum) in bdrv_bsc_is_data()
8399 void bdrv_bsc_invalidate_range(BlockDriverState *bs, in bdrv_bsc_invalidate_range()
8413 void bdrv_bsc_fill(BlockDriverState *bs, int64_t offset, int64_t bytes) in bdrv_bsc_fill()