Lines Matching refs:bs
58 BlockDriverState *bs; in block_dirty_bitmap_lookup() local
71 bs = bdrv_lookup_bs(node, node, NULL); in block_dirty_bitmap_lookup()
72 if (!bs) { in block_dirty_bitmap_lookup()
77 bitmap = bdrv_find_dirty_bitmap(bs, name); in block_dirty_bitmap_lookup()
84 *pbs = bs; in block_dirty_bitmap_lookup()
96 BlockDriverState *bs; in qmp_block_dirty_bitmap_add() local
104 bs = bdrv_lookup_bs(node, node, errp); in qmp_block_dirty_bitmap_add()
105 if (!bs) { in qmp_block_dirty_bitmap_add()
117 granularity = bdrv_get_default_bitmap_granularity(bs); in qmp_block_dirty_bitmap_add()
129 !bdrv_can_store_new_dirty_bitmap(bs, name, granularity, errp)) in qmp_block_dirty_bitmap_add()
134 bitmap = bdrv_create_dirty_bitmap(bs, granularity, name, errp); in qmp_block_dirty_bitmap_add()
151 BlockDriverState *bs; in block_dirty_bitmap_remove() local
156 bitmap = block_dirty_bitmap_lookup(node, name, &bs, errp); in block_dirty_bitmap_remove()
157 if (!bitmap || !bs) { in block_dirty_bitmap_remove()
167 bdrv_remove_persistent_dirty_bitmap(bs, name, errp) < 0) in block_dirty_bitmap_remove()
177 *bitmap_bs = bs; in block_dirty_bitmap_remove()
197 BlockDriverState *bs; in qmp_block_dirty_bitmap_clear() local
199 bitmap = block_dirty_bitmap_lookup(node, name, &bs, errp); in qmp_block_dirty_bitmap_clear()
200 if (!bitmap || !bs) { in qmp_block_dirty_bitmap_clear()
214 BlockDriverState *bs; in qmp_block_dirty_bitmap_enable() local
217 bitmap = block_dirty_bitmap_lookup(node, name, &bs, errp); in qmp_block_dirty_bitmap_enable()
232 BlockDriverState *bs; in qmp_block_dirty_bitmap_disable() local
235 bitmap = block_dirty_bitmap_lookup(node, name, &bs, errp); in qmp_block_dirty_bitmap_disable()
252 BlockDriverState *bs; in block_dirty_bitmap_merge() local
260 dst = block_dirty_bitmap_lookup(dst_node, dst_bitmap, &bs, errp); in block_dirty_bitmap_merge()
269 src = bdrv_find_dirty_bitmap(bs, src_bitmap); in block_dirty_bitmap_merge()