Static void ucom_unlock(struct ucom_softc *sc) { usb_lockmgr(&sc->sc_lock, LK_RELEASE, NULL, curproc); if (--sc->sc_refcnt < 0) usb_detach_wakeup(USBDEV(sc->sc_dev)); }
/* Get exclusive access to the MII registers */ Static void url_lock_mii(struct url_softc *sc) { DPRINTFN(0xff, ("%s: %s: enter\n", USBDEVNAME(sc->sc_dev), __func__)); sc->sc_refcnt++; usb_lockmgr(&sc->sc_mii_lock, LK_EXCLUSIVE, NULL, curproc); }
Static void url_unlock_mii(struct url_softc *sc) { DPRINTFN(0xff, ("%s: %s: enter\n", USBDEVNAME(sc->sc_dev), __func__)); usb_lockmgr(&sc->sc_mii_lock, LK_RELEASE, NULL, curproc); if (--sc->sc_refcnt < 0) usb_detach_wakeup(USBDEV(sc->sc_dev)); }
Static void ucom_lock(struct ucom_softc *sc) { sc->sc_refcnt++; usb_lockmgr(&sc->sc_lock, LK_EXCLUSIVE, NULL, curproc); }