Lines Matching defs:softc
152 struct tod_softc *softc;
157 if ((softc = getsoftc(inst)) == NULL) {
161 *result = (void *)softc->dip;
181 struct tod_softc *softc = NULL;
191 * the device's softc, is used to direct peculiar behavior.
204 softc = getsoftc(inst);
205 softc->dip = dip;
206 softc->cpr_stage = ~TOD_SUSPENDED;
207 mutex_init(&softc->mutex, NULL, MUTEX_DRIVER, NULL);
213 softc = getsoftc(inst);
214 mutex_enter(&softc->mutex);
215 softc->cpr_stage = ~TOD_SUSPENDED;
216 mutex_exit(&softc->mutex);
225 if (softc)
237 struct tod_softc *softc;
243 if ((softc = getsoftc(inst)) == NULL)
248 mutex_destroy(&softc->mutex);
255 softc = getsoftc(inst);
256 mutex_enter(&softc->mutex);
257 softc->cpr_stage = TOD_SUSPENDED;
258 mutex_exit(&softc->mutex);
292 struct tod_softc *softc;
295 if ((softc = getsoftc(inst)) == NULL)
298 mutex_enter(&softc->mutex);
299 while (softc->cpr_stage == TOD_SUSPENDED) {
300 mutex_exit(&softc->mutex);
301 (void) ddi_dev_is_needed(softc->dip, 0, 1);
302 mutex_enter(&softc->mutex);
317 mutex_exit(&softc->mutex);
325 mutex_exit(&softc->mutex);
345 mutex_exit(&softc->mutex);
352 mutex_exit(&softc->mutex);
359 mutex_exit(&softc->mutex);
366 mutex_exit(&softc->mutex);
370 mutex_exit(&softc->mutex);