/fs/cifs/ |
D | smb2pdu.c | 808 add_posix_context(struct kvec *iov, unsigned int *num_iovec, umode_t mode) in add_posix_context() argument 810 struct smb2_create_req *req = iov[0].iov_base; in add_posix_context() 813 iov[num].iov_base = create_posix_buf(mode); in add_posix_context() 816 if (iov[num].iov_base == NULL) in add_posix_context() 818 iov[num].iov_len = sizeof(struct create_posix); in add_posix_context() 822 iov[num - 1].iov_len); in add_posix_context() 850 struct kvec iov[1]; in SMB2_negotiate() local 924 iov[0].iov_base = (char *)req; in SMB2_negotiate() 925 iov[0].iov_len = total_len; in SMB2_negotiate() 928 rqst.rq_iov = iov; in SMB2_negotiate() [all …]
|
D | sess.c | 859 struct kvec iov[3]; member 875 sess_data->iov[0].iov_base = (char *)smb_buf; in sess_alloc_buffer() 876 sess_data->iov[0].iov_len = be32_to_cpu(smb_buf->smb_buf_length) + 4; in sess_alloc_buffer() 884 sess_data->iov[2].iov_base = kmalloc(2000, GFP_KERNEL); in sess_alloc_buffer() 885 if (!sess_data->iov[2].iov_base) { in sess_alloc_buffer() 894 sess_data->iov[0].iov_base = NULL; in sess_alloc_buffer() 895 sess_data->iov[0].iov_len = 0; in sess_alloc_buffer() 904 free_rsp_buf(sess_data->buf0_type, sess_data->iov[0].iov_base); in sess_free_buffer() 906 kfree(sess_data->iov[2].iov_base); in sess_free_buffer() 945 struct smb_hdr *smb_buf = (struct smb_hdr *) sess_data->iov[0].iov_base; in sess_sendreceive() [all …]
|
D | transport.c | 258 struct kvec *iov; in smb_rqst_len() local 264 iov = &rqst->rq_iov[1]; in smb_rqst_len() 267 iov = rqst->rq_iov; in smb_rqst_len() 273 buflen += iov[i].iov_len; in smb_rqst_len() 303 struct kvec *iov; in __smb_send_rqst() local 368 iov = rqst[j].rq_iov; in __smb_send_rqst() 373 dump_smb(iov[i].iov_base, iov[i].iov_len); in __smb_send_rqst() 374 size += iov[i].iov_len; in __smb_send_rqst() 377 iov_iter_kvec(&smb_msg.msg_iter, WRITE, iov, n_vec, size); in __smb_send_rqst() 454 struct kvec iov; in smb_send_rqst() local [all …]
|
D | cifsencrypt.c | 33 struct kvec *iov = rqst->rq_iov; in __cifs_calc_signature() local 39 if (iov[0].iov_len <= 4) in __cifs_calc_signature() 43 if (n_vec < 2 || iov[0].iov_len != 4) in __cifs_calc_signature() 49 if (iov[i].iov_len == 0) in __cifs_calc_signature() 51 if (iov[i].iov_base == NULL) { in __cifs_calc_signature() 57 iov[i].iov_base, iov[i].iov_len); in __cifs_calc_signature() 169 int cifs_sign_smbv(struct kvec *iov, int n_vec, struct TCP_Server_Info *server, in cifs_sign_smbv() argument 172 struct smb_rqst rqst = { .rq_iov = iov, in cifs_sign_smbv() 182 struct kvec iov[2]; in cifs_sign_smb() local 184 iov[0].iov_base = cifs_pdu; in cifs_sign_smb() [all …]
|
D | smb2transport.c | 215 struct kvec *iov = rqst->rq_iov; in smb2_calc_signature() local 216 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)iov[0].iov_base; in smb2_calc_signature() 268 if (drqst.rq_nvec >= 2 && iov[0].iov_len == 4) { in smb2_calc_signature() 269 rc = crypto_shash_update(shash, iov[0].iov_base, in smb2_calc_signature() 270 iov[0].iov_len); in smb2_calc_signature() 535 struct kvec *iov = rqst->rq_iov; in smb3_calc_signature() local 536 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)iov[0].iov_base; in smb3_calc_signature() 588 if (drqst.rq_nvec >= 2 && iov[0].iov_len == 4) { in smb3_calc_signature() 589 rc = crypto_shash_update(shash, iov[0].iov_base, in smb3_calc_signature() 590 iov[0].iov_len); in smb3_calc_signature() [all …]
|
D | cifssmb.c | 646 struct kvec iov[2]; in CIFSSMBEcho() local 647 struct smb_rqst rqst = { .rq_iov = iov, in CIFSSMBEcho() 667 iov[0].iov_len = 4; in CIFSSMBEcho() 668 iov[0].iov_base = smb; in CIFSSMBEcho() 669 iov[1].iov_len = get_rfc1002_length(smb); in CIFSSMBEcho() 670 iov[1].iov_base = (char *)smb + 4; in CIFSSMBEcho() 1415 rdata->iov[0].iov_base = buf; in cifs_readv_receive() 1416 rdata->iov[0].iov_len = server->vals->header_preamble_size; in cifs_readv_receive() 1417 rdata->iov[1].iov_base = buf + server->vals->header_preamble_size; in cifs_readv_receive() 1418 rdata->iov[1].iov_len = in cifs_readv_receive() [all …]
|
D | smbdirect.c | 39 struct kvec *iov, int n_vec, int remaining_data_length); 1015 struct smbd_connection *info, struct kvec *iov, int n_vec, in smbd_post_send_data() argument 1029 data_length += iov[i].iov_len; in smbd_post_send_data() 1030 sg_set_buf(&sgl[i], iov[i].iov_base, iov[i].iov_len); in smbd_post_send_data() 1998 struct kvec *iov; in smbd_send() local 2030 iov = rqst->rq_iov; in smbd_send() 2035 dump_smb(iov[i].iov_base, iov[i].iov_len); in smbd_send() 2045 buflen += iov[i].iov_len; in smbd_send() 2049 (buflen-iov[i].iov_len); in smbd_send() 2054 info, &iov[start], i-start, in smbd_send() [all …]
|
D | smb2proto.h | 203 unsigned int *nbytes, struct kvec *iov, int n_vec); 271 struct kvec *iov, unsigned int min_buf_size); 274 struct kvec *iov, 281 struct kvec *iov, int nvec);
|
D | smb2ops.c | 2027 struct kvec *iov, unsigned long nr_segs) in smb2_sync_write() argument 2032 return SMB2_write(xid, parms, written, iov, nr_segs); in smb2_sync_write() 3662 struct kvec iov[2]; in smb3_simple_fallocate_write_range() local 3676 iov[1].iov_base = buf; in smb3_simple_fallocate_write_range() 3677 iov[1].iov_len = io_parms.length; in smb3_simple_fallocate_write_range() 3678 rc = SMB2_write(xid, &io_parms, &nbytes, iov, 1); in smb3_simple_fallocate_write_range() 4482 struct kvec *iov = &rqst[i].rq_iov[j]; in smb2_get_aead_req() local 4485 addr = (unsigned long)iov->iov_base + skip; in smb2_get_aead_req() 4486 len = iov->iov_len - skip; in smb2_get_aead_req() 4719 struct kvec iov[2]; in decrypt_raw_data() local [all …]
|
D | smb1ops.c | 747 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() 1039 struct kvec iov[2]; in cifs_make_node() local 1120 iov[1].iov_base = buf; in cifs_make_node() 1121 iov[1].iov_len = sizeof(struct win_dev); in cifs_make_node() 1127 &bytes_written, iov, 1); in cifs_make_node() 1133 &bytes_written, iov, 1); in cifs_make_node()
|
D | link.c | 447 struct kvec iov[2]; in smb3_create_mf_symlink() local 480 iov[1].iov_base = pbuf; in smb3_create_mf_symlink() 481 iov[1].iov_len = CIFS_MF_SYMLINK_FILE_SIZE; in smb3_create_mf_symlink() 483 rc = SMB2_write(xid, &io_parms, pbytes_written, iov, 1); in smb3_create_mf_symlink()
|
D | smb2misc.c | 849 smb311_update_preauth_hash(struct cifs_ses *ses, struct kvec *iov, int nvec) in smb311_update_preauth_hash() argument 856 hdr = (struct smb2_sync_hdr *)iov[0].iov_base; in smb311_update_preauth_hash() 900 iov[i].iov_base, iov[i].iov_len); in smb311_update_preauth_hash()
|
D | cifsglob.h | 1334 struct kvec iov[2]; member 1999 struct kvec *iov = &rqst[i].rq_iov[j]; in cifs_get_num_sgs() local 2002 addr = (unsigned long)iov->iov_base + skip; in cifs_get_num_sgs() 2004 len = iov->iov_len - skip; in cifs_get_num_sgs()
|
/fs/ksmbd/ |
D | transport_tcp.c | 36 struct kvec *iov; member 103 kfree(t->iov); in free_transport() 116 static unsigned int kvec_array_init(struct kvec *new, struct kvec *iov, in kvec_array_init() argument 121 while (bytes || !iov->iov_len) { in kvec_array_init() 122 int copy = min(bytes, iov->iov_len); in kvec_array_init() 126 if (iov->iov_len == base) { in kvec_array_init() 127 iov++; in kvec_array_init() 133 memcpy(new, iov, sizeof(*iov) * nr_segs); in kvec_array_init() 150 if (t->iov && nr_segs <= t->nr_iov) in get_conn_iovec() 151 return t->iov; in get_conn_iovec() [all …]
|
D | ksmbd_work.c | 32 work->iov = kcalloc(work->iov_alloc_cnt, sizeof(struct kvec), in ksmbd_alloc_work_struct() 34 if (!work->iov) { in ksmbd_alloc_work_struct() 58 kfree(work->iov); in ksmbd_free_work_struct() 104 work->iov[++work->iov_idx].iov_base = ib; in __ksmbd_iov_pin() 105 work->iov[work->iov_idx].iov_len = ib_len; in __ksmbd_iov_pin() 126 new = krealloc(work->iov, in __ksmbd_iov_pin_rsp() 134 work->iov = new; in __ksmbd_iov_pin_rsp() 139 work->iov[work->iov_idx].iov_base = work->response_buf; in __ksmbd_iov_pin_rsp() 140 *(__be32 *)work->iov[0].iov_base = 0; in __ksmbd_iov_pin_rsp() 141 work->iov[work->iov_idx].iov_len = 4; in __ksmbd_iov_pin_rsp() [all …]
|
D | auth.c | 575 int ksmbd_sign_smb2_pdu(struct ksmbd_conn *conn, char *key, struct kvec *iov, in ksmbd_sign_smb2_pdu() argument 601 iov[i].iov_base, in ksmbd_sign_smb2_pdu() 602 iov[i].iov_len); in ksmbd_sign_smb2_pdu() 626 int ksmbd_sign_smb3_pdu(struct ksmbd_conn *conn, char *key, struct kvec *iov, in ksmbd_sign_smb3_pdu() argument 652 iov[i].iov_base, in ksmbd_sign_smb3_pdu() 653 iov[i].iov_len); in ksmbd_sign_smb3_pdu() 1030 static struct scatterlist *ksmbd_init_sg(struct kvec *iov, unsigned int nvec, in ksmbd_init_sg() argument 1045 unsigned long kaddr = (unsigned long)iov[i + 1].iov_base; in ksmbd_init_sg() 1047 if (is_vmalloc_addr(iov[i + 1].iov_base)) { in ksmbd_init_sg() 1048 nr_entries[i] = ((kaddr + iov[i + 1].iov_len + in ksmbd_init_sg() [all …]
|
D | auth.h | 39 int ksmbd_crypt_message(struct ksmbd_work *work, struct kvec *iov, 55 int ksmbd_sign_smb2_pdu(struct ksmbd_conn *conn, char *key, struct kvec *iov, 57 int ksmbd_sign_smb3_pdu(struct ksmbd_conn *conn, char *key, struct kvec *iov,
|
D | transport_rdma.c | 228 struct kvec *iov, int niov, 1163 struct kvec *iov, int niov, in smb_direct_post_send_data() argument 1177 data_length += iov[i].iov_len; in smb_direct_post_send_data() 1192 iov[i].iov_base, iov[i].iov_len, in smb_direct_post_send_data() 1227 struct kvec *iov, int niovs, int buflen, in smb_direct_writev() argument 1252 buflen += iov[i].iov_len; in smb_direct_writev() 1256 (buflen - iov[i].iov_len); in smb_direct_writev() 1258 &iov[start], i - start, in smb_direct_writev() 1269 (char *)iov[start].iov_base + in smb_direct_writev() 1292 &iov[start], i - start, in smb_direct_writev()
|
D | smb2pdu.c | 400 work->iov[work->iov_idx].iov_len += (new_len - len); in init_chained_smb2_rsp() 481 work->iov[work->iov_idx].iov_len += len; in is_chained_smb2_message() 8353 struct kvec iov[1]; in smb2_check_sign_req() local 8371 iov[0].iov_base = (char *)&hdr->ProtocolId; in smb2_check_sign_req() 8372 iov[0].iov_len = len; in smb2_check_sign_req() 8374 if (ksmbd_sign_smb2_pdu(work->conn, work->sess->sess_key, iov, 1, in smb2_check_sign_req() 8395 struct kvec *iov; in smb2_set_sign_rsp() local 8403 iov = &work->iov[work->iov_idx - 1]; in smb2_set_sign_rsp() 8406 iov = &work->iov[work->iov_idx]; in smb2_set_sign_rsp() 8409 if (!ksmbd_sign_smb2_pdu(work->conn, work->sess->sess_key, iov, n_vec, in smb2_set_sign_rsp() [all …]
|
D | ksmbd_work.h | 41 struct kvec *iov; member
|
D | connection.c | 190 sent = conn->transport->ops->writev(conn->transport, work->iov, in ksmbd_conn_write() 192 get_rfc1002_len(work->iov[0].iov_base) + 4, in ksmbd_conn_write()
|
/fs/fuse/ |
D | ioctl.c | 71 static int fuse_verify_ioctl_iov(struct fuse_conn *fc, struct iovec *iov, in fuse_verify_ioctl_iov() argument 77 for (n = 0; n < count; n++, iov++) { in fuse_verify_ioctl_iov() 78 if (iov->iov_len > (size_t) max) in fuse_verify_ioctl_iov() 80 max -= iov->iov_len; in fuse_verify_ioctl_iov() 216 struct iovec *iov = iov_page; in fuse_do_ioctl() local 218 iov->iov_base = (void __user *)arg; in fuse_do_ioctl() 219 iov->iov_len = _IOC_SIZE(cmd); in fuse_do_ioctl() 222 in_iov = iov; in fuse_do_ioctl() 227 out_iov = iov; in fuse_do_ioctl()
|
/fs/ |
D | read_write.c | 395 struct iovec iov = { .iov_base = buf, .iov_len = len }; in new_sync_read() local 402 iov_iter_init(&iter, READ, &iov, 1, len); in new_sync_read() 421 struct kvec iov = { in __kernel_read() local 442 iov_iter_kvec(&iter, READ, &iov, 1, iov.iov_len); in __kernel_read() 498 struct iovec iov = { .iov_base = (void __user *)buf, .iov_len = len }; in new_sync_write() local 505 iov_iter_init(&iter, WRITE, &iov, 1, len); in new_sync_write() 517 struct kvec iov = { in __kernel_write() local 538 iov_iter_kvec(&iter, WRITE, &iov, 1, iov.iov_len); in __kernel_write() 904 struct iovec *iov = iovstack; in vfs_readv() local 908 ret = import_iovec(READ, vec, vlen, ARRAY_SIZE(iovstack), &iov, &iter); in vfs_readv() [all …]
|
/fs/afs/ |
D | rxrpc.c | 298 struct kvec iov[1]; in afs_make_call() local 356 iov[0].iov_base = call->request; in afs_make_call() 357 iov[0].iov_len = call->request_size; in afs_make_call() 361 iov_iter_kvec(&msg.msg_iter, WRITE, iov, 1, call->request_size); in afs_make_call() 853 struct kvec iov[1]; in afs_send_simple_reply() local 860 iov[0].iov_base = (void *) buf; in afs_send_simple_reply() 861 iov[0].iov_len = len; in afs_send_simple_reply() 864 iov_iter_kvec(&msg.msg_iter, WRITE, iov, 1, len); in afs_send_simple_reply()
|
/fs/dlm/ |
D | lowcomms.c | 899 struct kvec iov; in receive_from_sock() local 921 iov.iov_base = con->rx_buf + con->rx_leftover; in receive_from_sock() 922 iov.iov_len = con->rx_buflen - con->rx_leftover; in receive_from_sock() 926 ret = kernel_recvmsg(con->sock, &msg, &iov, 1, iov.iov_len, in receive_from_sock()
|