Lines Matching refs:blk

26 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,
54 BlockAIOCB *blk_aio_flush(BlockBackend *blk,
56 BlockAIOCB *blk_aio_zone_report(BlockBackend *blk, int64_t offset,
60 BlockAIOCB *blk_aio_zone_mgmt(BlockBackend *blk, BlockZoneOp op,
63 BlockAIOCB *blk_aio_zone_append(BlockBackend *blk, int64_t *offset,
66 BlockAIOCB *blk_aio_pdiscard(BlockBackend *blk, int64_t offset, int64_t bytes,
69 BlockAIOCB *blk_aio_ioctl(BlockBackend *blk, unsigned long int req, void *buf,
72 void blk_inc_in_flight(BlockBackend *blk);
73 void blk_dec_in_flight(BlockBackend *blk);
75 bool coroutine_fn GRAPH_RDLOCK blk_co_is_inserted(BlockBackend *blk);
76 bool co_wrapper_mixed_bdrv_rdlock blk_is_inserted(BlockBackend *blk);
78 bool coroutine_fn GRAPH_RDLOCK blk_co_is_available(BlockBackend *blk);
79 bool co_wrapper_mixed_bdrv_rdlock blk_is_available(BlockBackend *blk);
81 void coroutine_fn blk_co_lock_medium(BlockBackend *blk, bool locked);
82 void co_wrapper blk_lock_medium(BlockBackend *blk, bool locked);
84 void coroutine_fn blk_co_eject(BlockBackend *blk, bool eject_flag);
85 void co_wrapper blk_eject(BlockBackend *blk, bool eject_flag);
87 int64_t coroutine_fn blk_co_getlength(BlockBackend *blk);
88 int64_t co_wrapper_mixed blk_getlength(BlockBackend *blk);
90 void coroutine_fn blk_co_get_geometry(BlockBackend *blk,
92 void blk_get_geometry(BlockBackend *blk, uint64_t *nb_sectors_ptr);
94 int64_t coroutine_fn blk_co_nb_sectors(BlockBackend *blk);
95 int64_t blk_nb_sectors(BlockBackend *blk);
97 void *blk_try_blockalign(BlockBackend *blk, size_t size);
98 void *blk_blockalign(BlockBackend *blk, size_t size);
99 bool blk_is_writable(BlockBackend *blk);
100 bool blk_enable_write_cache(BlockBackend *blk);
101 BlockdevOnError blk_get_on_error(BlockBackend *blk, bool is_read);
102 BlockErrorAction blk_get_error_action(BlockBackend *blk, bool is_read,
104 void blk_error_action(BlockBackend *blk, BlockErrorAction action,
106 void blk_iostatus_set_err(BlockBackend *blk, int error);
107 int blk_get_max_iov(BlockBackend *blk);
108 int blk_get_max_hw_iov(BlockBackend *blk);
110 AioContext *blk_get_aio_context(BlockBackend *blk);
111 BlockAcctStats *blk_get_stats(BlockBackend *blk);
112 void *blk_aio_get(const AIOCBInfo *aiocb_info, BlockBackend *blk,
114 BlockAIOCB *blk_abort_aio_request(BlockBackend *blk,
118 uint32_t blk_get_request_alignment(BlockBackend *blk);
119 uint32_t blk_get_max_transfer(BlockBackend *blk);
120 uint64_t blk_get_max_hw_transfer(BlockBackend *blk);
127 int coroutine_fn blk_co_block_status_above(BlockBackend *blk,
132 int coroutine_fn blk_co_is_allocated_above(BlockBackend *blk,
145 int co_wrapper_mixed blk_pread(BlockBackend *blk, int64_t offset,
148 int coroutine_fn blk_co_pread(BlockBackend *blk, int64_t offset, int64_t bytes,
151 int co_wrapper_mixed blk_preadv(BlockBackend *blk, int64_t offset,
154 int coroutine_fn blk_co_preadv(BlockBackend *blk, int64_t offset,
158 int co_wrapper_mixed blk_preadv_part(BlockBackend *blk, int64_t offset,
162 int coroutine_fn blk_co_preadv_part(BlockBackend *blk, int64_t offset,
166 int co_wrapper_mixed blk_pwrite(BlockBackend *blk, int64_t offset,
169 int coroutine_fn blk_co_pwrite(BlockBackend *blk, int64_t offset, int64_t bytes,
172 int co_wrapper_mixed blk_pwritev(BlockBackend *blk, int64_t offset,
175 int coroutine_fn blk_co_pwritev(BlockBackend *blk, int64_t offset,
179 int co_wrapper_mixed blk_pwritev_part(BlockBackend *blk, int64_t offset,
183 int coroutine_fn blk_co_pwritev_part(BlockBackend *blk, int64_t offset,
188 int co_wrapper_mixed blk_pwrite_compressed(BlockBackend *blk,
191 int coroutine_fn blk_co_pwrite_compressed(BlockBackend *blk, int64_t offset,
194 int co_wrapper_mixed blk_pwrite_zeroes(BlockBackend *blk, int64_t offset,
197 int coroutine_fn blk_co_pwrite_zeroes(BlockBackend *blk, int64_t offset,
200 int coroutine_fn blk_co_zone_report(BlockBackend *blk, int64_t offset,
203 int co_wrapper_mixed blk_zone_report(BlockBackend *blk, int64_t offset,
206 int coroutine_fn blk_co_zone_mgmt(BlockBackend *blk, BlockZoneOp op,
208 int co_wrapper_mixed blk_zone_mgmt(BlockBackend *blk, BlockZoneOp op,
210 int coroutine_fn blk_co_zone_append(BlockBackend *blk, int64_t *offset,
213 int co_wrapper_mixed blk_zone_append(BlockBackend *blk, int64_t *offset,
217 int co_wrapper_mixed blk_pdiscard(BlockBackend *blk, int64_t offset,
219 int coroutine_fn blk_co_pdiscard(BlockBackend *blk, int64_t offset,
222 int co_wrapper_mixed blk_flush(BlockBackend *blk);
223 int coroutine_fn blk_co_flush(BlockBackend *blk);
225 int co_wrapper_mixed blk_ioctl(BlockBackend *blk, unsigned long int req,
227 int coroutine_fn blk_co_ioctl(BlockBackend *blk, unsigned long int req,
230 int co_wrapper_mixed blk_truncate(BlockBackend *blk, int64_t offset,
233 int coroutine_fn blk_co_truncate(BlockBackend *blk, int64_t offset, bool exact,