/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() 337 nsec = bp->bio_length / bp->bio_to->sectorsize; in g_eli_auth_write_done() 341 cbp->bio_length = cp->provider->sectorsize * nsec; in g_eli_auth_write_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() 390 nsec = bp->bio_length / bp->bio_to->sectorsize; in g_eli_auth_read() 394 cbp->bio_length = cp->provider->sectorsize * nsec; 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() 447 if (bp->bio_length % pp->sectorsize) in g_io_check() 456 excess = bp->bio_offset + bp->bio_length; in g_io_check() 460 bp->bio_length) / PAGE_SIZE == bp->bio_ma_n, in g_io_check() [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() 417 howmany(bp->bio_ma_offset + bp->bio_length, PAGE_SIZE); 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() [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 | 143 bp->bio_length = uio->uio_iov[i].iov_len; in physio() 144 if (bp->bio_length > dev->si_iosize_max) in physio() 145 bp->bio_length = dev->si_iosize_max; in physio() 146 if (bp->bio_length > maxphys) in physio() 147 bp->bio_length = maxphys; in physio() 148 bp->bio_bcount = bp->bio_length; in physio() 154 (vm_offset_t)base, bp->bio_length, in physio() 186 iolen = bp->bio_length - bp->bio_resid; in physio()
|
/freebsd/sys/geom/journal/ |
H A D | g_journal.c | 664 gj_free(bp->bio_data, bp->bio_length); in g_journal_metadata_done() 707 bp->bio_length = cp->provider->sectorsize; in g_journal_metadata_update() 747 strlcpy(bp->bio_data, bp->bio_to->name, bp->bio_length); in g_journal_start() 782 bp->bio_length = end - start; in g_journal_new_bio() 788 bp->bio_data = gj_malloc(bp->bio_length, flags); in g_journal_new_bio() 790 bcopy(data, bp->bio_data, bp->bio_length); in g_journal_new_bio() 797 (bp)->bio_offset + (bp)->bio_length, (bp)->bio_joffset, \ 821 cend = cbp->bio_offset + cbp->bio_length; in g_journal_insert() 877 g_journal_stats_bytes_skipped += cbp->bio_length; in g_journal_insert() 880 cbp->bio_length = cend - nstart; in g_journal_insert() [all …]
|
/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/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/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() 351 * (bp->bio_length % sc->sc_stripesize) != 0. in g_stripe_start_fast() 353 cbp->bio_length += MIN(stripesize, length); in g_stripe_start_fast() 383 * (bp->bio_length % sc->sc_stripesize) != 0. in g_stripe_start_fast() 385 cbp->bio_length = MIN(stripesize, length); in g_stripe_start_fast() 405 cbp->bio_offset, cbp->bio_length, 0); in g_stripe_start_fast() 407 data += cbp->bio_length; in g_stripe_start_fast() [all...] |
/freebsd/sys/geom/cache/ |
H A D | g_cache.c | 180 KASSERT(OFF2BNO(bp->bio_offset + bp->bio_length - 1, sc) >= in g_cache_deliver() 185 len = MIN(bp->bio_offset + bp->bio_length, off1 + sc->sc_bsize) - off; in g_cache_deliver() 194 KASSERT(bp->bio_completed <= bp->bio_length, ("extra data")); in g_cache_deliver() 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() [all …]
|
/freebsd/sys/geom/union/ |
H A D | g_union.c | 701 bp->bio_length = sc->sc_map_size * sc->sc_sectorsize; in g_union_ctl_commit() 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() 814 wip->wip_end = wip->wip_start + bp->bio_length - 1; in g_union_start() 957 "level.", cbp->bio_length); in g_union_doio() 959 atomic_add_long(&sc->sc_wrotebytes, cbp->bio_length); in g_union_doio() 978 atomic_add_long(&sc->sc_readbytes, cbp->bio_length); in g_union_doio() [all …]
|
/freebsd/sys/powerpc/ps3/ |
H A D | ps3disk.c | 593 uint64_t block, bio_length, sector_op_count; in ps3disk_transfer() local 613 bio_length = bp->bio_length; in ps3disk_transfer() 617 KASSERT((seg->ds_len % bio_length) == 0, in ps3disk_transfer() 619 (uint64_t)seg->ds_len, bio_length)); in ps3disk_transfer() 621 KASSERT((bio_length % sc->sc_blksize) == 0, in ps3disk_transfer() 623 bio_length, (uint64_t)sc->sc_blksize)); in ps3disk_transfer() 625 sector_op_count = bio_length / sc->sc_blksize; in ps3disk_transfer()
|
/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/bde/ |
H A D | g_bde_work.c |
|
/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() 1051 lastp = (bp->bio_offset + bp->bio_length - 1) / PAGE_SIZE; in mdstart_swap() [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() 1012 size = pbp->bio_length / (sc->sc_ndisks - 1); in g_raid3_destroy_bio() 1043 size = pbp->bio_length / (sc->sc_ndisks - 1); in g_raid3_clone_bio() 1093 for (left = pbp->bio_length; left > 0; left -= sc->sc_sectorsize) { in g_raid3_scatter() 1112 bp->bio_length); in g_raid3_scatter() 1116 bp->bio_length); in g_raid3_scatter() 1250 xbp->bio_length); in g_raid3_gather() 1264 for (left = pbp->bio_length; left > 0; left -= sc->sc_sectorsize) { 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() [all...] |