Lines Matching refs:iov
741 add_posix_context(struct kvec *iov, unsigned int *num_iovec, umode_t mode) in add_posix_context() argument
743 struct smb2_create_req *req = iov[0].iov_base; in add_posix_context()
746 iov[num].iov_base = create_posix_buf(mode); in add_posix_context()
749 if (iov[num].iov_base == NULL) in add_posix_context()
751 iov[num].iov_len = sizeof(struct create_posix); in add_posix_context()
755 iov[num - 1].iov_len); in add_posix_context()
783 struct kvec iov[1]; in SMB2_negotiate() local
852 iov[0].iov_base = (char *)req; in SMB2_negotiate()
853 iov[0].iov_len = total_len; in SMB2_negotiate()
856 rqst.rq_iov = iov; in SMB2_negotiate()
1159 struct kvec iov[2]; member
1212 sess_data->iov[0].iov_base = (char *)req; in SMB2_sess_alloc_buffer()
1214 sess_data->iov[0].iov_len = total_len - 1; in SMB2_sess_alloc_buffer()
1227 free_rsp_buf(sess_data->buf0_type, sess_data->iov[0].iov_base); in SMB2_sess_free_buffer()
1236 struct smb2_sess_setup_req *req = sess_data->iov[0].iov_base; in SMB2_sess_sendreceive()
1242 req->SecurityBufferLength = cpu_to_le16(sess_data->iov[1].iov_len); in SMB2_sess_sendreceive()
1245 rqst.rq_iov = sess_data->iov; in SMB2_sess_sendreceive()
1254 cifs_small_buf_release(sess_data->iov[0].iov_base); in SMB2_sess_sendreceive()
1255 memcpy(&sess_data->iov[0], &rsp_iov, sizeof(struct kvec)); in SMB2_sess_sendreceive()
1343 sess_data->iov[1].iov_base = msg->data + msg->sesskey_len; in SMB2_auth_kerberos()
1344 sess_data->iov[1].iov_len = msg->secblob_len; in SMB2_auth_kerberos()
1350 rsp = (struct smb2_sess_setup_rsp *)sess_data->iov[0].iov_base; in SMB2_auth_kerberos()
1421 sess_data->iov[1].iov_base = ntlmssp_blob; in SMB2_sess_auth_rawntlmssp_negotiate()
1422 sess_data->iov[1].iov_len = blob_length; in SMB2_sess_auth_rawntlmssp_negotiate()
1425 rsp = (struct smb2_sess_setup_rsp *)sess_data->iov[0].iov_base; in SMB2_sess_auth_rawntlmssp_negotiate()
1485 req = (struct smb2_sess_setup_req *) sess_data->iov[0].iov_base; in SMB2_sess_auth_rawntlmssp_authenticate()
1501 sess_data->iov[1].iov_base = ntlmssp_blob; in SMB2_sess_auth_rawntlmssp_authenticate()
1502 sess_data->iov[1].iov_len = blob_length; in SMB2_sess_auth_rawntlmssp_authenticate()
1508 rsp = (struct smb2_sess_setup_rsp *)sess_data->iov[0].iov_base; in SMB2_sess_auth_rawntlmssp_authenticate()
1622 struct kvec iov[1]; in SMB2_logoff() local
1652 iov[0].iov_base = (char *)req; in SMB2_logoff()
1653 iov[0].iov_len = total_len; in SMB2_logoff()
1656 rqst.rq_iov = iov; in SMB2_logoff()
1693 struct kvec iov[2]; in SMB2_tcon() local
1735 iov[0].iov_base = (char *)req; in SMB2_tcon()
1737 iov[0].iov_len = total_len - 1; in SMB2_tcon()
1743 iov[1].iov_base = unc_path; in SMB2_tcon()
1744 iov[1].iov_len = unc_path_len; in SMB2_tcon()
1759 rqst.rq_iov = iov; in SMB2_tcon()
1837 struct kvec iov[1]; in SMB2_tdis() local
1862 iov[0].iov_base = (char *)req; in SMB2_tdis()
1863 iov[0].iov_len = total_len; in SMB2_tdis()
1866 rqst.rq_iov = iov; in SMB2_tdis()
2033 add_lease_context(struct TCP_Server_Info *server, struct kvec *iov, in add_lease_context() argument
2036 struct smb2_create_req *req = iov[0].iov_base; in add_lease_context()
2039 iov[num].iov_base = server->ops->create_lease_buf(lease_key, *oplock); in add_lease_context()
2040 if (iov[num].iov_base == NULL) in add_lease_context()
2042 iov[num].iov_len = server->vals->create_lease_size; in add_lease_context()
2047 iov[num - 1].iov_len); in add_lease_context()
2125 add_durable_v2_context(struct kvec *iov, unsigned int *num_iovec, in add_durable_v2_context() argument
2128 struct smb2_create_req *req = iov[0].iov_base; in add_durable_v2_context()
2131 iov[num].iov_base = create_durable_v2_buf(oparms); in add_durable_v2_context()
2132 if (iov[num].iov_base == NULL) in add_durable_v2_context()
2134 iov[num].iov_len = sizeof(struct create_durable_v2); in add_durable_v2_context()
2138 iov[1].iov_len); in add_durable_v2_context()
2145 add_durable_reconnect_v2_context(struct kvec *iov, unsigned int *num_iovec, in add_durable_reconnect_v2_context() argument
2148 struct smb2_create_req *req = iov[0].iov_base; in add_durable_reconnect_v2_context()
2154 iov[num].iov_base = create_reconnect_durable_v2_buf(oparms->fid); in add_durable_reconnect_v2_context()
2155 if (iov[num].iov_base == NULL) in add_durable_reconnect_v2_context()
2157 iov[num].iov_len = sizeof(struct create_durable_handle_reconnect_v2); in add_durable_reconnect_v2_context()
2161 iov[1].iov_len); in add_durable_reconnect_v2_context()
2169 add_durable_context(struct kvec *iov, unsigned int *num_iovec, in add_durable_context() argument
2172 struct smb2_create_req *req = iov[0].iov_base; in add_durable_context()
2177 return add_durable_reconnect_v2_context(iov, num_iovec, in add_durable_context()
2180 return add_durable_v2_context(iov, num_iovec, oparms); in add_durable_context()
2184 iov[num].iov_base = create_reconnect_durable_buf(oparms->fid); in add_durable_context()
2188 iov[num].iov_base = create_durable_buf(); in add_durable_context()
2189 if (iov[num].iov_base == NULL) in add_durable_context()
2191 iov[num].iov_len = sizeof(struct create_durable); in add_durable_context()
2195 iov[1].iov_len); in add_durable_context()
2228 add_twarp_context(struct kvec *iov, unsigned int *num_iovec, __u64 timewarp) in add_twarp_context() argument
2230 struct smb2_create_req *req = iov[0].iov_base; in add_twarp_context()
2233 iov[num].iov_base = create_twarp_buf(timewarp); in add_twarp_context()
2234 if (iov[num].iov_base == NULL) in add_twarp_context()
2236 iov[num].iov_len = sizeof(struct crt_twarp_ctxt); in add_twarp_context()
2240 iov[num - 1].iov_len); in add_twarp_context()
2361 add_sd_context(struct kvec *iov, unsigned int *num_iovec, umode_t mode, bool set_owner) in add_sd_context() argument
2363 struct smb2_create_req *req = iov[0].iov_base; in add_sd_context()
2367 iov[num].iov_base = create_sd_buf(mode, set_owner, &len); in add_sd_context()
2368 if (iov[num].iov_base == NULL) in add_sd_context()
2370 iov[num].iov_len = len; in add_sd_context()
2374 iov[num - 1].iov_len); in add_sd_context()
2404 add_query_id_context(struct kvec *iov, unsigned int *num_iovec) in add_query_id_context() argument
2406 struct smb2_create_req *req = iov[0].iov_base; in add_query_id_context()
2409 iov[num].iov_base = create_query_id_buf(); in add_query_id_context()
2410 if (iov[num].iov_base == NULL) in add_query_id_context()
2412 iov[num].iov_len = sizeof(struct crt_query_id_ctxt); in add_query_id_context()
2416 iov[num - 1].iov_len); in add_query_id_context()
2476 struct kvec iov[3]; /* make sure at least one for each open context */ in smb311_posix_mkdir() local
2521 iov[0].iov_base = (char *)req; in smb311_posix_mkdir()
2523 iov[0].iov_len = total_len - 1; in smb311_posix_mkdir()
2570 iov[1].iov_len = uni_path_len; in smb311_posix_mkdir()
2571 iov[1].iov_base = utf16_path; in smb311_posix_mkdir()
2576 rc = add_posix_context(iov, &n_iov, mode); in smb311_posix_mkdir()
2579 pc_buf = iov[n_iov-1].iov_base; in smb311_posix_mkdir()
2584 rqst.rq_iov = iov; in smb311_posix_mkdir()
2631 struct kvec *iov = rqst->rq_iov; in SMB2_open_init() local
2640 iov[0].iov_base = (char *)req; in SMB2_open_init()
2642 iov[0].iov_len = total_len - 1; in SMB2_open_init()
2695 iov[1].iov_len = uni_path_len; in SMB2_open_init()
2696 iov[1].iov_base = path; in SMB2_open_init()
2708 rc = add_lease_context(server, iov, &n_iov, in SMB2_open_init()
2718 (struct create_context *)iov[n_iov-1].iov_base; in SMB2_open_init()
2723 rc = add_durable_context(iov, &n_iov, oparms, in SMB2_open_init()
2732 (struct create_context *)iov[n_iov-1].iov_base; in SMB2_open_init()
2734 cpu_to_le32(iov[n_iov-1].iov_len); in SMB2_open_init()
2737 rc = add_posix_context(iov, &n_iov, oparms->mode); in SMB2_open_init()
2746 (struct create_context *)iov[n_iov-1].iov_base; in SMB2_open_init()
2748 cpu_to_le32(iov[n_iov-1].iov_len); in SMB2_open_init()
2751 rc = add_twarp_context(iov, &n_iov, tcon->snapshot_time); in SMB2_open_init()
2776 (struct create_context *)iov[n_iov-1].iov_base; in SMB2_open_init()
2777 ccontext->Next = cpu_to_le32(iov[n_iov-1].iov_len); in SMB2_open_init()
2781 rc = add_sd_context(iov, &n_iov, oparms->mode, set_owner); in SMB2_open_init()
2789 (struct create_context *)iov[n_iov-1].iov_base; in SMB2_open_init()
2790 ccontext->Next = cpu_to_le32(iov[n_iov-1].iov_len); in SMB2_open_init()
2792 add_query_id_context(iov, &n_iov); in SMB2_open_init()
2825 struct kvec iov[SMB2_CREATE_IOV_SIZE]; in SMB2_open() local
2839 memset(&iov, 0, sizeof(iov)); in SMB2_open()
2840 rqst.rq_iov = iov; in SMB2_open()
2911 struct kvec *iov = rqst->rq_iov; in SMB2_ioctl_init() local
2937 iov[0].iov_base = (char *)req; in SMB2_ioctl_init()
2952 iov[0].iov_len = total_len - 1; in SMB2_ioctl_init()
2953 iov[1].iov_base = in_data_buf; in SMB2_ioctl_init()
2954 iov[1].iov_len = indatalen; in SMB2_ioctl_init()
2957 iov[0].iov_len = total_len; in SMB2_ioctl_init()
3020 struct kvec iov[SMB2_IOCTL_IOV_SIZE]; in SMB2_ioctl() local
3050 memset(&iov, 0, sizeof(iov)); in SMB2_ioctl()
3051 rqst.rq_iov = iov; in SMB2_ioctl()
3154 struct kvec *iov = rqst->rq_iov; in SMB2_close_init() local
3169 iov[0].iov_base = (char *)req; in SMB2_close_init()
3170 iov[0].iov_len = total_len; in SMB2_close_init()
3191 struct kvec iov[1]; in __SMB2_close() local
3207 memset(&iov, 0, sizeof(iov)); in __SMB2_close()
3208 rqst.rq_iov = iov; in __SMB2_close()
3269 struct kvec *iov, unsigned int min_buf_size) in smb2_validate_iov() argument
3271 unsigned int smb_len = iov->iov_len; in smb2_validate_iov()
3272 char *end_of_smb = smb_len + (char *)iov->iov_base; in smb2_validate_iov()
3273 char *begin_of_buf = offset + (char *)iov->iov_base; in smb2_validate_iov()
3304 struct kvec *iov, unsigned int minbufsize, in smb2_validate_and_copy_iov() argument
3307 char *begin_of_buf = offset + (char *)iov->iov_base; in smb2_validate_and_copy_iov()
3313 rc = smb2_validate_iov(offset, buffer_length, iov, minbufsize); in smb2_validate_and_copy_iov()
3330 struct kvec *iov = rqst->rq_iov; in SMB2_query_info_init() local
3353 iov[0].iov_base = (char *)req; in SMB2_query_info_init()
3355 iov[0].iov_len = total_len - 1 + input_len; in SMB2_query_info_init()
3374 struct kvec iov[1]; in query_info() local
3395 memset(&iov, 0, sizeof(iov)); in query_info()
3396 rqst.rq_iov = iov; in query_info()
3513 struct kvec *iov = rqst->rq_iov; in SMB2_notify_init() local
3533 iov[0].iov_base = (char *)req; in SMB2_notify_init()
3534 iov[0].iov_len = total_len; in SMB2_notify_init()
3547 struct kvec iov[1]; in SMB2_change_notify() local
3561 memset(&iov, 0, sizeof(iov)); in SMB2_change_notify()
3562 rqst.rq_iov = iov; in SMB2_change_notify()
3691 struct kvec iov[1]; in SMB2_echo() local
3692 struct smb_rqst rqst = { .rq_iov = iov, in SMB2_echo()
3711 iov[0].iov_len = total_len; in SMB2_echo()
3712 iov[0].iov_base = (char *)req; in SMB2_echo()
3736 struct kvec *iov = rqst->rq_iov; in SMB2_flush_init() local
3748 iov[0].iov_base = (char *)req; in SMB2_flush_init()
3749 iov[0].iov_len = total_len; in SMB2_flush_init()
3760 struct kvec iov[1]; in SMB2_flush() local
3775 memset(&iov, 0, sizeof(iov)); in SMB2_flush()
3776 rqst.rq_iov = iov; in SMB2_flush()
3908 (struct smb2_sync_hdr *)rdata->iov[0].iov_base; in smb2_readv_callback()
3910 struct smb_rqst rqst = { .rq_iov = &rdata->iov[1], in smb2_readv_callback()
3996 struct smb_rqst rqst = { .rq_iov = rdata->iov, in smb2_async_readv()
4024 rdata->iov[0].iov_base = buf; in smb2_async_readv()
4025 rdata->iov[0].iov_len = total_len; in smb2_async_readv()
4069 struct kvec iov[1]; in SMB2_read() local
4086 iov[0].iov_base = (char *)req; in SMB2_read()
4087 iov[0].iov_len = total_len; in SMB2_read()
4090 rqst.rq_iov = iov; in SMB2_read()
4237 struct kvec iov[1]; in smb2_async_writev() local
4309 iov[0].iov_len = total_len - 1; in smb2_async_writev()
4310 iov[0].iov_base = (char *)req; in smb2_async_writev()
4312 rqst.rq_iov = iov; in smb2_async_writev()
4321 iov[0].iov_len += sizeof(struct smbd_buffer_descriptor_v1); in smb2_async_writev()
4374 unsigned int *nbytes, struct kvec *iov, int n_vec) in SMB2_write() argument
4422 iov[0].iov_base = (char *)req; in SMB2_write()
4424 iov[0].iov_len = total_len - 1; in SMB2_write()
4427 rqst.rq_iov = iov; in SMB2_write()
4618 struct kvec *iov = rqst->rq_iov; in SMB2_query_directory_init() local
4661 iov[0].iov_base = (char *)req; in SMB2_query_directory_init()
4663 iov[0].iov_len = total_len - 1; in SMB2_query_directory_init()
4665 iov[1].iov_base = (char *)(req->Buffer); in SMB2_query_directory_init()
4666 iov[1].iov_len = len; in SMB2_query_directory_init()
4759 struct kvec iov[SMB2_QUERY_DIRECTORY_IOV_SIZE]; in SMB2_query_directory() local
4775 memset(&iov, 0, sizeof(iov)); in SMB2_query_directory()
4776 rqst.rq_iov = iov; in SMB2_query_directory()
4831 struct kvec *iov = rqst->rq_iov; in SMB2_set_info_init() local
4854 iov[0].iov_base = (char *)req; in SMB2_set_info_init()
4856 iov[0].iov_len = total_len - 1; in SMB2_set_info_init()
4860 iov[i].iov_base = (char *)data[i]; in SMB2_set_info_init()
4861 iov[i].iov_len = size[i]; in SMB2_set_info_init()
4882 struct kvec *iov; in send_set_info() local
4899 iov = kmalloc_array(num, sizeof(struct kvec), GFP_KERNEL); in send_set_info()
4900 if (!iov) in send_set_info()
4904 rqst.rq_iov = iov; in send_set_info()
4912 kfree(iov); in send_set_info()
4930 kfree(iov); in send_set_info()
4984 struct kvec iov[1]; in SMB2_oplock_break() local
5004 iov[0].iov_base = (char *)req; in SMB2_oplock_break()
5005 iov[0].iov_len = total_len; in SMB2_oplock_break()
5008 rqst.rq_iov = iov; in SMB2_oplock_break()
5055 build_qfs_info_req(struct kvec *iov, struct cifs_tcon *tcon, in build_qfs_info_req() argument
5084 iov->iov_base = (char *)req; in build_qfs_info_req()
5085 iov->iov_len = total_len; in build_qfs_info_req()
5095 struct kvec iov; in SMB311_posix_qfs_info() local
5104 rc = build_qfs_info_req(&iov, tcon, server, in SMB311_posix_qfs_info()
5115 rqst.rq_iov = &iov; in SMB311_posix_qfs_info()
5120 cifs_small_buf_release(iov.iov_base); in SMB311_posix_qfs_info()
5146 struct kvec iov; in SMB2_QFS_info() local
5155 rc = build_qfs_info_req(&iov, tcon, server, in SMB2_QFS_info()
5166 rqst.rq_iov = &iov; in SMB2_QFS_info()
5171 cifs_small_buf_release(iov.iov_base); in SMB2_QFS_info()
5197 struct kvec iov; in SMB2_QFS_attr() local
5223 rc = build_qfs_info_req(&iov, tcon, server, in SMB2_QFS_attr()
5233 rqst.rq_iov = &iov; in SMB2_QFS_attr()
5238 cifs_small_buf_release(iov.iov_base); in SMB2_QFS_attr()
5284 struct kvec iov[2]; in smb2_lockv() local
5310 iov[0].iov_base = (char *)req; in smb2_lockv()
5311 iov[0].iov_len = total_len - sizeof(struct smb2_lock_element); in smb2_lockv()
5312 iov[1].iov_base = (char *)buf; in smb2_lockv()
5313 iov[1].iov_len = count; in smb2_lockv()
5318 rqst.rq_iov = iov; in smb2_lockv()
5362 struct kvec iov[1]; in SMB2_lease_break() local
5387 iov[0].iov_base = (char *)req; in SMB2_lease_break()
5388 iov[0].iov_len = total_len; in SMB2_lease_break()
5391 rqst.rq_iov = iov; in SMB2_lease_break()