Lines Matching refs:parent
102 static void qbus_init_internal(BusState *bus, DeviceState *parent, in qbus_init_internal() argument
109 bus->parent = parent; in qbus_init_internal()
113 } else if (bus->parent && bus->parent->id) { in qbus_init_internal()
115 bus_id = bus->parent->num_child_bus; in qbus_init_internal()
116 bus->name = g_strdup_printf("%s.%d", bus->parent->id, bus_id); in qbus_init_internal()
127 if (bus->parent) { in qbus_init_internal()
128 QLIST_INSERT_HEAD(&bus->parent->child_bus, bus, sibling); in qbus_init_internal()
129 bus->parent->num_child_bus++; in qbus_init_internal()
130 object_property_add_child(OBJECT(bus->parent), bus->name, OBJECT(bus)); in qbus_init_internal()
144 assert(bus->parent); in bus_unparent()
151 bus->parent->num_child_bus--; in bus_unparent()
152 bus->parent = NULL; in bus_unparent()
156 DeviceState *parent, const char *name) in qbus_init() argument
159 qbus_init_internal(bus, parent, name); in qbus_init()
162 BusState *qbus_new(const char *typename, DeviceState *parent, const char *name) in qbus_new() argument
167 qbus_init_internal(bus, parent, name); in qbus_new()
256 .parent = TYPE_OBJECT,