Lines Matching defs:wi_thread_info
175 struct wi_usb_thread_info *wi_thread_info;
361 if (sc->wi_thread_info != NULL) {
362 sc->wi_thread_info->dying = 1;
364 sc->wi_thread_info->status |= WI_DYING;
365 if (sc->wi_thread_info->idle)
366 wakeup(sc->wi_thread_info);
1635 sc->wi_thread_info->status |= WI_START;
1636 if (sc->wi_thread_info->idle)
1637 wakeup(sc->wi_thread_info);
1677 sc->wi_thread_info->status |= WI_INQUIRE;
1679 if (sc->wi_thread_info->idle)
1680 wakeup(sc->wi_thread_info);
1704 sc->wi_thread_info->status |= WI_WATCHDOG;
1706 if (sc->wi_thread_info->idle)
1707 wakeup(sc->wi_thread_info);
1734 struct wi_usb_thread_info *wi_thread_info;
1737 wi_thread_info = malloc(sizeof(*wi_thread_info), M_USBDEV, M_WAITOK);
1746 sc->wi_thread_info = wi_thread_info;
1747 wi_thread_info->dying = 0;
1748 wi_thread_info->status = 0;
1757 if (wi_thread_info->dying) {
1765 wi_thread_info->dying, wi_thread_info->status));
1771 wi_thread_info->status));
1774 if (wi_thread_info->status & WI_START) {
1775 wi_thread_info->status &= ~WI_START;
1782 } else if (wi_thread_info->status & WI_INQUIRE) {
1783 wi_thread_info->status &= ~WI_INQUIRE;
1785 } else if (wi_thread_info->status & WI_WATCHDOG) {
1786 wi_thread_info->status &= ~WI_WATCHDOG;
1793 wi_thread_info->status));
1796 if (wi_thread_info->status == 0) {
1798 wi_thread_info->idle = 1;
1799 tsleep_nsec(wi_thread_info, PRIBIO, "wiIDL", INFSLP);
1800 wi_thread_info->idle = 0;