Lines Matching refs:iov
36 struct kvec *iov; member
103 kfree(t->iov); in free_transport()
116 static unsigned int kvec_array_init(struct kvec *new, struct kvec *iov, in kvec_array_init() argument
121 while (bytes || !iov->iov_len) { in kvec_array_init()
122 int copy = min(bytes, iov->iov_len); in kvec_array_init()
126 if (iov->iov_len == base) { in kvec_array_init()
127 iov++; in kvec_array_init()
133 memcpy(new, iov, sizeof(*iov) * nr_segs); in kvec_array_init()
150 if (t->iov && nr_segs <= t->nr_iov) in get_conn_iovec()
151 return t->iov; in get_conn_iovec()
156 kfree(t->iov); in get_conn_iovec()
157 t->iov = new_iov; in get_conn_iovec()
312 struct kvec *iov; in ksmbd_tcp_readv() local
315 iov = get_conn_iovec(t, nr_segs); in ksmbd_tcp_readv()
316 if (!iov) in ksmbd_tcp_readv()
329 segs = kvec_array_init(iov, iov_orig, nr_segs, total_read); in ksmbd_tcp_readv()
332 iov, segs, to_read, 0); in ksmbd_tcp_readv()
375 struct kvec iov; in ksmbd_tcp_read() local
377 iov.iov_base = buf; in ksmbd_tcp_read()
378 iov.iov_len = to_read; in ksmbd_tcp_read()
380 return ksmbd_tcp_readv(TCP_TRANS(t), &iov, 1, to_read, max_retries); in ksmbd_tcp_read()
383 static int ksmbd_tcp_writev(struct ksmbd_transport *t, struct kvec *iov, in ksmbd_tcp_writev() argument
390 return kernel_sendmsg(TCP_TRANS(t)->sock, &smb_msg, iov, nvecs, size); in ksmbd_tcp_writev()