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
1234 BlockDriverState *bs = child->opaque; in bdrv_child_cb_change_aio_ctx() local
1442 BlockDriverState *bs = child->opaque; in bdrv_child_cb_attach() local
1484 BlockDriverState *bs = child->opaque; in bdrv_child_cb_detach() local
1515 BlockDriverState *bs = c->opaque; in child_of_bds_get_parent_aio_context() local
1542 static int bdrv_open_flags(BlockDriverState *bs, int flags) in bdrv_open_flags()
1602 static void bdrv_assign_node_name(BlockDriverState *bs, in bdrv_assign_node_name()
1647 bdrv_open_driver(BlockDriverState *bs, BlockDriver *drv, const char *node_name, in bdrv_open_driver()
1751 BlockDriverState *bs; in bdrv_new_open_driver_opts() local
1866 static int bdrv_open_common(BlockDriverState *bs, BlockBackend *file, in bdrv_open_common()
2170 static int bdrv_reopen_get_flags(BlockReopenQueue *q, BlockDriverState *bs) in bdrv_reopen_get_flags()
2187 static bool bdrv_is_writable_after_reopen(BlockDriverState *bs, in bdrv_is_writable_after_reopen()
2200 bool bdrv_is_writable(BlockDriverState *bs) in bdrv_is_writable()
2247 bdrv_parent_perms_conflict(BlockDriverState *bs, Error **errp) in bdrv_parent_perms_conflict()
2273 bdrv_child_perm(BlockDriverState *bs, BlockDriverState *child_bs, in bdrv_child_perm()
2302 bdrv_topological_dfs(GSList *list, GHashTable *found, BlockDriverState *bs) in bdrv_topological_dfs()
2367 BlockDriverState *bs = opaque; in bdrv_drv_set_perm_commit() local
2380 BlockDriverState *bs = opaque; in bdrv_drv_set_perm_abort() local
2398 bdrv_drv_set_perm(BlockDriverState *bs, uint64_t perm, uint64_t shared_perm, in bdrv_drv_set_perm()
2511 bdrv_node_refresh_perm(BlockDriverState *bs, BlockReopenQueue *q, in bdrv_node_refresh_perm()
2594 BlockDriverState *bs; in bdrv_do_refresh_perms() local
2635 void bdrv_get_cumulative_perm(BlockDriverState *bs, uint64_t *perm, in bdrv_get_cumulative_perm()
2689 bdrv_refresh_perms(BlockDriverState *bs, Transaction *tran, Error **errp) in bdrv_refresh_perms()
2743 int bdrv_child_refresh_perms(BlockDriverState *bs, BdrvChild *c, Error **errp) in bdrv_child_refresh_perms()
2762 static void bdrv_filter_default_perms(BlockDriverState *bs, BdrvChild *c, in bdrv_filter_default_perms()
2773 static void bdrv_default_perms_for_cow(BlockDriverState *bs, BdrvChild *c, in bdrv_default_perms_for_cow()
2809 static void bdrv_default_perms_for_storage(BlockDriverState *bs, BdrvChild *c, in bdrv_default_perms_for_storage()
2889 void bdrv_default_perms(BlockDriverState *bs, BdrvChild *c, in bdrv_default_perms()
3025 BlockDriverState *bs = s->child->bs; in bdrv_attach_child_common_abort() local
3343 BlockDriverState *bs; member
3360 static void bdrv_set_inherits_from(BlockDriverState *bs, in bdrv_set_inherits_from()
3427 bdrv_parent_cb_change_media(BlockDriverState *bs, bool load) in bdrv_parent_cb_change_media()
3455 static BdrvChildRole bdrv_backing_role(BlockDriverState *bs) in bdrv_backing_role()
3575 int bdrv_set_backing_hd_drained(BlockDriverState *bs, in bdrv_set_backing_hd_drained()
3599 int bdrv_set_backing_hd(BlockDriverState *bs, BlockDriverState *backing_hd, in bdrv_set_backing_hd()
3624 int bdrv_open_backing_file(BlockDriverState *bs, QDict *parent_options, in bdrv_open_backing_file()
3741 BlockDriverState *bs = NULL; in bdrv_open_child_bs() local
3789 BlockDriverState *bs; in bdrv_open_child_common() local
3871 BlockDriverState *bs = NULL; in bdrv_open_blockdev_ref() local
3910 static BlockDriverState *bdrv_append_temp_snapshot(BlockDriverState *bs, in bdrv_append_temp_snapshot()
3997 BlockDriverState *bs; in bdrv_open_inherit() local
4315 static int bdrv_reset_options_allowed(BlockDriverState *bs, in bdrv_reset_options_allowed()
4343 bdrv_recurse_has_child(BlockDriverState *bs, BlockDriverState *child) in bdrv_recurse_has_child()
4383 bdrv_reopen_queue_child(BlockReopenQueue *bs_queue, BlockDriverState *bs, in bdrv_reopen_queue_child()
4535 BlockDriverState *bs, in bdrv_reopen_queue()
4659 BlockDriverState *bs = bs_entry->state.bs; in bdrv_reopen_multiple() local
4686 int bdrv_reopen(BlockDriverState *bs, QDict *opts, bool keep_old_opts, in bdrv_reopen()
4698 int bdrv_reopen_set_read_only(BlockDriverState *bs, bool read_only, in bdrv_reopen_set_read_only()
4740 BlockDriverState *bs = reopen_state->bs; in bdrv_reopen_parse_file_or_backing() local
5103 BlockDriverState *bs; in bdrv_reopen_commit() local
5163 static void bdrv_close(BlockDriverState *bs) in bdrv_close()
5473 int bdrv_drop_filter(BlockDriverState *bs, Error **errp) in bdrv_drop_filter()
5578 static void bdrv_delete(BlockDriverState *bs) in bdrv_delete()
5609 BlockDriverState *bdrv_insert_node(BlockDriverState *bs, QDict *options, in bdrv_insert_node()
5679 int coroutine_fn bdrv_co_check(BlockDriverState *bs, in bdrv_co_check()
5704 bdrv_co_change_backing_file(BlockDriverState *bs, const char *backing_file, in bdrv_co_change_backing_file()
5751 BlockDriverState *bs) in bdrv_find_overlay()
5771 BlockDriverState *bdrv_find_base(BlockDriverState *bs) in bdrv_find_base()
5784 bdrv_is_backing_chain_frozen(BlockDriverState *bs, BlockDriverState *base, in bdrv_is_backing_chain_frozen()
5812 int bdrv_freeze_backing_chain(BlockDriverState *bs, BlockDriverState *base, in bdrv_freeze_backing_chain()
5849 void bdrv_unfreeze_backing_chain(BlockDriverState *bs, BlockDriverState *base) in bdrv_unfreeze_backing_chain()
6001 bdrv_sum_allocated_file_size(BlockDriverState *bs) in bdrv_sum_allocated_file_size()
6025 int64_t coroutine_fn bdrv_co_get_allocated_file_size(BlockDriverState *bs) in bdrv_co_get_allocated_file_size()
6093 int64_t coroutine_fn bdrv_co_nb_sectors(BlockDriverState *bs) in bdrv_co_nb_sectors()
6115 int64_t coroutine_mixed_fn bdrv_nb_sectors(BlockDriverState *bs) in bdrv_nb_sectors()
6137 int64_t coroutine_fn bdrv_co_getlength(BlockDriverState *bs) in bdrv_co_getlength()
6153 bool bdrv_is_sg(BlockDriverState *bs) in bdrv_is_sg()
6162 bool bdrv_supports_compressed_writes(BlockDriverState *bs) in bdrv_supports_compressed_writes()
6183 const char *bdrv_get_format_name(BlockDriverState *bs) in bdrv_get_format_name()
6259 BlockDriverState *bs; in bdrv_find_node() local
6277 BlockDriverState *bs; in bdrv_named_nodes_list() local
6384 BlockDriverState *bs; in bdrv_get_xdbg_block_graph() local
6434 BlockDriverState *bs; in bdrv_lookup_bs() local
6479 BlockDriverState *bdrv_next_node(BlockDriverState *bs) in bdrv_next_node()
6488 BlockDriverState *bdrv_next_all_states(BlockDriverState *bs) in bdrv_next_all_states()
6497 const char *bdrv_get_node_name(const BlockDriverState *bs) in bdrv_get_node_name()
6503 const char *bdrv_get_parent_name(const BlockDriverState *bs) in bdrv_get_parent_name()
6523 const char *bdrv_get_device_name(const BlockDriverState *bs) in bdrv_get_device_name()
6533 const char *bdrv_get_device_or_node_name(const BlockDriverState *bs) in bdrv_get_device_or_node_name()
6539 int bdrv_get_flags(BlockDriverState *bs) in bdrv_get_flags()
6545 int bdrv_has_zero_init_1(BlockDriverState *bs) in bdrv_has_zero_init_1()
6551 int coroutine_mixed_fn bdrv_has_zero_init(BlockDriverState *bs) in bdrv_has_zero_init()
6578 bool bdrv_can_write_zeroes_with_unmap(BlockDriverState *bs) in bdrv_can_write_zeroes_with_unmap()
6588 void bdrv_get_backing_filename(BlockDriverState *bs, in bdrv_get_backing_filename()
6595 int coroutine_fn bdrv_co_get_info(BlockDriverState *bs, BlockDriverInfo *bdi) in bdrv_co_get_info()
6633 ImageInfoSpecific *bdrv_get_specific_info(BlockDriverState *bs, in bdrv_get_specific_info()
6644 BlockStatsSpecific *bdrv_get_specific_stats(BlockDriverState *bs) in bdrv_get_specific_stats()
6654 void coroutine_fn bdrv_co_debug_event(BlockDriverState *bs, BlkdebugEvent event) in bdrv_co_debug_event()
6667 bdrv_find_debug_node(BlockDriverState *bs) in bdrv_find_debug_node()
6682 int bdrv_debug_breakpoint(BlockDriverState *bs, const char *event, in bdrv_debug_breakpoint()
6696 int bdrv_debug_remove_breakpoint(BlockDriverState *bs, const char *tag) in bdrv_debug_remove_breakpoint()
6709 int bdrv_debug_resume(BlockDriverState *bs, const char *tag) in bdrv_debug_resume()
6725 bool bdrv_debug_is_suspended(BlockDriverState *bs, const char *tag) in bdrv_debug_is_suspended()
6745 BlockDriverState *bdrv_find_backing_image(BlockDriverState *bs, in bdrv_find_backing_image()
6870 bool bdrv_is_inactive(BlockDriverState *bs) { in bdrv_is_inactive()
6874 int bdrv_activate(BlockDriverState *bs, Error **errp) in bdrv_activate()
6949 int coroutine_fn bdrv_co_invalidate_cache(BlockDriverState *bs, Error **errp) in bdrv_co_invalidate_cache()
6970 BlockDriverState *bs; in bdrv_activate_all() local
6988 bdrv_has_bds_parent(BlockDriverState *bs, bool only_active) in bdrv_has_bds_parent()
7006 bdrv_inactivate_recurse(BlockDriverState *bs, bool top_level) in bdrv_inactivate_recurse()
7079 int bdrv_inactivate(BlockDriverState *bs, Error **errp) in bdrv_inactivate()
7108 BlockDriverState *bs = NULL; in bdrv_inactivate_all() local
7143 bool coroutine_fn bdrv_co_is_inserted(BlockDriverState *bs) in bdrv_co_is_inserted()
7167 void coroutine_fn bdrv_co_eject(BlockDriverState *bs, bool eject_flag) in bdrv_co_eject()
7182 void coroutine_fn bdrv_co_lock_medium(BlockDriverState *bs, bool locked) in bdrv_co_lock_medium()
7195 void bdrv_ref(BlockDriverState *bs) in bdrv_ref()
7204 void bdrv_unref(BlockDriverState *bs) in bdrv_unref()
7218 BlockDriverState *bs = opaque; in bdrv_schedule_unref_bh() local
7231 void bdrv_schedule_unref(BlockDriverState *bs) in bdrv_schedule_unref()
7244 bool bdrv_op_is_blocked(BlockDriverState *bs, BlockOpType op, Error **errp) in bdrv_op_is_blocked()
7260 void bdrv_op_block(BlockDriverState *bs, BlockOpType op, Error *reason) in bdrv_op_block()
7271 void bdrv_op_unblock(BlockDriverState *bs, BlockOpType op, Error *reason) in bdrv_op_unblock()
7284 void bdrv_op_block_all(BlockDriverState *bs, Error *reason) in bdrv_op_block_all()
7293 void bdrv_op_unblock_all(BlockDriverState *bs, Error *reason) in bdrv_op_unblock_all()
7302 bool bdrv_op_blocker_is_empty(BlockDriverState *bs) in bdrv_op_blocker_is_empty()
7409 BlockDriverState *bs; in bdrv_img_create() local
7507 AioContext *bdrv_get_aio_context(BlockDriverState *bs) in bdrv_get_aio_context()
7513 AioContext *coroutine_fn bdrv_co_enter(BlockDriverState *bs) in bdrv_co_enter()
7531 void coroutine_fn bdrv_co_leave(BlockDriverState *bs, AioContext *old_ctx) in bdrv_co_leave()
7545 static void bdrv_detach_aio_context(BlockDriverState *bs) in bdrv_detach_aio_context()
7571 static void bdrv_attach_aio_context(BlockDriverState *bs, in bdrv_attach_aio_context()
7597 BlockDriverState *bs; member
7672 BlockDriverState *bs = (BlockDriverState *) state->bs; in bdrv_set_aio_context_commit() local
7696 bdrv_change_aio_context(BlockDriverState *bs, AioContext *ctx, in bdrv_change_aio_context()
7744 int bdrv_try_change_aio_context_locked(BlockDriverState *bs, AioContext *ctx, in bdrv_try_change_aio_context_locked()
7790 int bdrv_try_change_aio_context(BlockDriverState *bs, AioContext *ctx, in bdrv_try_change_aio_context()
7806 void bdrv_add_aio_context_notifier(BlockDriverState *bs, in bdrv_add_aio_context_notifier()
7821 void bdrv_remove_aio_context_notifier(BlockDriverState *bs, in bdrv_remove_aio_context_notifier()
7848 int bdrv_amend_options(BlockDriverState *bs, QemuOpts *opts, in bdrv_amend_options()
7879 bool bdrv_recurse_can_replace(BlockDriverState *bs, in bdrv_recurse_can_replace()
7962 static const char *const *strong_options(BlockDriverState *bs, in strong_options()
7992 static bool append_strong_runtime_options(QDict *d, BlockDriverState *bs) in append_strong_runtime_options()
8047 static bool GRAPH_RDLOCK bdrv_backing_overridden(BlockDriverState *bs) in bdrv_backing_overridden()
8072 void bdrv_refresh_filename(BlockDriverState *bs) in bdrv_refresh_filename()
8201 char *bdrv_dirname(BlockDriverState *bs, Error **errp) in bdrv_dirname()
8337 BdrvChild *bdrv_cow_child(BlockDriverState *bs) in bdrv_cow_child()
8361 BdrvChild *bdrv_filter_child(BlockDriverState *bs) in bdrv_filter_child()
8392 BdrvChild *bdrv_filter_or_cow_child(BlockDriverState *bs) in bdrv_filter_or_cow_child()
8414 BdrvChild *bdrv_primary_child(BlockDriverState *bs) in bdrv_primary_child()
8430 bdrv_do_skip_filters(BlockDriverState *bs, bool stop_on_explicit_filter) in bdrv_do_skip_filters()
8468 BlockDriverState *bdrv_skip_implicit_filters(BlockDriverState *bs) in bdrv_skip_implicit_filters()
8478 BlockDriverState *bdrv_skip_filters(BlockDriverState *bs) in bdrv_skip_filters()
8488 BlockDriverState *bdrv_backing_chain_next(BlockDriverState *bs) in bdrv_backing_chain_next()
8502 static bool bdrv_bsc_range_overlaps_locked(BlockDriverState *bs, in bdrv_bsc_range_overlaps_locked()
8524 bool bdrv_bsc_is_data(BlockDriverState *bs, int64_t offset, int64_t *pnum) in bdrv_bsc_is_data()
8534 void bdrv_bsc_invalidate_range(BlockDriverState *bs, in bdrv_bsc_invalidate_range()
8548 void bdrv_bsc_fill(BlockDriverState *bs, int64_t offset, int64_t bytes) in bdrv_bsc_fill()