Lines Matching refs:parent
65 devclass_t parent; /* parent in devclass hierarchy */
87 TAILQ_ENTRY(device) link; /**< list of devices in parent */
89 device_t parent; /**< parent of this device */
279 * If @p parentname is non-NULL, the parent of the devclass is set to
283 * @param parentname the parent devclass name or @c NULL
306 dc->parent = NULL;
320 * If a parent class is specified, then set that as our parent so
321 * that this devclass will support drivers for the parent class as
322 * well. If the parent class has the same name don't do this though
327 if (parentname && dc && !dc->parent &&
329 dc->parent = devclass_find_internal(parentname, NULL, TRUE);
330 if (dc->parent == NULL) {
333 dc->parent->flags = (unsigned int)dc->parent->flags | DC_HAS_CHILDREN;
388 devclass_t parent;
400 * single parent pointer around, we walk the entire list of
403 * the parent, so we only walk the list for those devclasses
408 parent = dc;
410 if (dc->parent == parent)
490 * @param busclass the devclass of the parent bus
497 devclass_t parent;
504 * using the driver and which have a parent in the devclass which
514 if (dev->driver == driver && dev->parent &&
515 dev->parent->devclass == busclass) {
518 BUS_PROBE_NOMATCH(dev->parent, dev);
527 * single parent pointer around, we walk the entire list of
530 * the parent, so we only walk the list for those devclasses
535 parent = busclass;
537 if (busclass->parent == parent) {
646 * the driver and which have a parent in the devclass which we
656 if (dev->driver == driver && dev->parent &&
657 dev->parent->devclass == busclass) {
870 * @brief Set the parent of a devclass
872 * The parent class is normally initialised automatically by
876 * @param pdc the new parent devclass
881 dc->parent = pdc;
885 * @brief Get the parent of a devclass
892 return (dc->parent);
917 /* Ask the parent bus if it wants to wire this device. */
1097 * The ivars field is used by the parent device to store per-device
1155 if (dev->busy == 0 && dev->parent)
1156 device_busy(dev->parent);
1174 if (dev->parent)
1175 device_unbusy(dev->parent);
1339 * @brief Make a new device and add it as a child of @p parent
1341 * @param parent the parent of the new device
1350 make_device(device_t parent, const char *name, int unit)
1355 PDEBUG(("%s at %s as unit %d", name, DEVICENAME(parent), unit));
1372 dev->parent = parent;
1402 PDEBUG(("%s at %s as unit %d success", name, DEVICENAME(parent), unit));
1427 * parent device. The new device will be added after the last existing
1430 * @param dev the device which will be the parent of the
1463 * parent device. The new device will be added after the last existing
1466 * @param dev the device which will be the parent of the
1527 * @param dev the parent device
1541 /* detach parent before deleting children, if any */
1554 if (child->parent)
1572 * @param dev the parent device
1658 device_print_child(dev->parent, dev);
1709 * the parent device's devclass. If the device was originally created
1713 * parent devclass, the search continues in the parent of that
1742 if ((error = device_probe_child(dev->parent, dev)) != 0) {
1745 BUS_PROBE_NOMATCH(dev->parent, dev);
2137 * BUS_CHILD_PRESENT() method of the parent of @p dev.
2149 if (dev->parent)
2150 return (BUS_GET_DOMAIN(dev->parent, dev, domain));
2172 * parent of @p dev.
2184 * parent of @p dev.
2296 * BUS_CHILD_DETACHED() for the parent of @p dev, queues a
2330 if (dev->parent) {
2331 PDEBUG(("BUS_CHILD_DETACHED %s", DEVICENAME(dev->parent)));
2332 BUS_CHILD_DETACHED(dev->parent, dev);
2348 * @brief Return the parent of a device
2353 return (dev->parent);
2435 panic("device_probe_child: parent device has no devclass");
2444 for (; dc; dc = dc->parent) {
2535 * don't look in the parent.
2718 * parent of @p dev.
2726 if (dev->parent == NULL)
2728 res = BUS_ALLOC_RESOURCE(dev->parent, dev, type, rid, start, end,
2894 (dev->parent? "":"no "),
2915 print_device_short(dev->parent, indent+1);