Lines Matching refs:iov
34 struct kvec *iov; member
101 kfree(t->iov); in free_transport()
114 static unsigned int kvec_array_init(struct kvec *new, struct kvec *iov, in kvec_array_init() argument
119 while (bytes || !iov->iov_len) { in kvec_array_init()
120 int copy = min(bytes, iov->iov_len); in kvec_array_init()
124 if (iov->iov_len == base) { in kvec_array_init()
125 iov++; in kvec_array_init()
131 memcpy(new, iov, sizeof(*iov) * nr_segs); in kvec_array_init()
148 if (t->iov && nr_segs <= t->nr_iov) in get_conn_iovec()
149 return t->iov; in get_conn_iovec()
154 kfree(t->iov); in get_conn_iovec()
155 t->iov = new_iov; in get_conn_iovec()
296 struct kvec *iov; in ksmbd_tcp_readv() local
299 iov = get_conn_iovec(t, nr_segs); in ksmbd_tcp_readv()
300 if (!iov) in ksmbd_tcp_readv()
313 segs = kvec_array_init(iov, iov_orig, nr_segs, total_read); in ksmbd_tcp_readv()
316 iov, segs, to_read, 0); in ksmbd_tcp_readv()
347 struct kvec iov; in ksmbd_tcp_read() local
349 iov.iov_base = buf; in ksmbd_tcp_read()
350 iov.iov_len = to_read; in ksmbd_tcp_read()
352 return ksmbd_tcp_readv(TCP_TRANS(t), &iov, 1, to_read); in ksmbd_tcp_read()
355 static int ksmbd_tcp_writev(struct ksmbd_transport *t, struct kvec *iov, in ksmbd_tcp_writev() argument
362 return kernel_sendmsg(TCP_TRANS(t)->sock, &smb_msg, iov, nvecs, size); in ksmbd_tcp_writev()