Lines Matching defs:QLOCK

575  * Assumes QLOCK held.
579 ASSERT(MUTEX_HELD(QLOCK(qp))); \
704 mutex_init(QLOCK(qp), NULL, MUTEX_DEFAULT, NULL);
719 mutex_init(QLOCK(wqp), NULL, MUTEX_DEFAULT, NULL);
1274 mutex_enter(QLOCK(qp));
1276 mutex_exit(QLOCK(qp));
1324 mutex_enter(QLOCK(qp));
1326 mutex_exit(QLOCK(qp));
1327 mutex_enter(QLOCK(wqp));
1329 mutex_exit(QLOCK(wqp));
1339 mutex_enter(QLOCK(qp));
1341 mutex_exit(QLOCK(qp));
1342 mutex_enter(QLOCK(wqp));
1344 mutex_exit(QLOCK(wqp));
1424 mutex_enter(QLOCK(qp));
1426 cv_wait(&qp->q_wait, QLOCK(qp));
1427 mutex_exit(QLOCK(qp));
1428 mutex_enter(QLOCK(wqp));
1430 cv_wait(&wqp->q_wait, QLOCK(wqp));
1431 mutex_exit(QLOCK(wqp));
2127 * acquire the QLOCK in setq.
2588 mutex_enter(QLOCK(rq));
2590 mutex_exit(QLOCK(rq));
2591 mutex_enter(QLOCK(wq));
2593 mutex_exit(QLOCK(wq));
3463 ASSERT(MUTEX_NOT_HELD(QLOCK(qp)));
3464 ASSERT(MUTEX_NOT_HELD(QLOCK(wqp)));
3649 mutex_enter(QLOCK(q));
3652 mutex_exit(QLOCK(q));
3665 mutex_exit(QLOCK(q));
4096 ASSERT(MUTEX_HELD(QLOCK(q)));
4239 mutex_enter(QLOCK(nq));
4244 ASSERT(MUTEX_HELD(QLOCK(q)));
4245 ASSERT(MUTEX_HELD(QLOCK(nq)));
4251 mutex_exit(QLOCK(nq));
4890 mutex_enter(QLOCK(qp));
4893 cv_wait(&qp->q_wait, QLOCK(qp));
4895 mutex_exit(QLOCK(qp));
4897 mutex_enter(QLOCK(wqp));
4900 cv_wait(&wqp->q_wait, QLOCK(wqp));
4902 mutex_exit(QLOCK(wqp));
6521 * q_draining is protected by QLOCK which we do not hold.
6542 * acquire the QLOCK (OK since we have a claim).
6546 * the QLOCK before returning.
6550 mutex_enter(QLOCK(qp));
6640 * QLOCK held
6642 * Will release QLOCK before returning
6655 ASSERT(MUTEX_HELD(QLOCK(q)));
6690 mutex_exit(QLOCK(q));
6701 q->q_draining = 1; /* Protected by QLOCK */
6709 mutex_exit(QLOCK(q));
6711 mutex_enter(QLOCK(q));
6716 * was enqueued whilst QLOCK was dropped during the call to clr_qfull.
6760 mutex_exit(QLOCK(q));
6766 mutex_enter(QLOCK(q));
6783 mutex_exit(QLOCK(q));
6785 mutex_enter(QLOCK(q));
6809 ASSERT(MUTEX_HELD(QLOCK(q)));
6836 mutex_exit(QLOCK(q));
6855 * SQLOCK(sq) and QLOCK(q) are not held.
6861 ASSERT(MUTEX_NOT_HELD(QLOCK(q)));
6869 mutex_enter(QLOCK(q));
6888 * SQPUT_MP() accesses q_syncqmsgs. We are already holding QLOCK to
6922 mutex_exit(QLOCK(q));
6946 * acquire QLOCK for modifying q_sqhead/q_sqtail fields. This assumption is
7009 * We do not have QLOCK(q) here (which is safe due to
7474 ASSERT(MUTEX_NOT_HELD(QLOCK(qp)));
7515 mutex_enter(QLOCK(q));
7520 mutex_exit(QLOCK(q));
7522 mutex_enter(QLOCK(q));
7527 mutex_exit(QLOCK(q));
7538 * In the case when fq != q we need to take QLOCK(fq) to set QFULL flag.
7540 * We already have QLOCK at this point. To avoid cross-locks with
7549 ASSERT(MUTEX_HELD(QLOCK(q)));
7555 mutex_exit(QLOCK(q));
7556 mutex_enter(QLOCK(fq));
7558 mutex_exit(QLOCK(fq));
7559 mutex_enter(QLOCK(q));
7579 mutex_enter(QLOCK(q));
7603 mutex_exit(QLOCK(q));
7606 mutex_exit(QLOCK(q));
7608 mutex_exit(QLOCK(q));
8162 ASSERT(MUTEX_HELD(QLOCK(q)));
8273 mutex_enter(QLOCK(q));
8276 mutex_exit(QLOCK(q));
8672 #undef QLOCK
8675 * Replacement for QLOCK macro for those that can't use it.
8678 QLOCK(queue_t *q)