/freebsd/sys/kern/ |
H A D | subr_disk.c | 172 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 D | mambo_disk.c | 48 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 D | scsi_pt.c | 77 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 D | scsi_cd.c | 164 struct bio_queue_head bio_queue; member 386 bioq_flush(&softc->bio_queue, NULL, ENXIO); in cdoninvalidate() 613 bioq_init(&softc->bio_queue); in cdregister() 872 bioq_disksort(&softc->bio_queue, bp); in cdstrategy() 902 bp = bioq_first(&softc->bio_queue); in cdstart() 923 bioq_remove(&softc->bio_queue, bp); in cdstart() 969 bp = bioq_first(&softc->bio_queue); in cdstart() 1173 bioq_flush(&softc->bio_queue, NULL, EIO); in cddone() 1448 if (bioq_first(&softc->bio_queue) != NULL) in cddone() 1578 if (bioq_first(&softc->bio_queue) != NULL) in cddone() [all …]
|
H A D | scsi_sa.c | 383 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 D | nvmf_ns.c | 101 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 D | cam_iosched.c | 312 struct bio_queue_head bio_queue; member 772 struct bio *rbp = bioq_first(&isc->bio_queue); in cam_iosched_has_io() 786 return bioq_first(&isc->bio_queue) != NULL; in cam_iosched_has_io() 1154 bioq_init(&(*iscp)->bio_queue); in cam_iosched_init() 1322 bioq_flush(&isc->bio_queue, stp, err); in cam_iosched_flush() 1510 bp = TAILQ_NEXT(bp, bio_queue); in bio_next() 1603 bp = bioq_first(&isc->bio_queue); in cam_iosched_next_bio() 1607 bioq_remove(&isc->bio_queue, bp); in cam_iosched_next_bio() 1710 bioq_disksort(&isc->bio_queue, bp); in cam_iosched_queue_work() 1712 bioq_insert_tail(&isc->bio_queue, bp); in cam_iosched_queue_work() [all …]
|
/freebsd/sys/geom/ |
H A D | geom_io.c | 123 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/sys/ |
H A D | bio.h | 105 TAILQ_ENTRY(bio) bio_queue; /* Disksort queue. */ 140 TAILQ_HEAD(bio_queue, bio) queue;
|
/freebsd/sys/geom/mirror/ |
H A D | g_mirror.c | 324 TAILQ_FOREACH(bp, &sc->sc_queue, bio_queue) { in g_mirror_nrequests() 1643 struct bio_queue queue; in g_mirror_request_split() 1674 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_mirror_request_split() 1682 TAILQ_INSERT_TAIL(&queue, cbp, bio_queue); in g_mirror_request_split() 1696 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_mirror_request_split() 1712 struct bio_queue queue; in g_mirror_register_request() 1793 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_mirror_register_request() 1801 TAILQ_INSERT_TAIL(&queue, cbp, bio_queue); in g_mirror_register_request() 1818 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_mirror_register_request() 1840 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_mirror_register_request() [all …]
|
H A D | g_mirror.h | 185 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 D | at45d.c | 85 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/geom/stripe/ |
H A D | g_stripe.c | 320 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/geom/uzip/ |
H A D | g_uzip_softc.h | 49 struct bio_queue_head bio_queue; member
|
H A D | g_uzip_wrkthr.c | 59 bp = bioq_takefirst(&sc->bio_queue); in g_uzip_wrkthr()
|
/freebsd/sys/dev/flash/flexspi/ |
H A D | flex_spi.c | 90 struct bio_queue_head bio_queue; member 808 bioq_init(&sc->bio_queue); in flex_spi_attach() 848 bioq_flush(&sc->bio_queue, NULL, ENXIO); in flex_spi_detach() 902 bioq_disksort(&sc->bio_queue, bp); in flex_spi_strategy() 949 bp = bioq_first(&sc->bio_queue); in flex_spi_task() 954 bioq_remove(&sc->bio_queue, bp); in flex_spi_task()
|
/freebsd/sys/dev/virtio/block/ |
H A D | virtio_blk.c | 107 struct bio_queue vtblk_dump_queue; 177 struct bio_queue *); 179 struct bio_queue *); 1181 vtblk_queue_completed(struct vtblk_softc *sc, struct bio_queue *queue) in vtblk_queue_completed() 1210 TAILQ_INSERT_TAIL(queue, bp, bio_queue); in vtblk_queue_completed() 1217 vtblk_done_completed(struct vtblk_softc *sc, struct bio_queue *queue) in vtblk_done_completed() 1221 TAILQ_FOREACH_SAFE(bp, queue, bio_queue, tmp) { in vtblk_done_completed() 1257 struct bio_queue queue; in vtblk_drain() 1474 struct bio_queue queue; in vtblk_vq_intr()
|
/freebsd/sys/geom/gate/ |
H A D | g_gate.c | 376 TAILQ_FOREACH_SAFE(bp, &sc->sc_inqueue.queue, bio_queue, bp2) { in g_gate_guard() 383 TAILQ_FOREACH_SAFE(bp, &sc->sc_outqueue.queue, bio_queue, bp2) { in g_gate_guard() 813 TAILQ_FOREACH_SAFE(bp, &sc->sc_outqueue.queue, bio_queue, tbp) { in g_gate_ioctl() 826 lbp, bp, bio_queue); in g_gate_ioctl() 914 TAILQ_FOREACH(bp, &sc->sc_outqueue.queue, bio_queue) { in g_gate_ioctl()
|
/freebsd/sys/dev/ida/ |
H A D | ida.c | 204 bioq_init(&ida->bio_queue); in ida_setup() 487 bioq_insert_tail(&ida->bio_queue, bp); in ida_submit_buf() 505 bp = bioq_first(&ida->bio_queue); in ida_startio() 513 bioq_remove(&ida->bio_queue, bp); in ida_startio()
|
H A D | idavar.h | 165 struct bio_queue_head bio_queue; member
|
/freebsd/sys/cam/mmc/ |
H A D | mmc_da.c | 102 struct bio_queue_head bio_queue; member 502 bp = bioq_first(&softc->part[softc->part_curr]->bio_queue); in sddaschedule() 506 (bp = bioq_first(&softc->part[i]->bio_queue)) != NULL) in sddaschedule() 547 bioq_disksort(&part->bio_queue, bp); in sddastrategy() 615 bioq_flush(&part->bio_queue, NULL, ENXIO); in sddaoninvalidate() 1543 bioq_init(&part->bio_queue); in sdda_add_part() 1799 bp = bioq_first(&part->bio_queue); in sddastart() 1803 (bp = bioq_first(&softc->part[part_index]->bio_queue)) != NULL) in sddastart() 1830 bioq_remove(&part->bio_queue, bp); in sddastart()
|
/freebsd/sys/geom/mountver/ |
H A D | g_mountver.c | 167 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 D | g_shsec.c | 345 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 D | mmcsd.c | 104 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 D | nvme_da.c | 1102 TAILQ_INSERT_TAIL(&trim->bps, bp1, bio_queue); in ndastart() 1228 TAILQ_CONCAT(&queue, &trim->bps, bio_queue); in ndadone() 1249 TAILQ_REMOVE(&queue, bp2, bio_queue); in ndadone()
|