Lines Matching defs:devices
68 device_t *devices; /* array of devices indexed by unit */
69 int maxunit; /* size of devices array */
87 TAILQ_ENTRY(device) link; /**< list of devices in parent */
90 device_list_t children; /**< list of child devices */
379 * we ever move beyond a few dozen devices doing this, we may need to
395 if (dc->devices[i] && device_is_attached(dc->devices[i]))
396 BUS_DRIVER_ADDED(dc->devices[i], driver);
420 * all devices in the devclass will be called to allow them to attempt
482 * from any devices that are children of the bus's devclass. The function
487 * we ever move beyond a few dozen devices doing this, we may need to
502 * Disassociate from any devices. We iterate through all the
503 * devices in the devclass of the driver and detach any which are
508 * should not detach devices which are not children of devices in
512 if (dc->devices[i]) {
513 dev = dc->devices[i];
552 * If the driver is currently attached to any devices,
608 * If the driver is currently attached to any devices,
644 * Quiesce all devices. We iterate through all the devices in
650 * should not quiesce devices which are not children of
651 * devices in the affected devclass.
654 if (dc->devices[i]) {
655 dev = dc->devices[i];
709 return (dc->devices[unit]);
735 * @brief Get a list of devices in the devclass
737 * An array containing a list of all the devices in the given devclass
738 * is allocated and returned in @p *devlistp. The number of devices
763 if (dc->devices[i]) {
764 list[count] = dc->devices[i];
817 * @brief Get the number of devices in a devclass
828 if (dc->devices[i])
864 while (unit < dc->maxunit && dc->devices[unit] != NULL)
924 if (unit >= 0 && unit < dc->maxunit && dc->devices[unit] != NULL) {
934 if (unit < dc->maxunit && dc->devices[unit] != NULL)
950 oldlist = dc->devices;
962 dc->devices = newlist;
1293 dc->devices[dev->unit] = dev;
1325 if (dev->devclass != dc || dc->devices[dev->unit] != dev)
1327 dc->devices[dev->unit] = NULL;
1469 * children of @p dev - devices created using
1565 * @brief Delete all children devices of the given device, if any.
1567 * This function deletes all children devices of the given device, if
1811 * a bus (i.e. a device which has other devices attached to it). It
1951 * operation is aborted and any devices which were suspended are
1963 * Other buses, such as acpi, carefully order their child devices to
1965 * safer to bring down devices in the reverse order.
2106 * walks the list of devices for this bus. If a device is already
2505 * only match on devices whose driver was explicitly
2795 * @brief Automatically configure devices
3006 if (dc->devices[i])
3007 print_device(dc->devices[i], indent+1);
3015 printf("Short listing of devclasses, drivers & devices:\n");
3026 printf("Full listing of devclasses, drivers & devices:\n");