/freebsd/usr.sbin/makefs/ffs/ |
H A D | buf.c | 74 (*bpp)->b_bcount); in bread() 78 rv = read((*bpp)->b_fs->fd, (*bpp)->b_data, (size_t)(*bpp)->b_bcount); in bread() 81 (*bpp)->b_bcount, (long long)offset, (int)rv); in bread() 84 (*bpp)->b_bcount, (long long)offset, (int)rv); in bread() 85 else if (rv != (*bpp)->b_bcount) /* short read */ in bread() 87 (*bpp)->b_bcount, (long long)offset, (int)rv); in bread() 113 bp->b_bcount = 0; in brelse() 133 bytes = (size_t)bp->b_bcount; in bwrite() 145 bp->b_bcount, (long long)offset, (long long)rv); in bwrite() 172 bp->b_bcount, bp->b_bufsize); in bcleanup() [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/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, in ffs_rawread_readahead() [all...] |
H A D | ffs_softdep.c | 1579 bp->b_bcount = omin(shortage, LONG_MAX); in softdep_send_speedup() 3732 bp->b_bcount = size; in softdep_process_journal() 6225 getblk(ump->um_devvp, bp->b_blkno, bp->b_bcount, 0, 0, 0); in indirdep_lookup() 6228 bcopy(bp->b_data, newindirdep->ir_savebp->b_data, bp->b_bcount); in indirdep_lookup() 6544 indirdep->ir_saveddata = malloc(bp->b_bcount, M_INDIRDEP, in setup_trunc_indir() 6557 end = bp->b_data + bp->b_bcount; in setup_trunc_indir() 6610 count = indirdep->ir_savebp->b_bcount - start; in complete_trunc_indir() 6633 indirdep->ir_savebp->b_bcount); in complete_trunc_indir() 10855 bcopy(bp->b_data, indirdep->ir_savebp->b_data, bp->b_bcount); in cancel_indirdep() 10857 bcopy(bp->b_data, indirdep->ir_saveddata, bp->b_bcount); in cancel_indirdep() [all...] |
H A D | ffs_vfsops.c | 2316 calculate_crc32c(~0L, bp->b_data, bp->b_bcount); in ffs_bufwrite() 2411 calculate_crc32c(~0L, bp->b_data, bp->b_bcount); in ffs_geom_strategy()
|
/freebsd/sys/kern/ |
H A D | vfs_cluster.c | 401 bp->b_bcount = 0; in cluster_rbuild() 519 if (tbp->b_bcount != size) in cluster_rbuild() 520 printf("warning: tbp->b_bcount wrong %ld vs %ld\n", tbp->b_bcount, size); in cluster_rbuild() 523 bp->b_bcount += size; in cluster_rbuild() 858 (tbp->b_bcount != tbp->b_bufsize) || in cluster_wbuild() 859 (tbp->b_bcount != size) || in cluster_wbuild() 875 bp->b_bcount = 0; in cluster_wbuild() 946 if ((tbp->b_bcount != size) || in cluster_wbuild() 999 bp->b_bcount += size; in cluster_wbuild() 1057 error = bread_gb(vp, lbn, last_bp->b_bcount, NOCRED, in cluster_collectbufs()
|
H A D | vfs_bio.c | 1780 bp->b_bcount = 0; in buf_alloc() 2982 iosize = bp->b_bcount - bp->b_resid; in vfs_vmio_iodone() 3182 toff = bp->b_bcount; in vfs_vmio_extend() 3846 if (eoffset > bp->b_bcount) in vfs_setdirty_range() 3847 eoffset = bp->b_bcount; in vfs_setdirty_range() 4105 if (bp->b_bcount != size) { in getblkx() 4417 if (bp->b_bcount == size) in allocbuf() 4455 else if (size > bp->b_bcount) in allocbuf() 4459 bp->b_bcount = size; /* requested buffer size. */ in allocbuf() 4714 if (eoff > bp->b_offset + bp->b_bcount) in vfs_page_set_valid() [all …]
|
H A D | kern_racct.c | 644 racct_add_locked(curproc, RACCT_WRITEBPS, bp->b_bcount, 1); in racct_add_buf() 647 racct_add_locked(curproc, RACCT_READBPS, bp->b_bcount, 1); in racct_add_buf()
|
/freebsd/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/sys/fs/nfsclient/ |
H A D | nfs_clbio.c | 713 * Unlike VREG files, whos buffer size ( bp->b_bcount ) is in ncl_bioread() 988 wouldcommit += bp->b_bcount; in ncl_write() 1581 io.iov_len = uiop->uio_resid = bp->b_bcount; in ncl_doio() 1601 int nread = bp->b_bcount - uiop->uio_resid; in ncl_doio() 1640 if (error == 0 && uiop->uio_resid == bp->b_bcount) in ncl_doio() 1715 && bp->b_dirtyend == bp->b_bcount) in ncl_doio() 1831 if (bp->b_dirtyoff > bp->b_bcount) 1832 bp->b_dirtyoff = bp->b_bcount; 1833 if (bp->b_dirtyend > bp->b_bcount) 1834 bp->b_dirtyend = bp->b_bcount; [all...] |
/freebsd/cddl/lib/libdtrace/ |
H A D | io.d | 55 long b_bcount; /* number of bytes */ member 70 b_bcount = B->bio_bcount;
|
/freebsd/sys/sys/ |
H A D | buf.h | 98 long b_bcount; member 500 bzero((bp)->b_data, (u_int)(bp)->b_bcount); \
|
/freebsd/cddl/usr.sbin/dwatch/libexec/ |
H A D | io | 70 this->bio_length = (long)this->bufinfo.b_bcount;
|
/freebsd/sys/vm/ |
H A D | vnode_pager.c | 718 bp->b_bcount = bsize; in vnode_pager_input_smlfs() 1109 bp->b_bcount = bp->b_bufsize = bytecount; in vnode_pager_generic_getpages() 1176 if (error == 0 && bp->b_bcount != bp->b_npages * PAGE_SIZE) { in vnode_pager_generic_getpages_done() 1182 bzero(bp->b_data + bp->b_bcount, in vnode_pager_generic_getpages_done() 1183 PAGE_SIZE * bp->b_npages - bp->b_bcount); in vnode_pager_generic_getpages_done()
|
H A D | swap_pager.c | 995 &bp->b_pages[0], bp->b_bcount / PAGE_SIZE); in swp_pager_strategy() 1416 bp->b_bufsize = bp->b_bcount = ptoa(bp->b_npages); in swap_pager_getpages_locked() 1451 bp->b_bufobj, (intmax_t)bp->b_blkno, bp->b_bcount); in swap_pager_getpages_locked() 1612 bp->b_bcount = PAGE_SIZE * n; in swap_pager_putpages() 1623 bp->b_dirtyend = bp->b_bcount; in swap_pager_putpages() 1697 (long)bp->b_bcount, in swp_pager_async_iodone() 3142 bp->b_resid = bp->b_bcount - bp2->bio_completed; in swapgeom_done() 3190 bio->bio_length = bp->b_bcount; in swapgeom_strategy()
|
/freebsd/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/sys/fs/fuse/ |
H A D | fuse_io.c | 793 io.iov_len = uiop->uio_resid = bp->b_bcount; in fuse_io_strategy() 805 int nread = bp->b_bcount - uiop->uio_resid; in fuse_io_strategy()
|
/freebsd/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/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/sys/fs/ext2fs/ |
H A D | ext2_lookup.c | 186 if (bp->b_offset + bp->b_bcount > ip->i_size) in ext2_readdir() 189 readcnt = bp->b_bcount; in ext2_readdir()
|
H A D | ext2_inode.c | 155 if (bp->b_bcount > bp->b_bufsize) in ext2_indirtrunc()
|
/freebsd/sys/ufs/ufs/ |
H A D | ufs_vnops.c | 2196 while (blkoff < bp->b_bcount) { in ufs_mkdir() 2453 if (bp->b_offset + bp->b_bcount > ip->i_size) in ufs_readdir() 2456 readcnt = bp->b_bcount; in ufs_readdir()
|
H A D | ufs_lookup.c | 922 while (blkoff < bp->b_bcount) { in ufs_direnter()
|
/freebsd/sys/fs/p9fs/ |
H A D | p9fs_vnops.c | 1885 io.iov_len = uiov->uio_resid = bp->b_bcount; in p9fs_doio() 1897 int nread = bp->b_bcount - left; in p9fs_doio()
|