Lines Matching refs:tb
129 struct taskqueue_busy *tb; in task_get_busy() local
132 LIST_FOREACH(tb, &queue->tq_active, tb_link) { in task_get_busy()
133 if (tb->tb_running == task) in task_get_busy()
134 return (tb); in task_get_busy()
235 struct taskqueue_busy *tb; in taskqueue_enqueue_locked() local
242 tb = task_get_busy(queue, task); in taskqueue_enqueue_locked()
243 if (tb != NULL && tb->tb_canceling) { in taskqueue_enqueue_locked()
437 struct taskqueue_busy *tb; in taskqueue_drain_tq_active() local
449 LIST_FOREACH(tb, &queue->tq_active, tb_link) { in taskqueue_drain_tq_active()
450 if ((int)(tb->tb_seq - seq) <= 0) { in taskqueue_drain_tq_active()
451 TQ_SLEEP(queue, tb->tb_running, "tq_adrain"); in taskqueue_drain_tq_active()
487 struct taskqueue_busy tb; in taskqueue_run_locked() local
494 tb.tb_running = NULL; in taskqueue_run_locked()
495 LIST_INSERT_HEAD(&queue->tq_active, &tb, tb_link); in taskqueue_run_locked()
504 tb.tb_running = task; in taskqueue_run_locked()
505 tb.tb_seq = ++queue->tq_seq; in taskqueue_run_locked()
506 tb.tb_canceling = false; in taskqueue_run_locked()
524 LIST_REMOVE(&tb, tb_link); in taskqueue_run_locked()
557 struct taskqueue_busy *tb; in taskqueue_cancel_locked() local
568 tb = task_get_busy(queue, task); in taskqueue_cancel_locked()
569 if (tb != NULL) { in taskqueue_cancel_locked()
570 tb->tb_canceling = true; in taskqueue_cancel_locked()