Lines Matching refs:tq
192 if ((tqp = TAILQ_FIRST(&exp->tq)) == NULL) {
232 if ((tqp = TAILQ_FIRST(&exp->tq)) == NULL) {
364 if (TAILQ_EMPTY(&exp->tq)) {
372 dtqp = TAILQ_FIRST(&exp->tq);
384 TAILQ_FOREACH(tqp, &exp->tq, q)
398 for (tqp = TAILQ_FIRST(&exp->tq);
402 if (tqp == TAILQ_FIRST(&exp->tq))
440 if (TAILQ_EMPTY(&exp->tq)) {
446 tqp = TAILQ_LAST(&exp->tq, _tqh);
487 tqp = TAILQ_FIRST(&exp->tq);
496 if (TAILQ_NEXT(TAILQ_FIRST(&exp->tq), q) == NULL)
497 tagq_free(sp, TAILQ_FIRST(&exp->tq));
519 if (TAILQ_EMPTY(&exp->tq)) {
547 for (cnt = 1, tqp = TAILQ_FIRST(&exp->tq); !INTERRUPTED(sp) &&
597 TAILQ_FOREACH(aqp, &oexp->tq, q) {
608 TAILQ_INSERT_TAIL(&nexp->tq, tqp, q);
745 TAILQ_REMOVE(&exp->tq, tqp, q);
774 if (TAILQ_EMPTY(&exp->tq)) {
812 if (TAILQ_EMPTY(&exp->tq)) {
813 TAILQ_INSERT_HEAD(&exp->tq, rtqp, q);
817 rtqp = TAILQ_FIRST(&exp->tq);
821 TAILQ_INSERT_HEAD(&exp->tq, tqp, q);
944 while ((tqp = TAILQ_FIRST(&exp->tq)) != NULL)