Home
last modified time | relevance | path

Searched refs:bio_cmd (Results 1 – 25 of 84) sorted by relevance

1234

/freebsd/sys/geom/
H A Dgeom_io.c202 bp2->bio_cmd = bp->bio_cmd; in g_clone_bio()
219 if (bp->bio_cmd == BIO_ZONE) in g_clone_bio()
247 bp2->bio_cmd = bp->bio_cmd; in g_duplicate_bio()
295 bp->bio_cmd = BIO_GETATTR; in g_io_getattr()
315 bp->bio_cmd = BIO_ZONE; in g_io_zonecmd()
360 bp->bio_cmd = BIO_SPEEDUP; in g_io_speedup()
379 bp->bio_cmd = BIO_FLUSH; in g_io_flush()
406 switch(bp->bio_cmd) { in g_io_check()
436 switch(bp->bio_cmd) { in g_io_check()
483 (bp->bio_cmd == BIO_READ || bp->bio_cmd == BIO_WRITE)) { in g_io_check()
[all …]
H A Dgeom_dev.c729 if (bp2->bio_cmd == BIO_ZONE) in g_dev_done()
737 if (bp->bio_cmd == BIO_READ) in g_dev_done()
739 if (bp->bio_cmd == BIO_WRITE) in g_dev_done()
763 KASSERT(bp->bio_cmd == BIO_READ || in g_dev_strategy()
764 bp->bio_cmd == BIO_WRITE || in g_dev_strategy()
765 bp->bio_cmd == BIO_DELETE || in g_dev_strategy()
766 bp->bio_cmd == BIO_FLUSH || in g_dev_strategy()
767 bp->bio_cmd == BIO_ZONE, in g_dev_strategy()
768 ("Wrong bio_cmd bio=%p cmd=%d", bp, bp->bio_cmd)); in g_dev_strategy()
801 bp2->bio_data, bp2->bio_cmd); in g_dev_strategy()
/freebsd/sys/dev/fdc/
H A Dfdc.c717 if (bp->bio_cmd == BIO_READ) { in fdc_pio()
790 bp->bio_cmd == BIO_READ ? ISADMA_READ : ISADMA_WRITE, in fdc_worker()
835 if (bp->bio_cmd == BIO_FMT) { in fdc_worker()
849 if (bp->bio_cmd == BIO_PROBE) { in fdc_worker()
883 if (bp->bio_cmd == BIO_FMT || bp->bio_cmd == BIO_WRITE) { in fdc_worker()
903 (bp->bio_cmd == BIO_READ || bp->bio_cmd == BIO_WRITE)) { in fdc_worker()
906 } else if (bp->bio_cmd == BIO_READ || bp->bio_cmd == BIO_WRITE) { in fdc_worker()
956 bp->bio_cmd, bp->bio_pblkno, fd->fd_iosize, in fdc_worker()
960 if ((bp->bio_cmd == BIO_READ || in fdc_worker()
961 bp->bio_cmd == BIO_WRITE || in fdc_worker()
[all …]
/freebsd/sys/kern/
H A Dsubr_disk.c50 switch(bp->bio_cmd) { in disk_err()
56 default: printf("cmd=%x ", bp->bio_cmd); break; in disk_err()
268 if (bp->bio_cmd != BIO_READ && bp->bio_cmd != BIO_WRITE && in bioq_disksort()
269 bp->bio_cmd != BIO_DELETE) { in bioq_disksort()
H A Dsubr_devstat.c356 if (bp->bio_cmd == BIO_DELETE) in devstat_end_transaction_bio_bt()
358 else if ((bp->bio_cmd == BIO_READ) in devstat_end_transaction_bio_bt()
359 || ((bp->bio_cmd == BIO_ZONE) in devstat_end_transaction_bio_bt()
362 else if (bp->bio_cmd == BIO_WRITE) in devstat_end_transaction_bio_bt()
/freebsd/sys/cam/
H A Dcam_iosched.c1405 if (bp->bio_cmd == BIO_WRITE) { in cam_iosched_get_write()
1411 printf("HWQ : %p %#x\n", bp, bp->bio_cmd); in cam_iosched_get_write()
1593 if (bp->bio_cmd == BIO_READ) { in cam_iosched_next_bio()
1608 if (bp->bio_cmd == BIO_WRITE) { in cam_iosched_next_bio()
1631 if (bp->bio_cmd == BIO_READ) { in cam_iosched_next_bio()
1635 } else if (bp->bio_cmd == BIO_WRITE) { in cam_iosched_next_bio()
1642 printf("HWQ : %p %#x\n", bp, bp->bio_cmd); in cam_iosched_next_bio()
1669 if (bp->bio_cmd == BIO_SPEEDUP) { in cam_iosched_queue_work()
1697 if (bp->bio_cmd == BIO_FLUSH && isc->trim_ticks > 0) in cam_iosched_queue_work()
1704 if (bp->bio_cmd == BIO_DELETE) { in cam_iosched_queue_work()
[all …]
/freebsd/sys/dev/nvdimm/
H A Dnvdimm_spa.c340 if (bp->bio_cmd != BIO_READ && bp->bio_cmd != BIO_WRITE && in nvdimm_spa_g_thread()
341 bp->bio_cmd != BIO_FLUSH) { in nvdimm_spa_g_thread()
347 if (bp->bio_cmd == BIO_FLUSH) { in nvdimm_spa_g_thread()
373 auio.uio_rw = bp->bio_cmd == BIO_READ ? in nvdimm_spa_g_thread()
381 bp->bio_cmd); in nvdimm_spa_g_thread()
393 auio.uio_rw = bp->bio_cmd == BIO_READ ? UIO_READ : in nvdimm_spa_g_thread()
413 if (bp->bio_cmd == BIO_READ || bp->bio_cmd == BIO_WRITE) { in nvdimm_spa_g_start()
/freebsd/sys/cam/ctl/
H A Dctl_backend_block.c209 int bio_cmd; member
393 ctl_be_block_io_error(union ctl_io *io, int bio_cmd, uint16_t retry_count) in ctl_be_block_io_error() argument
397 if (bio_cmd == BIO_FLUSH) { in ctl_be_block_io_error()
403 ctl_set_medium_error(&io->scsiio, bio_cmd == BIO_READ); in ctl_be_block_io_error()
407 switch (bio_cmd) { in ctl_be_block_io_error()
489 if ((beio->bio_cmd == BIO_READ) in ctl_be_block_move_done()
579 ctl_be_block_io_error(io, beio->bio_cmd, in ctl_be_block_biodone()
590 if ((beio->bio_cmd == BIO_WRITE) in ctl_be_block_biodone()
591 || (beio->bio_cmd == BIO_FLUSH) in ctl_be_block_biodone()
592 || (beio->bio_cmd == BIO_DELETE) in ctl_be_block_biodone()
[all …]
/freebsd/sys/dev/virtio/block/
H A Dvirtio_blk.c619 if ((bp->bio_cmd != BIO_READ) && (bp->bio_cmd != BIO_WRITE) && in vtblk_strategy()
620 (bp->bio_cmd != BIO_FLUSH) && (bp->bio_cmd != BIO_DELETE)) { in vtblk_strategy()
965 switch (bp->bio_cmd) { in vtblk_request_bio()
983 panic("%s: bio with unhandled cmd: %d", __func__, bp->bio_cmd); in vtblk_request_bio()
1006 (bp->bio_cmd == BIO_READ || bp->bio_cmd == BIO_WRITE)) { in vtblk_request_execute()
1077 if (bp->bio_cmd == BIO_READ || bp->bio_cmd in vtblk_request_execute_cb()
[all...]
/freebsd/sys/geom/raid/
H A Dtr_raid1.c260 bp->bio_cmd = BIO_READ; in g_raid_tr_raid1_rebuild_some()
632 switch (bp->bio_cmd) { in g_raid_tr_iostart_raid1()
646 bp->bio_cmd, vol->v_name)); in g_raid_tr_iostart_raid1()
681 if (bp->bio_cmd == BIO_READ) { in g_raid_tr_iodone_raid1()
704 bp->bio_cmd = BIO_WRITE; in g_raid_tr_iodone_raid1()
771 if (bp->bio_cmd == BIO_READ && bp->bio_error != 0) { in g_raid_tr_iodone_raid1()
830 if (bp->bio_cmd == BIO_READ && in g_raid_tr_iodone_raid1()
849 cbp->bio_cmd = BIO_WRITE; in g_raid_tr_iodone_raid1()
867 if (bp->bio_cmd == BIO_WRITE && bp->bio_error) { in g_raid_tr_iodone_raid1()
881 if (pbp->bio_cmd != BIO_READ) { in g_raid_tr_iodone_raid1()
[all …]
H A Dtr_raid1e.c476 bp->bio_cmd = BIO_READ; in g_raid_tr_raid1e_rebuild_some()
797 bp->bio_cmd != BIO_DELETE) { in g_raid_tr_iostart_raid1e_write()
814 if (bp->bio_cmd != BIO_DELETE) in g_raid_tr_iostart_raid1e_write()
861 switch (bp->bio_cmd) { in g_raid_tr_iostart_raid1e()
875 bp->bio_cmd, vol->v_name)); in g_raid_tr_iostart_raid1e()
898 if (bp->bio_cmd == BIO_READ) { in g_raid_tr_iodone_raid1e()
921 bp->bio_cmd = BIO_WRITE; in g_raid_tr_iodone_raid1e()
997 if (bp->bio_cmd == BIO_READ && bp->bio_error != 0) { in g_raid_tr_iodone_raid1e()
1067 if (bp->bio_cmd == BIO_READ && in g_raid_tr_iodone_raid1e()
1086 cbp->bio_cmd = BIO_WRITE; in g_raid_tr_iodone_raid1e()
[all …]
H A Dtr_raid0.c204 if (bp->bio_cmd == BIO_FLUSH || bp->bio_cmd == BIO_SPEEDUP) { in g_raid_tr_iostart_raid0()
234 bp->bio_cmd != BIO_DELETE) { in g_raid_tr_iostart_raid0()
249 if (bp->bio_cmd != BIO_DELETE) in g_raid_tr_iostart_raid0()
H A Dtr_concat.c223 if (bp->bio_cmd == BIO_FLUSH || bp->bio_cmd == BIO_SPEEDUP) { in g_raid_tr_iostart_concat()
254 bp->bio_cmd != BIO_DELETE) { in g_raid_tr_iostart_concat()
265 if (bp->bio_cmd != BIO_DELETE) in g_raid_tr_iostart_concat()
/freebsd/sys/geom/bde/
H A Dg_bde_work.c
/freebsd/cddl/usr.sbin/dwatch/libexec/
H A Dio30 this string bio_cmd;
55 this->bio_cmd = bio_cmd_string[(int)this->bufinfo.b_cmd];
97 this->bio_cmd,
/freebsd/sys/dev/ida/
H A Dida_disk.c100 if (drv->flags & DRV_WRITEPROT && (bp->bio_cmd == BIO_WRITE)) { in idad_strategy()
105 if ((bp->bio_cmd != BIO_READ) && (bp->bio_cmd != BIO_WRITE)) { in idad_strategy()
/freebsd/sys/powerpc/ps3/
H A Dps3disk.c369 __func__, bp->bio_cmd); in ps3disk_strategy()
372 if (bp->bio_cmd == BIO_FLUSH) { in ps3disk_strategy()
379 } else if (bp->bio_cmd == BIO_READ || bp->bio_cmd == BIO_WRITE) { in ps3disk_strategy()
433 (bp->bio_cmd == BIO_READ) ? "Read" : "Write", in ps3disk_intr()
444 if (bp->bio_cmd == BIO_READ) in ps3disk_intr()
627 if (bp->bio_cmd == BIO_READ) { in ps3disk_transfer()
/freebsd/sys/dev/flash/
H A Dat45d.c478 switch (bp->bio_cmd) { in at45d_task()
506 if (bp->bio_cmd == BIO_WRITE) { in at45d_task()
537 if (err == 0 && bp->bio_cmd != BIO_READ) in at45d_task()
543 if (bp->bio_cmd == BIO_WRITE) { in at45d_task()
569 if (bp->bio_cmd == BIO_READ) in at45d_task()
/freebsd/sys/dev/md/
H A Dmd.c481 if ((bp->bio_cmd == BIO_READ) || (bp->bio_cmd == BIO_WRITE)) { in g_md_start()
648 switch (bp->bio_cmd) { in mdstart_malloc()
679 if (bp->bio_cmd == BIO_DELETE) { in mdstart_malloc()
682 } else if (bp->bio_cmd == BIO_READ) { in mdstart_malloc()
721 } else if (bp->bio_cmd == BIO_WRITE) { in mdstart_malloc()
852 switch (bp->bio_cmd) { in mdstart_preload()
906 switch (bp->bio_cmd) { in mdstart_vnode()
980 if (bp->bio_cmd == BIO_READ) { in mdstart_vnode()
1026 switch (bp->bio_cmd) { in mdstart_swap()
1059 if (bp->bio_cmd == BIO_READ) { in mdstart_swap()
[all …]
/freebsd/sys/geom/union/
H A Dg_union.c720 bp->bio_cmd = BIO_READ; in g_union_ctl_commit()
729 bp->bio_cmd = BIO_WRITE; in g_union_ctl_commit()
804 if (bp->bio_cmd == BIO_READ || bp->bio_cmd == BIO_WRITE) { in g_union_start()
834 switch (cbp->bio_cmd) { in g_union_start()
869 cbp->bio_cmd); in g_union_start()
910 if (wip->wip_bp->bio_cmd == BIO_WRITE) in g_union_doio()
911 if (activewip->wip_bp->bio_cmd == BIO_WRITE) in g_union_doio()
916 if (activewip->wip_bp->bio_cmd == BIO_WRITE) in g_union_doio()
955 if (cbp->bio_cmd == BIO_WRITE) { in g_union_doio()
1057 if (bp->bio_cmd == BIO_WRITE) in g_union_done()
/freebsd/sys/geom/eli/
H A Dg_eli_integrity.c479 if (bp->bio_cmd == BIO_READ) { in g_eli_auth_run()
525 if (bp->bio_cmd == BIO_WRITE) in g_eli_auth_run()
536 if (bp->bio_cmd == BIO_WRITE) in g_eli_auth_run()
541 if (bp->bio_cmd == BIO_WRITE) { in g_eli_auth_run()
550 if (bp->bio_cmd == BIO_WRITE) { in g_eli_auth_run()
/freebsd/sys/dev/nvme/
H A Dnvme_ns.c405 child->bio_cmd = bp->bio_cmd; in nvme_construct_child_bios()
469 (bp->bio_cmd == BIO_READ || bp->bio_cmd == BIO_WRITE)) { in nvme_ns_bio_process()
476 switch (bp->bio_cmd) { in nvme_ns_bio_process()
/freebsd/sys/dev/ofw/
H A Dofw_disk.c83 switch (bp->bio_cmd) { in ofwd_startio()
119 if (bp->bio_cmd == BIO_GETATTR) { in ofwd_kthread()
/freebsd/sys/geom/mirror/
H A Dg_mirror.c931 if ((bp->bio_cmd == BIO_FLUSH || bp->bio_cmd == BIO_SPEEDUP) && in g_mirror_regular_request_error()
946 bp->bio_cmd == BIO_READ) in g_mirror_regular_request_error()
969 if (bp->bio_cmd == BIO_WRITE || bp->bio_cmd == BIO_DELETE) in g_mirror_regular_request()
978 switch (bp->bio_cmd) { in g_mirror_regular_request()
1011 if (pbp->bio_cmd == BIO_WRITE || in g_mirror_regular_request()
1012 pbp->bio_cmd == BIO_DELETE) { in g_mirror_regular_request()
1025 switch (pbp->bio_cmd) { in g_mirror_regular_request()
1037 switch (pbp->bio_cmd) { in g_mirror_regular_request()
1078 if (pbp->bio_cmd == BIO_WRITE || pbp->bio_cmd == BIO_DELETE) { in g_mirror_regular_request()
1086 KASSERT(1 == 0, ("Invalid request: %u.", pbp->bio_cmd)); in g_mirror_regular_request()
[all …]
/freebsd/sys/geom/shsec/
H A Dg_shsec.c260 if (pbp->bio_cmd == BIO_READ) { in g_shsec_done()
315 switch (bp->bio_cmd) { in g_shsec_start()
337 if (bp->bio_cmd == BIO_READ) in g_shsec_start()
352 if (bp->bio_cmd == BIO_READ || bp->bio_cmd == BIO_WRITE) { in g_shsec_start()
359 if (bp->bio_cmd == BIO_WRITE) { in g_shsec_start()

1234