Home
last modified time | relevance | path

Searched refs:bio_queue (Results 1 – 25 of 36) sorted by relevance

12

/freebsd-12.1/sys/kern/
H A Dsubr_disk.c174 TAILQ_REMOVE(&head->queue, bp, bio_queue); in bioq_remove()
193 TAILQ_INSERT_HEAD(&head->queue, bp, bio_queue); in bioq_insert_head()
202 TAILQ_INSERT_TAIL(&head->queue, bp, bio_queue); in bioq_insert_tail()
284 cur = TAILQ_NEXT(head->insert_point, bio_queue); in bioq_disksort()
289 cur = TAILQ_NEXT(cur, bio_queue); in bioq_disksort()
293 TAILQ_INSERT_HEAD(&head->queue, bp, bio_queue); in bioq_disksort()
295 TAILQ_INSERT_AFTER(&head->queue, prev, bp, bio_queue); in bioq_disksort()
/freebsd-12.1/sys/powerpc/mambo/
H A Dmambo_disk.c51 struct bio_queue_head bio_queue; member
137 bioq_init(&sc->bio_queue); in mambodisk_attach()
190 bioq_disksort(&sc->bio_queue, bp); in mambodisk_strategy()
212 bp = bioq_first(&sc->bio_queue); in mambodisk_task()
217 bioq_remove(&sc->bio_queue, bp); in mambodisk_task()
/freebsd-12.1/sys/cam/scsi/
H A Dscsi_pt.c80 struct bio_queue_head bio_queue; member
220 bioq_insert_tail(&softc->bio_queue, bp); in ptstrategy()
274 bioq_init(&softc->bio_queue); in ptctor()
343 bioq_flush(&softc->bio_queue, NULL, ENXIO); in ptoninvalidate()
434 bp = bioq_first(&softc->bio_queue); in ptstart()
438 bioq_remove(&softc->bio_queue, bp); in ptstart()
463 bp = bioq_first(&softc->bio_queue); in ptstart()
525 bioq_flush(&softc->bio_queue, NULL, EIO); in ptdone()
H A Dscsi_cd.c150 struct bio_queue_head bio_queue; member
369 bioq_flush(&softc->bio_queue, NULL, ENXIO); in cdoninvalidate()
590 bioq_init(&softc->bio_queue); in cdregister()
872 bioq_disksort(&softc->bio_queue, bp); in cdstrategy()
895 bp = bioq_first(&softc->bio_queue); in cdstart()
916 bioq_remove(&softc->bio_queue, bp); in cdstart()
956 bp = bioq_first(&softc->bio_queue); in cdstart()
1034 bioq_flush(&softc->bio_queue, NULL, EIO); in cddone()
H A Dscsi_sa.c328 struct bio_queue_head bio_queue; member
995 bioq_insert_tail(&softc->bio_queue, bp); in sastrategy()
2200 bioq_flush(&softc->bio_queue, NULL, ENXIO); in saoninvalidate()
2376 bioq_init(&softc->bio_queue); in saregister()
2592 bp = bioq_first(&softc->bio_queue); in sastart()
2618 bioq_remove(&softc->bio_queue, bp); in sastart()
2658 if (bioq_first(&softc->bio_queue) != NULL) { in sastart()
2666 bp = bioq_first(&softc->bio_queue); in sastart()
2683 bioq_remove(&softc->bio_queue, bp); in sastart()
2761 bp = bioq_first(&softc->bio_queue); in sastart()
[all …]
/freebsd-12.1/sys/cam/
H A Dcam_iosched.c275 struct bio_queue_head bio_queue; member
731 struct bio *rbp = bioq_first(&isc->bio_queue); in cam_iosched_has_io()
745 return bioq_first(&isc->bio_queue) != NULL; in cam_iosched_has_io()
1074 bioq_init(&(*iscp)->bio_queue); in cam_iosched_init()
1185 bioq_flush(&isc->bio_queue, stp, err); in cam_iosched_flush()
1219 if (bioq_first(&isc->bio_queue) && isc->current_read_bias) { in cam_iosched_get_write()
1367 if ((bp = bioq_first(&isc->bio_queue)) == NULL) in cam_iosched_next_bio()
1384 bioq_remove(&isc->bio_queue, bp); in cam_iosched_next_bio()
1438 bioq_disksort(&isc->bio_queue, bp); in cam_iosched_queue_work()
1440 bioq_insert_tail(&isc->bio_queue, bp); in cam_iosched_queue_work()
[all …]
/freebsd-12.1/sys/geom/
H A Dgeom_io.c126 TAILQ_INIT(&bq->bio_queue); in g_bioq_init()
135 bp = TAILQ_FIRST(&bq->bio_queue); in g_bioq_first()
140 TAILQ_REMOVE(&bq->bio_queue, bp, bio_queue); in g_bioq_first()
638 first = TAILQ_EMPTY(&g_bio_run_down.bio_queue); in g_io_request()
639 TAILQ_INSERT_TAIL(&g_bio_run_down.bio_queue, bp, bio_queue); in g_io_request()
743 first = TAILQ_EMPTY(&g_bio_run_up.bio_queue); in g_io_deliver()
744 TAILQ_INSERT_TAIL(&g_bio_run_up.bio_queue, bp, bio_queue); in g_io_deliver()
H A Dgeom_fox.c122 TAILQ_REMOVE(&sc->queue, bp, bio_queue); in g_fox_select_path()
159 TAILQ_REMOVE(&sc->queue, bp, bio_queue); in g_fox_select_path()
231 TAILQ_INSERT_TAIL(&sc->queue, bp, bio_queue); in g_fox_done()
276 bio_queue); in g_fox_start()
H A Dgeom.h175 TAILQ_HEAD(, bio) bio_queue;
/freebsd-12.1/sys/geom/mirror/
H A Dg_mirror.c310 TAILQ_FOREACH(bp, &sc->sc_queue, bio_queue) { in g_mirror_nrequests()
1586 struct bio_queue queue; in g_mirror_request_split()
1617 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_mirror_request_split()
1625 TAILQ_INSERT_TAIL(&queue, cbp, bio_queue); in g_mirror_request_split()
1639 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_mirror_request_split()
1655 struct bio_queue queue; in g_mirror_register_request()
1736 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_mirror_register_request()
1744 TAILQ_INSERT_TAIL(&queue, cbp, bio_queue); in g_mirror_register_request()
1761 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_mirror_register_request()
1782 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_mirror_register_request()
[all …]
H A Dg_mirror.h200 struct bio_queue sc_queue;
203 struct bio_queue sc_inflight; /* In-flight regular write requests. */
204 struct bio_queue sc_regular_delayed; /* Delayed I/O requests due to
206 struct bio_queue sc_sync_delayed; /* Delayed sync requests due to
/freebsd-12.1/sys/dev/flash/
H A Dat45d.c89 struct bio_queue_head bio_queue; member
293 bioq_flush(&sc->bio_queue, NULL, ENXIO); in at45d_detach()
384 bioq_init(&sc->bio_queue); in at45d_delayed_attach()
434 bioq_disksort(&sc->bio_queue, bp); in at45d_strategy()
470 bp = bioq_takefirst(&sc->bio_queue); in at45d_task()
/freebsd-12.1/sys/sys/
H A Dbio.h103 TAILQ_ENTRY(bio) bio_queue; /* Disksort queue. */
138 TAILQ_HEAD(bio_queue, bio) queue;
/freebsd-12.1/sys/dev/virtio/block/
H A Dvirtio_blk.c100 struct bio_queue vtblk_dump_queue;
165 struct bio_queue *);
167 struct bio_queue *);
968 vtblk_queue_completed(struct vtblk_softc *sc, struct bio_queue *queue) in vtblk_queue_completed()
981 TAILQ_INSERT_TAIL(queue, bp, bio_queue); in vtblk_queue_completed()
988 vtblk_done_completed(struct vtblk_softc *sc, struct bio_queue *queue) in vtblk_done_completed()
992 TAILQ_FOREACH_SAFE(bp, queue, bio_queue, tmp) { in vtblk_done_completed()
1021 struct bio_queue queue; in vtblk_drain()
1221 struct bio_queue queue; in vtblk_vq_intr()
/freebsd-12.1/sys/geom/stripe/
H A Dg_stripe.c326 TAILQ_INSERT_TAIL(&queue, cbp, bio_queue); in g_stripe_start_fast()
348 cbp = TAILQ_NEXT(cbp, bio_queue); in g_stripe_start_fast()
378 TAILQ_INSERT_TAIL(&queue, cbp, bio_queue); in g_stripe_start_fast()
403 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_stripe_start_fast()
423 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_stripe_start_fast()
453 TAILQ_INSERT_TAIL(&queue, cbp, bio_queue); in g_stripe_start_economic()
486 TAILQ_INSERT_TAIL(&queue, cbp, bio_queue); in g_stripe_start_economic()
518 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_stripe_start_economic()
528 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_stripe_start_economic()
/freebsd-12.1/sys/geom/uzip/
H A Dg_uzip_softc.h51 struct bio_queue_head bio_queue; member
H A Dg_uzip_wrkthr.c62 bp = bioq_takefirst(&sc->bio_queue); in g_uzip_wrkthr()
/freebsd-12.1/sys/geom/gate/
H A Dg_gate.c348 TAILQ_FOREACH_SAFE(bp, &sc->sc_inqueue.queue, bio_queue, bp2) { in g_gate_guard()
355 TAILQ_FOREACH_SAFE(bp, &sc->sc_outqueue.queue, bio_queue, bp2) { in g_gate_guard()
767 TAILQ_FOREACH_SAFE(bp, &sc->sc_outqueue.queue, bio_queue, tbp) { in g_gate_ioctl()
780 lbp, bp, bio_queue); in g_gate_ioctl()
868 TAILQ_FOREACH(bp, &sc->sc_outqueue.queue, bio_queue) { in g_gate_ioctl()
/freebsd-12.1/sys/cam/mmc/
H A Dmmc_da.c108 struct bio_queue_head bio_queue; member
476 bp = bioq_first(&softc->part[softc->part_curr]->bio_queue); in sddaschedule()
480 (bp = bioq_first(&softc->part[i]->bio_queue)) != NULL) in sddaschedule()
521 bioq_disksort(&part->bio_queue, bp); in sddastrategy()
589 bioq_flush(&part->bio_queue, NULL, ENXIO); in sddaoninvalidate()
1453 bioq_init(&part->bio_queue); in sdda_add_part()
1700 bp = bioq_first(&part->bio_queue); in sddastart()
1704 (bp = bioq_first(&softc->part[part_index]->bio_queue)) != NULL) in sddastart()
1731 bioq_remove(&part->bio_queue, bp); in sddastart()
/freebsd-12.1/sys/dev/ida/
H A Dida.c206 bioq_init(&ida->bio_queue); in ida_setup()
489 bioq_insert_tail(&ida->bio_queue, bp); in ida_submit_buf()
507 bp = bioq_first(&ida->bio_queue); in ida_startio()
515 bioq_remove(&ida->bio_queue, bp); in ida_startio()
H A Didavar.h167 struct bio_queue_head bio_queue; member
/freebsd-12.1/sys/geom/mountver/
H A Dg_mountver.c141 TAILQ_INSERT_TAIL(&sc->sc_queue, bp, bio_queue); in g_mountver_queue()
155 TAILQ_REMOVE(&sc->sc_queue, bp, bio_queue); in g_mountver_send_queued()
172 TAILQ_REMOVE(&sc->sc_queue, bp, bio_queue); in g_mountver_discard_queued()
/freebsd-12.1/sys/geom/shsec/
H A Dg_shsec.c349 TAILQ_INSERT_TAIL(&queue, cbp, bio_queue); in g_shsec_start()
378 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_shsec_start()
388 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_shsec_start()
/freebsd-12.1/sys/dev/mmc/
H A Dmmcsd.c112 struct bio_queue_head bio_queue; member
562 bioq_init(&part->bio_queue); in mmcsd_add_part()
696 bioq_flush(&part->bio_queue, NULL, ENXIO); in mmcsd_detach()
809 bioq_disksort(&part->bio_queue, bp); in mmcsd_strategy()
1446 bp = bioq_takefirst(&part->bio_queue); in mmcsd_task()
/freebsd-12.1/sys/cam/nvme/
H A Dnvme_da.c953 TAILQ_INSERT_TAIL(&trim->bps, bp1, bio_queue); in ndastart()
1070 TAILQ_CONCAT(&queue, &trim->bps, bio_queue); in ndadone()
1091 TAILQ_REMOVE(&queue, bp2, bio_queue); in ndadone()

12