Lines Matching refs:iov

796 add_posix_context(struct kvec *iov, unsigned int *num_iovec, umode_t mode)  in add_posix_context()  argument
798 struct smb2_create_req *req = iov[0].iov_base; in add_posix_context()
801 iov[num].iov_base = create_posix_buf(mode); in add_posix_context()
804 if (iov[num].iov_base == NULL) in add_posix_context()
806 iov[num].iov_len = sizeof(struct create_posix); in add_posix_context()
810 iov[num - 1].iov_len); in add_posix_context()
838 struct kvec iov[1]; in SMB2_negotiate() local
912 iov[0].iov_base = (char *)req; in SMB2_negotiate()
913 iov[0].iov_len = total_len; in SMB2_negotiate()
916 rqst.rq_iov = iov; in SMB2_negotiate()
1234 struct kvec iov[2]; member
1287 sess_data->iov[0].iov_base = (char *)req; in SMB2_sess_alloc_buffer()
1289 sess_data->iov[0].iov_len = total_len - 1; in SMB2_sess_alloc_buffer()
1302 free_rsp_buf(sess_data->buf0_type, sess_data->iov[0].iov_base); in SMB2_sess_free_buffer()
1311 struct smb2_sess_setup_req *req = sess_data->iov[0].iov_base; in SMB2_sess_sendreceive()
1317 req->SecurityBufferLength = cpu_to_le16(sess_data->iov[1].iov_len); in SMB2_sess_sendreceive()
1320 rqst.rq_iov = sess_data->iov; in SMB2_sess_sendreceive()
1329 cifs_small_buf_release(sess_data->iov[0].iov_base); in SMB2_sess_sendreceive()
1330 memcpy(&sess_data->iov[0], &rsp_iov, sizeof(struct kvec)); in SMB2_sess_sendreceive()
1418 sess_data->iov[1].iov_base = msg->data + msg->sesskey_len; in SMB2_auth_kerberos()
1419 sess_data->iov[1].iov_len = msg->secblob_len; in SMB2_auth_kerberos()
1425 rsp = (struct smb2_sess_setup_rsp *)sess_data->iov[0].iov_base; in SMB2_auth_kerberos()
1496 sess_data->iov[1].iov_base = ntlmssp_blob; in SMB2_sess_auth_rawntlmssp_negotiate()
1497 sess_data->iov[1].iov_len = blob_length; in SMB2_sess_auth_rawntlmssp_negotiate()
1500 rsp = (struct smb2_sess_setup_rsp *)sess_data->iov[0].iov_base; in SMB2_sess_auth_rawntlmssp_negotiate()
1560 req = (struct smb2_sess_setup_req *) sess_data->iov[0].iov_base; in SMB2_sess_auth_rawntlmssp_authenticate()
1576 sess_data->iov[1].iov_base = ntlmssp_blob; in SMB2_sess_auth_rawntlmssp_authenticate()
1577 sess_data->iov[1].iov_len = blob_length; in SMB2_sess_auth_rawntlmssp_authenticate()
1583 rsp = (struct smb2_sess_setup_rsp *)sess_data->iov[0].iov_base; in SMB2_sess_auth_rawntlmssp_authenticate()
1697 struct kvec iov[1]; in SMB2_logoff() local
1727 iov[0].iov_base = (char *)req; in SMB2_logoff()
1728 iov[0].iov_len = total_len; in SMB2_logoff()
1731 rqst.rq_iov = iov; in SMB2_logoff()
1768 struct kvec iov[2]; in SMB2_tcon() local
1810 iov[0].iov_base = (char *)req; in SMB2_tcon()
1812 iov[0].iov_len = total_len - 1; in SMB2_tcon()
1818 iov[1].iov_base = unc_path; in SMB2_tcon()
1819 iov[1].iov_len = unc_path_len; in SMB2_tcon()
1834 rqst.rq_iov = iov; in SMB2_tcon()
1910 struct kvec iov[1]; in SMB2_tdis() local
1935 iov[0].iov_base = (char *)req; in SMB2_tdis()
1936 iov[0].iov_len = total_len; in SMB2_tdis()
1939 rqst.rq_iov = iov; in SMB2_tdis()
2106 add_lease_context(struct TCP_Server_Info *server, struct kvec *iov, in add_lease_context() argument
2109 struct smb2_create_req *req = iov[0].iov_base; in add_lease_context()
2112 iov[num].iov_base = server->ops->create_lease_buf(lease_key, *oplock); in add_lease_context()
2113 if (iov[num].iov_base == NULL) in add_lease_context()
2115 iov[num].iov_len = server->vals->create_lease_size; in add_lease_context()
2120 iov[num - 1].iov_len); in add_lease_context()
2198 add_durable_v2_context(struct kvec *iov, unsigned int *num_iovec, in add_durable_v2_context() argument
2201 struct smb2_create_req *req = iov[0].iov_base; in add_durable_v2_context()
2204 iov[num].iov_base = create_durable_v2_buf(oparms); in add_durable_v2_context()
2205 if (iov[num].iov_base == NULL) in add_durable_v2_context()
2207 iov[num].iov_len = sizeof(struct create_durable_v2); in add_durable_v2_context()
2211 iov[1].iov_len); in add_durable_v2_context()
2218 add_durable_reconnect_v2_context(struct kvec *iov, unsigned int *num_iovec, in add_durable_reconnect_v2_context() argument
2221 struct smb2_create_req *req = iov[0].iov_base; in add_durable_reconnect_v2_context()
2227 iov[num].iov_base = create_reconnect_durable_v2_buf(oparms->fid); in add_durable_reconnect_v2_context()
2228 if (iov[num].iov_base == NULL) in add_durable_reconnect_v2_context()
2230 iov[num].iov_len = sizeof(struct create_durable_handle_reconnect_v2); in add_durable_reconnect_v2_context()
2234 iov[1].iov_len); in add_durable_reconnect_v2_context()
2242 add_durable_context(struct kvec *iov, unsigned int *num_iovec, in add_durable_context() argument
2245 struct smb2_create_req *req = iov[0].iov_base; in add_durable_context()
2250 return add_durable_reconnect_v2_context(iov, num_iovec, in add_durable_context()
2253 return add_durable_v2_context(iov, num_iovec, oparms); in add_durable_context()
2257 iov[num].iov_base = create_reconnect_durable_buf(oparms->fid); in add_durable_context()
2261 iov[num].iov_base = create_durable_buf(); in add_durable_context()
2262 if (iov[num].iov_base == NULL) in add_durable_context()
2264 iov[num].iov_len = sizeof(struct create_durable); in add_durable_context()
2268 iov[1].iov_len); in add_durable_context()
2301 add_twarp_context(struct kvec *iov, unsigned int *num_iovec, __u64 timewarp) in add_twarp_context() argument
2303 struct smb2_create_req *req = iov[0].iov_base; in add_twarp_context()
2306 iov[num].iov_base = create_twarp_buf(timewarp); in add_twarp_context()
2307 if (iov[num].iov_base == NULL) in add_twarp_context()
2309 iov[num].iov_len = sizeof(struct crt_twarp_ctxt); in add_twarp_context()
2313 iov[num - 1].iov_len); in add_twarp_context()
2434 add_sd_context(struct kvec *iov, unsigned int *num_iovec, umode_t mode, bool set_owner) in add_sd_context() argument
2436 struct smb2_create_req *req = iov[0].iov_base; in add_sd_context()
2440 iov[num].iov_base = create_sd_buf(mode, set_owner, &len); in add_sd_context()
2441 if (iov[num].iov_base == NULL) in add_sd_context()
2443 iov[num].iov_len = len; in add_sd_context()
2447 iov[num - 1].iov_len); in add_sd_context()
2477 add_query_id_context(struct kvec *iov, unsigned int *num_iovec) in add_query_id_context() argument
2479 struct smb2_create_req *req = iov[0].iov_base; in add_query_id_context()
2482 iov[num].iov_base = create_query_id_buf(); in add_query_id_context()
2483 if (iov[num].iov_base == NULL) in add_query_id_context()
2485 iov[num].iov_len = sizeof(struct crt_query_id_ctxt); in add_query_id_context()
2489 iov[num - 1].iov_len); in add_query_id_context()
2549 struct kvec iov[3]; /* make sure at least one for each open context */ in smb311_posix_mkdir() local
2594 iov[0].iov_base = (char *)req; in smb311_posix_mkdir()
2596 iov[0].iov_len = total_len - 1; in smb311_posix_mkdir()
2643 iov[1].iov_len = uni_path_len; in smb311_posix_mkdir()
2644 iov[1].iov_base = utf16_path; in smb311_posix_mkdir()
2649 rc = add_posix_context(iov, &n_iov, mode); in smb311_posix_mkdir()
2652 pc_buf = iov[n_iov-1].iov_base; in smb311_posix_mkdir()
2657 rqst.rq_iov = iov; in smb311_posix_mkdir()
2704 struct kvec *iov = rqst->rq_iov; in SMB2_open_init() local
2713 iov[0].iov_base = (char *)req; in SMB2_open_init()
2715 iov[0].iov_len = total_len - 1; in SMB2_open_init()
2768 iov[1].iov_len = uni_path_len; in SMB2_open_init()
2769 iov[1].iov_base = path; in SMB2_open_init()
2781 rc = add_lease_context(server, iov, &n_iov, in SMB2_open_init()
2791 (struct create_context *)iov[n_iov-1].iov_base; in SMB2_open_init()
2796 rc = add_durable_context(iov, &n_iov, oparms, in SMB2_open_init()
2805 (struct create_context *)iov[n_iov-1].iov_base; in SMB2_open_init()
2807 cpu_to_le32(iov[n_iov-1].iov_len); in SMB2_open_init()
2810 rc = add_posix_context(iov, &n_iov, oparms->mode); in SMB2_open_init()
2819 (struct create_context *)iov[n_iov-1].iov_base; in SMB2_open_init()
2821 cpu_to_le32(iov[n_iov-1].iov_len); in SMB2_open_init()
2824 rc = add_twarp_context(iov, &n_iov, tcon->snapshot_time); in SMB2_open_init()
2849 (struct create_context *)iov[n_iov-1].iov_base; in SMB2_open_init()
2850 ccontext->Next = cpu_to_le32(iov[n_iov-1].iov_len); in SMB2_open_init()
2854 rc = add_sd_context(iov, &n_iov, oparms->mode, set_owner); in SMB2_open_init()
2862 (struct create_context *)iov[n_iov-1].iov_base; in SMB2_open_init()
2863 ccontext->Next = cpu_to_le32(iov[n_iov-1].iov_len); in SMB2_open_init()
2865 add_query_id_context(iov, &n_iov); in SMB2_open_init()
2898 struct kvec iov[SMB2_CREATE_IOV_SIZE]; in SMB2_open() local
2912 memset(&iov, 0, sizeof(iov)); in SMB2_open()
2913 rqst.rq_iov = iov; in SMB2_open()
2987 struct kvec *iov = rqst->rq_iov; in SMB2_ioctl_init() local
3013 iov[0].iov_base = (char *)req; in SMB2_ioctl_init()
3028 iov[0].iov_len = total_len - 1; in SMB2_ioctl_init()
3029 iov[1].iov_base = in_data_buf; in SMB2_ioctl_init()
3030 iov[1].iov_len = indatalen; in SMB2_ioctl_init()
3033 iov[0].iov_len = total_len; in SMB2_ioctl_init()
3096 struct kvec iov[SMB2_IOCTL_IOV_SIZE]; in SMB2_ioctl() local
3126 memset(&iov, 0, sizeof(iov)); in SMB2_ioctl()
3127 rqst.rq_iov = iov; in SMB2_ioctl()
3230 struct kvec *iov = rqst->rq_iov; in SMB2_close_init() local
3245 iov[0].iov_base = (char *)req; in SMB2_close_init()
3246 iov[0].iov_len = total_len; in SMB2_close_init()
3267 struct kvec iov[1]; in __SMB2_close() local
3283 memset(&iov, 0, sizeof(iov)); in __SMB2_close()
3284 rqst.rq_iov = iov; in __SMB2_close()
3345 struct kvec *iov, unsigned int min_buf_size) in smb2_validate_iov() argument
3347 unsigned int smb_len = iov->iov_len; in smb2_validate_iov()
3348 char *end_of_smb = smb_len + (char *)iov->iov_base; in smb2_validate_iov()
3349 char *begin_of_buf = offset + (char *)iov->iov_base; in smb2_validate_iov()
3380 struct kvec *iov, unsigned int minbufsize, in smb2_validate_and_copy_iov() argument
3383 char *begin_of_buf = offset + (char *)iov->iov_base; in smb2_validate_and_copy_iov()
3389 rc = smb2_validate_iov(offset, buffer_length, iov, minbufsize); in smb2_validate_and_copy_iov()
3406 struct kvec *iov = rqst->rq_iov; in SMB2_query_info_init() local
3429 iov[0].iov_base = (char *)req; in SMB2_query_info_init()
3431 iov[0].iov_len = total_len - 1 + input_len; in SMB2_query_info_init()
3450 struct kvec iov[1]; in query_info() local
3471 memset(&iov, 0, sizeof(iov)); in query_info()
3472 rqst.rq_iov = iov; in query_info()
3594 struct kvec *iov = rqst->rq_iov; in SMB2_notify_init() local
3614 iov[0].iov_base = (char *)req; in SMB2_notify_init()
3615 iov[0].iov_len = total_len; in SMB2_notify_init()
3628 struct kvec iov[1]; in SMB2_change_notify() local
3642 memset(&iov, 0, sizeof(iov)); in SMB2_change_notify()
3643 rqst.rq_iov = iov; in SMB2_change_notify()
3772 struct kvec iov[1]; in SMB2_echo() local
3773 struct smb_rqst rqst = { .rq_iov = iov, in SMB2_echo()
3792 iov[0].iov_len = total_len; in SMB2_echo()
3793 iov[0].iov_base = (char *)req; in SMB2_echo()
3817 struct kvec *iov = rqst->rq_iov; in SMB2_flush_init() local
3829 iov[0].iov_base = (char *)req; in SMB2_flush_init()
3830 iov[0].iov_len = total_len; in SMB2_flush_init()
3841 struct kvec iov[1]; in SMB2_flush() local
3856 memset(&iov, 0, sizeof(iov)); in SMB2_flush()
3857 rqst.rq_iov = iov; in SMB2_flush()
3989 (struct smb2_sync_hdr *)rdata->iov[0].iov_base; in smb2_readv_callback()
3991 struct smb_rqst rqst = { .rq_iov = &rdata->iov[1], in smb2_readv_callback()
4077 struct smb_rqst rqst = { .rq_iov = rdata->iov, in smb2_async_readv()
4105 rdata->iov[0].iov_base = buf; in smb2_async_readv()
4106 rdata->iov[0].iov_len = total_len; in smb2_async_readv()
4149 struct kvec iov[1]; in SMB2_read() local
4166 iov[0].iov_base = (char *)req; in SMB2_read()
4167 iov[0].iov_len = total_len; in SMB2_read()
4170 rqst.rq_iov = iov; in SMB2_read()
4317 struct kvec iov[1]; in smb2_async_writev() local
4389 iov[0].iov_len = total_len - 1; in smb2_async_writev()
4390 iov[0].iov_base = (char *)req; in smb2_async_writev()
4392 rqst.rq_iov = iov; in smb2_async_writev()
4401 iov[0].iov_len += sizeof(struct smbd_buffer_descriptor_v1); in smb2_async_writev()
4453 unsigned int *nbytes, struct kvec *iov, int n_vec) in SMB2_write() argument
4501 iov[0].iov_base = (char *)req; in SMB2_write()
4503 iov[0].iov_len = total_len - 1; in SMB2_write()
4506 rqst.rq_iov = iov; in SMB2_write()
4695 struct kvec *iov = rqst->rq_iov; in SMB2_query_directory_init() local
4738 iov[0].iov_base = (char *)req; in SMB2_query_directory_init()
4740 iov[0].iov_len = total_len - 1; in SMB2_query_directory_init()
4742 iov[1].iov_base = (char *)(req->Buffer); in SMB2_query_directory_init()
4743 iov[1].iov_len = len; in SMB2_query_directory_init()
4836 struct kvec iov[SMB2_QUERY_DIRECTORY_IOV_SIZE]; in SMB2_query_directory() local
4852 memset(&iov, 0, sizeof(iov)); in SMB2_query_directory()
4853 rqst.rq_iov = iov; in SMB2_query_directory()
4908 struct kvec *iov = rqst->rq_iov; in SMB2_set_info_init() local
4931 iov[0].iov_base = (char *)req; in SMB2_set_info_init()
4933 iov[0].iov_len = total_len - 1; in SMB2_set_info_init()
4937 iov[i].iov_base = (char *)data[i]; in SMB2_set_info_init()
4938 iov[i].iov_len = size[i]; in SMB2_set_info_init()
4959 struct kvec *iov; in send_set_info() local
4976 iov = kmalloc_array(num, sizeof(struct kvec), GFP_KERNEL); in send_set_info()
4977 if (!iov) in send_set_info()
4981 rqst.rq_iov = iov; in send_set_info()
4989 kfree(iov); in send_set_info()
5007 kfree(iov); in send_set_info()
5061 struct kvec iov[1]; in SMB2_oplock_break() local
5081 iov[0].iov_base = (char *)req; in SMB2_oplock_break()
5082 iov[0].iov_len = total_len; in SMB2_oplock_break()
5085 rqst.rq_iov = iov; in SMB2_oplock_break()
5132 build_qfs_info_req(struct kvec *iov, struct cifs_tcon *tcon, in build_qfs_info_req() argument
5161 iov->iov_base = (char *)req; in build_qfs_info_req()
5162 iov->iov_len = total_len; in build_qfs_info_req()
5172 struct kvec iov; in SMB311_posix_qfs_info() local
5181 rc = build_qfs_info_req(&iov, tcon, server, in SMB311_posix_qfs_info()
5192 rqst.rq_iov = &iov; in SMB311_posix_qfs_info()
5197 cifs_small_buf_release(iov.iov_base); in SMB311_posix_qfs_info()
5223 struct kvec iov; in SMB2_QFS_info() local
5232 rc = build_qfs_info_req(&iov, tcon, server, in SMB2_QFS_info()
5243 rqst.rq_iov = &iov; in SMB2_QFS_info()
5248 cifs_small_buf_release(iov.iov_base); in SMB2_QFS_info()
5274 struct kvec iov; in SMB2_QFS_attr() local
5300 rc = build_qfs_info_req(&iov, tcon, server, in SMB2_QFS_attr()
5310 rqst.rq_iov = &iov; in SMB2_QFS_attr()
5315 cifs_small_buf_release(iov.iov_base); in SMB2_QFS_attr()
5361 struct kvec iov[2]; in smb2_lockv() local
5387 iov[0].iov_base = (char *)req; in smb2_lockv()
5388 iov[0].iov_len = total_len - sizeof(struct smb2_lock_element); in smb2_lockv()
5389 iov[1].iov_base = (char *)buf; in smb2_lockv()
5390 iov[1].iov_len = count; in smb2_lockv()
5395 rqst.rq_iov = iov; in smb2_lockv()
5439 struct kvec iov[1]; in SMB2_lease_break() local
5464 iov[0].iov_base = (char *)req; in SMB2_lease_break()
5465 iov[0].iov_len = total_len; in SMB2_lease_break()
5468 rqst.rq_iov = iov; in SMB2_lease_break()