Lines Matching refs:q_next
83 #define O_SAMESTR(q) (((q)->q_next) && \
84 (((q)->q_flag & QREADR) == ((q)->q_next->q_flag & QREADR)))
1190 rq->q_next = qp; in qattach()
1207 if (backq(wrq) != NULL && backq(wrq)->q_next == wrq) in qattach()
1210 rq->q_next = wrq->q_next = NULL; in qattach()
1232 (wqp->q_next ? 0 : flag), (wqp->q_next ? MODOPEN : 0), crp))) { in qreopen()
1676 q = q->q_next; in getendq()
3362 qp->q_next = NULL; in allocq()
3378 wqp->q_next = NULL; in allocq()
3443 qp->q_next = wqp->q_next = NULL; in freeq()
4718 if (q->q_qinfo->qi_srvp != NULL && q->q_next != NULL) { in backenable_insertedq()
4719 if (q->q_next->q_nfsrv->q_flag & QWANTW) in backenable_insertedq()
4722 qbp = q->q_next->q_nfsrv->q_bandp; in backenable_insertedq()
4755 after = new->q_next; in insertq()
4756 wafter = _WR(new->q_next); in insertq()
4770 if (wafter->q_next == after) { in insertq()
4772 wnew->q_next = new; in insertq()
4774 wnew->q_next = wafter->q_next; in insertq()
4776 new->q_next = after; in insertq()
4786 wafter->q_next = wnew; in insertq()
4788 if (wafter->q_next) in insertq()
4789 _OTHERQ(wafter->q_next)->q_next = new; in insertq()
4790 wafter->q_next = wnew; in insertq()
4920 ASSERT(wqp->q_next == NULL || backq(qp)->q_next == qp); in removeq()
4921 ASSERT(qp->q_next == NULL || backq(wqp)->q_next == wqp); in removeq()
4923 if (wqp->q_next == qp) { in removeq()
4924 stp->sd_wrq->q_next = _RD(stp->sd_wrq); in removeq()
4926 if (wqp->q_next) in removeq()
4927 backq(qp)->q_next = qp->q_next; in removeq()
4928 if (qp->q_next) in removeq()
4929 backq(wqp)->q_next = wqp->q_next; in removeq()
4933 if (qp->q_next) in removeq()
4934 set_qend(qp->q_next); in removeq()
4969 if (qp->q_next != NULL) { in removeq()
4977 emptysq(qp->q_next->q_syncq); in removeq()
4979 if (wqp->q_next != NULL) { in removeq()
4988 emptysq(wqp->q_next->q_syncq); in removeq()
5189 q = q->q_next; in sqlist_insertall()
5321 if (rq->q_next == NULL) in qprocsareon()
5323 return (_WR(rq->q_next)->q_next == _WR(rq)); in qprocsareon()
7126 nqp = qp->q_next; in propagate_syncq()
7631 if (prev_wq->q_next == NULL) { in set_nfsrv_ptr()
7673 qp = _OTHERQ(prev_wq->q_next); in set_nfsrv_ptr()
7698 if (prev_wq->q_next == prev_rq) in set_nfsrv_ptr()
7706 wnew->q_nfsrv = prev_wq->q_next->q_nfsrv; in set_nfsrv_ptr()
7730 if (wqp->q_next) { /* non-driver case */ in reset_nfsrv_ptr()
7731 tmp_qp = _OTHERQ(wqp->q_next); in reset_nfsrv_ptr()
7734 ASSERT(rqp->q_next != NULL); in reset_nfsrv_ptr()
7735 tmp_qp->q_nfsrv = rqp->q_next->q_nfsrv; in reset_nfsrv_ptr()
7768 wrq = stp->sd_wrq->q_next; in strsetuio()
7780 wrq = wrq->q_next; in strsetuio()
7787 wrq = stp->sd_wrq->q_next; in strsetuio()
7799 wrq = wrq->q_next; in strsetuio()