Lines Matching refs:state

101         device_state_t  state;          /**< current device state  */
1098 * state (e.g. the physical location of the device or a list of
1121 * @brief Return the device's state
1126 return (dev->state);
1153 if (dev->state < DS_ATTACHING)
1158 if (dev->state == DS_ATTACHED)
1159 dev->state = DS_BUSY;
1168 if (dev->busy != 0 && dev->state != DS_BUSY &&
1169 dev->state != DS_ATTACHING)
1176 if (dev->state == DS_BUSY)
1177 dev->state = DS_ATTACHED;
1223 return (dev->state >= DS_ALIVE);
1233 return (dev->state >= DS_ATTACHED);
1396 dev->state = DS_NOTPRESENT;
1660 dev->state = DS_ATTACHING;
1669 dev->state = DS_NOTPRESENT;
1687 dev->state = DS_BUSY;
1689 dev->state = DS_ATTACHED;
1732 if (dev->state >= DS_ALIVE && (dev->flags & DF_REBID) == 0)
1773 if (dev->state == DS_BUSY)
1775 if (dev->state != DS_ATTACHED)
1792 if (dev->state < DS_ATTACHED)
1874 if (dev->state != DS_ATTACHED)
2094 if (child->state == DS_NOTPRESENT ||
2124 if (child->state >= DS_ATTACHED)
2126 else if (child->state == DS_NOTPRESENT)
2315 if (dev->state == DS_BUSY)
2317 if (dev->state == DS_ATTACHING) {
2318 device_printf(dev, "device in attaching state! Deferring detach.\n");
2321 if (dev->state != DS_ATTACHED)
2341 dev->state = DS_NOTPRESENT;
2386 if (dev->state >= DS_ATTACHED)
2438 * If the state is already probed, then return. However, don't
2441 if (child->state == DS_ALIVE && (child->flags & DF_REBID) == 0)
2542 * If we found a driver, change state and initialise the devclass.
2552 * because if the state is > DS_ALIVE, we know it must
2564 if (child->state > DS_ALIVE && best->driver != child->driver)
2591 child->state = DS_ALIVE;
2778 root_bus->state = DS_ATTACHED;