/fs/cifs/ |
H A D | smb2pdu.c | 327 struct kvec iov[1]; local 370 iov[0].iov_base = (char *)req; 372 iov[0].iov_len = get_rfc1002_length(req) + 4; 374 rc = SendReceive2(xid, ses, iov, 1, &resp_buftype, flags); 376 rsp = (struct smb2_negotiate_rsp *)iov[0].iov_base; 531 struct kvec iov[2]; local 591 iov[0].iov_base = (char *)req; 593 iov[0].iov_len = get_rfc1002_length(req) + 4 - 1; 655 iov[1].iov_base = security_blob; 656 iov[ 804 struct kvec iov[2]; local 1020 add_lease_context(struct TCP_Server_Info *server, struct kvec *iov, unsigned int *num_iovec, __u8 *oplock) argument 1043 add_durable_context(struct kvec *iov, unsigned int *num_iovec, struct cifs_open_parms *oparms) argument 1078 struct kvec iov[4]; local 1223 struct kvec iov[2]; local 1382 struct kvec iov[1]; local 1483 struct kvec iov[2]; local 1577 struct kvec iov; local 1609 struct kvec iov[1]; local 1645 smb2_new_read_req(struct kvec *iov, struct cifs_io_parms *io_parms, unsigned int remaining_bytes, int request_type) argument 1826 struct kvec iov[1]; local 1932 struct kvec iov; local 2011 SMB2_write(const unsigned int xid, struct cifs_io_parms *io_parms, unsigned int *nbytes, struct kvec *iov, int n_vec) argument 2115 struct kvec iov[2]; local 2239 struct kvec *iov; local 2440 build_qfs_info_req(struct kvec *iov, struct cifs_tcon *tcon, int level, int outbuf_len, u64 persistent_fid, u64 volatile_fid) argument 2476 struct kvec iov; local 2513 struct kvec iov; local 2578 struct kvec iov[2]; local [all...] |
H A D | sess.c | 539 struct kvec iov[3]; member in struct:sess_data 555 sess_data->iov[0].iov_base = (char *)smb_buf; 556 sess_data->iov[0].iov_len = be32_to_cpu(smb_buf->smb_buf_length) + 4; 564 sess_data->iov[2].iov_base = kmalloc(2000, GFP_KERNEL); 565 if (!sess_data->iov[2].iov_base) { 574 sess_data->iov[0].iov_base = NULL; 575 sess_data->iov[0].iov_len = 0; 584 free_rsp_buf(sess_data->buf0_type, sess_data->iov[0].iov_base); 586 kfree(sess_data->iov[2].iov_base); 625 struct smb_hdr *smb_buf = (struct smb_hdr *) sess_data->iov[ [all...] |
H A D | transport.c | 127 * @iov: Pointer to array of kvecs 135 smb_send_kvec(struct TCP_Server_Info *server, struct kvec *iov, size_t n_vec, argument 158 remaining += iov[i].iov_len; 180 rc = kernel_sendmsg(ssocket, &smb_msg, &iov[first_vec], 222 if (iov[i].iov_len) { 223 if (rc > iov[i].iov_len) { 224 rc -= iov[i].iov_len; 225 iov[i].iov_len = 0; 227 iov[i].iov_base += rc; 228 iov[ 252 cifs_rqst_page_to_kvec(struct smb_rqst *rqst, unsigned int idx, struct kvec *iov) argument 277 struct kvec *iov = rqst->rq_iov; local 297 struct kvec *iov = rqst->rq_iov; local 370 smb_sendv(struct TCP_Server_Info *server, struct kvec *iov, int n_vec) argument 382 struct kvec iov; local 605 struct kvec iov[1]; local 668 struct kvec iov; local 706 SendReceive2(const unsigned int xid, struct cifs_ses *ses, struct kvec *iov, int n_vec, int *resp_buf_type , const int flags) argument [all...] |
H A D | smb2transport.c | 141 struct kvec *iov = rqst->rq_iov; local 143 struct smb2_hdr *smb2_pdu = (struct smb2_hdr *)iov[0].iov_base; 175 if (iov[i].iov_len == 0) 177 if (iov[i].iov_base == NULL) { 186 if (iov[0].iov_len <= 8) /* cmd field at offset 9 */ 191 iov[i].iov_base + 4, iov[i].iov_len - 4); 196 iov[i].iov_base, iov[i].iov_len); 312 struct kvec *iov local 551 struct kvec iov; local [all...] |
H A D | cifsencrypt.c | 77 struct kvec *iov = rqst->rq_iov; local 80 if (iov == NULL || signature == NULL || server == NULL) 105 if (iov[i].iov_len == 0) 107 if (iov[i].iov_base == NULL) { 114 if (iov[0].iov_len <= 8) /* cmd field at offset 9 */ 118 iov[i].iov_base + 4, iov[i].iov_len - 4); 122 iov[i].iov_base, iov[i].iov_len); 184 int cifs_sign_smbv(struct kvec *iov, in argument 197 struct kvec iov; local [all...] |
H A D | cifssmb.c | 709 struct kvec iov; local 710 struct smb_rqst rqst = { .rq_iov = &iov, 726 iov.iov_base = smb; 727 iov.iov_len = be32_to_cpu(smb->hdr.smb_buf_length) + 4; 1440 rdata->iov.iov_base = buf + HEADER_SIZE(server) - 1; 1441 rdata->iov.iov_len = len; 1443 length = cifs_readv_from_socket(server, &rdata->iov, 1, len); 1489 rdata->iov.iov_base = buf + server->total_read; 1490 rdata->iov.iov_len = len; 1491 length = cifs_readv_from_socket(server, &rdata->iov, 1655 struct kvec iov[1]; local 2085 struct kvec iov; local 2161 CIFSSMBWrite2(const unsigned int xid, struct cifs_io_parms *io_parms, unsigned int *nbytes, struct kvec *iov, int n_vec) argument 2270 struct kvec iov[2]; local 2392 struct kvec iov[1]; local 3808 struct kvec iov[1]; local [all...] |
H A D | file.c | 1668 struct kvec iov[2]; local 1683 /* iov[0] is reserved for smb header */ 1684 iov[1].iov_base = (char *)write_data + total_written; 1685 iov[1].iov_len = len; 1691 &io_parms, &bytes_written, iov, 1); 2882 struct kvec iov; local 2891 iov.iov_base = kmap(page); 2892 iov.iov_len = PAGE_SIZE; 2894 i, iov.iov_base, iov 3331 struct kvec iov; local [all...] |
H A D | link.c | 485 struct kvec iov[2]; local 518 /* iov[0] is reserved for smb header */ 519 iov[1].iov_base = pbuf; 520 iov[1].iov_len = CIFS_MF_SYMLINK_FILE_SIZE; 522 rc = SMB2_write(xid, &io_parms, pbytes_written, iov, 1);
|
H A D | connect.c | 492 * @iov: pointer to original array 496 * This function will copy the array provided in iov to a section of memory 499 * the original iov array. 502 kvec_array_init(struct kvec *new, struct kvec *iov, unsigned int nr_segs, argument 507 while (bytes || !iov->iov_len) { 508 int copy = min(bytes, iov->iov_len); 512 if (iov->iov_len == base) { 513 iov++; 518 memcpy(new, iov, sizeof(*iov) * nr_seg 550 struct kvec *iov; local 605 struct kvec iov; local [all...] |
H A D | dir.c | 586 struct kvec iov[2]; local 680 iov[1].iov_base = buf; 681 iov[1].iov_len = sizeof(struct win_dev); 687 &bytes_written, iov, 1); 693 &bytes_written, iov, 1);
|
H A D | cifsproto.h | 41 struct kvec *iov); 399 unsigned int *nbytes, struct kvec *iov, const int nvec); 430 extern int cifs_sign_smbv(struct kvec *iov, int n_vec, struct TCP_Server_Info *,
|
H A D | smb2proto.h | 135 unsigned int *nbytes, struct kvec *iov, int n_vec);
|
H A D | cifsglob.h | 603 struct kvec *iov; /* reusable kvec array for receives */ member in struct:TCP_Server_Info 1071 struct kvec iov; member in struct:cifs_readdata
|
/fs/ |
H A D | read_write.c | 377 struct iovec iov = { .iov_base = buf, .iov_len = len }; local 385 ret = filp->f_op->aio_read(&kiocb, &iov, 1, kiocb.ki_pos); 396 struct iovec iov = { .iov_base = buf, .iov_len = len }; local 404 iov_iter_init(&iter, READ, &iov, 1, len); 449 struct iovec iov = { .iov_base = (void __user *)buf, .iov_len = len }; local 457 ret = filp->f_op->aio_write(&kiocb, &iov, 1, kiocb.ki_pos); 468 struct iovec iov = { .iov_base = (void __user *)buf, .iov_len = len }; local 476 iov_iter_init(&iter, WRITE, &iov, 1, len); 637 unsigned long iov_shorten(struct iovec *iov, unsigned long nr_segs, size_t to) argument 644 if (len + iov 655 do_iter_readv_writev(struct file *filp, int rw, const struct iovec *iov, unsigned long nr_segs, size_t len, loff_t *ppos, iter_fn_t fn) argument 674 do_sync_readv_writev(struct file *filp, const struct iovec *iov, unsigned long nr_segs, size_t len, loff_t *ppos, iov_fn_t fn) argument 692 do_loop_readv_writev(struct file *filp, struct iovec *iov, unsigned long nr_segs, loff_t *ppos, io_fn_t fn) argument 733 struct iovec *iov = fast_pointer; local 807 struct iovec *iov = iovstack; local 987 struct iovec *iov = iovstack; local [all...] |
H A D | splice.c | 1431 * Map an iov into an array of pages and offset/length tupples. With the 1437 static int get_iovec_page_array(const struct iovec __user *iov, argument 1452 if (copy_from_user(&entry, iov, sizeof(entry))) 1507 * We didn't complete this iov, stop here since it probably 1523 iov++; 1541 * as a simple copy of the pipes pages to the user iov. 1550 struct iovec *iov = iovstack; local 1559 ARRAY_SIZE(iovstack), iovstack, &iov); 1564 iov_iter_init(&iter, READ, iov, nr_segs, count); 1577 if (iov ! 1588 vmsplice_to_pipe(struct file *file, const struct iovec __user *iov, unsigned long nr_segs, unsigned int flags) argument 1669 struct iovec __user *iov; local [all...] |
H A D | bad_inode.c | 36 static ssize_t bad_file_aio_read(struct kiocb *iocb, const struct iovec *iov, argument 42 static ssize_t bad_file_aio_write(struct kiocb *iocb, const struct iovec *iov, argument
|
H A D | compat.c | 552 struct iovec *iov = *ret_pointer = fast_pointer; local 569 iov = kmalloc(nr_segs*sizeof(struct iovec), GFP_KERNEL); 570 if (iov == NULL) 573 *ret_pointer = iov; 608 iov->iov_base = compat_ptr(buf); 609 iov->iov_len = (compat_size_t) len; 611 iov++;
|
H A D | compat_ioctl.c | 260 sg_iovec_t __user *iov = (sg_iovec_t __user *) (sgio + 1); local 269 put_user(compat_ptr(base), &iov[i].iov_base) || 270 put_user(len, &iov[i].iov_len)) 274 if (put_user(iov, &sgio->dxferp))
|
/fs/afs/ |
H A D | rxrpc.c | 274 struct kvec *iov) 303 iov->iov_base = kmap(pages[loop]) + offset; 304 iov->iov_len = to - offset; 309 msg->msg_iov = (struct iovec *) iov; 344 struct kvec iov[1]; local 382 iov[0].iov_base = call->request; 383 iov[0].iov_len = call->request_size; 387 msg.msg_iov = (struct iovec *) iov; 403 ret = afs_send_pages(call, &msg, iov); 773 struct iovec iov[ local 273 afs_send_pages(struct afs_call *call, struct msghdr *msg, struct kvec *iov) argument 809 struct iovec iov[1]; local [all...] |
/fs/ncpfs/ |
H A D | sock.c | 39 struct kvec iov = {buf, size}; local 40 return kernel_recvmsg(sock, &msg, &iov, 1, size, flags); 209 /* sock_sendmsg updates iov pointers for us :-( */ 218 struct kvec *iov; local 226 /* sock_sendmsg updates iov pointers for us :-( */ 227 memcpy(iovc, rq->tx_ciov, rq->tx_iovlen * sizeof(iov[0])); 245 iov = rq->tx_ciov; 246 while (iov->iov_len <= result) { 247 result -= iov->iov_len; 248 iov 367 struct kvec iov[2]; local [all...] |
/fs/ntfs/ |
H A D | file.c | 371 static inline void ntfs_fault_in_pages_readable_iovec(const struct iovec *iov, argument 378 buf = iov->iov_base + iov_ofs; 379 len = iov->iov_len - iov_ofs; 384 iov++; 1325 const struct iovec *iov, size_t iov_ofs, size_t bytes) 1330 const char __user *buf = iov->iov_base + iov_ofs; 1334 len = iov->iov_len - iov_ofs; 1347 iov++; 1356 const struct iovec *iov = *iovp; local 1362 len = iov 1324 __ntfs_copy_from_user_iovec_inatomic(char *vaddr, const struct iovec *iov, size_t iov_ofs, size_t bytes) argument 1391 ntfs_copy_from_user_iovec(struct page **pages, unsigned nr_pages, unsigned ofs, const struct iovec **iov, size_t *iov_ofs, size_t bytes) argument 1779 ntfs_file_buffered_write(struct kiocb *iocb, const struct iovec *iov, unsigned long nr_segs, loff_t pos, loff_t *ppos, size_t count) argument 2081 ntfs_file_aio_write_nolock(struct kiocb *iocb, const struct iovec *iov, unsigned long nr_segs, loff_t *ppos) argument 2117 ntfs_file_aio_write(struct kiocb *iocb, const struct iovec *iov, unsigned long nr_segs, loff_t pos) argument [all...] |
/fs/dlm/ |
H A D | lowcomms.c | 791 struct kvec iov[2]; local 822 * iov[0] is the bit of the circular buffer between the current end 825 iov[0].iov_len = con->cb.base - cbuf_data(&con->cb); 826 iov[0].iov_base = page_address(con->rx_page) + cbuf_data(&con->cb); 827 iov[1].iov_len = 0; 831 * iov[1] is the bit of the circular buffer between the start of the 835 iov[0].iov_len = PAGE_CACHE_SIZE - cbuf_data(&con->cb); 836 iov[1].iov_len = con->cb.base; 837 iov[1].iov_base = page_address(con->rx_page); 840 len = iov[ 1077 struct kvec iov[1]; local [all...] |
/fs/fuse/ |
H A D | cuse.c | 95 struct iovec iov = { .iov_base = buf, .iov_len = count }; local 98 iov_iter_init(&ii, READ, &iov, 1, count); 107 struct iovec iov = { .iov_base = (void __user *)buf, .iov_len = count }; local 110 iov_iter_init(&ii, WRITE, &iov, 1, count);
|
H A D | dev.c | 642 const struct iovec *iov; member in struct:fuse_copy_state 657 const struct iovec *iov, unsigned long nr_segs) 662 cs->iov = iov; 733 cs->seglen = cs->iov[0].iov_len; 734 cs->addr = (unsigned long) cs->iov[0].iov_base; 735 cs->iov++; 1284 static ssize_t fuse_dev_read(struct kiocb *iocb, const struct iovec *iov, argument 1293 fuse_copy_init(&cs, fc, 1, iov, nr_segs); 1295 return fuse_dev_do_read(fc, file, &cs, iov_length(iov, nr_seg 655 fuse_copy_init(struct fuse_copy_state *cs, struct fuse_conn *fc, int write, const struct iovec *iov, unsigned long nr_segs) argument 1888 fuse_dev_write(struct kiocb *iocb, const struct iovec *iov, unsigned long nr_segs, loff_t pos) argument [all...] |
H A D | file.c | 1274 return (unsigned long)ii->iov->iov_base + ii->iov_offset; 1447 struct iovec iov = { .iov_base = buf, .iov_len = count }; local 1449 iov_iter_init(&ii, READ, &iov, 1, count); 1477 struct iovec iov = { .iov_base = (void __user *)buf, .iov_len = count }; local 1482 iov_iter_init(&ii, WRITE, &iov, 1, count); 2336 static int fuse_ioctl_copy_user(struct page **pages, struct iovec *iov, argument 2345 iov_iter_init(&ii, to_user ? READ : WRITE, iov, nr_segs, bytes); 2355 char __user *uaddr = ii.iov->iov_base + ii.iov_offset; 2356 size_t iov_len = ii.iov->iov_len - ii.iov_offset; 2418 static int fuse_verify_ioctl_iov(struct iovec *iov, size_ argument 2554 struct iovec *iov = iov_page; local [all...] |