| /freebsd-14.2/usr.sbin/makefs/ffs/ |
| H A D | buf.c | 75 (*bpp)->b_bcount); in bread() 82 (*bpp)->b_bcount, (long long)offset, (int)rv); in bread() 85 (*bpp)->b_bcount, (long long)offset, (int)rv); in bread() 86 else if (rv != (*bpp)->b_bcount) /* short read */ in bread() 88 (*bpp)->b_bcount, (long long)offset, (int)rv); in bread() 114 bp->b_bcount = 0; in brelse() 134 bytes = (size_t)bp->b_bcount; in bwrite() 146 bp->b_bcount, (long long)offset, (long long)rv); in bwrite() 173 bp->b_bcount, bp->b_bufsize); in bcleanup() 211 bp->b_bcount = size; in getblk() [all …]
|
| H A D | buf.h | 58 long b_bcount; member 74 #define clrbuf(bp) memset((bp)->b_data, 0, (u_int)(bp)->b_bcount)
|
| /freebsd-14.2/sys/ufs/ffs/ |
| H A D | ffs_rawread.c | 200 bp->b_bcount = len; in ffs_rawread_readahead() 201 if (bp->b_bcount + iolen > bp->b_kvasize) { in ffs_rawread_readahead() 202 bp->b_bcount = bp->b_kvasize; in ffs_rawread_readahead() 204 bp->b_bcount -= PAGE_SIZE; in ffs_rawread_readahead() 223 if (bp->b_bcount + blockoff * DEV_BSIZE > bsize) in ffs_rawread_readahead() 224 bp->b_bcount = bsize - blockoff * DEV_BSIZE; in ffs_rawread_readahead() 226 if (vmapbuf(bp, udata, bp->b_bcount, 1) < 0) in ffs_rawread_readahead() 241 if (bp->b_bcount + blockoff * DEV_BSIZE > bsize * (1 + bforwards)) in ffs_rawread_readahead() 242 bp->b_bcount = bsize * (1 + bforwards) - blockoff * DEV_BSIZE; in ffs_rawread_readahead() 244 if (vmapbuf(bp, udata, bp->b_bcount, 1) < 0) in ffs_rawread_readahead() [all …]
|
| H A D | ffs_softdep.c | 1581 bp->b_bcount = omin(shortage, LONG_MAX); in softdep_send_speedup() 3733 bp->b_bcount = size; in softdep_process_journal() 6542 indirdep->ir_saveddata = malloc(bp->b_bcount, M_INDIRDEP, in setup_trunc_indir() 6555 end = bp->b_data + bp->b_bcount; in setup_trunc_indir() 6608 count = indirdep->ir_savebp->b_bcount - start; in complete_trunc_indir() 6631 indirdep->ir_savebp->b_bcount); in complete_trunc_indir() 10857 bcopy(bp->b_data, indirdep->ir_saveddata, bp->b_bcount); in cancel_indirdep() 10919 indirdep->ir_saveddata = malloc(bp->b_bcount, M_INDIRDEP, in initiate_write_indirdep() 10925 bcopy(bp->b_data, indirdep->ir_saveddata, bp->b_bcount); in initiate_write_indirdep() 10927 bp->b_bcount); in initiate_write_indirdep() [all …]
|
| H A D | ffs_vfsops.c | 2459 calculate_crc32c(~0L, bp->b_data, bp->b_bcount); in ffs_bufwrite() 2556 calculate_crc32c(~0L, bp->b_data, bp->b_bcount); in ffs_geom_strategy()
|
| /freebsd-14.2/sys/kern/ |
| H A D | vfs_cluster.c | 404 bp->b_bcount = 0; in cluster_rbuild() 522 if (tbp->b_bcount != size) in cluster_rbuild() 523 printf("warning: tbp->b_bcount wrong %ld vs %ld\n", tbp->b_bcount, size); in cluster_rbuild() 526 bp->b_bcount += size; in cluster_rbuild() 861 (tbp->b_bcount != tbp->b_bufsize) || in cluster_wbuild() 862 (tbp->b_bcount != size) || in cluster_wbuild() 878 bp->b_bcount = 0; in cluster_wbuild() 949 if ((tbp->b_bcount != size) || in cluster_wbuild() 1002 bp->b_bcount += size; in cluster_wbuild() 1060 error = bread_gb(vp, lbn, last_bp->b_bcount, NOCRED, in cluster_collectbufs()
|
| H A D | vfs_bio.c | 1764 bp->b_bcount = 0; in buf_alloc() 2972 iosize = bp->b_bcount - bp->b_resid; in vfs_vmio_iodone() 3172 toff = bp->b_bcount; in vfs_vmio_extend() 3836 if (eoffset > bp->b_bcount) in vfs_setdirty_range() 3837 eoffset = bp->b_bcount; in vfs_setdirty_range() 4070 if (bp->b_bcount != size) { in getblkx() 4388 if (bp->b_bcount == size) in allocbuf() 4426 else if (size > bp->b_bcount) in allocbuf() 4685 if (eoff > bp->b_offset + bp->b_bcount) in vfs_page_set_valid() 4686 eoff = bp->b_offset + bp->b_bcount; in vfs_page_set_valid() [all …]
|
| H A D | kern_racct.c | 650 racct_add_locked(curproc, RACCT_WRITEBPS, bp->b_bcount, 1); in racct_add_buf() 653 racct_add_locked(curproc, RACCT_READBPS, bp->b_bcount, 1); in racct_add_buf()
|
| /freebsd-14.2/sys/fs/tarfs/ |
| H A D | tarfs_vnops.c | 630 MPASS(bp->b_bcount > 0); in tarfs_strategy() 631 MPASS(bp->b_bufsize >= bp->b_bcount); in tarfs_strategy() 633 tnp->name, (size_t)bp->b_iooffset, bp->b_bcount, bp->b_bufsize); in tarfs_strategy() 635 iov.iov_len = bp->b_bcount; in tarfs_strategy() 637 len = bp->b_bcount; in tarfs_strategy()
|
| H A D | tarfs_io.c | 578 iov.iov_len = bp->b_bcount; in tarfs_zstrategy() 580 len = bp->b_bcount; in tarfs_zstrategy()
|
| /freebsd-14.2/sys/fs/nfsclient/ |
| H A D | nfs_clbio.c | 991 wouldcommit += bp->b_bcount; in ncl_write() 1584 io.iov_len = uiop->uio_resid = bp->b_bcount; in ncl_doio() 1604 int nread = bp->b_bcount - uiop->uio_resid; in ncl_doio() 1643 if (error == 0 && uiop->uio_resid == bp->b_bcount) in ncl_doio() 1718 && bp->b_dirtyend == bp->b_bcount) in ncl_doio() 1834 if (bp->b_dirtyoff > bp->b_bcount) in ncl_meta_setsize() 1835 bp->b_dirtyoff = bp->b_bcount; in ncl_meta_setsize() 1836 if (bp->b_dirtyend > bp->b_bcount) in ncl_meta_setsize() 1837 bp->b_dirtyend = bp->b_bcount; in ncl_meta_setsize()
|
| /freebsd-14.2/cddl/lib/libdtrace/ |
| H A D | io.d | 55 long b_bcount; /* number of bytes */ member 70 b_bcount = B->bio_bcount;
|
| /freebsd-14.2/sys/geom/ |
| H A D | geom_vfs.c | 164 bp->b_resid = bp->b_bcount - bip->bio_completed; in g_vfs_done() 208 bip->bio_length = bp->b_bcount; in g_vfs_strategy()
|
| /freebsd-14.2/sys/sys/ |
| H A D | buf.h | 100 long b_bcount; member 495 bzero((bp)->b_data, (u_int)(bp)->b_bcount); \
|
| /freebsd-14.2/cddl/usr.sbin/dwatch/libexec/ |
| H A D | io | 70 this->bio_length = (long)this->bufinfo.b_bcount;
|
| /freebsd-14.2/sys/vm/ |
| H A D | swap_pager.c | 895 &bp->b_pages[0], bp->b_bcount / PAGE_SIZE); in swp_pager_strategy() 1364 bp->b_bcount = PAGE_SIZE * count; in swap_pager_getpages_locked() 1401 bp->b_bufobj, (intmax_t)bp->b_blkno, bp->b_bcount); in swap_pager_getpages_locked() 1552 bp->b_bcount = PAGE_SIZE * n; in swap_pager_putpages() 1563 bp->b_dirtyend = bp->b_bcount; in swap_pager_putpages() 1637 (long)bp->b_bcount, in swp_pager_async_iodone() 2858 bp->b_resid = bp->b_bcount - bp2->bio_completed; in swapgeom_done() 2906 bio->bio_length = bp->b_bcount; in swapgeom_strategy()
|
| H A D | vnode_pager.c | 703 bp->b_bcount = bsize; in vnode_pager_input_smlfs() 1148 bp->b_bcount = bp->b_bufsize = bp->b_runningbufspace = bytecount; in vnode_pager_generic_getpages() 1214 if (error == 0 && bp->b_bcount != bp->b_npages * PAGE_SIZE) { in vnode_pager_generic_getpages_done() 1220 bzero(bp->b_data + bp->b_bcount, in vnode_pager_generic_getpages_done() 1221 PAGE_SIZE * bp->b_npages - bp->b_bcount); in vnode_pager_generic_getpages_done()
|
| /freebsd-14.2/sys/fs/smbfs/ |
| H A D | smbfs_io.c | 328 io.iov_len = uiop->uio_resid = bp->b_bcount; in smbfs_doio() 339 int nread = bp->b_bcount - left; in smbfs_doio()
|
| /freebsd-14.2/sys/fs/fuse/ |
| H A D | fuse_io.c | 794 io.iov_len = uiop->uio_resid = bp->b_bcount; in fuse_io_strategy() 806 int nread = bp->b_bcount - uiop->uio_resid; in fuse_io_strategy()
|
| /freebsd-14.2/usr.sbin/makefs/msdos/ |
| H A D | msdosfs_fat.c | 339 bp->b_bcount, 0, 0, 0); in updatefats() 340 memcpy(bpn->b_data, bp->b_data, bp->b_bcount); in updatefats()
|
| /freebsd-14.2/sys/fs/msdosfs/ |
| H A D | msdosfs_fat.c | 342 bpn = getblk(pmp->pm_devvp, fatbn, bp->b_bcount, in updatefats() 344 memcpy(bpn->b_data, bp->b_data, bp->b_bcount); in updatefats()
|
| /freebsd-14.2/sys/fs/ext2fs/ |
| H A D | ext2_lookup.c | 188 if (bp->b_offset + bp->b_bcount > ip->i_size) in ext2_readdir() 191 readcnt = bp->b_bcount; in ext2_readdir()
|
| H A D | ext2_inode.c | 157 if (bp->b_bcount > bp->b_bufsize) in ext2_indirtrunc()
|
| /freebsd-14.2/sys/ufs/ufs/ |
| H A D | ufs_vnops.c | 2195 while (blkoff < bp->b_bcount) { in ufs_mkdir() 2451 if (bp->b_offset + bp->b_bcount > ip->i_size) in ufs_readdir() 2454 readcnt = bp->b_bcount; in ufs_readdir()
|
| H A D | ufs_lookup.c | 924 while (blkoff < bp->b_bcount) { in ufs_direnter()
|