Lines Matching refs:state_mtx
114 bzero(&ch->state_mtx, sizeof(struct mtx));
115 mtx_init(&ch->state_mtx, "ATA state lock", NULL, MTX_DEF);
178 mtx_lock(&ch->state_mtx);
188 device_get_unit(dev), &ch->state_mtx, 1, 0, devq);
206 mtx_unlock(&ch->state_mtx);
216 mtx_unlock(&ch->state_mtx);
232 mtx_lock(&ch->state_mtx);
234 mtx_unlock(&ch->state_mtx);
240 mtx_lock(&ch->state_mtx);
246 mtx_unlock(&ch->state_mtx);
257 mtx_destroy(&ch->state_mtx);
268 mtx_lock(&ch->state_mtx);
270 mtx_unlock(&ch->state_mtx);
283 mtx_unlock(&ch->state_mtx);
322 mtx_lock(&ch->state_mtx);
325 msleep(ch, &ch->state_mtx, PRIBIO, "atasusp", hz/100);
326 mtx_unlock(&ch->state_mtx);
340 mtx_lock(&ch->state_mtx);
343 mtx_unlock(&ch->state_mtx);
354 mtx_lock(&ch->state_mtx);
356 mtx_unlock(&ch->state_mtx);
730 mtx_unlock(&ch->state_mtx);
805 callout_init_mtx(&request->callout, &ch->state_mtx, CALLOUT_RETURNUNLOCKED);
845 callout_init_mtx(&request->callout, &ch->state_mtx, CALLOUT_RETURNUNLOCKED);