Lines Matching refs:tq
147 if ((tqp = TAILQ_FIRST(exp->tq)) == NULL) {
187 if ((tqp = TAILQ_FIRST(exp->tq)) == NULL) {
317 if (TAILQ_EMPTY(exp->tq)) {
325 dtqp = TAILQ_FIRST(exp->tq);
337 TAILQ_FOREACH(tqp, exp->tq, q)
350 for (tqp = TAILQ_FIRST(exp->tq); tqp;
353 if (tqp == TAILQ_FIRST(exp->tq))
368 if (tqp == TAILQ_FIRST(exp->tq))
392 if (TAILQ_EMPTY(exp->tq)) {
398 return (tag_pop(sp, TAILQ_PREV(TAILQ_LAST(exp->tq, _tqh), _tqh, q),
438 tqp = TAILQ_FIRST(exp->tq);
447 if (TAILQ_NEXT(TAILQ_FIRST(exp->tq), q) == NULL)
448 tagq_free(sp, TAILQ_FIRST(exp->tq));
470 if (TAILQ_EMPTY(exp->tq)) {
498 for (cnt = 1, tqp = TAILQ_FIRST(exp->tq); !INTERRUPTED(sp) &&
548 TAILQ_FOREACH(aqp, oexp->tq, q) {
559 TAILQ_INSERT_TAIL(nexp->tq, tqp, q);
696 TAILQ_REMOVE(exp->tq, tqp, q);
725 if (TAILQ_EMPTY(exp->tq)) {
764 if (TAILQ_EMPTY(exp->tq)) {
765 TAILQ_INSERT_HEAD(exp->tq, rtqp, q);
767 rtqp = TAILQ_FIRST(exp->tq);
770 TAILQ_INSERT_HEAD(exp->tq, tqp, q);
890 while ((tqp = TAILQ_FIRST(exp->tq)) != NULL)