Home
last modified time | relevance | path

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

1234

/freebsd-14.2/sys/geom/
H A Dgeom_io.c200 bp2->bio_cmd = bp->bio_cmd; in g_clone_bio()
245 bp2->bio_cmd = bp->bio_cmd; in g_duplicate_bio()
313 bp->bio_cmd = BIO_ZONE; in g_io_zonecmd()
377 bp->bio_cmd = BIO_FLUSH; in g_io_flush()
404 switch(bp->bio_cmd) { in g_io_check()
434 switch(bp->bio_cmd) { in g_io_check()
481 (bp->bio_cmd == BIO_READ || bp->bio_cmd == BIO_WRITE)) { in g_io_check()
521 cmd = bp->bio_cmd; in g_io_request()
529 bp->bio_cmd)); in g_io_request()
883 bp->bio_cmd = BIO_READ; in g_read_data()
[all …]
H A Dgeom_dev.c730 if (bp2->bio_cmd == BIO_ZONE) in g_dev_done()
738 if (bp->bio_cmd == BIO_READ) in g_dev_done()
740 if (bp->bio_cmd == BIO_WRITE) in g_dev_done()
764 KASSERT(bp->bio_cmd == BIO_READ || in g_dev_strategy()
765 bp->bio_cmd == BIO_WRITE || in g_dev_strategy()
766 bp->bio_cmd == BIO_DELETE || in g_dev_strategy()
767 bp->bio_cmd == BIO_FLUSH || in g_dev_strategy()
768 bp->bio_cmd == BIO_ZONE, in g_dev_strategy()
769 ("Wrong bio_cmd bio=%p cmd=%d", bp, bp->bio_cmd)); in g_dev_strategy()
802 bp2->bio_data, bp2->bio_cmd); in g_dev_strategy()
/freebsd-14.2/sys/dev/altera/sdcard/
H A Daltera_sdcard_io.c301 switch (bp->bio_cmd) { in altera_sdcard_io_start_internal()
372 switch (bp->bio_cmd) { in altera_sdcard_io_complete()
401 __func__, bp->bio_cmd == BIO_READ ? "BIO_READ" : in altera_sdcard_io_complete()
402 (bp->bio_cmd == BIO_WRITE ? "BIO_WRITE" : in altera_sdcard_io_complete()
422 __func__, bp->bio_cmd == BIO_READ ? "BIO_READ" : in altera_sdcard_io_complete()
423 (bp->bio_cmd == BIO_WRITE ? "write" : "unknown"), in altera_sdcard_io_complete()
428 switch (bp->bio_cmd) { in altera_sdcard_io_complete()
439 bp->bio_cmd); in altera_sdcard_io_complete()
/freebsd-14.2/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.c357 if (bp->bio_cmd == BIO_DELETE) in devstat_end_transaction_bio_bt()
359 else if ((bp->bio_cmd == BIO_READ) in devstat_end_transaction_bio_bt()
360 || ((bp->bio_cmd == BIO_ZONE) in devstat_end_transaction_bio_bt()
363 else if (bp->bio_cmd == BIO_WRITE) in devstat_end_transaction_bio_bt()
/freebsd-14.2/sys/dev/fdc/
H A Dfdc.c885 if (bp->bio_cmd == BIO_FMT || bp->bio_cmd == BIO_WRITE) { in fdc_worker()
905 (bp->bio_cmd == BIO_READ || bp->bio_cmd == BIO_WRITE)) { in fdc_worker()
908 } else if (bp->bio_cmd == BIO_READ || bp->bio_cmd == BIO_WRITE) { in fdc_worker()
963 bp->bio_cmd == BIO_WRITE || in fdc_worker()
964 bp->bio_cmd == BIO_FMT) in fdc_worker()
978 bp->bio_cmd == BIO_FMT) in fdc_worker()
981 bp->bio_cmd == BIO_FMT) in fdc_worker()
985 switch(bp->bio_cmd) { in fdc_worker()
1114 switch(bp->bio_cmd) { in fdc_worker()
1282 bp->bio_cmd = cmd; in fdmisccmd()
[all …]
/freebsd-14.2/sys/cam/
H A Dcam_iosched.c1382 if (bp->bio_cmd == BIO_WRITE) { in cam_iosched_get_write()
1570 if (bp->bio_cmd == BIO_READ) { in cam_iosched_next_bio()
1585 if (bp->bio_cmd == BIO_WRITE) { in cam_iosched_next_bio()
1608 if (bp->bio_cmd == BIO_READ) { in cam_iosched_next_bio()
1646 if (bp->bio_cmd == BIO_SPEEDUP) { in cam_iosched_queue_work()
1681 if (bp->bio_cmd == BIO_DELETE) { in cam_iosched_queue_work()
1693 (bp->bio_cmd != BIO_READ)) { in cam_iosched_queue_work()
1700 if (bp->bio_cmd == BIO_WRITE) { in cam_iosched_queue_work()
1714 if (bp->bio_cmd == BIO_READ) { in cam_iosched_queue_work()
1761 if (bp->bio_cmd == BIO_WRITE) { in cam_iosched_bio_complete()
[all …]
/freebsd-14.2/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-14.2/sys/dev/virtio/block/
H A Dvirtio_blk.c620 if ((bp->bio_cmd != BIO_READ) && (bp->bio_cmd != BIO_WRITE) && in vtblk_strategy()
621 (bp->bio_cmd != BIO_FLUSH) && (bp->bio_cmd != BIO_DELETE)) { in vtblk_strategy()
966 switch (bp->bio_cmd) { in vtblk_request_bio()
1007 (bp->bio_cmd == BIO_READ || bp->bio_cmd == BIO_WRITE)) { in vtblk_request_execute()
1078 if (bp->bio_cmd == BIO_READ || bp->bio_cmd == BIO_WRITE) { in vtblk_request_execute_cb()
1102 if (bp->bio_cmd == BIO_READ) in vtblk_request_execute_cb()
1128 switch (bp->bio_cmd) { in vtblk_request_execute_cb()
1195 switch (bp->bio_cmd) { in vtblk_queue_completed()
1408 buf.bio_cmd = BIO_READ; in vtblk_ident()
1541 buf.bio_cmd = BIO_WRITE; in vtblk_dump_write()
[all …]
/freebsd-14.2/sys/geom/raid/
H A Dtr_raid1.c261 bp->bio_cmd = BIO_READ; in g_raid_tr_raid1_rebuild_some()
633 switch (bp->bio_cmd) { in g_raid_tr_iostart_raid1()
647 bp->bio_cmd, vol->v_name)); in g_raid_tr_iostart_raid1()
682 if (bp->bio_cmd == BIO_READ) { in g_raid_tr_iodone_raid1()
705 bp->bio_cmd = BIO_WRITE; in g_raid_tr_iodone_raid1()
772 if (bp->bio_cmd == BIO_READ && bp->bio_error != 0) { in g_raid_tr_iodone_raid1()
831 if (bp->bio_cmd == BIO_READ && in g_raid_tr_iodone_raid1()
850 cbp->bio_cmd = BIO_WRITE; in g_raid_tr_iodone_raid1()
868 if (bp->bio_cmd == BIO_WRITE && bp->bio_error) { in g_raid_tr_iodone_raid1()
882 if (pbp->bio_cmd != BIO_READ) { in g_raid_tr_iodone_raid1()
[all …]
H A Dtr_raid1e.c477 bp->bio_cmd = BIO_READ; in g_raid_tr_raid1e_rebuild_some()
798 bp->bio_cmd != BIO_DELETE) { in g_raid_tr_iostart_raid1e_write()
815 if (bp->bio_cmd != BIO_DELETE) in g_raid_tr_iostart_raid1e_write()
862 switch (bp->bio_cmd) { in g_raid_tr_iostart_raid1e()
876 bp->bio_cmd, vol->v_name)); in g_raid_tr_iostart_raid1e()
899 if (bp->bio_cmd == BIO_READ) { in g_raid_tr_iodone_raid1e()
922 bp->bio_cmd = BIO_WRITE; in g_raid_tr_iodone_raid1e()
1068 if (bp->bio_cmd == BIO_READ && in g_raid_tr_iodone_raid1e()
1087 cbp->bio_cmd = BIO_WRITE; in g_raid_tr_iodone_raid1e()
1118 if (bp->bio_cmd == BIO_WRITE && bp->bio_error) { in g_raid_tr_iodone_raid1e()
[all …]
H A Dtr_raid0.c205 if (bp->bio_cmd == BIO_FLUSH || bp->bio_cmd == BIO_SPEEDUP) { in g_raid_tr_iostart_raid0()
235 bp->bio_cmd != BIO_DELETE) { in g_raid_tr_iostart_raid0()
250 if (bp->bio_cmd != BIO_DELETE) in g_raid_tr_iostart_raid0()
H A Dtr_concat.c224 if (bp->bio_cmd == BIO_FLUSH || bp->bio_cmd == BIO_SPEEDUP) { in g_raid_tr_iostart_concat()
255 bp->bio_cmd != BIO_DELETE) { in g_raid_tr_iostart_concat()
266 if (bp->bio_cmd != BIO_DELETE) in g_raid_tr_iostart_concat()
/freebsd-14.2/sys/geom/vinum/
H A Dgeom_vinum_plex.c260 if (bp->bio_cmd == BIO_READ) in gv_plex_normal_request()
342 switch (bp->bio_parent->bio_cmd) { in gv_plex_raid5_done()
428 if (pbp->bio_cmd == BIO_WRITE && in gv_plex_raid5_done()
584 bp->bio_cmd = type; in gv_sync_request()
622 if (bp->bio_cmd == BIO_READ) { in gv_sync_complete()
626 } else if (bp->bio_cmd == BIO_WRITE) { in gv_sync_complete()
692 bp->bio_cmd = type; in gv_grow_request()
728 if (bp->bio_cmd == BIO_READ) { in gv_grow_complete()
733 } else if (bp->bio_cmd == BIO_WRITE) { in gv_grow_complete()
798 bp->bio_cmd = BIO_WRITE; in gv_init_request()
[all …]
H A Dgeom_vinum_raid5.c225 cbp->bio_cmd = BIO_READ; in gv_raid5_check()
238 cbp->bio_cmd = BIO_READ; in gv_raid5_check()
320 cbp->bio_cmd = BIO_READ; in gv_raid5_rebuild()
403 bp->bio_pflags & GV_BIO_SYNCREQ && bp->bio_cmd == BIO_WRITE) { in gv_raid5_request()
429 switch (bp->bio_cmd) { in gv_raid5_request()
488 cbp->bio_cmd = BIO_READ; in gv_raid5_request()
528 cbp->bio_cmd = BIO_READ; in gv_raid5_request()
540 cbp->bio_cmd = BIO_READ; in gv_raid5_request()
/freebsd-14.2/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-14.2/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-14.2/sys/cam/ctl/
H A Dctl_backend_block.c209 int bio_cmd; member
465 if ((beio->bio_cmd == BIO_READ) in ctl_be_block_move_done()
1103 bio->bio_cmd = BIO_FLUSH; in ctl_be_block_flush_dev()
1249 bio->bio_cmd = beio->bio_cmd; in ctl_be_block_dispatch_dev()
1325 beio->bio_cmd = BIO_FLUSH; in ctl_be_block_cw_dispatch_sync()
1382 beio->bio_cmd = BIO_DELETE; in ctl_be_block_cw_dispatch_ws()
1389 beio->bio_cmd = BIO_WRITE; in ctl_be_block_cw_dispatch_ws()
1477 beio->bio_cmd = BIO_DELETE; in ctl_be_block_cw_dispatch_unmap()
1511 beio->bio_cmd = -1; in ctl_be_block_cr_dispatch()
1659 beio->bio_cmd = BIO_WRITE; in ctl_be_block_dispatch()
[all …]
/freebsd-14.2/sys/geom/bde/
H A Dg_bde_work.c445 if (wp->bp->bio_cmd == BIO_DELETE) { in g_bde_write_done()
452 KASSERT(wp->bp->bio_cmd == BIO_WRITE, ("Confused in g_bde_write_done()")); in g_bde_write_done()
483 bp->bio_cmd = BIO_WRITE; in g_bde_start_write()
538 bp->bio_cmd = BIO_READ; in g_bde_start_read()
595 if (wp->bp->bio_cmd == BIO_READ && wp->sp->state == IO) in g_bde_worker()
602 switch(wp->bp->bio_cmd) { in g_bde_worker()
699 switch (wp->bp->bio_cmd) { in g_bde_start2()
737 ("Wrong bio_cmd %d in g_bde_start2", wp->bp->bio_cmd)); in g_bde_start2()
/freebsd-14.2/sys/powerpc/ps3/
H A Dps3disk.c370 __func__, bp->bio_cmd); in ps3disk_strategy()
373 if (bp->bio_cmd == BIO_FLUSH) { in ps3disk_strategy()
380 } else if (bp->bio_cmd == BIO_READ || bp->bio_cmd == BIO_WRITE) { in ps3disk_strategy()
434 (bp->bio_cmd == BIO_READ) ? "Read" : "Write", in ps3disk_intr()
445 if (bp->bio_cmd == BIO_READ) in ps3disk_intr()
612 if (bp->bio_cmd == BIO_READ) { in ps3disk_transfer()
/freebsd-14.2/sys/dev/md/
H A Dmd.c483 if ((bp->bio_cmd == BIO_READ) || (bp->bio_cmd == BIO_WRITE)) { in g_md_start()
650 switch (bp->bio_cmd) { in mdstart_malloc()
681 if (bp->bio_cmd == BIO_DELETE) { in mdstart_malloc()
854 switch (bp->bio_cmd) { in mdstart_preload()
892 switch (bp->bio_cmd) { in mdstart_vnode()
925 if (bp->bio_cmd == BIO_FLUSH) { in mdstart_vnode()
1032 switch (bp->bio_cmd) { in mdstart_swap()
1065 if (bp->bio_cmd == BIO_READ) { in mdstart_swap()
1176 switch (bp->bio_cmd) { in mdstart_null()
1232 if (bp->bio_cmd == BIO_GETATTR) { in md_kthread()
[all …]
/freebsd-14.2/sys/dev/flash/
H A Dat45d.c479 switch (bp->bio_cmd) { in at45d_task()
507 if (bp->bio_cmd == BIO_WRITE) { in at45d_task()
538 if (err == 0 && bp->bio_cmd != BIO_READ) in at45d_task()
544 if (bp->bio_cmd == BIO_WRITE) { in at45d_task()
570 if (bp->bio_cmd == BIO_READ) in at45d_task()
/freebsd-14.2/sys/geom/eli/
H A Dg_eli_integrity.c480 if (bp->bio_cmd == BIO_READ) { in g_eli_auth_run()
526 if (bp->bio_cmd == BIO_WRITE) in g_eli_auth_run()
537 if (bp->bio_cmd == BIO_WRITE) in g_eli_auth_run()
542 if (bp->bio_cmd == BIO_WRITE) { in g_eli_auth_run()
551 if (bp->bio_cmd == BIO_WRITE) { in g_eli_auth_run()
/freebsd-14.2/sys/dev/nvme/
H A Dnvme_ns.c394 child->bio_cmd = bp->bio_cmd; in nvme_construct_child_bios()
457 (bp->bio_cmd == BIO_READ || bp->bio_cmd == BIO_WRITE)) { in nvme_ns_bio_process()
464 switch (bp->bio_cmd) { in nvme_ns_bio_process()
/freebsd-14.2/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()

1234