Lines Matching refs:smb_buf

1320 	struct smb_hdr *smb_buf;  in sess_alloc_buffer()  local
1323 (void **)&smb_buf); in sess_alloc_buffer()
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()
1346 cifs_small_buf_release(smb_buf); in sess_alloc_buffer()
1402 struct smb_hdr *smb_buf = (struct smb_hdr *) sess_data->iov[0].iov_base; in sess_sendreceive() local
1407 be32_add_cpu(&smb_buf->smb_buf_length, count); in sess_sendreceive()
1408 put_bcc(count, smb_buf); in sess_sendreceive()
1424 struct smb_hdr *smb_buf; in sess_auth_ntlmv2() local
1487 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_ntlmv2()
1489 if (smb_buf->WordCount != 3) { in sess_auth_ntlmv2()
1491 cifs_dbg(VFS, "bad word count %d\n", smb_buf->WordCount); in sess_auth_ntlmv2()
1498 ses->Suid = smb_buf->Uid; /* UID left in wire format (le) */ in sess_auth_ntlmv2()
1501 bytes_remaining = get_bcc(smb_buf); in sess_auth_ntlmv2()
1502 bcc_ptr = pByteArea(smb_buf); in sess_auth_ntlmv2()
1507 } else if (smb_buf->Flags2 & SMBFLG2_UNICODE) { in sess_auth_ntlmv2()
1509 if (!IS_ALIGNED((unsigned long)bcc_ptr - (unsigned long)smb_buf, 2)) { in sess_auth_ntlmv2()
1534 struct smb_hdr *smb_buf; in sess_auth_kerberos() local
1613 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_kerberos()
1615 if (smb_buf->WordCount != 4) { in sess_auth_kerberos()
1617 cifs_dbg(VFS, "bad word count %d\n", smb_buf->WordCount); in sess_auth_kerberos()
1624 ses->Suid = smb_buf->Uid; /* UID left in wire format (le) */ in sess_auth_kerberos()
1627 bytes_remaining = get_bcc(smb_buf); in sess_auth_kerberos()
1628 bcc_ptr = pByteArea(smb_buf); in sess_auth_kerberos()
1643 } else if (smb_buf->Flags2 & SMBFLG2_UNICODE) { in sess_auth_kerberos()
1645 if (!IS_ALIGNED((unsigned long)bcc_ptr - (unsigned long)smb_buf, 2)) { in sess_auth_kerberos()
1716 struct smb_hdr *smb_buf; in sess_auth_rawntlmssp_negotiate() local
1763 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_negotiate()
1767 smb_buf->Status.CifsError == in sess_auth_rawntlmssp_negotiate()
1776 if (smb_buf->WordCount != 4) { in sess_auth_rawntlmssp_negotiate()
1778 cifs_dbg(VFS, "bad word count %d\n", smb_buf->WordCount); in sess_auth_rawntlmssp_negotiate()
1782 ses->Suid = smb_buf->Uid; /* UID left in wire format (le) */ in sess_auth_rawntlmssp_negotiate()
1785 bytes_remaining = get_bcc(smb_buf); in sess_auth_rawntlmssp_negotiate()
1786 bcc_ptr = pByteArea(smb_buf); in sess_auth_rawntlmssp_negotiate()
1822 struct smb_hdr *smb_buf; in sess_auth_rawntlmssp_authenticate() local
1840 smb_buf = (struct smb_hdr *)pSMB; in sess_auth_rawntlmssp_authenticate()
1854 smb_buf->Uid = ses->Suid; in sess_auth_rawntlmssp_authenticate()
1865 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_authenticate()
1866 if (smb_buf->WordCount != 4) { in sess_auth_rawntlmssp_authenticate()
1868 cifs_dbg(VFS, "bad word count %d\n", smb_buf->WordCount); in sess_auth_rawntlmssp_authenticate()
1875 if (ses->Suid != smb_buf->Uid) { in sess_auth_rawntlmssp_authenticate()
1876 ses->Suid = smb_buf->Uid; in sess_auth_rawntlmssp_authenticate()
1880 bytes_remaining = get_bcc(smb_buf); in sess_auth_rawntlmssp_authenticate()
1881 bcc_ptr = pByteArea(smb_buf); in sess_auth_rawntlmssp_authenticate()
1896 } else if (smb_buf->Flags2 & SMBFLG2_UNICODE) { in sess_auth_rawntlmssp_authenticate()
1898 if (!IS_ALIGNED((unsigned long)bcc_ptr - (unsigned long)smb_buf, 2)) { in sess_auth_rawntlmssp_authenticate()