Home
last modified time | relevance | path

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

12

/freebsd-14-stable/sys/kern/
HDsubr_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-14-stable/sys/powerpc/mambo/
HDmambo_disk.c49 struct bio_queue_head bio_queue; member
135 bioq_init(&sc->bio_queue); in mambodisk_attach()
188 bioq_disksort(&sc->bio_queue, bp); in mambodisk_strategy()
210 bp = bioq_first(&sc->bio_queue); in mambodisk_task()
215 bioq_remove(&sc->bio_queue, bp); in mambodisk_task()
/freebsd-14-stable/sys/cam/scsi/
HDscsi_pt.c78 struct bio_queue_head bio_queue; member
216 bioq_insert_tail(&softc->bio_queue, bp); in ptstrategy()
270 bioq_init(&softc->bio_queue); in ptctor()
339 bioq_flush(&softc->bio_queue, NULL, ENXIO); in ptoninvalidate()
430 bp = bioq_first(&softc->bio_queue); in ptstart()
434 bioq_remove(&softc->bio_queue, bp); in ptstart()
459 bp = bioq_first(&softc->bio_queue); in ptstart()
521 bioq_flush(&softc->bio_queue, NULL, EIO); in ptdone()
HDscsi_cd.c165 struct bio_queue_head bio_queue; member
387 bioq_flush(&softc->bio_queue, NULL, ENXIO); in cdoninvalidate()
614 bioq_init(&softc->bio_queue); in cdregister()
873 bioq_disksort(&softc->bio_queue, bp); in cdstrategy()
903 bp = bioq_first(&softc->bio_queue); in cdstart()
924 bioq_remove(&softc->bio_queue, bp); in cdstart()
970 bp = bioq_first(&softc->bio_queue); in cdstart()
1174 bioq_flush(&softc->bio_queue, NULL, EIO); in cddone()
1449 if (bioq_first(&softc->bio_queue) != NULL) in cddone()
1507 bioq_flush(&softc->bio_queue, NULL, EINVAL); in cddone()
[all …]
HDscsi_sa.c384 struct bio_queue_head bio_queue; member
1051 bioq_insert_tail(&softc->bio_queue, bp); in sastrategy()
2258 bioq_flush(&softc->bio_queue, NULL, ENXIO); in saoninvalidate()
2498 bioq_init(&softc->bio_queue); in saregister()
2771 bp = bioq_first(&softc->bio_queue); in sastart()
2797 bioq_remove(&softc->bio_queue, bp); in sastart()
2837 if (bioq_first(&softc->bio_queue) != NULL) { in sastart()
2845 bp = bioq_first(&softc->bio_queue); in sastart()
2862 bioq_remove(&softc->bio_queue, bp); in sastart()
2948 bp = bioq_first(&softc->bio_queue); in sastart()
[all …]
/freebsd-14-stable/sys/cam/
HDcam_iosched.c315 struct bio_queue_head bio_queue; member
775 struct bio *rbp = bioq_first(&isc->bio_queue); in cam_iosched_has_io()
789 return bioq_first(&isc->bio_queue) != NULL; in cam_iosched_has_io()
1152 bioq_init(&(*iscp)->bio_queue); in cam_iosched_init()
1320 bioq_flush(&isc->bio_queue, stp, err); in cam_iosched_flush()
1354 if (bioq_first(&isc->bio_queue) && isc->current_read_bias) { in cam_iosched_get_write()
1464 if (bioq_first(&isc->bio_queue) && isc->current_read_bias) { in cam_iosched_get_trim()
1508 bp = TAILQ_NEXT(bp, bio_queue); in bio_next()
1562 for (bp = bioq_first(&isc->bio_queue); bp != NULL; in cam_iosched_next_bio()
1601 bp = bioq_first(&isc->bio_queue); in cam_iosched_next_bio()
[all …]
/freebsd-14-stable/sys/geom/
HDgeom_io.c121 TAILQ_INIT(&bq->bio_queue); in g_bioq_init()
130 bp = TAILQ_FIRST(&bq->bio_queue); in g_bioq_first()
135 TAILQ_REMOVE(&bq->bio_queue, bp, bio_queue); in g_bioq_first()
590 first = TAILQ_EMPTY(&g_bio_run_down.bio_queue); in g_io_request()
591 TAILQ_INSERT_TAIL(&g_bio_run_down.bio_queue, bp, bio_queue); in g_io_request()
692 first = TAILQ_EMPTY(&g_bio_run_up.bio_queue); in g_io_deliver()
693 TAILQ_INSERT_TAIL(&g_bio_run_up.bio_queue, bp, bio_queue); in g_io_deliver()
/freebsd-14-stable/sys/geom/mirror/
HDg_mirror.c325 TAILQ_FOREACH(bp, &sc->sc_queue, bio_queue) { in g_mirror_nrequests()
922 TAILQ_INSERT_TAIL(&sc->sc_queue, bp, bio_queue); in g_mirror_done()
1014 TAILQ_REMOVE(&sc->sc_inflight, pbp, bio_queue); in g_mirror_regular_request()
1057 TAILQ_INSERT_TAIL(&sc->sc_queue, pbp, bio_queue); in g_mirror_regular_request()
1080 TAILQ_REMOVE(&sc->sc_inflight, pbp, bio_queue); in g_mirror_regular_request()
1101 TAILQ_INSERT_TAIL(&sc->sc_queue, bp, bio_queue); in g_mirror_sync_done()
1219 TAILQ_INSERT_TAIL(&sc->sc_queue, bp, bio_queue); in g_mirror_start()
1271 TAILQ_FOREACH(bp, &sc->sc_inflight, bio_queue) { in g_mirror_regular_collision()
1288 TAILQ_INSERT_TAIL(&sc->sc_regular_delayed, bp, bio_queue); in g_mirror_regular_delay()
1299 TAILQ_INSERT_TAIL(&sc->sc_sync_delayed, bp, bio_queue); in g_mirror_sync_delay()
[all …]
HDg_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-14-stable/sys/sys/
HDbio.h107 TAILQ_ENTRY(bio) bio_queue; /* Disksort queue. */
142 TAILQ_HEAD(bio_queue, bio) queue;
/freebsd-14-stable/sys/dev/flash/
HDat45d.c86 struct bio_queue_head bio_queue; member
290 bioq_flush(&sc->bio_queue, NULL, ENXIO); in at45d_detach()
381 bioq_init(&sc->bio_queue); in at45d_delayed_attach()
431 bioq_disksort(&sc->bio_queue, bp); in at45d_strategy()
467 bp = bioq_takefirst(&sc->bio_queue); in at45d_task()
/freebsd-14-stable/sys/geom/stripe/
HDg_stripe.c321 TAILQ_INSERT_TAIL(&queue, cbp, bio_queue); in g_stripe_start_fast()
343 cbp = TAILQ_NEXT(cbp, bio_queue); in g_stripe_start_fast()
373 TAILQ_INSERT_TAIL(&queue, cbp, bio_queue); in g_stripe_start_fast()
398 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_stripe_start_fast()
418 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_stripe_start_fast()
448 TAILQ_INSERT_TAIL(&queue, cbp, bio_queue); in g_stripe_start_economic()
481 TAILQ_INSERT_TAIL(&queue, cbp, bio_queue); in g_stripe_start_economic()
513 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_stripe_start_economic()
523 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_stripe_start_economic()
/freebsd-14-stable/sys/dev/flash/flexspi/
HDflex_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-14-stable/sys/geom/uzip/
HDg_uzip_softc.h49 struct bio_queue_head bio_queue; member
HDg_uzip_wrkthr.c60 bp = bioq_takefirst(&sc->bio_queue); in g_uzip_wrkthr()
/freebsd-14-stable/sys/dev/virtio/block/
HDvirtio_blk.c108 struct bio_queue vtblk_dump_queue;
178 struct bio_queue *);
180 struct bio_queue *);
1182 vtblk_queue_completed(struct vtblk_softc *sc, struct bio_queue *queue) in vtblk_queue_completed()
1211 TAILQ_INSERT_TAIL(queue, bp, bio_queue); in vtblk_queue_completed()
1218 vtblk_done_completed(struct vtblk_softc *sc, struct bio_queue *queue) in vtblk_done_completed()
1222 TAILQ_FOREACH_SAFE(bp, queue, bio_queue, tmp) { in vtblk_done_completed()
1258 struct bio_queue queue; in vtblk_drain()
1475 struct bio_queue queue; in vtblk_vq_intr()
/freebsd-14-stable/sys/geom/gate/
HDg_gate.c376 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()
811 TAILQ_FOREACH_SAFE(bp, &sc->sc_outqueue.queue, bio_queue, tbp) { in g_gate_ioctl()
824 lbp, bp, bio_queue); in g_gate_ioctl()
912 TAILQ_FOREACH(bp, &sc->sc_outqueue.queue, bio_queue) { in g_gate_ioctl()
/freebsd-14-stable/sys/dev/ida/
HDida.c204 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()
HDidavar.h165 struct bio_queue_head bio_queue; member
/freebsd-14-stable/sys/cam/mmc/
HDmmc_da.c105 struct bio_queue_head bio_queue; member
505 bp = bioq_first(&softc->part[softc->part_curr]->bio_queue); in sddaschedule()
509 (bp = bioq_first(&softc->part[i]->bio_queue)) != NULL) in sddaschedule()
550 bioq_disksort(&part->bio_queue, bp); in sddastrategy()
618 bioq_flush(&part->bio_queue, NULL, ENXIO); in sddaoninvalidate()
1546 bioq_init(&part->bio_queue); in sdda_add_part()
1805 bp = bioq_first(&part->bio_queue); in sddastart()
1809 (bp = bioq_first(&softc->part[part_index]->bio_queue)) != NULL) in sddastart()
1836 bioq_remove(&part->bio_queue, bp); in sddastart()
/freebsd-14-stable/sys/geom/mountver/
HDg_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-14-stable/sys/geom/shsec/
HDg_shsec.c346 TAILQ_INSERT_TAIL(&queue, cbp, bio_queue); in g_shsec_start()
377 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_shsec_start()
387 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_shsec_start()
/freebsd-14-stable/sys/dev/mmc/
HDmmcsd.c105 struct bio_queue_head bio_queue; member
555 bioq_init(&part->bio_queue); in mmcsd_add_part()
689 bioq_flush(&part->bio_queue, NULL, ENXIO); in mmcsd_detach()
802 bioq_disksort(&part->bio_queue, bp); in mmcsd_strategy()
1439 bp = bioq_takefirst(&part->bio_queue); in mmcsd_task()
/freebsd-14-stable/sys/cam/nvme/
HDnvme_da.c1093 TAILQ_INSERT_TAIL(&trim->bps, bp1, bio_queue); in ndastart()
1219 TAILQ_CONCAT(&queue, &trim->bps, bio_queue); in ndadone()
1240 TAILQ_REMOVE(&queue, bp2, bio_queue); in ndadone()
/freebsd-14-stable/sys/dev/md/
HDmd.c252 struct bio_queue_head bio_queue; member
487 bioq_disksort(&sc->bio_queue, bp); in g_md_start()
1222 bp = bioq_takefirst(&sc->bio_queue); in md_kthread()
1281 bioq_init(&sc->bio_queue); in mdnew()

12