Lines Matching defs:mtx
109 struct mutex mtx;
212 scsi_pending_start(struct mutex *mtx, u_int *running)
216 mtx_enter(mtx);
220 mtx_leave(mtx);
226 scsi_pending_finish(struct mutex *mtx, u_int *running)
230 mtx_enter(mtx);
236 mtx_leave(mtx);
251 mtx_init(&iopl->mtx, IPL_BIO);
280 mtx_enter(&iopl->mtx);
292 mtx_leave(&iopl->mtx);
335 mtx_enter(&iopl->mtx);
349 mtx_leave(&iopl->mtx);
363 mtx_enter(&iopl->mtx);
377 mtx_leave(&iopl->mtx);
391 mtx_enter(&iopl->mtx);
397 mtx_leave(&iopl->mtx);
407 mtx_enter(&iopl->mtx);
409 mtx_leave(&iopl->mtx);
420 if (!scsi_pending_start(&iopl->mtx, &iopl->running))
436 } while (!scsi_pending_finish(&iopl->mtx, &iopl->running));
446 mtx_enter(&m->mtx);
448 msleep_nsec(m, &m->mtx, PRIBIO, "scsiiomv", INFSLP);
449 mtx_leave(&m->mtx);
457 mtx_enter(&m->mtx);
461 mtx_leave(&m->mtx);
526 mtx_enter(&link->pool->mtx);
532 mtx_leave(&link->pool->mtx);
546 mtx_enter(&link->pool->mtx);
564 mtx_leave(&link->pool->mtx);
579 if (!scsi_pending_start(&link->pool->mtx, &link->running))
584 mtx_enter(&link->pool->mtx);
596 mtx_leave(&link->pool->mtx);
600 } while (!scsi_pending_finish(&link->pool->mtx, &link->running));
686 mtx_enter(&iopl->mtx);
721 msleep_nsec(&link->pending, &iopl->mtx, PRIBIO, "pendxs",
723 mtx_leave(&iopl->mtx);
736 mtx_enter(&link->pool->mtx);
741 mtx_leave(&link->pool->mtx);
749 mtx_enter(&link->pool->mtx);
753 mtx_leave(&link->pool->mtx);