Lines Matching refs:nr_segs
115 unsigned int nr_segs, size_t bytes) in kvec_array_init() argument
126 nr_segs--; in kvec_array_init()
131 memcpy(new, iov, sizeof(*iov) * nr_segs); in kvec_array_init()
134 return nr_segs; in kvec_array_init()
144 static struct kvec *get_conn_iovec(struct tcp_transport *t, unsigned int nr_segs) in get_conn_iovec() argument
148 if (t->iov && nr_segs <= t->nr_iov) in get_conn_iovec()
152 new_iov = kmalloc_array(nr_segs, sizeof(*new_iov), GFP_KERNEL); in get_conn_iovec()
156 t->nr_iov = nr_segs; in get_conn_iovec()
290 unsigned int nr_segs, unsigned int to_read) in ksmbd_tcp_readv() argument
299 iov = get_conn_iovec(t, nr_segs); in ksmbd_tcp_readv()
313 segs = kvec_array_init(iov, iov_orig, nr_segs, total_read); in ksmbd_tcp_readv()