Lines Matching refs:head
155 TAILQ_INIT(&detach_ctx->head);
163 if (TAILQ_EMPTY(&detach_ctx->head)) {
170 TAILQ_INSERT_TAIL(&detach_ctx->head, ctx, link);
187 TAILQ_FOREACH_SAFE(ctx, &detach_ctx->head, link, tmp_ctx) {
188 TAILQ_REMOVE(&detach_ctx->head, ctx, link);
193 TAILQ_INSERT_HEAD(&detach_ctx->head, ctx, link);
197 if (!TAILQ_EMPTY(&detach_ctx->head)) {
723 TAILQ_INSERT_TAIL(&probe_ctx->failed_ctxs.head, detach_ctx, link);
923 TAILQ_INIT(&probe_ctx->failed_ctxs.head);
1630 TAILQ_FOREACH_SAFE(detach_ctx, &probe_ctx->failed_ctxs.head, link, detach_ctx_tmp) {
1640 TAILQ_REMOVE(&probe_ctx->failed_ctxs.head, detach_ctx, link);
1644 if (TAILQ_EMPTY(&probe_ctx->init_ctrlrs) && TAILQ_EMPTY(&probe_ctx->failed_ctxs.head)) {