Lines Matching refs:q_next

87 #define	O_SAMESTR(q)	(((q)->q_next) && \
88 (((q)->q_flag & QREADR) == ((q)->q_next->q_flag & QREADR)))
1193 rq->q_next = qp; in qattach()
1210 if (backq(wrq) != NULL && backq(wrq)->q_next == wrq) in qattach()
1213 rq->q_next = wrq->q_next = NULL; in qattach()
1235 (wqp->q_next ? 0 : flag), (wqp->q_next ? MODOPEN : 0), crp))) { in qreopen()
1679 q = q->q_next; in getendq()
3386 qp->q_next = NULL; in allocq()
3402 wqp->q_next = NULL; in allocq()
3467 qp->q_next = wqp->q_next = NULL; in freeq()
4742 if (q->q_qinfo->qi_srvp != NULL && q->q_next != NULL) { in backenable_insertedq()
4743 if (q->q_next->q_nfsrv->q_flag & QWANTW) in backenable_insertedq()
4746 qbp = q->q_next->q_nfsrv->q_bandp; in backenable_insertedq()
4779 after = new->q_next; in insertq()
4780 wafter = _WR(new->q_next); in insertq()
4794 if (wafter->q_next == after) { in insertq()
4796 wnew->q_next = new; in insertq()
4798 wnew->q_next = wafter->q_next; in insertq()
4800 new->q_next = after; in insertq()
4810 wafter->q_next = wnew; in insertq()
4812 if (wafter->q_next) in insertq()
4813 _OTHERQ(wafter->q_next)->q_next = new; in insertq()
4814 wafter->q_next = wnew; in insertq()
4944 ASSERT(wqp->q_next == NULL || backq(qp)->q_next == qp); in removeq()
4945 ASSERT(qp->q_next == NULL || backq(wqp)->q_next == wqp); in removeq()
4947 if (wqp->q_next == qp) { in removeq()
4948 stp->sd_wrq->q_next = _RD(stp->sd_wrq); in removeq()
4950 if (wqp->q_next) in removeq()
4951 backq(qp)->q_next = qp->q_next; in removeq()
4952 if (qp->q_next) in removeq()
4953 backq(wqp)->q_next = wqp->q_next; in removeq()
4957 if (qp->q_next) in removeq()
4958 set_qend(qp->q_next); in removeq()
4993 if (qp->q_next != NULL) { in removeq()
5001 emptysq(qp->q_next->q_syncq); in removeq()
5003 if (wqp->q_next != NULL) { in removeq()
5012 emptysq(wqp->q_next->q_syncq); in removeq()
5213 q = q->q_next; in sqlist_insertall()
5345 if (rq->q_next == NULL) in qprocsareon()
5347 return (_WR(rq->q_next)->q_next == _WR(rq)); in qprocsareon()
7150 nqp = qp->q_next; in propagate_syncq()
7655 if (prev_wq->q_next == NULL) { in set_nfsrv_ptr()
7697 qp = _OTHERQ(prev_wq->q_next); in set_nfsrv_ptr()
7722 if (prev_wq->q_next == prev_rq) in set_nfsrv_ptr()
7730 wnew->q_nfsrv = prev_wq->q_next->q_nfsrv; in set_nfsrv_ptr()
7754 if (wqp->q_next) { /* non-driver case */ in reset_nfsrv_ptr()
7755 tmp_qp = _OTHERQ(wqp->q_next); in reset_nfsrv_ptr()
7758 ASSERT(rqp->q_next != NULL); in reset_nfsrv_ptr()
7759 tmp_qp->q_nfsrv = rqp->q_next->q_nfsrv; in reset_nfsrv_ptr()
7792 wrq = stp->sd_wrq->q_next; in strsetuio()
7804 wrq = wrq->q_next; in strsetuio()
7811 wrq = stp->sd_wrq->q_next; in strsetuio()
7823 wrq = wrq->q_next; in strsetuio()