Home
last modified time | relevance | path

Searched refs:b_bcount (Results 1 – 25 of 26) sorted by relevance

12

/freebsd-14.2/usr.sbin/makefs/ffs/
H A Dbuf.c75 (*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 Dbuf.h58 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 Dffs_rawread.c200 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 Dffs_softdep.c1581 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 Dffs_vfsops.c2459 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 Dvfs_cluster.c404 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 Dvfs_bio.c1764 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 Dkern_racct.c650 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 Dtarfs_vnops.c630 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 Dtarfs_io.c578 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 Dnfs_clbio.c991 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 Dio.d55 long b_bcount; /* number of bytes */ member
70 b_bcount = B->bio_bcount;
/freebsd-14.2/sys/geom/
H A Dgeom_vfs.c164 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 Dbuf.h100 long b_bcount; member
495 bzero((bp)->b_data, (u_int)(bp)->b_bcount); \
/freebsd-14.2/cddl/usr.sbin/dwatch/libexec/
H A Dio70 this->bio_length = (long)this->bufinfo.b_bcount;
/freebsd-14.2/sys/vm/
H A Dswap_pager.c895 &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 Dvnode_pager.c703 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 Dsmbfs_io.c328 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 Dfuse_io.c794 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 Dmsdosfs_fat.c339 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 Dmsdosfs_fat.c342 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 Dext2_lookup.c188 if (bp->b_offset + bp->b_bcount > ip->i_size) in ext2_readdir()
191 readcnt = bp->b_bcount; in ext2_readdir()
H A Dext2_inode.c157 if (bp->b_bcount > bp->b_bufsize) in ext2_indirtrunc()
/freebsd-14.2/sys/ufs/ufs/
H A Dufs_vnops.c2195 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 Dufs_lookup.c924 while (blkoff < bp->b_bcount) { in ufs_direnter()

12