Home
last modified time | relevance | path

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

1234

/freebsd-14-stable/sys/geom/
HDgeom_io.c200 bp2->bio_cmd = bp->bio_cmd; in g_clone_bio()
217 if (bp->bio_cmd == BIO_ZONE) in g_clone_bio()
245 bp2->bio_cmd = bp->bio_cmd; in g_duplicate_bio()
293 bp->bio_cmd = BIO_GETATTR; in g_io_getattr()
313 bp->bio_cmd = BIO_ZONE; in g_io_zonecmd()
358 bp->bio_cmd = BIO_SPEEDUP; in g_io_speedup()
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()
[all …]
HDgeom_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-stable/sys/dev/altera/sdcard/
HDaltera_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-stable/sys/kern/
HDsubr_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()
HDsubr_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-stable/sys/dev/fdc/
HDfdc.c719 if (bp->bio_cmd == BIO_READ) { in fdc_pio()
792 bp->bio_cmd == BIO_READ ? ISADMA_READ : ISADMA_WRITE, in fdc_worker()
837 if (bp->bio_cmd == BIO_FMT) { in fdc_worker()
851 if (bp->bio_cmd == BIO_PROBE) { in fdc_worker()
885 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()
958 bp->bio_cmd, bp->bio_pblkno, fd->fd_iosize, in fdc_worker()
962 if ((bp->bio_cmd == BIO_READ || in fdc_worker()
963 bp->bio_cmd == BIO_WRITE || in fdc_worker()
[all …]
/freebsd-14-stable/sys/cam/
HDcam_iosched.c1382 if (bp->bio_cmd == BIO_WRITE) { in cam_iosched_get_write()
1388 printf("HWQ : %p %#x\n", bp, bp->bio_cmd); 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()
1612 } else if (bp->bio_cmd == BIO_WRITE) { in cam_iosched_next_bio()
1619 printf("HWQ : %p %#x\n", bp, bp->bio_cmd); in cam_iosched_next_bio()
1646 if (bp->bio_cmd == BIO_SPEEDUP) { in cam_iosched_queue_work()
1674 if (bp->bio_cmd == BIO_FLUSH && isc->trim_ticks > 0) in cam_iosched_queue_work()
1681 if (bp->bio_cmd == BIO_DELETE) { in cam_iosched_queue_work()
[all …]
/freebsd-14-stable/sys/dev/nvdimm/
HDnvdimm_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-stable/sys/dev/virtio/block/
HDvirtio_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()
984 panic("%s: bio with unhandled cmd: %d", __func__, 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()
1104 } else if (bp->bio_cmd == BIO_DELETE) { in vtblk_request_execute_cb()
1128 switch (bp->bio_cmd) { in vtblk_request_execute_cb()
1195 switch (bp->bio_cmd) { in vtblk_queue_completed()
[all …]
/freebsd-14-stable/sys/geom/raid/
HDtr_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 …]
HDtr_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()
998 if (bp->bio_cmd == BIO_READ && bp->bio_error != 0) { 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()
[all …]
HDtr_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()
HDtr_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-stable/sys/geom/vinum/
HDgeom_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()
431 } else 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()
[all …]
HDgeom_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-stable/sys/cam/ctl/
HDctl_backend_block.c209 int bio_cmd; member
465 if ((beio->bio_cmd == BIO_READ) in ctl_be_block_move_done()
554 } else if (beio->bio_cmd == BIO_FLUSH) { in ctl_be_block_biodone()
561 beio->bio_cmd == BIO_READ); in ctl_be_block_biodone()
571 if ((beio->bio_cmd == BIO_WRITE) in ctl_be_block_biodone()
572 || (beio->bio_cmd == BIO_FLUSH) in ctl_be_block_biodone()
573 || (beio->bio_cmd == BIO_DELETE) in ctl_be_block_biodone()
653 if (beio->bio_cmd == BIO_WRITE && ARGS(io)->flags & CTL_LLF_FUA) in ctl_be_block_dispatch_file()
657 if (beio->bio_cmd == BIO_READ) { in ctl_be_block_dispatch_file()
679 if (beio->bio_cmd == BIO_READ) { in ctl_be_block_dispatch_file()
[all …]
/freebsd-14-stable/sys/dev/ida/
HDida_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-stable/sys/geom/bde/
HDg_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-stable/sys/powerpc/ps3/
HDps3disk.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-stable/sys/dev/flash/
HDat45d.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-stable/sys/dev/md/
HDmd.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()
684 } else if (bp->bio_cmd == BIO_READ) { in mdstart_malloc()
723 } else if (bp->bio_cmd == BIO_WRITE) { in mdstart_malloc()
854 switch (bp->bio_cmd) { in mdstart_preload()
908 switch (bp->bio_cmd) { in mdstart_vnode()
982 if (bp->bio_cmd == BIO_READ) { in mdstart_vnode()
1028 switch (bp->bio_cmd) { in mdstart_swap()
1061 if (bp->bio_cmd == BIO_READ) { in mdstart_swap()
[all …]
/freebsd-14-stable/sys/dev/nvme/
HDnvme_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-stable/sys/geom/eli/
HDg_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-stable/sys/geom/union/
HDg_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-14-stable/sys/dev/ofw/
HDofw_disk.c84 switch (bp->bio_cmd) { in ofwd_startio()
120 if (bp->bio_cmd == BIO_GETATTR) { in ofwd_kthread()

1234