Lines Matching +full:string +full:- +full:array +full:- +full:property
29 #include "qemu/error-report.h"
31 #include "hw/qdev-core.h"
81 * a-b: floppy disk drives in validate_bootdevices()
82 * c-f: IDE disk drives in validate_bootdevices()
83 * g-m: machine implementation dependent drives in validate_bootdevices()
84 * n-p: network devices in validate_bootdevices()
93 if (bitmap & (1 << (*p - 'a'))) { in validate_bootdevices()
97 bitmap |= 1 << (*p - 'a'); in validate_bootdevices()
108 /* First boot: use the one-time config */ in restore_boot_order()
129 if (i->bootindex == bootindex) { in check_boot_index()
147 if ((!suffix || !g_strcmp0(i->suffix, suffix)) && in del_boot_device_path()
148 i->dev == dev) { in del_boot_device_path()
150 g_free(i->suffix); in del_boot_device_path()
173 node->bootindex = bootindex; in add_boot_device_path()
174 node->suffix = g_strdup(suffix); in add_boot_device_path()
175 node->dev = dev; in add_boot_device_path()
178 if (i->bootindex == bootindex) { in add_boot_device_path()
181 } else if (i->bootindex < bootindex) { in add_boot_device_path()
199 res = i->dev; in get_boot_device()
220 d = qdev_get_own_fw_dev_path_from_handler(dev->parent_bus, dev); in get_boot_device_path()
242 * This function returns null terminated string that consist of new line
245 * memory pointed by "size" is assigned total length of the array in bytes
254 bool ignore_suffixes = mc->ignore_boot_device_suffixes; in get_boot_devices_list()
260 bootpath = get_boot_device_path(i->dev, ignore_suffixes, i->suffix); in get_boot_devices_list()
263 list[total-1] = '\n'; in get_boot_devices_list()
274 if (current_machine->boot_config.has_strict && in get_boot_devices_list()
275 current_machine->boot_config.strict && *size > 0) { in get_boot_devices_list()
276 list[total-1] = '\n'; in get_boot_devices_list()
294 visit_type_int32(v, name, prop->bootindex, errp); in device_get_bootindex()
314 *prop->bootindex = boot_index; in device_set_bootindex()
316 add_boot_device_path(*prop->bootindex, prop->dev, prop->suffix); in device_set_bootindex()
325 del_boot_device_path(prop->dev, prop->suffix); in property_release_bootindex()
335 prop->bootindex = bootindex; in device_add_bootindex_property()
336 prop->suffix = suffix; in device_add_bootindex_property()
337 prop->dev = dev; in device_add_bootindex_property()
345 /* initialize devices' bootindex property to -1 */ in device_add_bootindex_property()
346 object_property_set_int(obj, name, -1, NULL); in device_add_bootindex_property()
375 node->suffix = g_strdup(suffix); in add_boot_device_lchs()
376 node->dev = dev; in add_boot_device_lchs()
377 node->lcyls = lcyls; in add_boot_device_lchs()
378 node->lheads = lheads; in add_boot_device_lchs()
379 node->lsecs = lsecs; in add_boot_device_lchs()
393 if ((!suffix || !g_strcmp0(i->suffix, suffix)) && in del_boot_device_lchs()
394 i->dev == dev) { in del_boot_device_lchs()
396 g_free(i->suffix); in del_boot_device_lchs()
415 bootpath = get_boot_device_path(i->dev, false, i->suffix); in get_boot_devices_lchs_list()
417 bootpath, i->lcyls, i->lheads, i->lsecs); in get_boot_devices_lchs_list()
420 list[total - 1] = '\n'; in get_boot_devices_lchs_list()