| /freebsd-14.2/sys/geom/eli/ |
| H A D | g_eli_integrity.c | 153 nsec = bp->bio_length / decr_secsize; in g_eli_auth_read_done() 190 nsec = bp->bio_length / decr_secsize; in g_eli_auth_read_done() 219 nsec = bp->bio_length / decr_secsize; in g_eli_auth_read_done() 351 if (cbp->bio_length > maxphys) { in g_eli_auth_write_done() 353 cbp2->bio_length = cbp->bio_length - maxphys; in g_eli_auth_write_done() 358 cbp->bio_length = maxphys; in g_eli_auth_write_done() 396 size = cbp->bio_length; in g_eli_auth_read() 419 if (cbp->bio_length > maxphys) { in g_eli_auth_read() 421 cbp2->bio_length = cbp->bio_length - maxphys; in g_eli_auth_read() 426 cbp->bio_length = maxphys; in g_eli_auth_read() [all …]
|
| H A D | g_eli_privacy.c | 72 iov[0].iov_len = bp->bio_length; in g_eli_bio_copyin() 76 uio.uio_resid = bp->bio_length; in g_eli_bio_copyin() 79 uiomove_fromphys(bp->bio_ma, bp->bio_ma_offset, bp->bio_length, &uio); in g_eli_bio_copyin() 272 nsec = bp->bio_length / secsize; in g_eli_crypto_run() 282 if (!g_eli_alloc_data(bp, bp->bio_length)) { in g_eli_crypto_run() 302 bcopy(bp->bio_data, data, bp->bio_length); in g_eli_crypto_run()
|
| /freebsd-14.2/sys/geom/ |
| H A D | geom_io.c | 210 bp2->bio_length = bp->bio_length; in g_clone_bio() 246 bp2->bio_length = bp->bio_length; in g_duplicate_bio() 296 bp->bio_length = *len; in g_io_getattr() 320 bp->bio_length = in g_io_zonecmd() 324 bp->bio_length = 0; in g_io_zonecmd() 359 bp->bio_length = shortage; in g_io_speedup() 382 bp->bio_length = 0; in g_io_flush() 841 bp->bio_length); in g_io_schedule_down() 886 bp->bio_length = length; in g_read_data() 943 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 | 181 if (bp2->bio_offset + bp2->bio_length > gsl->length) in g_slice_finish_hot() 182 bp2->bio_length = gsl->length - bp2->bio_offset; in g_slice_finish_hot() 203 if (strlcat(bp->bio_data, idx, bp->bio_length) >= in g_slice_done() 204 bp->bio_length) { in g_slice_done() 248 if (t + bp->bio_length <= ghp->offset) in g_slice_start() 281 if (bp2->bio_offset + bp2->bio_length > gsl->length) in g_slice_start() 282 bp2->bio_length = gsl->length - bp2->bio_offset; in g_slice_start()
|
| H A D | geom_ccd.c | 488 for (bcount = bp->bio_length; bcount > 0; bcount -= rcount) { in g_ccd_start() 494 if (bp->bio_completed == bp->bio_length) in g_ccd_start() 498 rcount = cbp[0]->bio_length; in g_ccd_start() 655 cbp->bio_length = (cbc < bcount) ? cbc : bcount; in ccdbuffer() 667 cbp->bio_length = cb[0]->bio_length; in ccdbuffer()
|
| /freebsd-14.2/sys/kern/ |
| H A D | kern_physio.c | 144 bp->bio_length = uio->uio_iov[i].iov_len; in physio() 145 if (bp->bio_length > dev->si_iosize_max) in physio() 146 bp->bio_length = dev->si_iosize_max; in physio() 147 if (bp->bio_length > maxphys) in physio() 148 bp->bio_length = maxphys; in physio() 149 bp->bio_bcount = bp->bio_length; in physio() 155 (vm_offset_t)base, bp->bio_length, in physio() 187 iolen = bp->bio_length - bp->bio_resid; in physio()
|
| /freebsd-14.2/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-14.2/sys/geom/vinum/ |
| H A D | geom_vinum_plex.c | 63 bcount = bp->bio_length; in gv_plex_start() 275 cbp->bio_length = real_len; in gv_plex_normal_request() 315 pbp->bio_completed = pbp->bio_length; in gv_plex_normal_done() 578 bp->bio_length = length; in gv_sync_request() 629 to->synced += bp->bio_length; in gv_sync_complete() 642 offset = bp->bio_offset + bp->bio_length; in gv_sync_complete() 697 bp->bio_length = length; in gv_grow_request() 729 p->synced += bp->bio_length; in gv_grow_complete() 802 bp->bio_length = length; in gv_init_request() 838 length = bp->bio_length; in gv_init_complete() [all …]
|
| /freebsd-14.2/sys/dev/ofw/ |
| H A D | ofw_disk.c | 87 bp->bio_length); in ofwd_startio() 91 bp->bio_length); in ofwd_startio() 94 if (r != bp->bio_length) in ofwd_startio() 126 bp->bio_completed = bp->bio_length; in ofwd_kthread()
|
| /freebsd-14.2/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-14.2/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-14.2/sys/geom/stripe/ |
| H A D | g_stripe.c | 279 bp->bio_length, 1); in g_stripe_done() 293 pbp->bio_completed = pbp->bio_length; in g_stripe_done() 330 cbp->bio_length = length; in g_stripe_start_fast() 336 length = bp->bio_length - length; in g_stripe_start_fast() 408 data += cbp->bio_length; in g_stripe_start_fast() 452 if (bp->bio_length == length) in g_stripe_start_economic() 457 cbp->bio_length = length; in g_stripe_start_economic() 460 bp->bio_length) / PAGE_SIZE; in g_stripe_start_economic() 470 length = bp->bio_length - length; in g_stripe_start_economic() 492 cbp->bio_length = MIN(stripesize, length); in g_stripe_start_economic() [all …]
|
| /freebsd-14.2/sys/geom/cache/ |
| H A D | g_cache.c | 196 if (bp->bio_completed == bp->bio_length) { in g_cache_deliver() 309 cbp->bio_length = sc->sc_bsize; in g_cache_read() 322 lim = OFF2BNO(bp->bio_offset + bp->bio_length - 1, sc); in g_cache_invalidate() 356 sc->sc_readbytes += bp->bio_length; in g_cache_start() 359 if (bp->bio_offset + bp->bio_length > sc->sc_tail) in g_cache_start() 362 OFF2BNO(bp->bio_offset + bp->bio_length - 1, sc)) { in g_cache_start() 364 sc->sc_cachereadbytes += bp->bio_length; in g_cache_start() 368 sc->sc_cachereadbytes -= bp->bio_length; in g_cache_start() 379 sc->sc_cachereadbytes += bp->bio_length; in g_cache_start() 385 sc->sc_cachereadbytes -= bp->bio_length; in g_cache_start() [all …]
|
| /freebsd-14.2/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-14.2/sys/geom/raid/ |
| H A D | tr_raid1e.c | 475 bp->bio_length = len; in g_raid_tr_raid1e_rebuild_some() 704 remain = bp->bio_length; in g_raid_tr_iostart_raid1e_read() 721 cbp->bio_length = length; in g_raid_tr_iostart_raid1e_read() 727 cbp->bio_length) / PAGE_SIZE; in g_raid_tr_iostart_raid1e_read() 774 remain = bp->bio_length; in g_raid_tr_iostart_raid1e_write() 796 cbp->bio_length = length; in g_raid_tr_iostart_raid1e_write() 803 cbp->bio_length) / PAGE_SIZE; in g_raid_tr_iostart_raid1e_write() 951 nsd->sd_rebuild_pos += bp->bio_length; in g_raid_tr_iodone_raid1e() 1036 cbp->bio_length = bp->bio_length; in g_raid_tr_iodone_raid1e() 1054 virtual, cbp->bio_length, pbp, cbp); in g_raid_tr_iodone_raid1e() [all …]
|
| H A D | tr_raid0.c | 224 remain = bp->bio_length; in g_raid_tr_iostart_raid0() 233 cbp->bio_length = length; in g_raid_tr_iostart_raid0() 240 cbp->bio_length) / PAGE_SIZE; in g_raid_tr_iostart_raid0() 324 pbp->bio_completed = pbp->bio_length; in g_raid_tr_iodone_raid0()
|
| H A D | tr_concat.c | 230 remain = bp->bio_length; in g_raid_tr_iostart_concat() 253 cbp->bio_length = length; in g_raid_tr_iostart_concat() 260 cbp->bio_length) / PAGE_SIZE; in g_raid_tr_iostart_concat() 271 bp->bio_completed = bp->bio_length - remain; in g_raid_tr_iostart_concat()
|
| H A D | tr_raid1.c | 258 bp->bio_length = MIN(g_raid1_rebuild_slab, in g_raid_tr_raid1_rebuild_some() 267 bp->bio_offset, bp->bio_length, NULL, bp); in g_raid_tr_raid1_rebuild_some() 500 bp->bio_offset + bp->bio_length > sd->sd_rebuild_pos)) in g_raid_tr_raid1_select_read_disk() 735 bp->bio_offset, bp->bio_length); in g_raid_tr_iodone_raid1() 736 nsd->sd_rebuild_pos += bp->bio_length; in g_raid_tr_iodone_raid1() 817 cbp->bio_offset, cbp->bio_length, pbp, cbp); in g_raid_tr_iodone_raid1() 880 bp->bio_length); in g_raid_tr_iodone_raid1() 894 pbp->bio_completed = pbp->bio_length; in g_raid_tr_iodone_raid1()
|
| /freebsd-14.2/sys/geom/bde/ |
| H A D | g_bde_work.c | 394 KASSERT(bp->bio_completed <= bp->bio_length, ("Too large contribution")); in g_bde_contribute() 395 if (bp->bio_completed == bp->bio_length) { in g_bde_contribute() 486 bp->bio_length = sp->size; in g_bde_start_write() 541 bp->bio_length = sp->size; in g_bde_start_read() 760 for(done = 0; done < bp->bio_length; ) { in g_bde_start1() 766 wp->length = bp->bio_length - done; in g_bde_start1() 772 g_bde_contribute(bp, bp->bio_length - done, ENOMEM); in g_bde_start1()
|
| /freebsd-14.2/sys/geom/zero/ |
| H A D | g_zero.c | 84 memset(bp->bio_data, g_zero_byte, bp->bio_length); in g_zero_start() 88 bp->bio_completed = bp->bio_length; in g_zero_start()
|
| /freebsd-14.2/sys/dev/md/ |
| H A D | md.c | 676 nsec = bp->bio_length / sc->sectorsize; in mdstart_malloc() 858 bp->bio_ma_offset, bp->bio_length); in mdstart_preload() 860 bcopy(p, bp->bio_data, bp->bio_length); in mdstart_preload() 862 cpu_flush_dcache(bp->bio_data, bp->bio_length); in mdstart_preload() 867 bp->bio_ma_offset, p, bp->bio_length); in mdstart_preload() 869 bcopy(bp->bio_data, p, bp->bio_length); in mdstart_preload() 914 len = bp->bio_length; in mdstart_vnode() 942 auio.uio_resid = bp->bio_length; in mdstart_vnode() 981 aiov.iov_len = bp->bio_length; in mdstart_vnode() 1178 bzero(bp->bio_data, bp->bio_length); in mdstart_null() [all …]
|
| /freebsd-14.2/sys/geom/shsec/ |
| H A D | g_shsec.c | 263 bcopy(bp->bio_data, pbp->bio_data, pbp->bio_length); in g_shsec_done() 268 (ssize_t)pbp->bio_length); in g_shsec_done() 272 explicit_bzero(bp->bio_data, bp->bio_length); in g_shsec_done() 278 pbp->bio_completed = pbp->bio_length; in g_shsec_done() 337 len = bp->bio_length; in g_shsec_start() 390 explicit_bzero(cbp->bio_data, cbp->bio_length); in g_shsec_start()
|
| /freebsd-14.2/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-14.2/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 …]
|