Lines Matching refs:dinfo
115 DriveInfo *dinfo; in override_max_devs() local
124 dinfo = blk_legacy_dinfo(blk); in override_max_devs()
125 if (dinfo->type == type) { in override_max_devs()
145 DriveInfo *dinfo = blk_legacy_dinfo(blk); in blockdev_mark_auto_del() local
150 if (!dinfo) { in blockdev_mark_auto_del()
173 dinfo->auto_del = 1; in blockdev_mark_auto_del()
178 DriveInfo *dinfo = blk_legacy_dinfo(blk); in blockdev_auto_del() local
181 if (dinfo && dinfo->auto_del) { in blockdev_auto_del()
224 DriveInfo *dinfo; in drive_get() local
229 dinfo = blk_legacy_dinfo(blk); in drive_get()
230 if (dinfo && dinfo->type == type in drive_get()
231 && dinfo->bus == bus && dinfo->unit == unit) { in drive_get()
232 return dinfo; in drive_get()
246 DriveInfo *dinfo; in drive_check_orphaned() local
253 dinfo = blk_legacy_dinfo(blk); in drive_check_orphaned()
263 if (dinfo->is_default || dinfo->type == IF_VIRTIO in drive_check_orphaned()
264 || dinfo->type == IF_XEN || dinfo->type == IF_NONE) { in drive_check_orphaned()
269 qemu_opts_loc_restore(dinfo->opts); in drive_check_orphaned()
272 if_name[dinfo->type], dinfo->bus, dinfo->unit); in drive_check_orphaned()
295 DriveInfo *dinfo; in drive_get_max_bus() local
301 dinfo = blk_legacy_dinfo(blk); in drive_get_max_bus()
302 if (dinfo && dinfo->type == type && dinfo->bus > max_bus) { in drive_get_max_bus()
303 max_bus = dinfo->bus; in drive_get_max_bus()
780 DriveInfo *dinfo = NULL; in drive_new() local
1013 dinfo = g_malloc0(sizeof(*dinfo)); in drive_new()
1014 dinfo->opts = all_opts; in drive_new()
1016 dinfo->type = type; in drive_new()
1017 dinfo->bus = bus_id; in drive_new()
1018 dinfo->unit = unit_id; in drive_new()
1020 blk_set_legacy_dinfo(blk, dinfo); in drive_new()
1027 dinfo->media_cd = media == MEDIA_CDROM; in drive_new()
1036 return dinfo; in drive_new()