• Home
  • Raw
  • Download

Lines Matching refs:bus

71 DeviceState *qdev_create(BusState *bus, const char *name)  in qdev_create()  argument
88 if (!bus) { in qdev_create()
94 bus = main_system_bus; in qdev_create()
96 if (t->info->bus_type != bus->type) { in qdev_create()
99 t->info->bus_type, bus->type); in qdev_create()
101 dev->parent_bus = bus; in qdev_create()
102 QLIST_INSERT_HEAD(&bus->children, dev, sibling); in qdev_create()
159 BusState *bus; in qdev_device_add()
178 bus = qbus_find(path); in qdev_device_add()
179 if (!bus) { in qdev_device_add()
182 if (bus->info != info->bus_info) { in qdev_device_add()
184 driver, bus->info->name); in qdev_device_add()
188 bus = qbus_find_recursive(main_system_bus, NULL, info->bus_info); in qdev_device_add()
189 if (!bus) { in qdev_device_add()
195 if (qdev_hotplug && !bus->allow_hotplug) { in qdev_device_add()
196 qerror_report(QERR_BUS_NO_HOTPLUG, bus->name); in qdev_device_add()
201 qdev = qdev_create_from_info(bus, info); in qdev_device_add()
408 BusState *bus; in qdev_get_child_bus() local
410 QLIST_FOREACH(bus, &dev->child_bus, sibling) { in qdev_get_child_bus()
411 if (strcmp(name, bus->name) == 0) { in qdev_get_child_bus()
412 return bus; in qdev_get_child_bus()
424 int bus = next_scsi_bus++; in scsi_bus_new() local
429 info = drive_get(IF_SCSI, bus, unit); in scsi_bus_new()
440 BusState *bus; in qbus_create() local
442 bus = qemu_mallocz(size); in qbus_create()
443 bus->type = type; in qbus_create()
444 bus->parent = parent; in qbus_create()
445 bus->name = qemu_strdup(name); in qbus_create()
446 QLIST_INIT(&bus->children); in qbus_create()
448 QLIST_INSERT_HEAD(&parent->child_bus, bus, sibling); in qbus_create()
450 return bus; in qbus_create()
462 static void qbus_print(Monitor *mon, BusState *bus, int indent);
506 static void qbus_print(Monitor *mon, BusState *bus, int indent) in qbus_print() argument
510 qdev_printf("bus: %s\n", bus->name); in qbus_print()
512 qdev_printf("type %s\n", bus_type_names[bus->type]); in qbus_print()
513 QLIST_FOREACH(dev, &bus->children, sibling) { in qbus_print()