/dports/misc/rump/buildrump.sh-b914579/src/sys/kern/ |
H A D | kern_physio.c | 113 size_t done = bp->b_bcount - bp->b_resid; in physio_done() 118 KASSERT(bp->b_bcount <= todo); in physio_done() 119 KASSERT(bp->b_resid <= bp->b_bcount); in physio_done() 142 bp->b_blkno, bp->b_bcount, bp->b_flags)); in physio_done() 173 size_t done = bp->b_bcount - bp->b_resid; in physio_biodone() 176 KASSERT(bp->b_bcount <= todo); in physio_biodone() 177 KASSERT(bp->b_resid <= bp->b_bcount); in physio_biodone() 298 bp->b_bcount = MIN(MAXPHYS, iovp->iov_len); in physio() 307 todo = bp->b_bufsize = bp->b_bcount; in physio() 425 if (bp->b_bcount > MAXPHYS) in minphys() [all …]
|
H A D | subr_disk.c | 145 if (bp->b_bcount <= DEV_BSIZE) in diskerr() 153 bp->b_blkno + (bp->b_bcount - 1) / DEV_BSIZE); in diskerr() 155 if (lp && (blkdone >= 0 || bp->b_bcount <= lp->d_secsize)) { in diskerr() 323 sz = howmany((int64_t)bp->b_bcount, secsize); in bounds_check_with_mediasize() 334 bp->b_resid = bp->b_bcount; in bounds_check_with_mediasize() 343 bp->b_bcount = sz * secsize; in bounds_check_with_mediasize() 383 sz = howmany((int64_t)bp->b_bcount, DEV_BSIZE); in bounds_check_with_label() 394 bp->b_resid = bp->b_bcount; in bounds_check_with_label() 403 bp->b_bcount = sz << DEV_BSHIFT; in bounds_check_with_label() 425 bp->b_bcount = count * lp->d_secsize; in disk_read_sectors()
|
/dports/misc/rump/buildrump.sh-b914579/src/sys/fs/udf/ |
H A D | udf_readwrite.c | 304 buf->b_resid = buf->b_bcount; in udf_read_phys_sectors() 305 buf->b_bufsize = buf->b_bcount; in udf_read_phys_sectors() 438 sectors = buf->b_bcount / sector_size; in udf_write_phys_buf() 501 buf->b_resid = buf->b_bcount; in udf_write_phys_sectors() 502 buf->b_bufsize = buf->b_bcount; in udf_write_phys_sectors() 543 buf->b_bcount = dscrlen; in udf_write_phys_dscr_sync() 544 buf->b_resid = buf->b_bcount; in udf_write_phys_dscr_sync() 545 buf->b_bufsize = buf->b_bcount; in udf_write_phys_dscr_sync() 590 buf->b_bcount = dscrlen; in udf_write_phys_dscr_async() 591 buf->b_resid = buf->b_bcount; in udf_write_phys_dscr_async() [all …]
|
H A D | udf_strat_direct.c | 283 buf->b_resid, buf->b_bcount, buf->b_bufsize)); in udf_queue_buf_direct() 293 buf->b_resid, buf->b_bcount, buf->b_bufsize)); in udf_queue_buf_direct() 306 buf, buf->b_udf_c_type, buf->b_resid, buf->b_bcount, in udf_queue_buf_direct() 323 buf_len = buf->b_bcount; in udf_queue_buf_direct() 353 sectors = (buf->b_bcount + sector_size -1) / sector_size; in udf_queue_buf_direct()
|
/dports/misc/rump/buildrump.sh-b914579/src/sys/dev/sdmmc/ |
H A D | ld_sdmmc.c | 207 bp->b_rawblkno, bp->b_bcount)); in ld_sdmmc_dobio() 216 bp->b_resid = bp->b_bcount; in ld_sdmmc_dobio() 223 bp->b_data, bp->b_bcount); in ld_sdmmc_dobio() 226 bp->b_data, bp->b_bcount); in ld_sdmmc_dobio() 231 bp->b_resid = bp->b_bcount; in ld_sdmmc_dobio()
|
/dports/misc/rump/buildrump.sh-b914579/src/sys/ufs/lfs/ |
H A D | lfs_segment.c | 248 bp->b_bcount)); in lfs_vflush() 267 bp->b_bcount)); in lfs_vflush() 2168 newbp->b_bcount); 2293 cbp->b_bcount = 0; 2314 if (bp->b_bcount > (CHUNKSIZE - cbp->b_bcount)) 2321 if (cbp->b_bcount > 0) 2338 bp->b_bcount, bp->b_blkno, 2361 p += bp->b_bcount; 2364 cbp->b_bcount += bp->b_bcount; 2365 cl->bufsize += bp->b_bcount; [all …]
|
/dports/misc/rump/buildrump.sh-b914579/src/sys/dev/ofw/ |
H A D | ofdisk.c | 296 if (bp->b_bcount == 0) in ofdisk_strategy() 304 bp->b_resid = bp->b_bcount; in ofdisk_strategy() 318 read = OF_io(of->sc_ihandle, bp->b_data, bp->b_bcount); in ofdisk_strategy() 323 bp->b_resid = bp->b_bcount; in ofdisk_strategy() 325 bp->b_resid = bp->b_bcount - read; in ofdisk_strategy() 327 disk_unbusy(&of->sc_dk, bp->b_bcount - bp->b_resid, in ofdisk_strategy() 340 if (bp->b_bcount > of->max_transfer) in ofminphys() 341 bp->b_bcount = of->max_transfer; in ofminphys()
|
/dports/misc/rump/buildrump.sh-b914579/src/sys/rump/librump/rumpvfs/ |
H A D | rumpblk.c | 497 if (bp->b_bcount % (1<<sectshift) != 0) { in dostrategy() 507 ev_bwrite_total.ev_count += bp->b_bcount; in dostrategy() 509 ev_bwrite_async.ev_count += bp->b_bcount; in dostrategy() 527 if (off + bp->b_bcount > rblk->rblk_size) { in dostrategy() 542 bp->b_bcount = sz; in dostrategy() 548 bp->b_bcount, BUF_ISREAD(bp) ? "READ" : "WRITE", in dostrategy() 549 off, off, (off + bp->b_bcount), async ? "a" : "")); in dostrategy() 555 rumpuser_bio(rblk->rblk_fd, op, bp->b_data, bp->b_bcount, off, in dostrategy()
|
/dports/misc/rump/buildrump.sh-b914579/src/sys/dev/pud/ |
H A D | pud_dev.c | 133 allocsize = sizeof(struct pud_req_readwrite) + bp->b_bcount; in pud_bdev_strategy() 137 pc_rw->pm_resid = bp->b_bcount; in pud_bdev_strategy() 140 memcpy(pc_rw->pm_data, bp->b_data, bp->b_bcount); in pud_bdev_strategy() 147 if (pc_rw->pm_resid > bp->b_bcount) { in pud_bdev_strategy() 153 memcpy(bp->b_data,pc_rw->pm_data,bp->b_bcount-pc_rw->pm_resid); in pud_bdev_strategy()
|
/dports/misc/rump/buildrump.sh-b914579/src/sys/dev/qbus/ |
H A D | ts.c | 363 if (bp->b_bcount == 0 && (bp->b_oflags & BO_DONE)) in tscommand() 379 bp->b_bcount = count; in tscommand() 412 printf("buf: %p bcount %ld blkno %d\n", bp, bp->b_bcount, bp->b_blkno); in tsstart() 426 sc->sc_vts->cmd.cw1 = bp->b_bcount; in tsstart() 430 sc->sc_vts->cmd.cw1 = bp->b_bcount; in tsstart() 434 sc->sc_vts->cmd.cw1 = bp->b_bcount; in tsstart() 438 sc->sc_vts->cmd.cw1 = bp->b_bcount; in tsstart() 462 bp->b_bcount, bp->b_proc, BUS_DMA_NOWAIT)) { in tsstart() 470 sc->sc_vts->cmd.cw3 = bp->b_bcount; in tsstart() 502 bp->b_bcount, bp->b_proc, BUS_DMA_NOWAIT)) in tsready() [all …]
|
/dports/misc/rump/buildrump.sh-b914579/src/sys/dev/ata/ |
H A D | wd.c | 553 if (bp->b_bcount == 0) in wdstrategy() 614 bp->b_resid = bp->b_bcount; in wdstrategy() 664 bp->b_resid += bp->b_bcount; in wd_split_mod15_write() 714 bp->b_bcount > 512 && in wdstart1() 723 bp->b_resid = bp->b_bcount; in wdstart1() 733 nbp->b_bcount = bp->b_bcount / 2; in wdstart1() 734 nbp->b_bufsize = bp->b_bcount / 2; in wdstart1() 879 bp->b_resid = bp->b_bcount; in wddone() 1474 wi->wi_bp.b_bcount = 0; in wdioctl() 2174 ata_c.bcount = wi->wi_bp.b_bcount; in wdioctlstrategy() [all …]
|
H A D | ld_ataraid.c | 297 cbp->cb_buf.b_bcount = bcount; in ld_ataraid_make_cbuf() 350 bp->b_resid = bp->b_bcount; in ld_ataraid_start_span() 352 for (bcount = bp->b_bcount; bcount > 0; bcount -= rcount) { in ld_ataraid_start_span() 353 rcount = bp->b_bcount; in ld_ataraid_start_span() 403 bp->b_resid = bp->b_bcount; in ld_ataraid_start_raid0() 405 for (bcount = bp->b_bcount; bcount > 0; bcount -= rcount) { in ld_ataraid_start_raid0() 554 count = cbp->cb_buf.b_bcount; in ld_ataraid_iodone_raid0()
|
/dports/misc/rump/buildrump.sh-b914579/src/sys/dev/scsipi/ |
H A D | ss_mustek.c | 256 bp->b_bcount)); in mustek_minphys() 257 bp->b_bcount -= bp->b_bcount % in mustek_minphys() 260 bp->b_bcount)); in mustek_minphys() 462 lines_to_read = bp->b_bcount / in mustek_read() 471 (u_char *) bp->b_data, bp->b_bcount, in mustek_read() 497 ss->sio.scan_window_size -= bp->b_bcount; in mustek_read()
|
H A D | ss.c | 394 ("ssstrategy %d bytes @ blk %" PRId64 "\n", bp->b_bcount, in ssstrategy() 412 if (bp->b_bcount > ss->sio.scan_window_size) in ssstrategy() 413 bp->b_bcount = ss->sio.scan_window_size; in ssstrategy() 416 if (bp->b_bcount == 0) in ssstrategy() 439 bp->b_resid = bp->b_bcount; in ssstrategy()
|
H A D | st.c | 1051 if (bp->b_bcount == 0) in ststrategy() 1062 if (bp->b_bcount % st->blksize) { in ststrategy() 1070 else if (bp->b_bcount < st->blkmin || in ststrategy() 1100 bp->b_resid = bp->b_bcount; in ststrategy() 1148 bp->b_resid = bp->b_bcount; in ststart() 1179 bp->b_resid = bp->b_bcount; in ststart() 1185 bp->b_resid = bp->b_bcount; in ststart() 1199 bp->b_resid = bp->b_bcount; in ststart() 1227 _lto3b(bp->b_bcount, cmd.len); in ststart() 1286 bp->b_resid = bp->b_bcount; in stdone() [all …]
|
/dports/misc/rump/buildrump.sh-b914579/src/sys/dev/ |
H A D | fss.c | 288 bp->b_resid = bp->b_bcount; in fss_strategy() 970 mbp->b_resid = mbp->b_bcount = todo; in fss_read_cluster() 1119 dbtob(bp->b_blkno), bp->b_bcount, in fss_bs_thread() 1122 (error ? 0 : bp->b_bcount), is_read); in fss_bs_thread() 1127 bp->b_resid = (error ? bp->b_bcount : 0); in fss_bs_thread() 1177 bp->b_resid = bp->b_bcount; in fss_bs_thread() 1205 nbp->b_resid = nbp->b_bcount = bp->b_bcount; in fss_bs_thread() 1206 nbp->b_bufsize = bp->b_bcount; in fss_bs_thread() 1217 bp->b_resid = bp->b_bcount; in fss_bs_thread() 1235 todo = bp->b_bcount; in fss_bs_thread() [all …]
|
H A D | cgd.c | 313 (long)bp->b_bcount)); in cgdstrategy() 321 (bp->b_bcount % dg->dg_secsize) != 0 || in cgdstrategy() 324 bp->b_resid = bp->b_bcount; in cgdstrategy() 416 newaddr = cgd_getdata(dksc, bp->b_bcount); in cgd_diskstart() 421 cgd_cipher(cs, newaddr, addr, bp->b_bcount, bn, in cgd_diskstart() 432 nbp->b_bcount = bp->b_bcount; in cgd_diskstart() 461 obp, obp->b_bcount, obp->b_resid)); in cgdiodone() 464 nbp->b_bcount)); in cgdiodone() 479 cgd_cipher(cs, obp->b_data, obp->b_data, obp->b_bcount, in cgdiodone() 492 obp->b_resid = obp->b_bcount; in cgdiodone()
|
/dports/misc/rump/buildrump.sh-b914579/src/sys/ufs/mfs/ |
H A D | mfs_vnops.c | 152 memcpy(bp->b_data, base, bp->b_bcount); in mfs_strategy() 154 memcpy(base, bp->b_data, bp->b_bcount); in mfs_strategy() 186 bp->b_error = copyin(base, bp->b_data, bp->b_bcount); in mfs_doio() 188 bp->b_error = copyout(bp->b_data, base, bp->b_bcount); in mfs_doio()
|
/dports/misc/rump/buildrump.sh-b914579/src/sys/nfs/ |
H A D | nfs_bio.c | 259 if (bp->b_bcount == bp->b_resid || in nfs_bioread() 262 KASSERT(bp->b_bcount != bp->b_resid || in nfs_bioread() 321 if (uio->uio_resid < (bp->b_bcount - bp->b_resid - on)) { in nfs_bioread() 325 n = bp->b_bcount - bp->b_resid - on; in nfs_bioread() 357 if ((on + n) < bp->b_bcount - bp->b_resid) { in nfs_bioread() 888 diff = bp->b_bcount - uiop->uio_resid; in nfs_doio_read() 1043 cnt = bp->b_bcount; in nfs_doio_write() 1045 if (!nfs_in_committed_range(vp, off, bp->b_bcount)) { in nfs_doio_write() 1047 if (nfs_in_tobecommitted_range(vp, off, bp->b_bcount)) { in nfs_doio_write() 1090 cnt = bp->b_bcount; in nfs_doio_write() [all …]
|
/dports/misc/rump/buildrump.sh-b914579/src/sys/dev/gpib/ |
H A D | mt.c | 513 if (bp->b_bcount & ((1 << WRITE_BITS_IGNORED) - 1)) { in mtstrategy() 533 if (bp->b_bcount > s) { in mtstrategy() 536 device_xname(sc->sc_dev), bp->b_bcount, s); in mtstrategy() 772 cmdbuf[1] = (bp->b_bcount +((1 << WRITE_BITS_IGNORED) - 1)) >> WRITE_BITS_IGNORED; in mtstart() 894 bp->b_data, bp->b_bcount, dir, dir == GPIB_READ); in mtintr() 936 if (i <= bp->b_bcount) { in mtintr() 939 bp->b_resid = bp->b_bcount - i; in mtintr() 942 bp->b_bcount, bp->b_resid)); in mtintr() 946 device_xname(sc->sc_dev), i, bp->b_bcount); in mtintr()
|
/dports/misc/rump/buildrump.sh-b914579/src/sys/dev/dm/ |
H A D | device-mapper.c | 539 buf_len = bp->b_bcount; in dmstrategy() 548 bp->b_resid = bp->b_bcount; in dmstrategy() 556 bp->b_resid = bp->b_bcount; in dmstrategy() 574 bp->b_resid = bp->b_bcount; in dmstrategy() 669 bp->b_bcount = MIN(bp->b_bcount, MAXPHYS); in dmminphys()
|
/dports/misc/rump/buildrump.sh-b914579/src/sys/fs/puffs/ |
H A D | puffs_subr.c | 101 if (read_msg->pvnr_resid > bp->b_bcount) { in puffs_parkdone_asyncbioread() 106 moved = bp->b_bcount - read_msg->pvnr_resid; in puffs_parkdone_asyncbioread() 127 if (write_msg->pvnr_resid > bp->b_bcount) { in puffs_parkdone_asyncbiowrite()
|
/dports/misc/rump/buildrump.sh-b914579/src/sys/dev/spi/ |
H A D | spiflash.c | 320 if (((bp->b_bcount % sc->sc_write_size) != 0) || in spiflash_strategy() 328 if (bp->b_bcount == 0) { in spiflash_strategy() 339 bp->b_resid = bp->b_bcount; in spiflash_strategy() 359 cnt += bp->b_bcount - bp->b_resid; in spiflash_process_done() 438 (unsigned)bp->b_blkno, bp->b_bcount, resid)); in spiflash_process_write() 486 addr += bp->b_bcount; in spiflash_nsectors() 500 addr += bp->b_bcount; in spiflash_sector()
|
/dports/misc/rump/buildrump.sh-b914579/src/sys/arch/arm/arm/ |
H A D | disksubr_acorn.c | 202 bp->b_bcount = lp->d_secsize; in filecore_label_read() 262 bp->b_bcount = lp->d_secsize; in filecore_label_read() 344 bp->b_bcount = lp->d_secsize; in filecore_label_locate()
|
/dports/misc/rump/buildrump.sh-b914579/src/sys/arch/evbppc/evbppc/ |
H A D | disksubr.c | 86 bp->b_bcount = lp->d_secsize; in readdisklabel() 131 bp->b_bcount = lp->d_secsize; in readdisklabel() 235 bp->b_bcount = lp->d_secsize; in writedisklabel()
|