Home
last modified time | relevance | path

Searched refs:iov (Results 1 – 25 of 26) sorted by relevance

12

/fs/cifs/
Dsmb2pdu.c765 add_posix_context(struct kvec *iov, unsigned int *num_iovec, umode_t mode) in add_posix_context() argument
767 struct smb2_create_req *req = iov[0].iov_base; in add_posix_context()
770 iov[num].iov_base = create_posix_buf(mode); in add_posix_context()
773 if (iov[num].iov_base == NULL) in add_posix_context()
775 iov[num].iov_len = sizeof(struct create_posix); in add_posix_context()
779 iov[num - 1].iov_len); in add_posix_context()
807 struct kvec iov[1]; in SMB2_negotiate() local
875 iov[0].iov_base = (char *)req; in SMB2_negotiate()
876 iov[0].iov_len = total_len; in SMB2_negotiate()
879 rqst.rq_iov = iov; in SMB2_negotiate()
[all …]
Dsess.c579 struct kvec iov[3]; member
595 sess_data->iov[0].iov_base = (char *)smb_buf; in sess_alloc_buffer()
596 sess_data->iov[0].iov_len = be32_to_cpu(smb_buf->smb_buf_length) + 4; in sess_alloc_buffer()
604 sess_data->iov[2].iov_base = kmalloc(2000, GFP_KERNEL); in sess_alloc_buffer()
605 if (!sess_data->iov[2].iov_base) { in sess_alloc_buffer()
614 sess_data->iov[0].iov_base = NULL; in sess_alloc_buffer()
615 sess_data->iov[0].iov_len = 0; in sess_alloc_buffer()
624 free_rsp_buf(sess_data->buf0_type, sess_data->iov[0].iov_base); in sess_free_buffer()
626 kfree(sess_data->iov[2].iov_base); in sess_free_buffer()
665 struct smb_hdr *smb_buf = (struct smb_hdr *) sess_data->iov[0].iov_base; in sess_sendreceive()
[all …]
Dtransport.c275 struct kvec *iov; in smb_rqst_len() local
281 iov = &rqst->rq_iov[1]; in smb_rqst_len()
284 iov = rqst->rq_iov; in smb_rqst_len()
290 buflen += iov[i].iov_len; in smb_rqst_len()
320 struct kvec *iov; in __smb_send_rqst() local
383 iov = rqst[j].rq_iov; in __smb_send_rqst()
388 dump_smb(iov[i].iov_base, iov[i].iov_len); in __smb_send_rqst()
389 size += iov[i].iov_len; in __smb_send_rqst()
392 iov_iter_kvec(&smb_msg.msg_iter, WRITE, iov, n_vec, size); in __smb_send_rqst()
468 struct kvec iov; in smb_send_rqst() local
[all …]
Dsmb2transport.c171 struct kvec *iov = rqst->rq_iov; in smb2_calc_signature() local
172 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)iov[0].iov_base; in smb2_calc_signature()
214 if (drqst.rq_nvec >= 2 && iov[0].iov_len == 4) { in smb2_calc_signature()
215 rc = crypto_shash_update(shash, iov[0].iov_base, in smb2_calc_signature()
216 iov[0].iov_len); in smb2_calc_signature()
432 struct kvec *iov = rqst->rq_iov; in smb3_calc_signature() local
433 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)iov[0].iov_base; in smb3_calc_signature()
473 if (drqst.rq_nvec >= 2 && iov[0].iov_len == 4) { in smb3_calc_signature()
474 rc = crypto_shash_update(shash, iov[0].iov_base, in smb3_calc_signature()
475 iov[0].iov_len); in smb3_calc_signature()
[all …]
Dcifsencrypt.c46 struct kvec *iov = rqst->rq_iov; in __cifs_calc_signature() local
52 if (iov[0].iov_len <= 4) in __cifs_calc_signature()
56 if (n_vec < 2 || iov[0].iov_len != 4) in __cifs_calc_signature()
62 if (iov[i].iov_len == 0) in __cifs_calc_signature()
64 if (iov[i].iov_base == NULL) { in __cifs_calc_signature()
70 iov[i].iov_base, iov[i].iov_len); in __cifs_calc_signature()
182 int cifs_sign_smbv(struct kvec *iov, int n_vec, struct TCP_Server_Info *server, in cifs_sign_smbv() argument
185 struct smb_rqst rqst = { .rq_iov = iov, in cifs_sign_smbv()
195 struct kvec iov[2]; in cifs_sign_smb() local
197 iov[0].iov_base = cifs_pdu; in cifs_sign_smb()
[all …]
Dcifssmb.c836 struct kvec iov[2]; in CIFSSMBEcho() local
837 struct smb_rqst rqst = { .rq_iov = iov, in CIFSSMBEcho()
857 iov[0].iov_len = 4; in CIFSSMBEcho()
858 iov[0].iov_base = smb; in CIFSSMBEcho()
859 iov[1].iov_len = get_rfc1002_length(smb); in CIFSSMBEcho()
860 iov[1].iov_base = (char *)smb + 4; in CIFSSMBEcho()
1601 rdata->iov[0].iov_base = buf; in cifs_readv_receive()
1602 rdata->iov[0].iov_len = server->vals->header_preamble_size; in cifs_readv_receive()
1603 rdata->iov[1].iov_base = buf + server->vals->header_preamble_size; in cifs_readv_receive()
1604 rdata->iov[1].iov_len = in cifs_readv_receive()
[all …]
Dsmb2proto.h191 unsigned int *nbytes, struct kvec *iov, int n_vec);
249 struct kvec *iov, unsigned int min_buf_size);
252 struct kvec *iov,
259 struct kvec *iov, int nvec);
Dsmbdirect.c39 struct kvec *iov, int n_vec, int remaining_data_length);
1063 struct smbd_connection *info, struct kvec *iov, int n_vec, in smbd_post_send_data() argument
1077 data_length += iov[i].iov_len; in smbd_post_send_data()
1078 sg_set_buf(&sgl[i], iov[i].iov_base, iov[i].iov_len); in smbd_post_send_data()
2081 struct kvec *iov; in smbd_send() local
2114 iov = rqst->rq_iov; in smbd_send()
2119 dump_smb(iov[i].iov_base, iov[i].iov_len); in smbd_send()
2130 buflen += iov[i].iov_len; in smbd_send()
2134 (buflen-iov[i].iov_len); in smbd_send()
2141 info, &iov[start], i-start, in smbd_send()
[all …]
Dsmb2ops.c1743 struct kvec *iov, unsigned long nr_segs) in smb2_sync_write() argument
1748 return SMB2_write(xid, parms, written, iov, nr_segs); in smb2_sync_write()
3823 struct kvec iov[2]; in decrypt_raw_data() local
3827 iov[0].iov_base = buf; in decrypt_raw_data()
3828 iov[0].iov_len = sizeof(struct smb2_transform_hdr); in decrypt_raw_data()
3829 iov[1].iov_base = buf + sizeof(struct smb2_transform_hdr); in decrypt_raw_data()
3830 iov[1].iov_len = buf_data_size; in decrypt_raw_data()
3832 rqst.rq_iov = iov; in decrypt_raw_data()
3845 memmove(buf, iov[1].iov_base, buf_data_size); in decrypt_raw_data()
3923 struct kvec iov; in handle_read_data() local
[all …]
Dsmb1ops.c747 struct kvec *iov, unsigned long nr_segs) in cifs_sync_write() argument
751 return CIFSSMBWrite2(xid, parms, written, iov, nr_segs); in cifs_sync_write()
1042 struct kvec iov[2]; in cifs_make_node() local
1125 iov[1].iov_base = buf; in cifs_make_node()
1126 iov[1].iov_len = sizeof(struct win_dev); in cifs_make_node()
1132 &bytes_written, iov, 1); in cifs_make_node()
1138 &bytes_written, iov, 1); in cifs_make_node()
Dlink.c463 struct kvec iov[2]; in smb3_create_mf_symlink() local
498 iov[1].iov_base = pbuf; in smb3_create_mf_symlink()
499 iov[1].iov_len = CIFS_MF_SYMLINK_FILE_SIZE; in smb3_create_mf_symlink()
501 rc = SMB2_write(xid, &io_parms, pbytes_written, iov, 1); in smb3_create_mf_symlink()
Dsmb2misc.c816 smb311_update_preauth_hash(struct cifs_ses *ses, struct kvec *iov, int nvec) in smb311_update_preauth_hash() argument
828 hdr = (struct smb2_sync_hdr *)iov[0].iov_base; in smb311_update_preauth_hash()
853 iov[i].iov_base, iov[i].iov_len); in smb311_update_preauth_hash()
Dcifsproto.h439 unsigned int *nbytes, struct kvec *iov, const int nvec);
470 extern int cifs_sign_smbv(struct kvec *iov, int n_vec, struct TCP_Server_Info *,
Dfile.c1830 struct kvec iov[2]; in cifs_write() local
1846 iov[1].iov_base = (char *)write_data + total_written; in cifs_write()
1847 iov[1].iov_len = len; in cifs_write()
1853 &io_parms, &bytes_written, iov, 1); in cifs_write()
Dcifsglob.h1325 struct kvec iov[2]; member
Dconnect.c846 struct kvec iov = {.iov_base = buf, .iov_len = to_read}; in cifs_read_from_socket() local
847 iov_iter_kvec(&smb_msg.msg_iter, READ, &iov, 1, to_read); in cifs_read_from_socket()
/fs/
Dread_write.c405 struct iovec iov = { .iov_base = buf, .iov_len = len }; in new_sync_read() local
412 iov_iter_init(&iter, READ, &iov, 1, len); in new_sync_read()
476 struct iovec iov = { .iov_base = (void __user *)buf, .iov_len = len }; in new_sync_write() local
483 iov_iter_init(&iter, WRITE, &iov, 1, len); in new_sync_write()
774 struct iovec *iov = fast_pointer; in rw_copy_check_uvector() local
795 iov = kmalloc_array(nr_segs, sizeof(struct iovec), GFP_KERNEL); in rw_copy_check_uvector()
796 if (iov == NULL) { in rw_copy_check_uvector()
801 if (copy_from_user(iov, uvector, nr_segs*sizeof(*uvector))) { in rw_copy_check_uvector()
817 void __user *buf = iov[seg].iov_base; in rw_copy_check_uvector()
818 ssize_t len = (ssize_t)iov[seg].iov_len; in rw_copy_check_uvector()
[all …]
Dsplice.c1365 struct iovec *iov = iovstack; in SYSCALL_DEFINE4() local
1377 ARRAY_SIZE(iovstack), &iov, &iter); in SYSCALL_DEFINE4()
1380 kfree(iov); in SYSCALL_DEFINE4()
1391 struct iovec *iov = iovstack; in COMPAT_SYSCALL_DEFINE4() local
1403 ARRAY_SIZE(iovstack), &iov, &iter); in COMPAT_SYSCALL_DEFINE4()
1406 kfree(iov); in COMPAT_SYSCALL_DEFINE4()
Dcompat_ioctl.c127 sg_iovec_t __user *iov = (sg_iovec_t __user *) (sgio + 1); in sg_build_iovec() local
136 put_user(compat_ptr(base), &iov[i].iov_base) || in sg_build_iovec()
137 put_user(len, &iov[i].iov_len)) in sg_build_iovec()
141 if (put_user(iov, &sgio->dxferp)) in sg_build_iovec()
Dio_uring.c3422 struct iovec iov; in io_sqe_buffer_register() local
3425 ret = io_copy_iov(ctx, &iov, arg, i); in io_sqe_buffer_register()
3435 if (!iov.iov_base || !iov.iov_len) in io_sqe_buffer_register()
3439 if (iov.iov_len > SZ_1G) in io_sqe_buffer_register()
3442 ubuf = (unsigned long) iov.iov_base; in io_sqe_buffer_register()
3443 end = (ubuf + iov.iov_len + PAGE_SIZE - 1) >> PAGE_SHIFT; in io_sqe_buffer_register()
3514 size = iov.iov_len; in io_sqe_buffer_register()
3527 imu->len = iov.iov_len; in io_sqe_buffer_register()
/fs/afs/
Drxrpc.c367 struct kvec iov[1]; in afs_make_call() local
431 iov[0].iov_base = call->request; in afs_make_call()
432 iov[0].iov_len = call->request_size; in afs_make_call()
436 iov_iter_kvec(&msg.msg_iter, WRITE, iov, 1, call->request_size); in afs_make_call()
940 struct kvec iov[1]; in afs_send_simple_reply() local
947 iov[0].iov_base = (void *) buf; in afs_send_simple_reply()
948 iov[0].iov_len = len; in afs_send_simple_reply()
951 iov_iter_kvec(&msg.msg_iter, WRITE, iov, 1, len); in afs_send_simple_reply()
/fs/dlm/
Dlowcomms.c627 struct kvec iov[2]; in receive_from_sock() local
659 iov[0].iov_len = con->cb.base - cbuf_data(&con->cb); in receive_from_sock()
660 iov[0].iov_base = page_address(con->rx_page) + cbuf_data(&con->cb); in receive_from_sock()
661 iov[1].iov_len = 0; in receive_from_sock()
669 iov[0].iov_len = PAGE_SIZE - cbuf_data(&con->cb); in receive_from_sock()
670 iov[1].iov_len = con->cb.base; in receive_from_sock()
671 iov[1].iov_base = page_address(con->rx_page); in receive_from_sock()
674 len = iov[0].iov_len + iov[1].iov_len; in receive_from_sock()
675 iov_iter_kvec(&msg.msg_iter, READ, iov, nvec, len); in receive_from_sock()
/fs/fuse/
Dfile.c1344 return (unsigned long)ii->iov->iov_base + ii->iov_offset; in fuse_get_user_addr()
2599 static int fuse_verify_ioctl_iov(struct fuse_conn *fc, struct iovec *iov, in fuse_verify_ioctl_iov() argument
2605 for (n = 0; n < count; n++, iov++) { in fuse_verify_ioctl_iov()
2606 if (iov->iov_len > (size_t) max) in fuse_verify_ioctl_iov()
2608 max -= iov->iov_len; in fuse_verify_ioctl_iov()
2744 struct iovec *iov = iov_page; in fuse_do_ioctl() local
2746 iov->iov_base = (void __user *)arg; in fuse_do_ioctl()
2747 iov->iov_len = _IOC_SIZE(cmd); in fuse_do_ioctl()
2750 in_iov = iov; in fuse_do_ioctl()
2755 out_iov = iov; in fuse_do_ioctl()
/fs/nfsd/
Dnfs4xdr.c2954 xdr->iov = buf->head; in svcxdr_init_encode_from_buffer()
3498 xdr->iov = buf->tail; in nfsd4_encode_splice_read()
Dnfs4proc.c1904 xdr->iov = head; in svcxdr_init_encode()

12