Lines Matching refs:b_bufsize
673 diff = bufsize - bp->b_bufsize;
683 bp->b_bufsize = bufsize;
871 diff = bufsize - bp->b_bufsize;
876 bp->b_bufsize = bufsize;
1688 KASSERT(bp->b_bufsize == 0, ("bp: %p still has bufspace\n", bp));
2287 bp->b_runningbufspace = bp->b_bufsize;
2697 (bp->b_ioflags & BIO_ERROR) || (bp->b_bufsize <= 0)) {
2769 if (bp->b_bufsize == 0 || (bp->b_ioflags & BIO_ERROR) != 0 ||
2782 if (bp->b_bufsize == 0) {
2980 resid = bp->b_bufsize;
3155 if (bpa->b_bufsize != size)
3232 * XXX returns b_bufsize instead of b_bcount for nwritten?
3234 nwritten = bp->b_bufsize;
3683 * just go ahead and clean through to b_bufsize.
3692 if ((bp->b_flags & B_VMIO) == 0 || bp->b_bufsize == 0)
3704 if (eoff > bp->b_offset + bp->b_bufsize)
3705 eoff = bp->b_offset + bp->b_bufsize;
4232 if (bp->b_bufsize == 0 && newbsize <= PAGE_SIZE/2 &&
4249 origbufsize = bp->b_bufsize;
4255 vm_hold_load_pages(bp, (vm_offset_t) bp->b_data + bp->b_bufsize,
4297 if (newbsize < bp->b_bufsize)
4299 else if (newbsize > bp->b_bufsize)
4313 if (size == 0 || bp->b_bufsize == 0)
4316 if (newbsize < bp->b_bufsize)
4318 /* XXX This looks as if it should be newbsize > b_bufsize */
4673 if (bp->b_bufsize != 0)
4766 * we go ahead and clear through b_bufsize.
4783 slide = imin(slide + PAGE_SIZE, bp->b_offset + bp->b_bufsize);
4939 * Notice that we use b_bufsize for the size of the buffer
4963 bp->b_bufsize = len;
5355 "b_error = %d, b_bufsize = %ld, b_bcount = %ld, b_resid = %ld\n"
5358 bp->b_error, bp->b_bufsize, bp->b_bcount, bp->b_resid,
5426 total += bp->b_bufsize;
5431 total += bp->b_bufsize;
5446 total += bp->b_bufsize;
5456 total += bp->b_bufsize;