/openbsd-current/usr.sbin/makefs/ffs/ |
H A D | buf.c | 68 rv = read((*bpp)->b_fs->fd, (*bpp)->b_data, (size_t)(*bpp)->b_bcount); 71 (*bpp)->b_bcount, (long long)offset, rv); 72 else if (rv != (*bpp)->b_bcount) /* short read */ 74 (*bpp)->b_bcount, (long long)offset, rv); 100 bp->b_bcount = 0; 119 bytes = (size_t)bp->b_bcount; 151 bp->b_bcount, bp->b_bufsize); 184 bp->b_bcount = size; 185 if (bp->b_data == NULL || bp->b_bcount > bp->b_bufsize) {
|
H A D | buf.h | 68 long b_bcount; member in struct:mkfsbuf 83 #define clrbuf(bp) memset((bp)->b_data, 0, (u_int)(bp)->b_bcount)
|
/openbsd-current/sys/kern/ |
H A D | kern_physio.c | 113 * Because iov_len is size_t (unsigned) but b_bcount is 115 * limit b_bcount to LONG_MAX before calling the 119 bp->b_bcount = LONG_MAX; 121 bp->b_bcount = iovp->iov_len; 129 todo = bp->b_bcount; 191 done = bp->b_bcount - bp->b_resid; 235 if (bp->b_bcount > MAXPHYS) 236 bp->b_bcount = MAXPHYS;
|
H A D | subr_disk.c | 316 bp->b_bcount = lp->d_secsize; 956 if (lp->d_secpercyl == 0 || bp->b_blkno < 0 || bp->b_bcount < 0) 961 (bp->b_bcount % lp->d_secsize) != 0) 970 if (bp->b_blkno == partblocks || bp->b_bcount == 0) 974 sz = bp->b_bcount >> DEV_BSHIFT; 977 bp->b_bcount = sz << DEV_BSHIFT; 986 bp->b_resid = bp->b_bcount; 1021 if (bp->b_bcount <= DEV_BSIZE) 1029 (long long)(bp->b_blkno + (bp->b_bcount - 1) / DEV_BSIZE)); 1031 if (lp && (blkdone >= 0 || bp->b_bcount < [all...] |
/openbsd-current/sys/ufs/ext2fs/ |
H A D | ext2fs_subr.c | 122 last = start + btodb(bp->b_bcount) - 1; 132 if (ep->b_bcount == 0 || ep->b_blkno > last || 133 ep->b_blkno + btodb(ep->b_bcount) <= start) 138 (long long)(ep->b_blkno + btodb(ep->b_bcount) - 1));
|
H A D | ext2fs_inode.c | 299 bp->b_bcount = size; 461 if (bp->b_bcount > bp->b_bufsize)
|
/openbsd-current/sys/ufs/mfs/ |
H A D | mfs_vnops.c | 151 if (bp->b_bcount > mfsp->mfs_size - offset) 152 bp->b_bcount = mfsp->mfs_size - offset; 156 bp->b_error = copyin(base, bp->b_data, bp->b_bcount); 158 bp->b_error = copyout(bp->b_data, base, bp->b_bcount);
|
/openbsd-current/sys/ufs/ffs/ |
H A D | ffs_subr.c | 131 last = start + btodb(bp->b_bcount) - 1; 141 if (ep->b_bcount == 0 || ep->b_blkno > last || 142 ep->b_blkno + btodb(ep->b_bcount) <= start) 148 (long long)(ep->b_blkno + btodb(ep->b_bcount) - 1));
|
/openbsd-current/sys/dev/ |
H A D | vnd.c | 144 vndencrypt(sc, bp->b_data, bp->b_bcount, bp->b_blkno, encrypt); 304 origbcount = bp->b_bcount; 307 bp->b_bcount = ((origbcount + secsize - 1) & ~(secsize - 1)); 309 if (bp->b_bcount != origbcount) { 321 bp->b_resid = bp->b_bcount = origbcount; 325 if (origbcount < bp->b_bcount) 326 bp->b_bcount = origbcount; 343 sc->sc_vp, bp->b_data, bp->b_bcount, off, UIO_SYSSPACE, 356 bp->b_resid = bp->b_bcount;
|
H A D | rd.c | 230 xfer = bp->b_bcount; 238 bp->b_resid = bp->b_bcount - xfer; 243 bp->b_resid = bp->b_bcount;
|
/openbsd-current/sys/dev/isa/ |
H A D | fd.c | 394 (bp->b_bcount % fd_bsize) != 0) && 401 if (bp->b_bcount == 0) 404 sz = howmany(bp->b_bcount, DEV_BSIZE); 417 bp->b_bcount = sz << DEV_BSHIFT; 420 bp->b_resid = bp->b_bcount; 423 printf("fdstrategy: b_blkno %lld b_bcount %d blkno %lld sz %d\n", 424 (long long)bp->b_blkno, bp->b_bcount, 452 bp->b_resid = bp->b_bcount; 686 cylin = ((bp->b_blkno * DEV_BSIZE) + (bp->b_bcount - bp->b_resid)) / 693 fd->sc_bcount = bp->b_bcount; [all...] |
/openbsd-current/sys/sys/ |
H A D | buf.h | 129 long b_bcount; /* Valid bytes in buffer. */ member in struct:buf 169 #define b_active b_bcount /* Driver queue head: drive active. */ 213 bzero((bp)->b_data, (bp)->b_bcount); \
|
/openbsd-current/sys/isofs/udf/ |
H A D | udf_subr.c | 114 bp->b_bcount = bsize; 135 bp->b_bcount = bsize;
|
/openbsd-current/sys/scsi/ |
H A D | st.c | 754 bp->b_bcount, (long long)bp->b_blkno)); 759 if (bp->b_bcount == 0) 765 if (bp->b_bcount % st->blksize) { 775 else if (bp->b_bcount < st->blkmin || 776 (st->blkmax && bp->b_bcount > st->blkmax)) { 803 bp->b_resid = bp->b_bcount; 866 bp->b_resid = bp->b_bcount; 874 bp->b_resid = bp->b_bcount; 891 bp->b_resid = bp->b_bcount; 926 _lto3b(bp->b_bcount / s [all...] |
H A D | sd.c | 544 bp->b_bcount, (long long)bp->b_blkno)); 574 bp->b_resid = bp->b_bcount; 679 xs->datalen = bp->b_bcount; 686 nsecs = howmany(bp->b_bcount, sc->sc_dk.dk_label->d_secsize); 763 bp->b_resid = bp->b_bcount; 767 disk_unbusy(&sc->sc_dk, bp->b_bcount - xs->resid, bp->b_blkno, 807 if (bp->b_bcount > max) 808 bp->b_bcount = max;
|
H A D | cd.c | 451 bp->b_bcount, (long long)bp->b_blkno)); 479 bp->b_resid = bp->b_bcount; 577 xs->datalen = bp->b_bcount; 584 nsecs = howmany(bp->b_bcount, sc->sc_dk.dk_label->d_secsize); 651 bp->b_resid = bp->b_bcount; 655 disk_unbusy(&sc->sc_dk, bp->b_bcount - xs->resid, bp->b_blkno, 691 if (bp->b_bcount > max) 692 bp->b_bcount = max;
|
/openbsd-current/sys/arch/sparc64/dev/ |
H A D | fd.c | 694 (((bp->b_bcount % FD_BSIZE(fd)) != 0 || 702 if (bp->b_bcount == 0) 705 bp->b_resid = bp->b_bcount; 706 sz = howmany(bp->b_bcount, DEV_BSIZE); 721 bp->b_bcount = sz << DEV_BSHIFT; 726 printf("fdstrategy: b_blkno %lld b_bcount %d blkno %lld\n", 727 (long long)bp->b_blkno, bp->b_bcount, 1275 cylin = ((bp->b_blkno * DEV_BSIZE) - (bp->b_bcount - bp->b_resid)) / 1282 fd->sc_bcount = bp->b_bcount; 1396 fd->sc_nbytes = finfo ? bp->b_bcount [all...] |
/openbsd-current/sys/nfs/ |
H A D | nfs_bio.c | 553 io.iov_len = uiop->uio_resid = bp->b_bcount; 572 io.iov_len = uiop->uio_resid = bp->b_bcount; 591 diff = bp->b_bcount - uiop->uio_resid; 601 bp->b_validend = bp->b_bcount;
|
/openbsd-current/sys/uvm/ |
H A D | uvm_swap.c | 1211 bp->b_resid = bp->b_bcount; /* nothing transferred yet! */ 1271 nbp->vb_buf.b_bcount = sz; 1292 max(0, bp->b_dirtyoff - (bp->b_bcount-resid)); 1295 max(0, bp->b_dirtyend - (bp->b_bcount-resid))); 1302 max(0, bp->b_validoff - (bp->b_bcount-resid)); 1305 max(0, bp->b_validend - (bp->b_bcount-resid))); 1404 resid = vbp->vb_buf.b_bcount - vbp->vb_buf.b_resid; 1870 bp->b_bufsize = bp->b_bcount = (long)npages << PAGE_SHIFT;
|
/openbsd-current/sys/arch/octeon/dev/ |
H A D | amdcf.c | 451 if ((bp->b_bcount / sc->sc_dk.dk_label->d_secsize) >= (1 << NBBY)) { 466 bp->b_resid = bp->b_bcount; 645 disk_unbusy(&sc->sc_dk, (bp->b_bcount - bp->b_resid), 663 resid = bp->b_bcount; 678 resid = bp->b_bcount;
|
H A D | octcf.c | 315 if ((bp->b_bcount / wd->sc_dk.dk_label->d_secsize) >= (1 << NBBY)) { 330 bp->b_resid = bp->b_bcount; 366 nsecs = howmany(bp->b_bcount, lp->d_secsize); 391 disk_unbusy(&wd->sc_dk, (bp->b_bcount - bp->b_resid),
|
/openbsd-current/sys/dev/ata/ |
H A D | wd.c | 408 if ((bp->b_bcount / wd->sc_dk.dk_label->d_secsize) >= (1 << NBBY)) { 423 bp->b_resid = bp->b_bcount; 478 nsecs = howmany(bp->b_bcount, lp->d_secsize); 488 wd->sc_wdc_bio.bcount = bp->b_bcount; 566 disk_unbusy(&wd->sc_dk, (bp->b_bcount - bp->b_resid),
|
/openbsd-current/sys/ntfs/ |
H A D | ntfs_vnops.c | 265 bp->b_bcount, bp->b_flags); 274 toread = MIN(bp->b_bcount, 289 bzero(bp->b_data + toread, bp->b_bcount - toread);
|
/openbsd-current/sys/arch/amd64/amd64/ |
H A D | dkcsum.c | 114 bp->b_bcount = bios_cksumlen * DEV_BSIZE;
|
/openbsd-current/sys/arch/i386/i386/ |
H A D | dkcsum.c | 114 bp->b_bcount = bios_cksumlen * DEV_BSIZE;
|