Lines Matching refs:iov
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()
949 count = sess_data->iov[1].iov_len + sess_data->iov[2].iov_len; in sess_sendreceive()
954 sess_data->iov, 3 /* num_iovecs */, in sess_sendreceive()
957 cifs_small_buf_release(sess_data->iov[0].iov_base); in sess_sendreceive()
958 memcpy(&sess_data->iov[0], &rsp_iov, sizeof(struct kvec)); in sess_sendreceive()
980 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_ntlmv2()
981 bcc_ptr = sess_data->iov[2].iov_base; in sess_auth_ntlmv2()
1011 if (sess_data->iov[0].iov_len % 2) { in sess_auth_ntlmv2()
1021 sess_data->iov[2].iov_len = (long) bcc_ptr - in sess_auth_ntlmv2()
1022 (long) sess_data->iov[2].iov_base; in sess_auth_ntlmv2()
1028 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_ntlmv2()
1029 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_ntlmv2()
1092 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_kerberos()
1093 bcc_ptr = sess_data->iov[2].iov_base; in sess_auth_kerberos()
1128 sess_data->iov[1].iov_base = msg->data + msg->sesskey_len; in sess_auth_kerberos()
1129 sess_data->iov[1].iov_len = msg->secblob_len; in sess_auth_kerberos()
1130 pSMB->req.SecurityBlobLength = cpu_to_le16(sess_data->iov[1].iov_len); in sess_auth_kerberos()
1134 if ((sess_data->iov[0].iov_len in sess_auth_kerberos()
1135 + sess_data->iov[1].iov_len) % 2) { in sess_auth_kerberos()
1146 sess_data->iov[2].iov_len = (long) bcc_ptr - in sess_auth_kerberos()
1147 (long) sess_data->iov[2].iov_base; in sess_auth_kerberos()
1153 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_kerberos()
1154 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_kerberos()
1223 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in _sess_auth_rawntlmssp_assemble_req()
1235 bcc_ptr = sess_data->iov[2].iov_base; in _sess_auth_rawntlmssp_assemble_req()
1237 if ((sess_data->iov[0].iov_len + sess_data->iov[1].iov_len) % 2) { in _sess_auth_rawntlmssp_assemble_req()
1243 sess_data->iov[2].iov_len = (long) bcc_ptr - in _sess_auth_rawntlmssp_assemble_req()
1244 (long) sess_data->iov[2].iov_base; in _sess_auth_rawntlmssp_assemble_req()
1281 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_negotiate()
1285 sess_data->iov[1].iov_len = sizeof(NEGOTIATE_MESSAGE); in sess_auth_rawntlmssp_negotiate()
1286 sess_data->iov[1].iov_base = pSMB->req.SecurityBlob; in sess_auth_rawntlmssp_negotiate()
1295 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_negotiate()
1296 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_negotiate()
1368 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_authenticate()
1374 sess_data->iov[1].iov_len = blob_len; in sess_auth_rawntlmssp_authenticate()
1375 sess_data->iov[1].iov_base = ntlmsspblob; in sess_auth_rawntlmssp_authenticate()
1392 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_authenticate()
1393 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_authenticate()