/freebsd/sys/geom/eli/ |
H A D | g_eli_integrity.c | 152 nsec = bp->bio_length / decr_secsize; in g_eli_auth_read_done() 189 nsec = bp->bio_length / decr_secsize; in g_eli_auth_read_done() 218 nsec = bp->bio_length / decr_secsize; in g_eli_auth_read_done() 350 if (cbp->bio_length > maxphys) { in g_eli_auth_write_done() 352 cbp2->bio_length = cbp->bio_length - maxphys; in g_eli_auth_write_done() 357 cbp->bio_length = maxphys; in g_eli_auth_write_done() 395 size = cbp->bio_length; in g_eli_auth_read() 418 if (cbp->bio_length > maxphys) { in g_eli_auth_read() 420 cbp2->bio_length = cbp->bio_length - maxphys; in g_eli_auth_read() 425 cbp->bio_length = maxphys; in g_eli_auth_read() [all …]
|
H A D | g_eli_privacy.c | 71 iov[0].iov_len = bp->bio_length; in g_eli_bio_copyin() 75 uio.uio_resid = bp->bio_length; in g_eli_bio_copyin() 78 uiomove_fromphys(bp->bio_ma, bp->bio_ma_offset, bp->bio_length, &uio); in g_eli_bio_copyin() 271 nsec = bp->bio_length / secsize; in g_eli_crypto_run() 281 if (!g_eli_alloc_data(bp, bp->bio_length)) { in g_eli_crypto_run() 301 bcopy(bp->bio_data, data, bp->bio_length); in g_eli_crypto_run()
|
/freebsd/sys/geom/ |
H A D | geom_io.c | 212 bp2->bio_length = bp->bio_length; in g_clone_bio() 248 bp2->bio_length = bp->bio_length; in g_duplicate_bio() 298 bp->bio_length = *len; in g_io_getattr() 322 bp->bio_length = in g_io_zonecmd() 326 bp->bio_length = 0; in g_io_zonecmd() 361 bp->bio_length = shortage; in g_io_speedup() 384 bp->bio_length = 0; in g_io_flush() 848 bp->bio_length); in g_io_schedule_down() 893 bp->bio_length = length; in g_read_data() 950 bp->bio_length = length; in g_write_data() [all …]
|
H A D | geom_disk.c | 240 bp2->bio_completed += bp->bio_length - bp->bio_resid; in g_disk_done() 303 bp->bio_length -= off; in g_disk_advance() 371 residual = bp->bio_length; in g_disk_vlist_limit() 399 if (bp->bio_length > maxsz) { in g_disk_limit() 400 bp->bio_length = maxsz; in g_disk_limit() 412 bp->bio_length -= residual; in g_disk_limit() 464 off += bp2->bio_length; in g_disk_start() 477 bp2->bio_bcount = bp2->bio_length; in g_disk_start() 629 bp->bio_length = DISK_IDENT_SIZE; in g_disk_dumpconf() 636 bp->bio_length = DISK_IDENT_SIZE; in g_disk_dumpconf() [all …]
|
H A D | geom_slice.c | 179 if (bp2->bio_offset + bp2->bio_length > gsl->length) in g_slice_finish_hot() 180 bp2->bio_length = gsl->length - bp2->bio_offset; in g_slice_finish_hot() 201 if (strlcat(bp->bio_data, idx, bp->bio_length) >= in g_slice_done() 202 bp->bio_length) { in g_slice_done() 246 if (t + bp->bio_length <= ghp->offset) in g_slice_start() 279 if (bp2->bio_offset + bp2->bio_length > gsl->length) in g_slice_start() 280 bp2->bio_length = gsl->length - bp2->bio_offset; in g_slice_start()
|
H A D | geom_ccd.c | 485 for (bcount = bp->bio_length; bcount > 0; bcount -= rcount) { in g_ccd_start() 491 if (bp->bio_completed == bp->bio_length) in g_ccd_start() 495 rcount = cbp[0]->bio_length; in g_ccd_start() 652 cbp->bio_length = (cbc < bcount) ? cbc : bcount; in ccdbuffer() 664 cbp->bio_length = cb[0]->bio_length; in ccdbuffer()
|
/freebsd/sys/kern/ |
H A D | kern_physio.c | 149 bp->bio_length = uio->uio_iov[i].iov_len; in physio() 150 if (bp->bio_length > dev->si_iosize_max) in physio() 151 bp->bio_length = dev->si_iosize_max; in physio() 152 if (bp->bio_length > maxphys) in physio() 153 bp->bio_length = maxphys; in physio() 154 bp->bio_bcount = bp->bio_length; in physio() 160 (vm_offset_t)base, bp->bio_length, in physio() 192 iolen = bp->bio_length - bp->bio_resid; in physio()
|
/freebsd/sys/geom/journal/ |
H A D | g_journal.c | 782 bp->bio_length = end - start; in g_journal_new_bio() 890 cbp->bio_length); in g_journal_insert() 976 cbp->bio_length = cend - nend; in g_journal_insert() 1009 (intmax_t)cbp->bio_length, in g_journal_insert() 1048 (intmax_t)pbp->bio_length, in g_journal_optimize() 1054 if (pbp->bio_length + cbp->bio_length > maxphys) { in g_journal_optimize() 1062 pbp->bio_length + cbp->bio_length, pbp->bio_length); in g_journal_optimize() 1064 cbp->bio_length); in g_journal_optimize() 1066 pbp->bio_length += cbp->bio_length; in g_journal_optimize() 1107 cbp->bio_length = bp->bio_length; in g_journal_read_first() [all …]
|
/freebsd/sys/geom/vinum/ |
H A D | geom_vinum_plex.c | 62 bcount = bp->bio_length; in gv_plex_start() 274 cbp->bio_length = real_len; in gv_plex_normal_request() 314 pbp->bio_completed = pbp->bio_length; in gv_plex_normal_done() 577 bp->bio_length = length; in gv_sync_request() 628 to->synced += bp->bio_length; in gv_sync_complete() 641 offset = bp->bio_offset + bp->bio_length; in gv_sync_complete() 696 bp->bio_length = length; in gv_grow_request() 728 p->synced += bp->bio_length; in gv_grow_complete() 801 bp->bio_length = length; in gv_init_request() 837 length = bp->bio_length; in gv_init_complete() [all …]
|
/freebsd/sys/dev/ofw/ |
H A D | ofw_disk.c | 86 bp->bio_length); in ofwd_startio() 90 bp->bio_length); in ofwd_startio() 93 if (r != bp->bio_length) in ofwd_startio() 125 bp->bio_completed = bp->bio_length; in ofwd_kthread()
|
/freebsd/sys/dev/nvdimm/ |
H A D | nvdimm_spa.c | 307 bp->bio_ma_offset, bp->bio_length); in nvdimm_spa_g_all_unmapped() 310 bp->bio_offset & PAGE_MASK, bp->bio_length); in nvdimm_spa_g_all_unmapped() 367 aiovec.iov_len = bp->bio_length; in nvdimm_spa_g_thread() 370 auio.uio_resid = bp->bio_length; in nvdimm_spa_g_thread() 377 bp->bio_ma_offset, bp->bio_length, &auio); in nvdimm_spa_g_thread() 382 bp->bio_resid = bp->bio_length; in nvdimm_spa_g_thread() 387 aiovec.iov_len = bp->bio_length; in nvdimm_spa_g_thread() 390 auio.uio_resid = bp->bio_length; in nvdimm_spa_g_thread() 399 bp->bio_bcount = bp->bio_length; in nvdimm_spa_g_thread() 402 bp->bio_completed = bp->bio_length; in nvdimm_spa_g_thread()
|
/freebsd/cddl/usr.sbin/dwatch/libexec/ |
H A D | io | 29 this long bio_length; 70 this->bio_length = (long)this->bufinfo.b_bcount; 99 this->bio_length, 100 this->bio_length == 1 ? "" : "s");
|
/freebsd/sys/geom/stripe/ |
H A D | g_stripe.c | 278 bp->bio_length, 1); in g_stripe_done() 292 pbp->bio_completed = pbp->bio_length; in g_stripe_done() 329 cbp->bio_length = length; in g_stripe_start_fast() 335 length = bp->bio_length - length; in g_stripe_start_fast() 407 data += cbp->bio_length; in g_stripe_start_fast() 451 if (bp->bio_length == length) in g_stripe_start_economic() 456 cbp->bio_length = length; in g_stripe_start_economic() 459 bp->bio_length) / PAGE_SIZE; in g_stripe_start_economic() 469 length = bp->bio_length - length; in g_stripe_start_economic() 491 cbp->bio_length = MIN(stripesize, length); in g_stripe_start_economic() [all …]
|
/freebsd/sys/geom/cache/ |
H A D | g_cache.c | 195 if (bp->bio_completed == bp->bio_length) { in g_cache_deliver() 308 cbp->bio_length = sc->sc_bsize; in g_cache_read() 321 lim = OFF2BNO(bp->bio_offset + bp->bio_length - 1, sc); in g_cache_invalidate() 355 sc->sc_readbytes += bp->bio_length; in g_cache_start() 358 if (bp->bio_offset + bp->bio_length > sc->sc_tail) in g_cache_start() 361 OFF2BNO(bp->bio_offset + bp->bio_length - 1, sc)) { in g_cache_start() 363 sc->sc_cachereadbytes += bp->bio_length; in g_cache_start() 367 sc->sc_cachereadbytes -= bp->bio_length; in g_cache_start() 378 sc->sc_cachereadbytes += bp->bio_length; in g_cache_start() 384 sc->sc_cachereadbytes -= bp->bio_length; in g_cache_start() [all …]
|
/freebsd/sys/geom/union/ |
H A D | g_union.c | 704 while (bp->bio_length > 0) { in g_union_ctl_commit() 708 bp->bio_length -= len2rd; in g_union_ctl_commit() 718 savelen = bp->bio_length; in g_union_ctl_commit() 719 bp->bio_length = len2wt; in g_union_ctl_commit() 739 bp->bio_length = savelen - len2wt; in g_union_ctl_commit() 957 "level.", cbp->bio_length); in g_union_doio() 979 rdlen = cbp->bio_length; in g_union_doio() 999 cbp->bio_length = len2rd; in g_union_doio() 1033 cbp->bio_length = rdlen; in g_union_doio() 1087 numsec = bp->bio_length / sc->sc_sectorsize; in g_union_setmap() [all …]
|
/freebsd/sys/geom/raid/ |
H A D | tr_raid1e.c | 474 bp->bio_length = len; in g_raid_tr_raid1e_rebuild_some() 703 remain = bp->bio_length; in g_raid_tr_iostart_raid1e_read() 720 cbp->bio_length = length; in g_raid_tr_iostart_raid1e_read() 726 cbp->bio_length) / PAGE_SIZE; in g_raid_tr_iostart_raid1e_read() 773 remain = bp->bio_length; in g_raid_tr_iostart_raid1e_write() 795 cbp->bio_length = length; in g_raid_tr_iostart_raid1e_write() 802 cbp->bio_length) / PAGE_SIZE; in g_raid_tr_iostart_raid1e_write() 950 nsd->sd_rebuild_pos += bp->bio_length; in g_raid_tr_iodone_raid1e() 1035 cbp->bio_length = bp->bio_length; in g_raid_tr_iodone_raid1e() 1053 virtual, cbp->bio_length, pbp, cbp); in g_raid_tr_iodone_raid1e() [all …]
|
H A D | tr_raid0.c | 223 remain = bp->bio_length; in g_raid_tr_iostart_raid0() 232 cbp->bio_length = length; in g_raid_tr_iostart_raid0() 239 cbp->bio_length) / PAGE_SIZE; in g_raid_tr_iostart_raid0() 323 pbp->bio_completed = pbp->bio_length; in g_raid_tr_iodone_raid0()
|
H A D | tr_concat.c | 229 remain = bp->bio_length; in g_raid_tr_iostart_concat() 252 cbp->bio_length = length; in g_raid_tr_iostart_concat() 259 cbp->bio_length) / PAGE_SIZE; in g_raid_tr_iostart_concat() 270 bp->bio_completed = bp->bio_length - remain; in g_raid_tr_iostart_concat()
|
H A D | tr_raid1.c | 257 bp->bio_length = MIN(g_raid1_rebuild_slab, in g_raid_tr_raid1_rebuild_some() 266 bp->bio_offset, bp->bio_length, NULL, bp); in g_raid_tr_raid1_rebuild_some() 499 bp->bio_offset + bp->bio_length > sd->sd_rebuild_pos)) in g_raid_tr_raid1_select_read_disk() 734 bp->bio_offset, bp->bio_length); in g_raid_tr_iodone_raid1() 735 nsd->sd_rebuild_pos += bp->bio_length; in g_raid_tr_iodone_raid1() 816 cbp->bio_offset, cbp->bio_length, pbp, cbp); in g_raid_tr_iodone_raid1() 879 bp->bio_length); in g_raid_tr_iodone_raid1() 893 pbp->bio_completed = pbp->bio_length; in g_raid_tr_iodone_raid1()
|
/freebsd/sys/geom/zero/ |
H A D | g_zero.c | 83 memset(bp->bio_data, g_zero_byte, bp->bio_length); in g_zero_start() 87 bp->bio_completed = bp->bio_length; in g_zero_start()
|
/freebsd/sys/dev/md/ |
H A D | md.c | 674 nsec = bp->bio_length / sc->sectorsize; in mdstart_malloc() 856 bp->bio_ma_offset, bp->bio_length); in mdstart_preload() 858 bcopy(p, bp->bio_data, bp->bio_length); in mdstart_preload() 860 cpu_flush_dcache(bp->bio_data, bp->bio_length); in mdstart_preload() 865 bp->bio_ma_offset, p, bp->bio_length); in mdstart_preload() 867 bcopy(bp->bio_data, p, bp->bio_length); in mdstart_preload() 895 len = bp->bio_length; in mdstart_vnode() 936 auio.uio_resid = bp->bio_length; in mdstart_vnode() 975 aiov.iov_len = bp->bio_length; in mdstart_vnode() 1172 bzero(bp->bio_data, bp->bio_length); in mdstart_null() [all …]
|
/freebsd/sys/geom/shsec/ |
H A D | g_shsec.c | 262 bcopy(bp->bio_data, pbp->bio_data, pbp->bio_length); in g_shsec_done() 267 (ssize_t)pbp->bio_length); in g_shsec_done() 271 explicit_bzero(bp->bio_data, bp->bio_length); in g_shsec_done() 277 pbp->bio_completed = pbp->bio_length; in g_shsec_done() 336 len = bp->bio_length; in g_shsec_start() 389 explicit_bzero(cbp->bio_data, cbp->bio_length); in g_shsec_start()
|
/freebsd/sys/dev/nvd/ |
H A D | nvd.c | 316 if (bp->bio_length < sizeof(nsdata->nguid) * 2 + 1) in nvd_getattr() 322 bp->bio_completed = bp->bio_length; in nvd_getattr() 332 if (bp->bio_length < sizeof(nsdata->eui64) * 2 + 1) in nvd_getattr() 338 bp->bio_completed = bp->bio_length; in nvd_getattr()
|
/freebsd/sys/geom/raid3/ |
H A D | g_raid3.c | 270 size = bp->bio_length; in g_raid3_is_zero() 1112 bp->bio_length); in g_raid3_scatter() 1116 bp->bio_length); in g_raid3_scatter() 1250 xbp->bio_length); in g_raid3_gather() 1339 pbp->bio_completed = pbp->bio_length; in g_raid3_regular_request() 1507 rend = bp->bio_offset + bp->bio_length; in g_raid3_sync_collision() 1513 send = sbp->bio_length; in g_raid3_sync_collision() 1538 send = sstart + sbp->bio_length; in g_raid3_regular_collision() 1668 for (left = bp->bio_length; left > 0; in g_raid3_sync_request() 1691 bp->bio_length /= sc->sc_ndisks - 1; in g_raid3_sync_request() [all …]
|
/freebsd/sys/geom/uzip/ |
H A D | g_uzip.c | 292 bp2->bio_length = TLEN_2_BLEN(sc, pp, bp2, end_blk - 1); in g_uzip_request() 293 if (bp2->bio_length <= maxphys) { in g_uzip_request() 304 (intmax_t)bp2->bio_length, (intmax_t)bp2->bio_offset)); in g_uzip_request() 306 bp2->bio_data = malloc(bp2->bio_length, M_GEOM_UZIP, M_NOWAIT); in g_uzip_request() 315 (intmax_t)bp2->bio_length, (intmax_t)bp2->bio_offset)); in g_uzip_request() 467 (intmax_t)bp->bio_offset, (intmax_t)bp->bio_length, bp->bio_data)); in g_uzip_start() 498 bp->bio_resid = bp->bio_length; in g_uzip_start()
|