Lines Matching refs:bcount

83 	ssize_t cnt, bcount;
163 auio.uio_resid = bcount = cnt;
170 if (bcount <= copyout_max_cached)
192 (vp->v_type != VREG) || (bcount != 0)) /* POSIX */
219 ssize_t cnt, bcount;
301 auio.uio_resid = bcount = cnt;
321 (vp->v_type != VREG) || (bcount != 0)) /* POSIX */
345 ssize_t bcount;
356 if ((bcount = (ssize_t)count) < 0)
371 if (bcount == 0)
388 if (fileoff + bcount > maxoff)
389 bcount = (ssize_t)((offset_t)maxoff - fileoff);
407 if (nbl_conflict(vp, NBL_READ, fileoff, bcount, svmand,
415 aiov.iov_len = bcount;
430 bcount = 0;
444 auio.uio_resid = bcount;
456 bcount -= auio.uio_resid;
460 CPU_STATS_ADDQ(cp, sys, readch, (ulong_t)bcount);
462 ttolwp(curthread)->lwp_ru.ioch += (ulong_t)bcount;
465 if (error == EINTR && bcount != 0)
473 return (bcount);
485 ssize_t bcount;
496 if ((bcount = (ssize_t)count) < 0)
510 if (bcount == 0)
543 bcount = (ssize_t)((u_offset_t)maxoff - fileoff);
561 if (nbl_conflict(vp, NBL_WRITE, fileoff, bcount, svmand,
569 aiov.iov_len = bcount;
574 auio.uio_resid = bcount;
590 bcount -= auio.uio_resid;
594 CPU_STATS_ADDQ(cp, sys, writech, (ulong_t)bcount);
596 ttolwp(curthread)->lwp_ru.ioch += (ulong_t)bcount;
599 if (error == EINTR && bcount != 0)
607 return (bcount);
627 ssize_t count, bcount;
733 auio.uio_resid = bcount = count;
737 if (bcount <= copyout_max_cached)
760 (vp->v_type != VREG) || (bcount != 0)) /* POSIX */
785 ssize_t count, bcount;
890 auio.uio_resid = bcount = count;
910 (vp->v_type != VREG) || (bcount != 0)) /* POSIX */
935 ssize_t count, bcount;
994 if ((bcount = (ssize_t)count) < 0)
1006 if (bcount == 0)
1018 if (fileoff + bcount > maxoff)
1019 bcount = (ssize_t)((u_offset_t)maxoff - fileoff);
1075 auio.uio_resid = bcount = count;
1079 if (bcount <= copyout_max_cached)
1117 ssize_t count, bcount;
1176 if ((bcount = (ssize_t)count) < 0)
1188 if (bcount == 0)
1230 if (fileoff + bcount > maxoff)
1231 bcount = (ssize_t)((u_offset_t)maxoff - fileoff);
1288 auio.uio_resid = bcount = count;
1331 ssize_t bcount;
1342 if ((bcount = (ssize_t)count) < 0 || bcount > INT32_MAX)
1357 if (bcount == 0)
1368 if (fileoff + bcount > MAXOFFSET_T)
1369 bcount = (ssize_t)(MAXOFFSET_T - fileoff);
1387 if (nbl_conflict(vp, NBL_READ, fileoff, bcount, svmand,
1395 aiov.iov_len = bcount;
1409 auio.uio_resid = bcount;
1421 bcount -= auio.uio_resid;
1425 CPU_STATS_ADDQ(cp, sys, readch, (ulong_t)bcount);
1427 ttolwp(curthread)->lwp_ru.ioch += (ulong_t)bcount;
1430 if (error == EINTR && bcount != 0)
1438 return (bcount);
1454 ssize_t bcount;
1465 if ((bcount = (ssize_t)count) < 0 || bcount > INT32_MAX)
1479 if (bcount == 0)
1501 if (fileoff + bcount > MAXOFFSET_T)
1502 bcount = (ssize_t)((u_offset_t)MAXOFFSET_T - fileoff);
1520 if (nbl_conflict(vp, NBL_WRITE, fileoff, bcount, svmand,
1528 aiov.iov_len = bcount;
1533 auio.uio_resid = bcount;
1549 bcount -= auio.uio_resid;
1553 CPU_STATS_ADDQ(cp, sys, writech, (ulong_t)bcount);
1555 ttolwp(curthread)->lwp_ru.ioch += (ulong_t)bcount;
1558 if (error == EINTR && bcount != 0)
1566 return (bcount);