Lines Matching refs:iov
1311 struct kvec iov[3]; member
1328 sess_data->iov[0].iov_base = (char *)smb_buf; in sess_alloc_buffer()
1329 sess_data->iov[0].iov_len = be32_to_cpu(smb_buf->smb_buf_length) + 4; in sess_alloc_buffer()
1337 sess_data->iov[2].iov_base = kmalloc(2000, GFP_KERNEL); in sess_alloc_buffer()
1338 if (!sess_data->iov[2].iov_base) { in sess_alloc_buffer()
1347 sess_data->iov[0].iov_base = NULL; in sess_alloc_buffer()
1348 sess_data->iov[0].iov_len = 0; in sess_alloc_buffer()
1356 struct kvec *iov = sess_data->iov; in sess_free_buffer() local
1362 if (sess_data->buf0_type != CIFS_NO_BUFFER && iov[0].iov_base) in sess_free_buffer()
1363 memzero_explicit(iov[0].iov_base, iov[0].iov_len); in sess_free_buffer()
1365 free_rsp_buf(sess_data->buf0_type, iov[0].iov_base); in sess_free_buffer()
1367 kfree_sensitive(iov[2].iov_base); in sess_free_buffer()
1402 struct smb_hdr *smb_buf = (struct smb_hdr *) sess_data->iov[0].iov_base; in sess_sendreceive()
1406 count = sess_data->iov[1].iov_len + sess_data->iov[2].iov_len; in sess_sendreceive()
1411 sess_data->iov, 3 /* num_iovecs */, in sess_sendreceive()
1414 cifs_small_buf_release(sess_data->iov[0].iov_base); in sess_sendreceive()
1415 memcpy(&sess_data->iov[0], &rsp_iov, sizeof(struct kvec)); in sess_sendreceive()
1438 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_ntlmv2()
1439 bcc_ptr = sess_data->iov[2].iov_base; in sess_auth_ntlmv2()
1469 if (!IS_ALIGNED(sess_data->iov[0].iov_len, 2)) { in sess_auth_ntlmv2()
1479 sess_data->iov[2].iov_len = (long) bcc_ptr - in sess_auth_ntlmv2()
1480 (long) sess_data->iov[2].iov_base; in sess_auth_ntlmv2()
1486 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_ntlmv2()
1487 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_ntlmv2()
1551 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_kerberos()
1552 bcc_ptr = sess_data->iov[2].iov_base; in sess_auth_kerberos()
1588 sess_data->iov[1].iov_base = msg->data + msg->sesskey_len; in sess_auth_kerberos()
1589 sess_data->iov[1].iov_len = msg->secblob_len; in sess_auth_kerberos()
1590 pSMB->req.SecurityBlobLength = cpu_to_le16(sess_data->iov[1].iov_len); in sess_auth_kerberos()
1594 if (!IS_ALIGNED(sess_data->iov[0].iov_len + sess_data->iov[1].iov_len, 2)) { in sess_auth_kerberos()
1605 sess_data->iov[2].iov_len = (long) bcc_ptr - in sess_auth_kerberos()
1606 (long) sess_data->iov[2].iov_base; in sess_auth_kerberos()
1612 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_kerberos()
1613 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_kerberos()
1683 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in _sess_auth_rawntlmssp_assemble_req()
1695 bcc_ptr = sess_data->iov[2].iov_base; in _sess_auth_rawntlmssp_assemble_req()
1697 if (!IS_ALIGNED(sess_data->iov[0].iov_len + sess_data->iov[1].iov_len, 2)) { in _sess_auth_rawntlmssp_assemble_req()
1703 sess_data->iov[2].iov_len = (long) bcc_ptr - in _sess_auth_rawntlmssp_assemble_req()
1704 (long) sess_data->iov[2].iov_base; in _sess_auth_rawntlmssp_assemble_req()
1743 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_negotiate()
1752 sess_data->iov[1].iov_len = blob_len; in sess_auth_rawntlmssp_negotiate()
1753 sess_data->iov[1].iov_base = ntlmsspblob; in sess_auth_rawntlmssp_negotiate()
1762 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_negotiate()
1763 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_negotiate()
1839 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_authenticate()
1846 sess_data->iov[1].iov_len = blob_len; in sess_auth_rawntlmssp_authenticate()
1847 sess_data->iov[1].iov_base = ntlmsspblob; in sess_auth_rawntlmssp_authenticate()
1864 pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_authenticate()
1865 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_authenticate()