Lines Matching defs:backing_hd
442 bs->backing_hd = bdrv_new("");
447 ret = bdrv_open2(bs->backing_hd, backing_filename, open_flags,
467 if (bs->backing_hd)
468 bdrv_delete(bs->backing_hd);
529 if (!bs->backing_hd) {
541 if (bdrv_write(bs->backing_hd, i, sector, 1) != 0) {
930 if (bs->backing_hd && bs->backing_hd->encrypted)
937 BlockDriverState *backing_hd = bs->backing_hd;
939 if (backing_hd && backing_hd->encrypted && !backing_hd->valid_key)
947 if (bs->backing_hd && bs->backing_hd->encrypted) {
948 ret = bdrv_set_key(bs->backing_hd, key);
1019 if (bs->backing_hd)
1020 bdrv_flush(bs->backing_hd);
1119 if (bs->backing_hd && bs->backing_hd->encrypted)
1130 if (!bs->backing_hd) {