Lines Matching defs:state
540 /* set default cycle state in case of early interrupts */
662 xhci_set_hw_power_sleep(struct usb_bus *bus, uint32_t state)
666 switch (state) {
1359 switch (hdev->state) {
1363 hdev->state = XHCI_ST_ENABLED;
1438 /* update device state to new value */
1441 hdev->state = XHCI_ST_ADDRESSED;
1443 hdev->state = XHCI_ST_DEFAULT;
1447 DPRINTF("Wrong state for set address.\n");
2603 switch (sc->sc_hw.devs[index].state) {
3806 * Get the endpoint into the stopped state according to the
3807 * endpoint context state diagram in the XHCI specification:
3829 * Get the endpoint into the running state according to the
3830 * endpoint context state diagram in the XHCI specification:
3906 * this state!
4031 if (sc->sc_hw.devs[temp].state != XHCI_ST_DISABLED) {
4047 sc->sc_hw.devs[temp].state = XHCI_ST_ENABLED;
4053 /* get device into default state */
4077 sc->sc_hw.devs[index].state = XHCI_ST_DISABLED;
4194 if (sc->sc_hw.devs[index].state == XHCI_ST_DEFAULT)
4197 /* set default state */
4198 sc->sc_hw.devs[index].state = XHCI_ST_DEFAULT;
4212 if (sc->sc_hw.devs[index].state == XHCI_ST_ADDRESSED)
4215 sc->sc_hw.devs[index].state = XHCI_ST_ADDRESSED;
4229 if (sc->sc_hw.devs[index].state == XHCI_ST_CONFIGURED)
4232 /* set configured state */
4233 sc->sc_hw.devs[index].state = XHCI_ST_CONFIGURED;