Home
last modified time | relevance | path

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

12

/freebsd/sys/kern/
H A Dsubr_disk.c172 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()
285 cur = TAILQ_NEXT(head->insert_point, bio_queue); in bioq_disksort()
290 cur = TAILQ_NEXT(cur, bio_queue); in bioq_disksort()
294 TAILQ_INSERT_HEAD(&head->queue, bp, bio_queue); in bioq_disksort()
296 TAILQ_INSERT_AFTER(&head->queue, prev, bp, bio_queue); in bioq_disksort()
/freebsd/sys/powerpc/mambo/
H A Dmambo_disk.c48 struct bio_queue_head bio_queue; member
134 bioq_init(&sc->bio_queue); in mambodisk_attach()
187 bioq_disksort(&sc->bio_queue, bp); in mambodisk_strategy()
209 bp = bioq_first(&sc->bio_queue); in mambodisk_task()
214 bioq_remove(&sc->bio_queue, bp); in mambodisk_task()
/freebsd/sys/cam/scsi/
H A Dscsi_pt.c77 struct bio_queue_head bio_queue; member
215 bioq_insert_tail(&softc->bio_queue, bp); in ptstrategy()
269 bioq_init(&softc->bio_queue); in ptctor()
338 bioq_flush(&softc->bio_queue, NULL, ENXIO); in ptoninvalidate()
429 bp = bioq_first(&softc->bio_queue); in ptstart()
433 bioq_remove(&softc->bio_queue, bp); in ptstart()
458 bp = bioq_first(&softc->bio_queue); in ptstart()
520 bioq_flush(&softc->bio_queue, NULL, EIO); in ptdone()
H A Dscsi_cd.c162 struct bio_queue_head bio_queue; member
382 bioq_flush(&softc->bio_queue, NULL, ENXIO); in cdoninvalidate()
610 bioq_init(&softc->bio_queue); in cdregister()
861 bioq_disksort(&softc->bio_queue, bp); in cdstrategy()
891 bp = bioq_first(&softc->bio_queue); in cdstart()
912 bioq_remove(&softc->bio_queue, bp); in cdstart()
958 bp = bioq_first(&softc->bio_queue); in cdstart()
1162 bioq_flush(&softc->bio_queue, NULL, EIO); in cddone()
1439 if (bioq_first(&softc->bio_queue) != NULL) in cddone()
1497 bioq_flush(&softc->bio_queue, NULL, EINVAL); in cddone()
[all …]
H A Dscsi_sa.c383 struct bio_queue_head bio_queue; member
1050 bioq_insert_tail(&softc->bio_queue, bp); in sastrategy()
2257 bioq_flush(&softc->bio_queue, NULL, ENXIO); in saoninvalidate()
2497 bioq_init(&softc->bio_queue); in saregister()
2770 bp = bioq_first(&softc->bio_queue); in sastart()
2796 bioq_remove(&softc->bio_queue, bp); in sastart()
2836 if (bioq_first(&softc->bio_queue) != NULL) { in sastart()
2844 bp = bioq_first(&softc->bio_queue); in sastart()
2861 bioq_remove(&softc->bio_queue, bp); in sastart()
2947 bp = bioq_first(&softc->bio_queue); in sastart()
[all …]
/freebsd/sys/dev/nvmf/host/
H A Dnvmf_ns.c101 bio_queue); in nvmf_ns_biodone()
218 TAILQ_INSERT_TAIL(&ns->pending_bios, bio, bio_queue); in nvmf_ns_submit_bio()
423 TAILQ_CONCAT(&bios, &ns->pending_bios, bio_queue); in nvmf_reconnect_ns()
428 TAILQ_REMOVE(&bios, bio, bio_queue); in nvmf_reconnect_ns()
442 TAILQ_CONCAT(&bios, &ns->pending_bios, bio_queue); in nvmf_shutdown_ns()
447 TAILQ_REMOVE(&bios, bio, bio_queue); in nvmf_shutdown_ns()
478 TAILQ_CONCAT(&bios, &ns->pending_bios, bio_queue); in nvmf_destroy_ns()
483 TAILQ_REMOVE(&bios, bio, bio_queue); in nvmf_destroy_ns()
/freebsd/sys/cam/
H A Dcam_iosched.c317 struct bio_queue_head bio_queue; member
779 struct bio *rbp = bioq_first(&isc->bio_queue); in cam_iosched_has_io()
793 return bioq_first(&isc->bio_queue) != NULL; in cam_iosched_has_io()
1175 bioq_init(&isc->bio_queue); in cam_iosched_init()
1344 bioq_flush(&isc->bio_queue, stp, err); in cam_iosched_flush()
1378 if (bioq_first(&isc->bio_queue) && isc->current_read_bias) { in cam_iosched_get_write()
1487 if (bioq_first(&isc->bio_queue) && isc->current_read_bias) { in cam_iosched_get_trim()
1531 bp = TAILQ_NEXT(bp, bio_queue); in bio_next()
1585 for (bp = bioq_first(&isc->bio_queue); bp != NULL; in cam_iosched_next_bio()
1624 bp = bioq_first(&isc->bio_queue); in cam_iosched_next_bio()
[all …]
/freebsd/sys/geom/
H A Dgeom_io.c123 TAILQ_INIT(&bq->bio_queue); in g_bioq_init()
132 bp = TAILQ_FIRST(&bq->bio_queue); in g_bioq_first()
137 TAILQ_REMOVE(&bq->bio_queue, bp, bio_queue); in g_bioq_first()
592 first = TAILQ_EMPTY(&g_bio_run_down.bio_queue); in g_io_request()
593 TAILQ_INSERT_TAIL(&g_bio_run_down.bio_queue, bp, bio_queue); in g_io_request()
694 first = TAILQ_EMPTY(&g_bio_run_up.bio_queue); in g_io_deliver()
695 TAILQ_INSERT_TAIL(&g_bio_run_up.bio_queue, bp, bio_queue); in g_io_deliver()
/freebsd/sys/geom/mirror/
H A Dg_mirror.c324 TAILQ_FOREACH(bp, &sc->sc_queue, bio_queue) { in g_mirror_nrequests()
921 TAILQ_INSERT_TAIL(&sc->sc_queue, bp, bio_queue); in g_mirror_done()
1013 TAILQ_REMOVE(&sc->sc_inflight, pbp, bio_queue); in g_mirror_regular_request()
1056 TAILQ_INSERT_TAIL(&sc->sc_queue, pbp, bio_queue); in g_mirror_regular_request()
1079 TAILQ_REMOVE(&sc->sc_inflight, pbp, bio_queue); in g_mirror_regular_request()
1100 TAILQ_INSERT_TAIL(&sc->sc_queue, bp, bio_queue); in g_mirror_sync_done()
1218 TAILQ_INSERT_TAIL(&sc->sc_queue, bp, bio_queue); in g_mirror_start()
1270 TAILQ_FOREACH(bp, &sc->sc_inflight, bio_queue) { in g_mirror_regular_collision()
1287 TAILQ_INSERT_TAIL(&sc->sc_regular_delayed, bp, bio_queue); in g_mirror_regular_delay()
1298 TAILQ_INSERT_TAIL(&sc->sc_sync_delayed, bp, bio_queue); in g_mirror_sync_delay()
[all …]
H A Dg_mirror.h185 struct bio_queue sc_queue;
188 struct bio_queue sc_inflight; /* In-flight regular write requests. */
189 struct bio_queue sc_regular_delayed; /* Delayed I/O requests due to
191 struct bio_queue sc_sync_delayed; /* Delayed sync requests due to
/freebsd/sys/dev/flash/
H A Dat45d.c85 struct bio_queue_head bio_queue; member
289 bioq_flush(&sc->bio_queue, NULL, ENXIO); in at45d_detach()
380 bioq_init(&sc->bio_queue); in at45d_delayed_attach()
430 bioq_disksort(&sc->bio_queue, bp); in at45d_strategy()
466 bp = bioq_takefirst(&sc->bio_queue); in at45d_task()
/freebsd/sys/sys/
H A Dbio.h104 TAILQ_ENTRY(bio) bio_queue; /* Disksort queue. */
139 TAILQ_HEAD(bio_queue, bio) queue;
/freebsd/sys/geom/stripe/
H A Dg_stripe.c320 TAILQ_INSERT_TAIL(&queue, cbp, bio_queue); in g_stripe_start_fast()
342 cbp = TAILQ_NEXT(cbp, bio_queue); in g_stripe_start_fast()
372 TAILQ_INSERT_TAIL(&queue, cbp, bio_queue); in g_stripe_start_fast()
397 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_stripe_start_fast()
417 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_stripe_start_fast()
447 TAILQ_INSERT_TAIL(&queue, cbp, bio_queue); in g_stripe_start_economic()
480 TAILQ_INSERT_TAIL(&queue, cbp, bio_queue); in g_stripe_start_economic()
512 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_stripe_start_economic()
522 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_stripe_start_economic()
/freebsd/sys/dev/flash/flexspi/
H A Dflex_spi.c90 struct bio_queue_head bio_queue; member
802 bioq_init(&sc->bio_queue); in flex_spi_attach()
842 bioq_flush(&sc->bio_queue, NULL, ENXIO); in flex_spi_detach()
896 bioq_disksort(&sc->bio_queue, bp); in flex_spi_strategy()
943 bp = bioq_first(&sc->bio_queue); in flex_spi_task()
948 bioq_remove(&sc->bio_queue, bp); in flex_spi_task()
/freebsd/sys/dev/virtio/block/
H A Dvirtio_blk.c107 struct bio_queue vtblk_dump_queue;
177 struct bio_queue *);
179 struct bio_queue *);
1210 vtblk_queue_completed(struct vtblk_softc *sc, struct bio_queue *queue) in vtblk_queue_completed()
1218 TAILQ_INSERT_TAIL(queue, bp, bio_queue); in vtblk_done_completed()
1224 vtblk_done_completed(struct vtblk_softc *sc, struct bio_queue *queue) in vtblk_done_completed()
1228 TAILQ_FOREACH_SAFE(bp, queue, bio_queue, tmp) {
1264 struct bio_queue queue; in vtblk_drain()
1486 struct bio_queue queue; in vtblk_vq_intr()
/freebsd/sys/geom/uzip/
H A Dg_uzip_softc.h49 struct bio_queue_head bio_queue; member
H A Dg_uzip_wrkthr.c59 bp = bioq_takefirst(&sc->bio_queue); in g_uzip_wrkthr()
/freebsd/sys/geom/gate/
H A Dg_gate.c375 TAILQ_FOREACH_SAFE(bp, &sc->sc_inqueue.queue, bio_queue, bp2) { in g_gate_guard()
382 TAILQ_FOREACH_SAFE(bp, &sc->sc_outqueue.queue, bio_queue, bp2) { in g_gate_guard()
810 TAILQ_FOREACH_SAFE(bp, &sc->sc_outqueue.queue, bio_queue, tbp) { in g_gate_ioctl()
823 lbp, bp, bio_queue); in g_gate_ioctl()
911 TAILQ_FOREACH(bp, &sc->sc_outqueue.queue, bio_queue) { in g_gate_ioctl()
/freebsd/sys/dev/ida/
H A Dida.c204 bioq_init(&ida->bio_queue); in ida_setup()
484 bioq_insert_tail(&ida->bio_queue, bp); in ida_submit_buf()
502 bp = bioq_first(&ida->bio_queue); in ida_startio()
510 bioq_remove(&ida->bio_queue, bp); in ida_startio()
H A Didavar.h165 struct bio_queue_head bio_queue; member
/freebsd/sys/cam/mmc/
H A Dmmc_da.c104 struct bio_queue_head bio_queue; member
504 bp = bioq_first(&softc->part[softc->part_curr]->bio_queue); in sddaschedule()
508 (bp = bioq_first(&softc->part[i]->bio_queue)) != NULL) in sddaschedule()
549 bioq_disksort(&part->bio_queue, bp); in sddastrategy()
617 bioq_flush(&part->bio_queue, NULL, ENXIO); in sddaoninvalidate()
1545 bioq_init(&part->bio_queue); in sdda_add_part()
1804 bp = bioq_first(&part->bio_queue); in sddastart()
1808 (bp = bioq_first(&softc->part[part_index]->bio_queue)) != NULL) in sddastart()
1835 bioq_remove(&part->bio_queue, bp); in sddastart()
/freebsd/sys/geom/mountver/
H A Dg_mountver.c167 TAILQ_INSERT_TAIL(&sc->sc_queue, bp, bio_queue); in g_mountver_queue()
181 TAILQ_REMOVE(&sc->sc_queue, bp, bio_queue); in g_mountver_send_queued()
200 TAILQ_REMOVE(&sc->sc_queue, bp, bio_queue); in g_mountver_discard_queued()
/freebsd/sys/geom/shsec/
H A Dg_shsec.c345 TAILQ_INSERT_TAIL(&queue, cbp, bio_queue); in g_shsec_start()
376 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_shsec_start()
386 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_shsec_start()
/freebsd/sys/dev/mmc/
H A Dmmcsd.c104 struct bio_queue_head bio_queue; member
554 bioq_init(&part->bio_queue); in mmcsd_add_part()
688 bioq_flush(&part->bio_queue, NULL, ENXIO); in mmcsd_detach()
801 bioq_disksort(&part->bio_queue, bp); in mmcsd_strategy()
1438 bp = bioq_takefirst(&part->bio_queue); in mmcsd_task()
/freebsd/sys/cam/nvme/
H A Dnvme_da.c1104 TAILQ_INSERT_TAIL(&trim->bps, bp1, bio_queue); in ndastart()
1230 TAILQ_CONCAT(&queue, &trim->bps, bio_queue); in ndadone()
1251 TAILQ_REMOVE(&queue, bp2, bio_queue); in ndadone()

12