Lines Matching defs:bq
86 g_bioq_lock(struct g_bioq *bq)
89 mtx_lock(&bq->bio_queue_lock);
93 g_bioq_unlock(struct g_bioq *bq)
96 mtx_unlock(&bq->bio_queue_lock);
101 g_bioq_destroy(struct g_bioq *bq)
104 mtx_destroy(&bq->bio_queue_lock);
109 g_bioq_init(struct g_bioq *bq)
112 TAILQ_INIT(&bq->bio_queue);
113 mtx_init(&bq->bio_queue_lock, "bio queue", NULL, MTX_DEF);
117 g_bioq_first(struct g_bioq *bq)
121 bp = TAILQ_FIRST(&bq->bio_queue);
124 ("Bio not on queue bp=%p target %p", bp, bq));
126 TAILQ_REMOVE(&bq->bio_queue, bp, bio_queue);
127 bq->bio_queue_length--;