Lines Matching refs:bcount

84 	ssize_t cnt, bcount;  in read()  local
164 auio.uio_resid = bcount = cnt; in read()
171 if (bcount <= copyout_max_cached) in read()
193 (vp->v_type != VREG) || (bcount != 0)) /* POSIX */ in read()
220 ssize_t cnt, bcount; in write() local
302 auio.uio_resid = bcount = cnt; in write()
322 (vp->v_type != VREG) || (bcount != 0)) /* POSIX */ in write()
346 ssize_t bcount; in pread() local
357 if ((bcount = (ssize_t)count) < 0) in pread()
372 if (bcount == 0) in pread()
389 if (fileoff + bcount > maxoff) in pread()
390 bcount = (ssize_t)((offset_t)maxoff - fileoff); in pread()
408 if (nbl_conflict(vp, NBL_READ, fileoff, bcount, svmand, in pread()
416 aiov.iov_len = bcount; in pread()
431 bcount = 0; in pread()
445 auio.uio_resid = bcount; in pread()
457 bcount -= auio.uio_resid; in pread()
461 CPU_STATS_ADDQ(cp, sys, readch, (ulong_t)bcount); in pread()
463 ttolwp(curthread)->lwp_ru.ioch += (ulong_t)bcount; in pread()
466 if (error == EINTR && bcount != 0) in pread()
474 return (bcount); in pread()
486 ssize_t bcount; in pwrite() local
497 if ((bcount = (ssize_t)count) < 0) in pwrite()
511 if (bcount == 0) in pwrite()
544 bcount = (ssize_t)((u_offset_t)maxoff - fileoff); in pwrite()
562 if (nbl_conflict(vp, NBL_WRITE, fileoff, bcount, svmand, in pwrite()
570 aiov.iov_len = bcount; in pwrite()
575 auio.uio_resid = bcount; in pwrite()
591 bcount -= auio.uio_resid; in pwrite()
595 CPU_STATS_ADDQ(cp, sys, writech, (ulong_t)bcount); in pwrite()
597 ttolwp(curthread)->lwp_ru.ioch += (ulong_t)bcount; in pwrite()
600 if (error == EINTR && bcount != 0) in pwrite()
608 return (bcount); in pwrite()
621 ssize_t count, bcount; in readv() local
759 auio.uio_resid = bcount = count; in readv()
763 if (bcount <= copyout_max_cached) in readv()
786 (vp->v_type != VREG) || (bcount != 0)) /* POSIX */ in readv()
814 ssize_t count, bcount; in writev() local
950 auio.uio_resid = bcount = count; in writev()
970 (vp->v_type != VREG) || (bcount != 0)) /* POSIX */ in writev()
998 ssize_t count, bcount; in preadv() local
1090 if ((bcount = count) < 0) { in preadv()
1111 if (bcount == 0) in preadv()
1130 ASSERT(bcount == count); in preadv()
1163 auio.uio_resid = bcount = count; in preadv()
1167 if (bcount <= copyout_max_cached) in preadv()
1208 ssize_t count, bcount; in pwritev() local
1291 if ((bcount = count) < 0) { in pwritev()
1313 if (bcount == 0) in pwritev()
1348 ASSERT(bcount == count); in pwritev()
1381 auio.uio_resid = bcount = count; in pwritev()
1426 ssize_t bcount; in pread64() local
1437 if ((bcount = (ssize_t)count) < 0 || bcount > INT32_MAX) in pread64()
1452 if (bcount == 0) in pread64()
1463 if (fileoff + bcount > MAXOFFSET_T) in pread64()
1464 bcount = (ssize_t)(MAXOFFSET_T - fileoff); in pread64()
1482 if (nbl_conflict(vp, NBL_READ, fileoff, bcount, svmand, in pread64()
1490 aiov.iov_len = bcount; in pread64()
1504 auio.uio_resid = bcount; in pread64()
1516 bcount -= auio.uio_resid; in pread64()
1520 CPU_STATS_ADDQ(cp, sys, readch, (ulong_t)bcount); in pread64()
1522 ttolwp(curthread)->lwp_ru.ioch += (ulong_t)bcount; in pread64()
1525 if (error == EINTR && bcount != 0) in pread64()
1533 return (bcount); in pread64()
1549 ssize_t bcount; in pwrite64() local
1560 if ((bcount = (ssize_t)count) < 0 || bcount > INT32_MAX) in pwrite64()
1574 if (bcount == 0) in pwrite64()
1596 if (fileoff + bcount > MAXOFFSET_T) in pwrite64()
1597 bcount = (ssize_t)((u_offset_t)MAXOFFSET_T - fileoff); in pwrite64()
1615 if (nbl_conflict(vp, NBL_WRITE, fileoff, bcount, svmand, in pwrite64()
1623 aiov.iov_len = bcount; in pwrite64()
1628 auio.uio_resid = bcount; in pwrite64()
1644 bcount -= auio.uio_resid; in pwrite64()
1648 CPU_STATS_ADDQ(cp, sys, writech, (ulong_t)bcount); in pwrite64()
1650 ttolwp(curthread)->lwp_ru.ioch += (ulong_t)bcount; in pwrite64()
1653 if (error == EINTR && bcount != 0) in pwrite64()
1661 return (bcount); in pwrite64()