Lines Matching refs:temp_lock
68 struct mtx temp_lock; member
138 mtx_lock(&sc->temp_lock); in ow_temp_event_thread()
140 mtx_unlock(&sc->temp_lock); in ow_temp_event_thread()
144 mtx_lock(&sc->temp_lock); in ow_temp_event_thread()
146 mtx_unlock(&sc->temp_lock); in ow_temp_event_thread()
148 mtx_lock(&sc->temp_lock); in ow_temp_event_thread()
149 msleep(sc, &sc->temp_lock, 0, "owtcvt", hz); in ow_temp_event_thread()
152 mtx_unlock(&sc->temp_lock); in ow_temp_event_thread()
178 mtx_lock(&sc->temp_lock); in ow_temp_event_thread()
179 msleep(sc, &sc->temp_lock, 0, "owtcvt", sc->reading_interval); in ow_temp_event_thread()
182 mtx_unlock(&sc->temp_lock); in ow_temp_event_thread()
227 mtx_init(&sc->temp_lock, "lock for doing temperature", NULL, MTX_DEF); in ow_temp_attach()
253 mtx_lock(&sc->temp_lock); in ow_temp_detach()
257 msleep(sc->event_thread, &sc->temp_lock, PWAIT, "owtun", 0); in ow_temp_detach()
259 mtx_destroy(&sc->temp_lock); in ow_temp_detach()