Lines Matching refs:bs
21 uint64_t bdrv_write_threshold_get(const BlockDriverState *bs) in bdrv_write_threshold_get() argument
23 return bs->write_threshold_offset; in bdrv_write_threshold_get()
26 void bdrv_write_threshold_set(BlockDriverState *bs, uint64_t threshold_bytes) in bdrv_write_threshold_set() argument
28 bs->write_threshold_offset = threshold_bytes; in bdrv_write_threshold_set()
35 BlockDriverState *bs; in qmp_block_set_write_threshold() local
37 bs = bdrv_find_node(node_name); in qmp_block_set_write_threshold()
38 if (!bs) { in qmp_block_set_write_threshold()
43 bdrv_write_threshold_set(bs, threshold_bytes); in qmp_block_set_write_threshold()
46 void bdrv_write_threshold_check_write(BlockDriverState *bs, int64_t offset, in bdrv_write_threshold_check_write() argument
50 uint64_t wtr = bs->write_threshold_offset; in bdrv_write_threshold_check_write()
53 qapi_event_send_block_write_threshold(bs->node_name, end - wtr, wtr); in bdrv_write_threshold_check_write()
56 bdrv_write_threshold_set(bs, 0); in bdrv_write_threshold_check_write()