Home
last modified time | relevance | path

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

1234

/NextBSD/sys/geom/
HDgeom_io.c204 bp2->bio_cmd = bp->bio_cmd; in g_clone_bio()
246 bp2->bio_cmd = bp->bio_cmd; in g_duplicate_bio()
288 bp->bio_cmd = BIO_GETATTR; in g_io_getattr()
308 bp->bio_cmd = BIO_FLUSH; in g_io_flush()
333 switch(bp->bio_cmd) { in g_io_check()
354 switch(bp->bio_cmd) { in g_io_check()
401 (bp->bio_cmd == BIO_READ || bp->bio_cmd == BIO_WRITE)) { in g_io_check()
496 if (bp->bio_cmd & (BIO_READ|BIO_WRITE|BIO_GETATTR)) { in g_io_request()
498 ("NULL bp->data in g_io_request(cmd=%hhu)", bp->bio_cmd)); in g_io_request()
500 if (bp->bio_cmd & (BIO_DELETE|BIO_FLUSH)) { in g_io_request()
[all …]
HDgeom_dev.c608 KASSERT(bp->bio_cmd == BIO_READ || in g_dev_strategy()
609 bp->bio_cmd == BIO_WRITE || in g_dev_strategy()
610 bp->bio_cmd == BIO_DELETE || in g_dev_strategy()
611 bp->bio_cmd == BIO_FLUSH, in g_dev_strategy()
612 ("Wrong bio_cmd bio=%p cmd=%d", bp, bp->bio_cmd)); in g_dev_strategy()
646 bp2->bio_data, bp2->bio_cmd); in g_dev_strategy()
/NextBSD/sys/dev/altera/sdcard/
HDaltera_sdcard_io.c297 switch (bp->bio_cmd) { in altera_sdcard_io_start_internal()
314 bp->bio_cmd); in altera_sdcard_io_start_internal()
368 switch (bp->bio_cmd) { in altera_sdcard_io_complete()
397 __func__, bp->bio_cmd == BIO_READ ? "BIO_READ" : in altera_sdcard_io_complete()
398 (bp->bio_cmd == BIO_WRITE ? "BIO_WRITE" : in altera_sdcard_io_complete()
418 __func__, bp->bio_cmd == BIO_READ ? "BIO_READ" : in altera_sdcard_io_complete()
419 (bp->bio_cmd == BIO_WRITE ? "write" : "unknown"), in altera_sdcard_io_complete()
424 switch (bp->bio_cmd) { in altera_sdcard_io_complete()
435 bp->bio_cmd); in altera_sdcard_io_complete()
/NextBSD/sys/dev/nand/
HDnand_geom.c103 bp->bio_cmd == BIO_READ ? "READ" : in nand_strategy()
104 (bp->bio_cmd == BIO_WRITE ? "WRITE" : in nand_strategy()
105 (bp->bio_cmd == BIO_DELETE ? "DELETE" : "UNKNOWN")), in nand_strategy()
125 bp->bio_cmd == BIO_READ ? "READ" : in nand_strategy_raw()
126 (bp->bio_cmd == BIO_WRITE ? "WRITE" : in nand_strategy_raw()
127 (bp->bio_cmd == BIO_DELETE ? "DELETE" : "UNKNOWN")), in nand_strategy_raw()
323 if (bp->bio_cmd == BIO_READ) { in nand_io_proc()
327 } else if (bp->bio_cmd == BIO_WRITE) { in nand_io_proc()
333 if (bp->bio_cmd == BIO_READ) { in nand_io_proc()
337 } else if (bp->bio_cmd == BIO_WRITE) { in nand_io_proc()
[all …]
/NextBSD/sys/geom/raid/
HDtr_raid1.c260 bp->bio_cmd = BIO_READ; in g_raid_tr_raid1_rebuild_some()
633 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()
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.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()
874 bp->bio_cmd, vol->v_name)); in g_raid_tr_iostart_raid1e()
897 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 …]
HDtr_raid0.c204 if (bp->bio_cmd == BIO_FLUSH) { 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()
HDtr_concat.c224 if (bp->bio_cmd == BIO_FLUSH) { in g_raid_tr_iostart_concat()
253 bp->bio_cmd != BIO_DELETE) { in g_raid_tr_iostart_concat()
264 if (bp->bio_cmd != BIO_DELETE) in g_raid_tr_iostart_concat()
/NextBSD/sys/geom/vinum/
HDgeom_vinum_plex.c259 if (bp->bio_cmd == BIO_READ) in gv_plex_normal_request()
340 switch (bp->bio_parent->bio_cmd) { in gv_plex_raid5_done()
426 if (pbp->bio_cmd == BIO_WRITE && in gv_plex_raid5_done()
429 } else if (pbp->bio_cmd == BIO_WRITE && in gv_plex_raid5_done()
585 bp->bio_cmd = type; in gv_sync_request()
623 if (bp->bio_cmd == BIO_READ) { in gv_sync_complete()
627 } else if (bp->bio_cmd == BIO_WRITE) { in gv_sync_complete()
693 bp->bio_cmd = type; in gv_grow_request()
729 if (bp->bio_cmd == BIO_READ) { in gv_grow_complete()
734 } else if (bp->bio_cmd == BIO_WRITE) { in gv_grow_complete()
[all …]
HDgeom_vinum_raid5.c221 cbp->bio_cmd = BIO_READ; in gv_raid5_check()
234 cbp->bio_cmd = BIO_READ; in gv_raid5_check()
316 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()
/NextBSD/sys/dev/md/
HDmd.c433 if ((bp->bio_cmd == BIO_READ) || (bp->bio_cmd == BIO_WRITE)) { in g_md_start()
602 switch (bp->bio_cmd) { in mdstart_malloc()
631 if (bp->bio_cmd == BIO_DELETE) { in mdstart_malloc()
634 } else if (bp->bio_cmd == BIO_READ) { in mdstart_malloc()
673 } else if (bp->bio_cmd == BIO_WRITE) { in mdstart_malloc()
804 switch (bp->bio_cmd) { in mdstart_preload()
842 switch (bp->bio_cmd) { in mdstart_vnode()
871 if (bp->bio_cmd == BIO_FLUSH) { in mdstart_vnode()
885 if (bp->bio_cmd == BIO_DELETE) { in mdstart_vnode()
986 switch (bp->bio_cmd) { in mdstart_swap()
[all …]
/NextBSD/sys/dev/fdc/
HDfdc.c871 if (bp->bio_cmd == BIO_READ) { in fdc_pio()
944 bp->bio_cmd & BIO_READ ? ISADMA_READ : ISADMA_WRITE, in fdc_worker()
986 if (bp->bio_cmd & BIO_FMT) { in fdc_worker()
1024 if (bp->bio_cmd & BIO_PROBE) { in fdc_worker()
1062 if (bp->bio_cmd & (BIO_FMT | BIO_WRITE)) { in fdc_worker()
1081 if (fdc->retry == 0 && bp->bio_cmd & (BIO_READ|BIO_WRITE)) { in fdc_worker()
1084 } else if (bp->bio_cmd & (BIO_READ|BIO_WRITE)) { in fdc_worker()
1140 bp->bio_cmd, bp->bio_pblkno, fd->fd_iosize, in fdc_worker()
1144 if ((bp->bio_cmd & (BIO_READ|BIO_WRITE|BIO_FMT)) in fdc_worker()
1147 bp->bio_cmd & BIO_READ ? ISADMA_READ : ISADMA_WRITE, in fdc_worker()
[all …]
/NextBSD/sys/cam/ctl/
HDctl_backend_block.c199 int bio_cmd; member
450 if ((beio->bio_cmd == BIO_READ) in ctl_be_block_move_done()
530 } else if (beio->bio_cmd == BIO_FLUSH) { in ctl_be_block_biodone()
537 beio->bio_cmd == BIO_READ); in ctl_be_block_biodone()
547 if ((beio->bio_cmd == BIO_WRITE) in ctl_be_block_biodone()
548 || (beio->bio_cmd == BIO_FLUSH) in ctl_be_block_biodone()
549 || (beio->bio_cmd == BIO_DELETE) in ctl_be_block_biodone()
636 if (beio->bio_cmd == BIO_WRITE && ARGS(io)->flags & CTL_LLF_FUA) in ctl_be_block_dispatch_file()
640 if (beio->bio_cmd == BIO_READ) { in ctl_be_block_dispatch_file()
664 if (beio->bio_cmd == BIO_READ) { in ctl_be_block_dispatch_file()
[all …]
/NextBSD/sys/geom/eli/
HDg_eli_privacy.c258 if (bp->bio_cmd == BIO_WRITE) in g_eli_crypto_run()
266 if (bp->bio_cmd == BIO_READ) in g_eli_crypto_run()
284 if (bp->bio_cmd == BIO_WRITE) in g_eli_crypto_run()
298 if (bp->bio_cmd == BIO_WRITE) in g_eli_crypto_run()
HDg_eli_integrity.c435 if (bp->bio_cmd == BIO_READ) { in g_eli_auth_run()
464 if (bp->bio_cmd == BIO_READ) { in g_eli_auth_run()
484 if (bp->bio_cmd == BIO_WRITE) { in g_eli_auth_run()
501 if (bp->bio_cmd == BIO_WRITE) in g_eli_auth_run()
/NextBSD/sys/dev/mmc/
HDmmcsd.c342 if (bp->bio_cmd == BIO_READ) { in mmcsd_rw()
359 if (bp->bio_cmd == BIO_READ) in mmcsd_rw()
495 bp.bio_cmd = BIO_WRITE; in mmcsd_dump()
523 if (bp->bio_cmd != BIO_READ && mmc_get_read_only(dev)) { in mmcsd_task()
534 if (bp->bio_cmd == BIO_READ || bp->bio_cmd == BIO_WRITE) { in mmcsd_task()
539 } else if (bp->bio_cmd == BIO_DELETE) { in mmcsd_task()
/NextBSD/sys/geom/bde/
HDg_bde_work.c431 if (wp->bp->bio_cmd == BIO_DELETE) { in g_bde_write_done()
438 KASSERT(wp->bp->bio_cmd == BIO_WRITE, ("Confused in g_bde_write_done()")); in g_bde_write_done()
469 bp->bio_cmd = BIO_WRITE; in g_bde_start_write()
524 bp->bio_cmd = BIO_READ; in g_bde_start_read()
581 if (wp->bp->bio_cmd == BIO_READ && wp->sp->state == IO) in g_bde_worker()
588 switch(wp->bp->bio_cmd) { in g_bde_worker()
685 switch (wp->bp->bio_cmd) { in g_bde_start2()
723 ("Wrong bio_cmd %d in g_bde_start2", wp->bp->bio_cmd)); in g_bde_start2()
/NextBSD/sys/powerpc/ps3/
HDps3disk.c372 __func__, bp->bio_cmd); in ps3disk_strategy()
375 if (bp->bio_cmd == BIO_FLUSH) { in ps3disk_strategy()
382 } else if (bp->bio_cmd == BIO_READ || bp->bio_cmd == BIO_WRITE) { in ps3disk_strategy()
436 (bp->bio_cmd == BIO_READ) ? "Read" : "Write", in ps3disk_intr()
447 if (bp->bio_cmd == BIO_READ) in ps3disk_intr()
614 if (bp->bio_cmd == BIO_READ) { in ps3disk_transfer()
/NextBSD/sys/mips/cavium/
HDocteon_ebt3000_cf.c218 if(bp->bio_cmd & BIO_GETATTR) { in cf_start()
227 if ((bp->bio_cmd & (BIO_READ | BIO_WRITE))) { in cf_start()
229 if (bp->bio_cmd & BIO_READ) { in cf_start()
232 } else if (bp->bio_cmd & BIO_WRITE) { in cf_start()
236 printf("%s: unrecognized bio_cmd %x.\n", __func__, bp->bio_cmd); in cf_start()
/NextBSD/sys/dev/virtio/block/
HDvirtio_blk.c546 (bp->bio_cmd == BIO_WRITE || bp->bio_cmd == BIO_FLUSH)) { in vtblk_strategy()
866 switch (bp->bio_cmd) { in vtblk_request_bio()
879 panic("%s: bio with unhandled cmd: %d", __func__, bp->bio_cmd); in vtblk_request_bio()
921 if (bp->bio_cmd == BIO_READ || bp->bio_cmd == BIO_WRITE) { in vtblk_request_execute()
929 if (bp->bio_cmd == BIO_READ) in vtblk_request_execute()
1151 buf.bio_cmd = BIO_READ; in vtblk_ident()
1283 buf.bio_cmd = BIO_WRITE; in vtblk_dump_write()
1305 buf.bio_cmd = BIO_FLUSH; in vtblk_dump_flush()
/NextBSD/sys/dev/nvme/
HDnvme_ns.c391 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()
/NextBSD/sys/dev/flash/
HDat45d.c337 switch (bp->bio_cmd) { in at45d_task()
363 if (bp->bio_cmd == BIO_WRITE) { in at45d_task()
389 if (err == 0 && bp->bio_cmd != BIO_READ) in at45d_task()
395 if (bp->bio_cmd == BIO_WRITE) { in at45d_task()
/NextBSD/sys/kern/
HDsubr_disk.c45 switch(bp->bio_cmd) { in disk_err()
51 default: printf("cmd=%x ", bp->bio_cmd); break; in disk_err()
HDkern_physio.c115 bp->bio_cmd = BIO_READ; in physio()
118 bp->bio_cmd = BIO_WRITE; in physio()
/NextBSD/sys/dev/ofw/
HDofw_disk.c84 switch (bp->bio_cmd) { in ofwd_startio()
120 if (bp->bio_cmd == BIO_GETATTR) { in ofwd_kthread()

1234