Lines Matching defs:blk
99 BlockBackend *blk; member
145 BlockBackend *blk = child->opaque; in blk_root_get_parent_desc() local
169 BlockBackend *blk = opaque; in blk_vm_state_changed() local
192 BlockBackend *blk = child->opaque; in blk_root_activate() local
238 void blk_set_force_allow_inactivate(BlockBackend *blk) in blk_set_force_allow_inactivate()
244 static bool blk_can_inactivate(BlockBackend *blk) in blk_can_inactivate()
265 BlockBackend *blk = child->opaque; in blk_root_inactivate() local
285 BlockBackend *blk = child->opaque; in blk_root_attach() local
300 BlockBackend *blk = child->opaque; in blk_root_detach() local
315 BlockBackend *blk = c->opaque; in blk_root_get_parent_aio_context() local
357 BlockBackend *blk; in blk_new() local
397 BlockBackend *blk = blk_new(bdrv_get_aio_context(bs), perm, shared_perm); in blk_new_with_bs() local
426 BlockBackend *blk; in blk_new_open() local
478 static void blk_delete(BlockBackend *blk) in blk_delete()
513 int blk_get_refcnt(BlockBackend *blk) in blk_get_refcnt()
523 void blk_ref(BlockBackend *blk) in blk_ref()
535 void blk_unref(BlockBackend *blk) in blk_unref()
556 BlockBackend *blk_all_next(BlockBackend *blk) in blk_all_next()
565 BlockBackend *blk = NULL; in blk_remove_all_bs() local
586 BlockBackend *blk_next(BlockBackend *blk) in blk_next()
685 bool monitor_add_blk(BlockBackend *blk, const char *name, Error **errp) in monitor_add_blk()
715 void monitor_remove_blk(BlockBackend *blk) in monitor_remove_blk()
732 const char *blk_name(const BlockBackend *blk) in blk_name()
744 BlockBackend *blk = NULL; in blk_by_name() local
759 BlockDriverState *blk_bs(BlockBackend *blk) in blk_bs()
812 DriveInfo *blk_legacy_dinfo(BlockBackend *blk) in blk_legacy_dinfo()
823 DriveInfo *blk_set_legacy_dinfo(BlockBackend *blk, DriveInfo *dinfo) in blk_set_legacy_dinfo()
836 BlockBackend *blk = NULL; in blk_by_legacy_dinfo() local
850 BlockBackendPublic *blk_get_public(BlockBackend *blk) in blk_get_public()
859 void blk_remove_bs(BlockBackend *blk) in blk_remove_bs()
900 int blk_insert_bs(BlockBackend *blk, BlockDriverState *bs, Error **errp) in blk_insert_bs()
928 int blk_replace_bs(BlockBackend *blk, BlockDriverState *new_bs, Error **errp) in blk_replace_bs()
938 blk_set_perm_locked(BlockBackend *blk, uint64_t perm, uint64_t shared_perm, in blk_set_perm_locked()
957 int blk_set_perm(BlockBackend *blk, uint64_t perm, uint64_t shared_perm, in blk_set_perm()
966 void blk_get_perm(BlockBackend *blk, uint64_t *perm, uint64_t *shared_perm) in blk_get_perm()
977 int blk_attach_dev(BlockBackend *blk, DeviceState *dev) in blk_attach_dev()
1002 void blk_detach_dev(BlockBackend *blk, DeviceState *dev) in blk_detach_dev()
1016 DeviceState *blk_get_attached_dev(BlockBackend *blk) in blk_get_attached_dev()
1022 static char *blk_get_attached_dev_id_or_path(BlockBackend *blk, bool want_id) in blk_get_attached_dev_id_or_path()
1040 char *blk_get_attached_dev_id(BlockBackend *blk) in blk_get_attached_dev_id()
1045 static char *blk_get_attached_dev_path(BlockBackend *blk) in blk_get_attached_dev_path()
1058 BlockBackend *blk = NULL; in blk_by_dev() local
1076 void blk_set_dev_ops(BlockBackend *blk, const BlockDevOps *ops, in blk_set_dev_ops()
1099 void blk_dev_change_media_cb(BlockBackend *blk, bool load, Error **errp) in blk_dev_change_media_cb()
1132 bool blk_dev_has_removable_media(BlockBackend *blk) in blk_dev_has_removable_media()
1141 bool blk_dev_has_tray(BlockBackend *blk) in blk_dev_has_tray()
1151 void blk_dev_eject_request(BlockBackend *blk, bool force) in blk_dev_eject_request()
1162 bool blk_dev_is_tray_open(BlockBackend *blk) in blk_dev_is_tray_open()
1175 bool blk_dev_is_medium_locked(BlockBackend *blk) in blk_dev_is_medium_locked()
1189 BlockBackend *blk = child->opaque; in blk_root_resize() local
1196 void blk_iostatus_enable(BlockBackend *blk) in blk_iostatus_enable()
1205 bool blk_iostatus_is_enabled(const BlockBackend *blk) in blk_iostatus_is_enabled()
1214 BlockDeviceIoStatus blk_iostatus(const BlockBackend *blk) in blk_iostatus()
1220 void blk_iostatus_reset(BlockBackend *blk) in blk_iostatus_reset()
1228 void blk_iostatus_set_err(BlockBackend *blk, int error) in blk_iostatus_set_err()
1238 void blk_set_allow_write_beyond_eof(BlockBackend *blk, bool allow) in blk_set_allow_write_beyond_eof()
1244 void blk_set_allow_aio_context_change(BlockBackend *blk, bool allow) in blk_set_allow_aio_context_change()
1250 void blk_set_disable_request_queuing(BlockBackend *blk, bool disable) in blk_set_disable_request_queuing()
1257 blk_check_byte_request(BlockBackend *blk, int64_t offset, int64_t bytes) in blk_check_byte_request()
1288 bool blk_in_drain(BlockBackend *blk) in blk_in_drain()
1295 static void coroutine_fn blk_wait_while_drained(BlockBackend *blk) in blk_wait_while_drained()
1316 blk_co_do_preadv_part(BlockBackend *blk, int64_t offset, int64_t bytes, in blk_co_do_preadv_part()
1350 int coroutine_fn blk_co_pread(BlockBackend *blk, int64_t offset, int64_t bytes, in blk_co_pread()
1361 int coroutine_fn blk_co_preadv(BlockBackend *blk, int64_t offset, in blk_co_preadv()
1375 int coroutine_fn blk_co_preadv_part(BlockBackend *blk, int64_t offset, in blk_co_preadv_part()
1391 blk_co_do_pwritev_part(BlockBackend *blk, int64_t offset, int64_t bytes, in blk_co_do_pwritev_part()
1428 int coroutine_fn blk_co_pwritev_part(BlockBackend *blk, int64_t offset, in blk_co_pwritev_part()
1443 int coroutine_fn blk_co_pwrite(BlockBackend *blk, int64_t offset, int64_t bytes, in blk_co_pwrite()
1454 int coroutine_fn blk_co_pwritev(BlockBackend *blk, int64_t offset, in blk_co_pwritev()
1462 int coroutine_fn blk_co_block_status_above(BlockBackend *blk, in blk_co_block_status_above()
1474 int coroutine_fn blk_co_is_allocated_above(BlockBackend *blk, in blk_co_is_allocated_above()
1486 BlockBackend *blk; member
1493 int blk_make_zero(BlockBackend *blk, BdrvRequestFlags flags) in blk_make_zero()
1499 void blk_inc_in_flight(BlockBackend *blk) in blk_inc_in_flight()
1505 void blk_dec_in_flight(BlockBackend *blk) in blk_dec_in_flight()
1521 BlockAIOCB *blk_abort_aio_request(BlockBackend *blk, in blk_abort_aio_request()
1565 static BlockAIOCB *blk_aio_prwv(BlockBackend *blk, int64_t offset, in blk_aio_prwv()
1622 BlockAIOCB *blk_aio_pwrite_zeroes(BlockBackend *blk, int64_t offset, in blk_aio_pwrite_zeroes()
1631 int64_t coroutine_fn blk_co_getlength(BlockBackend *blk) in blk_co_getlength()
1643 int64_t coroutine_fn blk_co_nb_sectors(BlockBackend *blk) in blk_co_nb_sectors()
1661 int64_t coroutine_mixed_fn blk_nb_sectors(BlockBackend *blk) in blk_nb_sectors()
1675 void coroutine_fn blk_co_get_geometry(BlockBackend *blk, in blk_co_get_geometry()
1685 void coroutine_mixed_fn blk_get_geometry(BlockBackend *blk, in blk_get_geometry()
1692 BlockAIOCB *blk_aio_preadv(BlockBackend *blk, int64_t offset, in blk_aio_preadv()
1702 BlockAIOCB *blk_aio_pwritev(BlockBackend *blk, int64_t offset, in blk_aio_pwritev()
1726 blk_co_do_ioctl(BlockBackend *blk, unsigned long int req, void *buf) in blk_co_do_ioctl()
1740 int coroutine_fn blk_co_ioctl(BlockBackend *blk, unsigned long int req, in blk_co_ioctl()
1763 BlockAIOCB *blk_aio_ioctl(BlockBackend *blk, unsigned long int req, void *buf, in blk_aio_ioctl()
1772 blk_co_do_pdiscard(BlockBackend *blk, int64_t offset, int64_t bytes) in blk_co_do_pdiscard()
1797 BlockAIOCB *blk_aio_pdiscard(BlockBackend *blk, in blk_aio_pdiscard()
1806 int coroutine_fn blk_co_pdiscard(BlockBackend *blk, int64_t offset, in blk_co_pdiscard()
1820 static int coroutine_fn blk_co_do_flush(BlockBackend *blk) in blk_co_do_flush()
1842 BlockAIOCB *blk_aio_flush(BlockBackend *blk, in blk_aio_flush()
1849 int coroutine_fn blk_co_flush(BlockBackend *blk) in blk_co_flush()
1872 BlockAIOCB *blk_aio_zone_report(BlockBackend *blk, int64_t offset, in blk_aio_zone_report()
1915 BlockAIOCB *blk_aio_zone_mgmt(BlockBackend *blk, BlockZoneOp op, in blk_aio_zone_mgmt()
1955 BlockAIOCB *blk_aio_zone_append(BlockBackend *blk, int64_t *offset, in blk_aio_zone_append()
1990 int coroutine_fn blk_co_zone_report(BlockBackend *blk, int64_t offset, in blk_co_zone_report()
2016 int coroutine_fn blk_co_zone_mgmt(BlockBackend *blk, BlockZoneOp op, in blk_co_zone_mgmt()
2040 int coroutine_fn blk_co_zone_append(BlockBackend *blk, int64_t *offset, in blk_co_zone_append()
2059 void blk_drain(BlockBackend *blk) in blk_drain()
2081 BlockBackend *blk = NULL; in blk_drain_all() local
2095 void blk_set_on_error(BlockBackend *blk, BlockdevOnError on_read_error, in blk_set_on_error()
2103 BlockdevOnError blk_get_on_error(BlockBackend *blk, bool is_read) in blk_get_on_error()
2109 BlockErrorAction blk_get_error_action(BlockBackend *blk, bool is_read, in blk_get_error_action()
2131 static void send_qmp_error_event(BlockBackend *blk, in send_qmp_error_event()
2150 void blk_error_action(BlockBackend *blk, BlockErrorAction action, in blk_error_action()
2183 bool blk_supports_write_perm(BlockBackend *blk) in blk_supports_write_perm()
2199 bool blk_is_writable(BlockBackend *blk) in blk_is_writable()
2205 bool blk_is_sg(BlockBackend *blk) in blk_is_sg()
2217 bool blk_enable_write_cache(BlockBackend *blk) in blk_enable_write_cache()
2223 void blk_set_enable_write_cache(BlockBackend *blk, bool wce) in blk_set_enable_write_cache()
2229 bool coroutine_fn blk_co_is_inserted(BlockBackend *blk) in blk_co_is_inserted()
2238 bool coroutine_fn blk_co_is_available(BlockBackend *blk) in blk_co_is_available()
2244 void coroutine_fn blk_co_lock_medium(BlockBackend *blk, bool locked) in blk_co_lock_medium()
2255 void coroutine_fn blk_co_eject(BlockBackend *blk, bool eject_flag) in blk_co_eject()
2274 int blk_get_flags(BlockBackend *blk) in blk_get_flags()
2287 uint32_t blk_get_request_alignment(BlockBackend *blk) in blk_get_request_alignment()
2295 uint64_t blk_get_max_hw_transfer(BlockBackend *blk) in blk_get_max_hw_transfer()
2309 uint32_t blk_get_max_transfer(BlockBackend *blk) in blk_get_max_transfer()
2321 int blk_get_max_hw_iov(BlockBackend *blk) in blk_get_max_hw_iov()
2328 int blk_get_max_iov(BlockBackend *blk) in blk_get_max_iov()
2334 void *blk_try_blockalign(BlockBackend *blk, size_t size) in blk_try_blockalign()
2340 void *blk_blockalign(BlockBackend *blk, size_t size) in blk_blockalign()
2346 bool blk_op_is_blocked(BlockBackend *blk, BlockOpType op, Error **errp) in blk_op_is_blocked()
2366 AioContext *blk_get_aio_context(BlockBackend *blk) in blk_get_aio_context()
2377 int blk_set_aio_context(BlockBackend *blk, AioContext *new_context, in blk_set_aio_context()
2406 BlockBackend *blk; member
2412 BlockBackend *blk = s->blk; in blk_root_set_aio_ctx_commit() local
2432 BlockBackend *blk = child->opaque; in blk_root_change_aio_ctx() local
2458 void blk_add_aio_context_notifier(BlockBackend *blk, in blk_add_aio_context_notifier()
2478 void blk_remove_aio_context_notifier(BlockBackend *blk, in blk_remove_aio_context_notifier()
2507 void blk_add_remove_bs_notifier(BlockBackend *blk, Notifier *notify) in blk_add_remove_bs_notifier()
2513 BlockAcctStats *blk_get_stats(BlockBackend *blk) in blk_get_stats()
2519 void *blk_aio_get(const AIOCBInfo *aiocb_info, BlockBackend *blk, in blk_aio_get()
2526 int coroutine_fn blk_co_pwrite_zeroes(BlockBackend *blk, int64_t offset, in blk_co_pwrite_zeroes()
2534 int coroutine_fn blk_co_pwrite_compressed(BlockBackend *blk, int64_t offset, in blk_co_pwrite_compressed()
2543 int coroutine_fn blk_co_truncate(BlockBackend *blk, int64_t offset, bool exact, in blk_co_truncate()
2557 int blk_save_vmstate(BlockBackend *blk, const uint8_t *buf, in blk_save_vmstate()
2579 int blk_load_vmstate(BlockBackend *blk, uint8_t *buf, int64_t pos, int size) in blk_load_vmstate()
2589 int blk_probe_blocksizes(BlockBackend *blk, BlockSizes *bsz) in blk_probe_blocksizes()
2601 int blk_probe_geometry(BlockBackend *blk, HDGeometry *geo) in blk_probe_geometry()
2615 void blk_update_root_state(BlockBackend *blk) in blk_update_root_state()
2628 bool blk_get_detect_zeroes_from_root_state(BlockBackend *blk) in blk_get_detect_zeroes_from_root_state()
2638 int blk_get_open_flags_from_root_state(BlockBackend *blk) in blk_get_open_flags_from_root_state()
2644 BlockBackendRootState *blk_get_root_state(BlockBackend *blk) in blk_get_root_state()
2652 BlockBackend *blk = NULL; in blk_commit_all() local
2673 void blk_set_io_limits(BlockBackend *blk, ThrottleConfig *cfg) in blk_set_io_limits()
2679 void blk_io_limits_disable(BlockBackend *blk) in blk_io_limits_disable()
2697 void blk_io_limits_enable(BlockBackend *blk, const char *group) in blk_io_limits_enable()
2705 void blk_io_limits_update_group(BlockBackend *blk, const char *group) in blk_io_limits_update_group()
2726 BlockBackend *blk = child->opaque; in blk_root_drained_begin() local
2745 BlockBackend *blk = child->opaque; in blk_root_drained_poll() local
2757 BlockBackend *blk = child->opaque; in blk_root_drained_end() local
2776 bool blk_register_buf(BlockBackend *blk, void *host, size_t size, Error **errp) in blk_register_buf()
2788 void blk_unregister_buf(BlockBackend *blk, void *host, size_t size) in blk_unregister_buf()
2822 const BdrvChild *blk_root(BlockBackend *blk) in blk_root()
2828 int blk_make_empty(BlockBackend *blk, Error **errp) in blk_make_empty()