Lines Matching refs:nbufs
401 size_t nbufs, in uv__preadv_or_pwritev_emul() argument
411 for (i = 0; i < (size_t) nbufs; i++) { in uv__preadv_or_pwritev_emul()
448 uv__iovcnt nbufs, in uv__preadv_emul() argument
450 return uv__preadv_or_pwritev_emul(fd, bufs, nbufs, off, /*is_pread*/1); in uv__preadv_emul()
456 uv__iovcnt nbufs, in uv__pwritev_emul() argument
458 return uv__preadv_or_pwritev_emul(fd, bufs, nbufs, off, /*is_pread*/0); in uv__pwritev_emul()
472 size_t nbufs, in uv__preadv_or_pwritev() argument
494 return f(fd, bufs, nbufs, off); in uv__preadv_or_pwritev()
500 size_t nbufs, in uv__preadv() argument
503 return uv__preadv_or_pwritev(fd, bufs, nbufs, off, &cache, /*is_pread*/1); in uv__preadv()
509 size_t nbufs, in uv__pwritev() argument
512 return uv__preadv_or_pwritev(fd, bufs, nbufs, off, &cache, /*is_pread*/0); in uv__pwritev()
519 size_t nbufs; in uv__fs_read() local
527 nbufs = req->nbufs; in uv__fs_read()
530 if (nbufs > iovmax) in uv__fs_read()
531 nbufs = iovmax; in uv__fs_read()
535 if (nbufs == 1) in uv__fs_read()
537 else if (nbufs > 1) in uv__fs_read()
538 r = readv(fd, bufs, nbufs); in uv__fs_read()
540 if (nbufs == 1) in uv__fs_read()
542 else if (nbufs > 1) in uv__fs_read()
543 r = uv__preadv(fd, bufs, nbufs, off); in uv__fs_read()
564 req->nbufs = 0; in uv__fs_read()
588 req->nbufs = 0; in uv__fs_scandir()
1214 size_t nbufs; in uv__fs_write() local
1222 nbufs = req->nbufs; in uv__fs_write()
1226 if (nbufs == 1) in uv__fs_write()
1228 else if (nbufs > 1) in uv__fs_write()
1229 r = writev(fd, bufs, nbufs); in uv__fs_write()
1231 if (nbufs == 1) in uv__fs_write()
1233 else if (nbufs > 1) in uv__fs_write()
1234 r = uv__pwritev(fd, bufs, nbufs, off); in uv__fs_write()
1651 unsigned int nbufs; in uv__fs_write_all() local
1657 nbufs = req->nbufs; in uv__fs_write_all()
1661 while (nbufs > 0) { in uv__fs_write_all()
1662 req->nbufs = nbufs; in uv__fs_write_all()
1663 if (req->nbufs > iovmax) in uv__fs_write_all()
1664 req->nbufs = iovmax; in uv__fs_write_all()
1679 req->nbufs = uv__fs_buf_offset(req->bufs, result); in uv__fs_write_all()
1680 req->bufs += req->nbufs; in uv__fs_write_all()
1681 nbufs -= req->nbufs; in uv__fs_write_all()
1689 req->nbufs = 0; in uv__fs_write_all()
2035 unsigned int nbufs, in uv_fs_read() argument
2040 if (bufs == NULL || nbufs == 0) in uv_fs_read()
2046 req->nbufs = nbufs; in uv_fs_read()
2052 if (nbufs > ARRAY_SIZE(req->bufsml)) in uv_fs_read()
2053 req->bufs = uv__malloc(nbufs * sizeof(*bufs)); in uv_fs_read()
2058 memcpy(req->bufs, bufs, nbufs * sizeof(*bufs)); in uv_fs_read()
2225 unsigned int nbufs, in uv_fs_write() argument
2230 if (bufs == NULL || nbufs == 0) in uv_fs_write()
2235 req->nbufs = nbufs; in uv_fs_write()
2237 if (nbufs > ARRAY_SIZE(req->bufsml)) in uv_fs_write()
2238 req->bufs = uv__malloc(nbufs * sizeof(*bufs)); in uv_fs_write()
2243 memcpy(req->bufs, bufs, nbufs * sizeof(*bufs)); in uv_fs_write()