Lines Matching refs:iov

1016 add_posix_context(struct kvec *iov, unsigned int *num_iovec, umode_t mode)  in add_posix_context()  argument
1020 iov[num].iov_base = create_posix_buf(mode); in add_posix_context()
1023 if (iov[num].iov_base == NULL) in add_posix_context()
1025 iov[num].iov_len = sizeof(struct create_posix); in add_posix_context()
1054 struct kvec iov[1]; in SMB2_negotiate() local
1127 iov[0].iov_base = (char *)req; in SMB2_negotiate()
1128 iov[0].iov_len = total_len; in SMB2_negotiate()
1131 rqst.rq_iov = iov; in SMB2_negotiate()
1462 struct kvec iov[2]; member
1528 sess_data->iov[0].iov_base = (char *)req; in SMB2_sess_alloc_buffer()
1530 sess_data->iov[0].iov_len = total_len - 1; in SMB2_sess_alloc_buffer()
1543 struct kvec *iov = sess_data->iov; in SMB2_sess_free_buffer() local
1546 if (sess_data->buf0_type != CIFS_NO_BUFFER && iov[0].iov_base) in SMB2_sess_free_buffer()
1547 memzero_explicit(iov[0].iov_base, iov[0].iov_len); in SMB2_sess_free_buffer()
1549 free_rsp_buf(sess_data->buf0_type, iov[0].iov_base); in SMB2_sess_free_buffer()
1558 struct smb2_sess_setup_req *req = sess_data->iov[0].iov_base; in SMB2_sess_sendreceive()
1564 req->SecurityBufferLength = cpu_to_le16(sess_data->iov[1].iov_len); in SMB2_sess_sendreceive()
1567 rqst.rq_iov = sess_data->iov; in SMB2_sess_sendreceive()
1576 cifs_small_buf_release(sess_data->iov[0].iov_base); in SMB2_sess_sendreceive()
1588 memcpy(&sess_data->iov[0], &rsp_iov, sizeof(struct kvec)); in SMB2_sess_sendreceive()
1675 sess_data->iov[1].iov_base = msg->data + msg->sesskey_len; in SMB2_auth_kerberos()
1676 sess_data->iov[1].iov_len = msg->secblob_len; in SMB2_auth_kerberos()
1682 rsp = (struct smb2_sess_setup_rsp *)sess_data->iov[0].iov_base; in SMB2_auth_kerberos()
1755 sess_data->iov[1].iov_base = ntlmssp_blob; in SMB2_sess_auth_rawntlmssp_negotiate()
1756 sess_data->iov[1].iov_len = blob_length; in SMB2_sess_auth_rawntlmssp_negotiate()
1759 rsp = (struct smb2_sess_setup_rsp *)sess_data->iov[0].iov_base; in SMB2_sess_auth_rawntlmssp_negotiate()
1825 req = (struct smb2_sess_setup_req *) sess_data->iov[0].iov_base; in SMB2_sess_auth_rawntlmssp_authenticate()
1842 sess_data->iov[1].iov_base = ntlmssp_blob; in SMB2_sess_auth_rawntlmssp_authenticate()
1843 sess_data->iov[1].iov_len = blob_length; in SMB2_sess_auth_rawntlmssp_authenticate()
1849 rsp = (struct smb2_sess_setup_rsp *)sess_data->iov[0].iov_base; in SMB2_sess_auth_rawntlmssp_authenticate()
1971 struct kvec iov[1]; in SMB2_logoff() local
2005 iov[0].iov_base = (char *)req; in SMB2_logoff()
2006 iov[0].iov_len = total_len; in SMB2_logoff()
2009 rqst.rq_iov = iov; in SMB2_logoff()
2046 struct kvec iov[2]; in SMB2_tcon() local
2085 iov[0].iov_base = (char *)req; in SMB2_tcon()
2087 iov[0].iov_len = total_len - 1; in SMB2_tcon()
2092 iov[1].iov_base = unc_path; in SMB2_tcon()
2093 iov[1].iov_len = unc_path_len; in SMB2_tcon()
2108 rqst.rq_iov = iov; in SMB2_tcon()
2190 struct kvec iov[1]; in SMB2_tdis() local
2221 iov[0].iov_base = (char *)req; in SMB2_tdis()
2222 iov[0].iov_len = total_len; in SMB2_tdis()
2225 rqst.rq_iov = iov; in SMB2_tdis()
2416 struct kvec *iov, in add_lease_context() argument
2421 iov[num].iov_base = server->ops->create_lease_buf(lease_key, *oplock); in add_lease_context()
2422 if (iov[num].iov_base == NULL) in add_lease_context()
2424 iov[num].iov_len = server->vals->create_lease_size; in add_lease_context()
2506 add_durable_v2_context(struct kvec *iov, unsigned int *num_iovec, in add_durable_v2_context() argument
2511 iov[num].iov_base = create_durable_v2_buf(oparms); in add_durable_v2_context()
2512 if (iov[num].iov_base == NULL) in add_durable_v2_context()
2514 iov[num].iov_len = sizeof(struct create_durable_v2); in add_durable_v2_context()
2520 add_durable_reconnect_v2_context(struct kvec *iov, unsigned int *num_iovec, in add_durable_reconnect_v2_context() argument
2528 iov[num].iov_base = create_reconnect_durable_v2_buf(oparms->fid); in add_durable_reconnect_v2_context()
2529 if (iov[num].iov_base == NULL) in add_durable_reconnect_v2_context()
2531 iov[num].iov_len = sizeof(struct create_durable_handle_reconnect_v2); in add_durable_reconnect_v2_context()
2537 add_durable_context(struct kvec *iov, unsigned int *num_iovec, in add_durable_context() argument
2544 return add_durable_reconnect_v2_context(iov, num_iovec, in add_durable_context()
2547 return add_durable_v2_context(iov, num_iovec, oparms); in add_durable_context()
2551 iov[num].iov_base = create_reconnect_durable_buf(oparms->fid); in add_durable_context()
2555 iov[num].iov_base = create_durable_buf(); in add_durable_context()
2556 if (iov[num].iov_base == NULL) in add_durable_context()
2558 iov[num].iov_len = sizeof(struct create_durable); in add_durable_context()
2590 add_twarp_context(struct kvec *iov, unsigned int *num_iovec, __u64 timewarp) in add_twarp_context() argument
2594 iov[num].iov_base = create_twarp_buf(timewarp); in add_twarp_context()
2595 if (iov[num].iov_base == NULL) in add_twarp_context()
2597 iov[num].iov_len = sizeof(struct crt_twarp_ctxt); in add_twarp_context()
2718 add_sd_context(struct kvec *iov, unsigned int *num_iovec, umode_t mode, bool set_owner) in add_sd_context() argument
2723 iov[num].iov_base = create_sd_buf(mode, set_owner, &len); in add_sd_context()
2724 if (iov[num].iov_base == NULL) in add_sd_context()
2726 iov[num].iov_len = len; in add_sd_context()
2755 add_query_id_context(struct kvec *iov, unsigned int *num_iovec) in add_query_id_context() argument
2759 iov[num].iov_base = create_query_id_buf(); in add_query_id_context()
2760 if (iov[num].iov_base == NULL) in add_query_id_context()
2762 iov[num].iov_len = sizeof(struct crt_query_id_ctxt); in add_query_id_context()
2770 struct kvec *iov = oparms->ea_cctx; in add_ea_context() local
2772 if (iov && iov->iov_base && iov->iov_len) { in add_ea_context()
2773 rq_iov[(*num_iovs)++] = *iov; in add_ea_context()
2774 memset(iov, 0, sizeof(*iov)); in add_ea_context()
2833 struct kvec iov[3]; /* make sure at least one for each open context */ in smb311_posix_mkdir() local
2885 iov[0].iov_base = (char *)req; in smb311_posix_mkdir()
2887 iov[0].iov_len = total_len - 1; in smb311_posix_mkdir()
2934 iov[1].iov_len = uni_path_len; in smb311_posix_mkdir()
2935 iov[1].iov_base = utf16_path; in smb311_posix_mkdir()
2940 rc = add_posix_context(iov, &n_iov, mode); in smb311_posix_mkdir()
2945 iov[1].iov_len); in smb311_posix_mkdir()
2946 pc_buf = iov[n_iov-1].iov_base; in smb311_posix_mkdir()
2951 rqst.rq_iov = iov; in smb311_posix_mkdir()
3017 struct kvec *iov = rqst->rq_iov; in SMB2_open_init() local
3026 iov[0].iov_base = (char *)req; in SMB2_open_init()
3028 iov[0].iov_len = total_len - 1; in SMB2_open_init()
3079 iov[1].iov_len = uni_path_len; in SMB2_open_init()
3080 iov[1].iov_base = path; in SMB2_open_init()
3092 rc = add_lease_context(server, req, iov, &n_iov, in SMB2_open_init()
3099 rc = add_durable_context(iov, &n_iov, oparms, in SMB2_open_init()
3106 rc = add_posix_context(iov, &n_iov, oparms->mode); in SMB2_open_init()
3113 rc = add_twarp_context(iov, &n_iov, tcon->snapshot_time); in SMB2_open_init()
3137 rc = add_sd_context(iov, &n_iov, oparms->mode, set_owner); in SMB2_open_init()
3143 add_query_id_context(iov, &n_iov); in SMB2_open_init()
3144 add_ea_context(oparms, iov, &n_iov); in SMB2_open_init()
3153 iov[1].iov_len); in SMB2_open_init()
3157 struct kvec *v = &iov[i]; in SMB2_open_init()
3166 iov[n_iov-1].iov_len); in SMB2_open_init()
3200 struct kvec iov[SMB2_CREATE_IOV_SIZE]; in SMB2_open() local
3221 memset(&iov, 0, sizeof(iov)); in SMB2_open()
3222 rqst.rq_iov = iov; in SMB2_open()
3305 struct kvec *iov = rqst->rq_iov; in SMB2_ioctl_init() local
3340 iov[0].iov_base = (char *)req; in SMB2_ioctl_init()
3355 iov[0].iov_len = total_len - 1; in SMB2_ioctl_init()
3356 iov[1].iov_base = in_data_buf; in SMB2_ioctl_init()
3357 iov[1].iov_len = indatalen; in SMB2_ioctl_init()
3360 iov[0].iov_len = total_len; in SMB2_ioctl_init()
3422 struct kvec iov[SMB2_IOCTL_IOV_SIZE]; in SMB2_ioctl() local
3457 memset(&iov, 0, sizeof(iov)); in SMB2_ioctl()
3458 rqst.rq_iov = iov; in SMB2_ioctl()
3579 struct kvec *iov = rqst->rq_iov; in SMB2_close_init() local
3594 iov[0].iov_base = (char *)req; in SMB2_close_init()
3595 iov[0].iov_len = total_len; in SMB2_close_init()
3616 struct kvec iov[1]; in __SMB2_close() local
3639 memset(&iov, 0, sizeof(iov)); in __SMB2_close()
3640 rqst.rq_iov = iov; in __SMB2_close()
3707 struct kvec *iov, unsigned int min_buf_size) in smb2_validate_iov() argument
3709 unsigned int smb_len = iov->iov_len; in smb2_validate_iov()
3710 char *end_of_smb = smb_len + (char *)iov->iov_base; in smb2_validate_iov()
3711 char *begin_of_buf = offset + (char *)iov->iov_base; in smb2_validate_iov()
3742 struct kvec *iov, unsigned int minbufsize, in smb2_validate_and_copy_iov() argument
3745 char *begin_of_buf = offset + (char *)iov->iov_base; in smb2_validate_and_copy_iov()
3751 rc = smb2_validate_iov(offset, buffer_length, iov, minbufsize); in smb2_validate_and_copy_iov()
3768 struct kvec *iov = rqst->rq_iov; in SMB2_query_info_init() local
3796 iov[0].iov_base = (char *)req; in SMB2_query_info_init()
3798 iov[0].iov_len = len; in SMB2_query_info_init()
3817 struct kvec iov[1]; in query_info() local
3845 memset(&iov, 0, sizeof(iov)); in query_info()
3846 rqst.rq_iov = iov; in query_info()
3976 struct kvec *iov = rqst->rq_iov; in SMB2_notify_init() local
3996 iov[0].iov_base = (char *)req; in SMB2_notify_init()
3997 iov[0].iov_len = total_len; in SMB2_notify_init()
4012 struct kvec iov[1]; in SMB2_change_notify() local
4032 memset(&iov, 0, sizeof(iov)); in SMB2_change_notify()
4036 rqst.rq_iov = iov; in SMB2_change_notify()
4259 struct kvec iov[1]; in SMB2_echo() local
4260 struct smb_rqst rqst = { .rq_iov = iov, in SMB2_echo()
4283 iov[0].iov_len = total_len; in SMB2_echo()
4284 iov[0].iov_base = (char *)req; in SMB2_echo()
4308 struct kvec *iov = rqst->rq_iov; in SMB2_flush_init() local
4320 iov[0].iov_base = (char *)req; in SMB2_flush_init()
4321 iov[0].iov_len = total_len; in SMB2_flush_init()
4332 struct kvec iov[1]; in SMB2_flush() local
4353 memset(&iov, 0, sizeof(iov)); in SMB2_flush()
4354 rqst.rq_iov = iov; in SMB2_flush()
4532 (struct smb2_hdr *)rdata->iov[0].iov_base; in smb2_readv_callback()
4539 struct smb_rqst rqst = { .rq_iov = &rdata->iov[1], .rq_nvec = 1 }; in smb2_readv_callback()
4656 struct smb_rqst rqst = { .rq_iov = rdata->iov, in smb2_async_readv()
4685 rdata->iov[0].iov_base = buf; in smb2_async_readv()
4686 rdata->iov[0].iov_len = total_len; in smb2_async_readv()
4738 struct kvec iov[1]; in SMB2_read() local
4755 iov[0].iov_base = (char *)req; in SMB2_read()
4756 iov[0].iov_len = total_len; in SMB2_read()
4759 rqst.rq_iov = iov; in SMB2_read()
4927 struct kvec iov[1]; in smb2_async_writev() local
4954 rqst.rq_iov = iov; in smb2_async_writev()
5095 unsigned int *nbytes, struct kvec *iov, int n_vec) in SMB2_write() argument
5146 iov[0].iov_base = (char *)req; in SMB2_write()
5148 iov[0].iov_len = total_len - 1; in SMB2_write()
5151 rqst.rq_iov = iov; in SMB2_write()
5350 struct kvec *iov = rqst->rq_iov; in SMB2_query_directory_init() local
5396 iov[0].iov_base = (char *)req; in SMB2_query_directory_init()
5398 iov[0].iov_len = total_len - 1; in SMB2_query_directory_init()
5400 iov[1].iov_base = (char *)(req->Buffer); in SMB2_query_directory_init()
5401 iov[1].iov_len = len; in SMB2_query_directory_init()
5497 struct kvec iov[SMB2_QUERY_DIRECTORY_IOV_SIZE]; in SMB2_query_directory() local
5519 memset(&iov, 0, sizeof(iov)); in SMB2_query_directory()
5520 rqst.rq_iov = iov; in SMB2_query_directory()
5583 struct kvec *iov = rqst->rq_iov; in SMB2_set_info_init() local
5605 iov[0].iov_base = (char *)req; in SMB2_set_info_init()
5607 iov[0].iov_len = total_len - 1; in SMB2_set_info_init()
5611 iov[i].iov_base = (char *)data[i]; in SMB2_set_info_init()
5612 iov[i].iov_len = size[i]; in SMB2_set_info_init()
5633 struct kvec *iov; in send_set_info() local
5656 iov = kmalloc_array(num, sizeof(struct kvec), GFP_KERNEL); in send_set_info()
5657 if (!iov) in send_set_info()
5661 rqst.rq_iov = iov; in send_set_info()
5669 kfree(iov); in send_set_info()
5689 kfree(iov); in send_set_info()
5750 struct kvec iov[1]; in SMB2_oplock_break() local
5776 iov[0].iov_base = (char *)req; in SMB2_oplock_break()
5777 iov[0].iov_len = total_len; in SMB2_oplock_break()
5780 rqst.rq_iov = iov; in SMB2_oplock_break()
5833 build_qfs_info_req(struct kvec *iov, struct cifs_tcon *tcon, in build_qfs_info_req() argument
5862 iov->iov_base = (char *)req; in build_qfs_info_req()
5863 iov->iov_len = total_len; in build_qfs_info_req()
5867 static inline void free_qfs_info_req(struct kvec *iov) in free_qfs_info_req() argument
5869 cifs_buf_release(iov->iov_base); in free_qfs_info_req()
5878 struct kvec iov; in SMB311_posix_qfs_info() local
5893 rc = build_qfs_info_req(&iov, tcon, server, in SMB311_posix_qfs_info()
5904 rqst.rq_iov = &iov; in SMB311_posix_qfs_info()
5912 free_qfs_info_req(&iov); in SMB311_posix_qfs_info()
5943 struct kvec iov; in SMB2_QFS_info() local
5958 rc = build_qfs_info_req(&iov, tcon, server, in SMB2_QFS_info()
5969 rqst.rq_iov = &iov; in SMB2_QFS_info()
5977 free_qfs_info_req(&iov); in SMB2_QFS_info()
6008 struct kvec iov; in SMB2_QFS_attr() local
6040 rc = build_qfs_info_req(&iov, tcon, server, in SMB2_QFS_attr()
6050 rqst.rq_iov = &iov; in SMB2_QFS_attr()
6058 free_qfs_info_req(&iov); in SMB2_QFS_attr()
6109 struct kvec iov[2]; in smb2_lockv() local
6141 iov[0].iov_base = (char *)req; in smb2_lockv()
6142 iov[0].iov_len = total_len - sizeof(struct smb2_lock_element); in smb2_lockv()
6143 iov[1].iov_base = (char *)buf; in smb2_lockv()
6144 iov[1].iov_len = count; in smb2_lockv()
6149 rqst.rq_iov = iov; in smb2_lockv()
6200 struct kvec iov[1]; in SMB2_lease_break() local
6225 iov[0].iov_base = (char *)req; in SMB2_lease_break()
6226 iov[0].iov_len = total_len; in SMB2_lease_break()
6229 rqst.rq_iov = iov; in SMB2_lease_break()