/fs/cifs/ |
D | smb2pdu.c | 752 add_posix_context(struct kvec *iov, unsigned int *num_iovec, umode_t mode) in add_posix_context() argument 754 struct smb2_create_req *req = iov[0].iov_base; in add_posix_context() 757 iov[num].iov_base = create_posix_buf(mode); in add_posix_context() 760 if (iov[num].iov_base == NULL) in add_posix_context() 762 iov[num].iov_len = sizeof(struct create_posix); in add_posix_context() 766 iov[num - 1].iov_len); in add_posix_context() 794 struct kvec iov[1]; in SMB2_negotiate() local 865 iov[0].iov_base = (char *)req; in SMB2_negotiate() 866 iov[0].iov_len = total_len; in SMB2_negotiate() 869 rqst.rq_iov = iov; in SMB2_negotiate() [all …]
|
D | sess.c | 858 struct kvec iov[3]; member 874 sess_data->iov[0].iov_base = (char *)smb_buf; in sess_alloc_buffer() 875 sess_data->iov[0].iov_len = be32_to_cpu(smb_buf->smb_buf_length) + 4; in sess_alloc_buffer() 883 sess_data->iov[2].iov_base = kmalloc(2000, GFP_KERNEL); in sess_alloc_buffer() 884 if (!sess_data->iov[2].iov_base) { in sess_alloc_buffer() 893 sess_data->iov[0].iov_base = NULL; in sess_alloc_buffer() 894 sess_data->iov[0].iov_len = 0; in sess_alloc_buffer() 903 free_rsp_buf(sess_data->buf0_type, sess_data->iov[0].iov_base); in sess_free_buffer() 905 kfree(sess_data->iov[2].iov_base); in sess_free_buffer() 944 struct smb_hdr *smb_buf = (struct smb_hdr *) sess_data->iov[0].iov_base; in sess_sendreceive() [all …]
|
D | transport.c | 271 struct kvec *iov; in smb_rqst_len() local 277 iov = &rqst->rq_iov[1]; in smb_rqst_len() 280 iov = rqst->rq_iov; in smb_rqst_len() 286 buflen += iov[i].iov_len; in smb_rqst_len() 316 struct kvec *iov; in __smb_send_rqst() local 381 iov = rqst[j].rq_iov; in __smb_send_rqst() 386 dump_smb(iov[i].iov_base, iov[i].iov_len); in __smb_send_rqst() 387 size += iov[i].iov_len; in __smb_send_rqst() 390 iov_iter_kvec(&smb_msg.msg_iter, WRITE, iov, n_vec, size); in __smb_send_rqst() 465 struct kvec iov; in smb_send_rqst() local [all …]
|
D | cifsencrypt.c | 46 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 …]
|
D | smb2transport.c | 220 struct kvec *iov = rqst->rq_iov; in smb2_calc_signature() local 221 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)iov[0].iov_base; in smb2_calc_signature() 273 if (drqst.rq_nvec >= 2 && iov[0].iov_len == 4) { in smb2_calc_signature() 274 rc = crypto_shash_update(shash, iov[0].iov_base, in smb2_calc_signature() 275 iov[0].iov_len); in smb2_calc_signature() 538 struct kvec *iov = rqst->rq_iov; in smb3_calc_signature() local 539 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)iov[0].iov_base; in smb3_calc_signature() 589 if (drqst.rq_nvec >= 2 && iov[0].iov_len == 4) { in smb3_calc_signature() 590 rc = crypto_shash_update(shash, iov[0].iov_base, in smb3_calc_signature() 591 iov[0].iov_len); in smb3_calc_signature() [all …]
|
D | cifssmb.c | 763 struct kvec iov[2]; in CIFSSMBEcho() local 764 struct smb_rqst rqst = { .rq_iov = iov, in CIFSSMBEcho() 784 iov[0].iov_len = 4; in CIFSSMBEcho() 785 iov[0].iov_base = smb; in CIFSSMBEcho() 786 iov[1].iov_len = get_rfc1002_length(smb); in CIFSSMBEcho() 787 iov[1].iov_base = (char *)smb + 4; in CIFSSMBEcho() 1528 rdata->iov[0].iov_base = buf; in cifs_readv_receive() 1529 rdata->iov[0].iov_len = server->vals->header_preamble_size; in cifs_readv_receive() 1530 rdata->iov[1].iov_base = buf + server->vals->header_preamble_size; in cifs_readv_receive() 1531 rdata->iov[1].iov_len = in cifs_readv_receive() [all …]
|
D | smbdirect.c | 39 struct kvec *iov, int n_vec, int remaining_data_length); 1014 struct smbd_connection *info, struct kvec *iov, int n_vec, in smbd_post_send_data() argument 1028 data_length += iov[i].iov_len; in smbd_post_send_data() 1029 sg_set_buf(&sgl[i], iov[i].iov_base, iov[i].iov_len); in smbd_post_send_data() 1997 struct kvec *iov; in smbd_send() local 2029 iov = rqst->rq_iov; in smbd_send() 2034 dump_smb(iov[i].iov_base, iov[i].iov_len); in smbd_send() 2044 buflen += iov[i].iov_len; in smbd_send() 2048 (buflen-iov[i].iov_len); in smbd_send() 2053 info, &iov[start], i-start, in smbd_send() [all …]
|
D | smb2proto.h | 214 unsigned int *nbytes, struct kvec *iov, int n_vec); 282 struct kvec *iov, unsigned int min_buf_size); 285 struct kvec *iov, 292 struct kvec *iov, int nvec);
|
D | smb2ops.c | 1919 struct kvec *iov, unsigned long nr_segs) in smb2_sync_write() argument 1924 return SMB2_write(xid, parms, written, iov, nr_segs); in smb2_sync_write() 3497 struct kvec iov[2]; in smb3_simple_fallocate_write_range() local 3511 iov[1].iov_base = buf; in smb3_simple_fallocate_write_range() 3512 iov[1].iov_len = io_parms.length; in smb3_simple_fallocate_write_range() 3513 rc = SMB2_write(xid, &io_parms, &nbytes, iov, 1); in smb3_simple_fallocate_write_range() 4240 struct kvec *iov = &rqst[i].rq_iov[j]; in smb2_get_aead_req() local 4243 addr = (unsigned long)iov->iov_base + skip; in smb2_get_aead_req() 4244 len = iov->iov_len - skip; in smb2_get_aead_req() 4477 struct kvec iov[2]; in decrypt_raw_data() local [all …]
|
D | smb1ops.c | 746 struct kvec *iov, unsigned long nr_segs) in cifs_sync_write() argument 750 return CIFSSMBWrite2(xid, parms, written, iov, nr_segs); in cifs_sync_write() 1041 struct kvec iov[2]; in cifs_make_node() local 1122 iov[1].iov_base = buf; in cifs_make_node() 1123 iov[1].iov_len = sizeof(struct win_dev); in cifs_make_node() 1129 &bytes_written, iov, 1); in cifs_make_node() 1135 &bytes_written, iov, 1); in cifs_make_node()
|
D | link.c | 459 struct kvec iov[2]; in smb3_create_mf_symlink() local 492 iov[1].iov_base = pbuf; in smb3_create_mf_symlink() 493 iov[1].iov_len = CIFS_MF_SYMLINK_FILE_SIZE; in smb3_create_mf_symlink() 495 rc = SMB2_write(xid, &io_parms, pbytes_written, iov, 1); in smb3_create_mf_symlink()
|
D | smb2misc.c | 866 smb311_update_preauth_hash(struct cifs_ses *ses, struct kvec *iov, int nvec) in smb311_update_preauth_hash() argument 873 hdr = (struct smb2_sync_hdr *)iov[0].iov_base; in smb311_update_preauth_hash() 917 iov[i].iov_base, iov[i].iov_len); in smb311_update_preauth_hash()
|
D | cifsglob.h | 1391 struct kvec iov[2]; member 2073 struct kvec *iov = &rqst[i].rq_iov[j]; in cifs_get_num_sgs() local 2076 addr = (unsigned long)iov->iov_base + skip; in cifs_get_num_sgs() 2078 len = iov->iov_len - skip; in cifs_get_num_sgs()
|
D | cifsproto.h | 459 unsigned int *nbytes, struct kvec *iov, const int nvec); 490 extern int cifs_sign_smbv(struct kvec *iov, int n_vec, struct TCP_Server_Info *,
|
D | file.c | 1873 struct kvec iov[2]; in cifs_write() local 1889 iov[1].iov_base = (char *)write_data + total_written; in cifs_write() 1890 iov[1].iov_len = len; in cifs_write() 1896 &io_parms, &bytes_written, iov, 1); in cifs_write()
|
D | connect.c | 749 struct kvec iov = {.iov_base = buf, .iov_len = to_read}; in cifs_read_from_socket() local 750 iov_iter_kvec(&smb_msg.msg_iter, READ, &iov, 1, to_read); in cifs_read_from_socket()
|
/fs/ |
D | read_write.c | 406 struct iovec iov = { .iov_base = buf, .iov_len = len }; in new_sync_read() local 413 iov_iter_init(&iter, READ, &iov, 1, len); in new_sync_read() 432 struct kvec iov = { in __kernel_read() local 453 iov_iter_kvec(&iter, READ, &iov, 1, iov.iov_len); in __kernel_read() 509 struct iovec iov = { .iov_base = (void __user *)buf, .iov_len = len }; in new_sync_write() local 516 iov_iter_init(&iter, WRITE, &iov, 1, len); in new_sync_write() 528 struct kvec iov = { in __kernel_write() local 549 iov_iter_kvec(&iter, WRITE, &iov, 1, iov.iov_len); in __kernel_write() 915 struct iovec *iov = iovstack; in vfs_readv() local 919 ret = import_iovec(READ, vec, vlen, ARRAY_SIZE(iovstack), &iov, &iter); in vfs_readv() [all …]
|
D | splice.c | 1293 struct iovec *iov = iovstack; in SYSCALL_DEFINE4() local 1308 ARRAY_SIZE(iovstack), &iov, &iter); in SYSCALL_DEFINE4() 1319 kfree(iov); in SYSCALL_DEFINE4()
|
D | seq_file.c | 153 struct iovec iov = { .iov_base = buf, .iov_len = size}; in seq_read() local 159 iov_iter_init(&iter, READ, &iov, 1, size); in seq_read()
|
/fs/afs/ |
D | rxrpc.c | 365 struct kvec iov[1]; in afs_make_call() local 435 iov[0].iov_base = call->request; in afs_make_call() 436 iov[0].iov_len = call->request_size; in afs_make_call() 440 iov_iter_kvec(&msg.msg_iter, WRITE, iov, 1, call->request_size); in afs_make_call() 886 struct kvec iov[1]; in afs_send_simple_reply() local 893 iov[0].iov_base = (void *) buf; in afs_send_simple_reply() 894 iov[0].iov_len = len; in afs_send_simple_reply() 897 iov_iter_kvec(&msg.msg_iter, WRITE, iov, 1, len); in afs_send_simple_reply()
|
/fs/pstore/ |
D | blk.c | 284 struct kvec iov = {.iov_base = buf, .iov_len = bytes}; in psblk_generic_blk_read() local 297 iov_iter_kvec(&iter, READ, &iov, 1, bytes); in psblk_generic_blk_read() 310 struct kvec iov = {.iov_base = (void *)buf, .iov_len = bytes}; in psblk_generic_blk_write() local 326 iov_iter_kvec(&iter, WRITE, &iov, 1, bytes); in psblk_generic_blk_write()
|
/fs/dlm/ |
D | lowcomms.c | 680 struct kvec iov; in receive_from_sock() local 706 iov.iov_base = con->rx_buf + con->rx_leftover; in receive_from_sock() 707 iov.iov_len = con->rx_buflen - con->rx_leftover; in receive_from_sock() 711 ret = kernel_recvmsg(con->sock, &msg, &iov, 1, iov.iov_len, in receive_from_sock() 715 else if (ret == iov.iov_len) in receive_from_sock()
|
/fs/fuse/ |
D | file.c | 1441 return (unsigned long)ii->iov->iov_base + ii->iov_offset; in fuse_get_user_addr() 2846 static int fuse_verify_ioctl_iov(struct fuse_conn *fc, struct iovec *iov, in fuse_verify_ioctl_iov() argument 2852 for (n = 0; n < count; n++, iov++) { in fuse_verify_ioctl_iov() 2853 if (iov->iov_len > (size_t) max) in fuse_verify_ioctl_iov() 2855 max -= iov->iov_len; in fuse_verify_ioctl_iov() 2991 struct iovec *iov = iov_page; in fuse_do_ioctl() local 2993 iov->iov_base = (void __user *)arg; in fuse_do_ioctl() 2998 iov->iov_len = sizeof(int); in fuse_do_ioctl() 3001 iov->iov_len = _IOC_SIZE(cmd); in fuse_do_ioctl() 3006 in_iov = iov; in fuse_do_ioctl() [all …]
|
/fs/nfsd/ |
D | nfs4xdr.c | 3259 xdr->iov = buf->head; in svcxdr_init_encode_from_buffer() 3806 xdr->iov = buf->tail; in nfsd4_encode_splice_read()
|
D | nfs4proc.c | 2264 xdr->iov = head; in svcxdr_init_encode()
|