Lines Matching refs:blk
96 BlockBackend *blk; in set_drive_helper() local
112 blk = *ptr; in set_drive_helper()
113 ctx = blk_get_aio_context(blk); in set_drive_helper()
124 blk_replace_bs(blk, bs, errp); in set_drive_helper()
134 blk = blk_by_name(str); in set_drive_helper()
135 if (!blk) { in set_drive_helper()
146 blk = blk_new(iothread ? ctx : qemu_get_aio_context(), in set_drive_helper()
150 ret = blk_insert_bs(blk, bs, errp); in set_drive_helper()
156 if (!blk) { in set_drive_helper()
161 if (blk_attach_dev(blk, dev) < 0) { in set_drive_helper()
162 DriveInfo *dinfo = blk_legacy_dinfo(blk); in set_drive_helper()
176 *ptr = blk; in set_drive_helper()
181 blk_unref(blk); in set_drive_helper()