Home
last modified time | relevance | path

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

1234

/freebsd/sys/geom/
H A Dgeom_io.c202 bp2->bio_cmd = bp->bio_cmd; in g_clone_bio()
247 bp2->bio_cmd = bp->bio_cmd; in g_duplicate_bio()
315 bp->bio_cmd = BIO_ZONE; in g_io_zonecmd()
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()
523 cmd = bp->bio_cmd; in g_io_request()
531 bp->bio_cmd)); in g_io_request()
890 bp->bio_cmd = BIO_READ; in g_read_data()
[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/altera/sdcard/
H A Daltera_sdcard_io.c300 switch (bp->bio_cmd) { in altera_sdcard_io_start_internal()
371 switch (bp->bio_cmd) { in altera_sdcard_io_complete()
400 __func__, bp->bio_cmd == BIO_READ ? "BIO_READ" : in altera_sdcard_io_complete()
401 (bp->bio_cmd == BIO_WRITE ? "BIO_WRITE" : in altera_sdcard_io_complete()
421 __func__, bp->bio_cmd == BIO_READ ? "BIO_READ" : in altera_sdcard_io_complete()
422 (bp->bio_cmd == BIO_WRITE ? "write" : "unknown"), in altera_sdcard_io_complete()
427 switch (bp->bio_cmd) { in altera_sdcard_io_complete()
438 bp->bio_cmd); in altera_sdcard_io_complete()
/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/dev/fdc/
H A Dfdc.c883 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()
961 bp->bio_cmd == BIO_WRITE || in fdc_worker()
962 bp->bio_cmd == BIO_FMT) in fdc_worker()
976 bp->bio_cmd == BIO_FMT) in fdc_worker()
979 bp->bio_cmd == BIO_FMT) in fdc_worker()
983 switch(bp->bio_cmd) { in fdc_worker()
1112 switch(bp->bio_cmd) { in fdc_worker()
1280 bp->bio_cmd = cmd; in fdmisccmd()
[all …]
/freebsd/sys/cam/
H A Dcam_iosched.c1384 if (bp->bio_cmd == BIO_WRITE) { in cam_iosched_get_write()
1572 if (bp->bio_cmd == BIO_READ) { in cam_iosched_next_bio()
1587 if (bp->bio_cmd == BIO_WRITE) { in cam_iosched_next_bio()
1610 if (bp->bio_cmd == BIO_READ) { in cam_iosched_next_bio()
1648 if (bp->bio_cmd == BIO_SPEEDUP) { in cam_iosched_queue_work()
1683 if (bp->bio_cmd == BIO_DELETE) { in cam_iosched_queue_work()
1695 (bp->bio_cmd != BIO_READ)) { in cam_iosched_queue_work()
1702 if (bp->bio_cmd == BIO_WRITE) { in cam_iosched_queue_work()
1716 if (bp->bio_cmd == BIO_READ) { in cam_iosched_queue_work()
1763 if (bp->bio_cmd == BIO_WRITE) { in cam_iosched_bio_complete()
[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/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()
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 == BIO_WRITE) { in vtblk_request_execute_cb()
1101 if (bp->bio_cmd == BIO_READ) in vtblk_request_execute_cb()
1127 switch (bp->bio_cmd) { in vtblk_request_execute_cb()
1194 switch (bp->bio_cmd) { in vtblk_queue_completed()
1407 buf.bio_cmd = BIO_READ; in vtblk_ident()
1540 buf.bio_cmd = BIO_WRITE; in vtblk_dump_write()
[all …]
/freebsd/sys/cam/ctl/
H A Dctl_backend_block.c209 int bio_cmd; member
399 if (bio_cmd == BIO_FLUSH) { in ctl_be_block_io_error()
409 switch (bio_cmd) { in ctl_be_block_io_error()
1270 bio->bio_cmd = beio->bio_cmd; in ctl_be_block_dispatch_dev()
1379 beio->bio_cmd = BIO_FLUSH; in ctl_be_block_cw_dispatch_sync()
1445 beio->bio_cmd = BIO_WRITE; in ctl_be_block_cw_dispatch_ws()
1535 beio->bio_cmd = BIO_DELETE; in ctl_be_block_cw_dispatch_unmap()
1553 beio->bio_cmd = BIO_FLUSH; in ctl_be_block_cw_dispatch_flush()
1614 beio->bio_cmd = BIO_WRITE; in ctl_be_block_cw_dispatch_wz()
1749 beio->bio_cmd = -1; in ctl_be_block_scsi_cr_dispatch()
[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()
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()
1117 if (bp->bio_cmd == BIO_WRITE && bp->bio_error) { 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/vinum/
H A Dgeom_vinum_plex.c259 if (bp->bio_cmd == BIO_READ) in gv_plex_normal_request()
341 switch (bp->bio_parent->bio_cmd) { in gv_plex_raid5_done()
427 if (pbp->bio_cmd == BIO_WRITE && in gv_plex_raid5_done()
583 bp->bio_cmd = type; in gv_sync_request()
621 if (bp->bio_cmd == BIO_READ) { in gv_sync_complete()
625 } else if (bp->bio_cmd == BIO_WRITE) { in gv_sync_complete()
691 bp->bio_cmd = type; in gv_grow_request()
727 if (bp->bio_cmd == BIO_READ) { in gv_grow_complete()
732 } else if (bp->bio_cmd == BIO_WRITE) { in gv_grow_complete()
797 bp->bio_cmd = BIO_WRITE; in gv_init_request()
[all …]
H A Dgeom_vinum_raid5.c224 cbp->bio_cmd = BIO_READ; in gv_raid5_check()
237 cbp->bio_cmd = BIO_READ; in gv_raid5_check()
319 cbp->bio_cmd = BIO_READ; in gv_raid5_rebuild()
402 bp->bio_pflags & GV_BIO_SYNCREQ && bp->bio_cmd == BIO_WRITE) { in gv_raid5_request()
428 switch (bp->bio_cmd) { in gv_raid5_request()
487 cbp->bio_cmd = BIO_READ; in gv_raid5_request()
527 cbp->bio_cmd = BIO_READ; in gv_raid5_request()
539 cbp->bio_cmd = BIO_READ; in gv_raid5_request()
/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()
611 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()
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()
1170 switch (bp->bio_cmd) { in mdstart_null()
1226 if (bp->bio_cmd == BIO_GETATTR) { in md_kthread()
[all …]
/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.c392 child->bio_cmd = bp->bio_cmd; in nvme_construct_child_bios()
456 (bp->bio_cmd == BIO_READ || bp->bio_cmd == BIO_WRITE)) { in nvme_ns_bio_process()
463 switch (bp->bio_cmd) { in nvme_ns_bio_process()
/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/dev/ofw/
H A Dofw_disk.c83 switch (bp->bio_cmd) { in ofwd_startio()
119 if (bp->bio_cmd == BIO_GETATTR) { in ofwd_kthread()

1234