Lines Matching refs:bufs
673 assert(req->bufs != NULL); in uv__write_req_size()
674 size = uv__count_bufs(req->bufs + req->write_index, in uv__write_req_size()
697 buf = req->bufs + req->write_index; in uv__write_req_update()
708 req->write_index = buf - req->bufs; in uv__write_req_update()
727 if (req->bufs != req->bufsml) in uv__write_req_finish()
728 uv__free(req->bufs); in uv__write_req_finish()
729 req->bufs = NULL; in uv__write_req_finish()
755 const uv_buf_t bufs[], in uv__try_write() argument
767 iov = (struct iovec*) bufs; in uv__try_write()
863 &(req->bufs[req->write_index]), in uv__write()
918 if (req->bufs != NULL) { in uv__write_callbacks()
920 if (req->bufs != req->bufsml) in uv__write_callbacks()
921 uv__free(req->bufs); in uv__write_callbacks()
922 req->bufs = NULL; in uv__write_callbacks()
1335 const uv_buf_t bufs[], in uv_write2() argument
1362 req->bufs = req->bufsml; in uv_write2()
1364 req->bufs = uv__malloc(nbufs * sizeof(bufs[0])); in uv_write2()
1366 if (req->bufs == NULL) in uv_write2()
1369 memcpy(req->bufs, bufs, nbufs * sizeof(bufs[0])); in uv_write2()
1372 stream->write_queue_size += uv__count_bufs(bufs, nbufs); in uv_write2()
1407 const uv_buf_t bufs[], in uv_write() argument
1410 return uv_write2(req, handle, bufs, nbufs, NULL, cb); in uv_write()
1415 const uv_buf_t bufs[], in uv_try_write() argument
1417 return uv_try_write2(stream, bufs, nbufs, NULL); in uv_try_write()
1422 const uv_buf_t bufs[], in uv_try_write2() argument
1435 return uv__try_write(stream, bufs, nbufs, send_handle); in uv_try_write2()