Lines Matching refs:smb_buf

555 	struct smb_hdr *smb_buf;  in sess_alloc_buffer()  local
558 (void **)&smb_buf); in sess_alloc_buffer()
563 sess_data->iov[0].iov_base = (char *)smb_buf; in sess_alloc_buffer()
564 sess_data->iov[0].iov_len = be32_to_cpu(smb_buf->smb_buf_length) + 4; in sess_alloc_buffer()
581 kfree(smb_buf); in sess_alloc_buffer()
633 struct smb_hdr *smb_buf = (struct smb_hdr *) sess_data->iov[0].iov_base; in sess_sendreceive() local
637 smb_buf->smb_buf_length = in sess_sendreceive()
638 cpu_to_be32(be32_to_cpu(smb_buf->smb_buf_length) + count); in sess_sendreceive()
639 put_bcc(count, smb_buf); in sess_sendreceive()
661 struct smb_hdr *smb_buf; in sess_auth_lanman() local
719 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_lanman()
722 if (smb_buf->WordCount != 3) { in sess_auth_lanman()
724 cifs_dbg(VFS, "bad word count %d\n", smb_buf->WordCount); in sess_auth_lanman()
731 ses->Suid = smb_buf->Uid; /* UID left in wire format (le) */ in sess_auth_lanman()
734 bytes_remaining = get_bcc(smb_buf); in sess_auth_lanman()
735 bcc_ptr = pByteArea(smb_buf); in sess_auth_lanman()
740 } else if (smb_buf->Flags2 & SMBFLG2_UNICODE) { in sess_auth_lanman()
742 if (((unsigned long) bcc_ptr - (unsigned long) smb_buf) % 2) { in sess_auth_lanman()
766 struct smb_hdr *smb_buf; in sess_auth_ntlm() local
830 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_ntlm()
832 if (smb_buf->WordCount != 3) { in sess_auth_ntlm()
834 cifs_dbg(VFS, "bad word count %d\n", smb_buf->WordCount); in sess_auth_ntlm()
841 ses->Suid = smb_buf->Uid; /* UID left in wire format (le) */ in sess_auth_ntlm()
844 bytes_remaining = get_bcc(smb_buf); in sess_auth_ntlm()
845 bcc_ptr = pByteArea(smb_buf); in sess_auth_ntlm()
850 } else if (smb_buf->Flags2 & SMBFLG2_UNICODE) { in sess_auth_ntlm()
852 if (((unsigned long) bcc_ptr - (unsigned long) smb_buf) % 2) { in sess_auth_ntlm()
876 struct smb_hdr *smb_buf; in sess_auth_ntlmv2() local
938 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_ntlmv2()
940 if (smb_buf->WordCount != 3) { in sess_auth_ntlmv2()
942 cifs_dbg(VFS, "bad word count %d\n", smb_buf->WordCount); in sess_auth_ntlmv2()
949 ses->Suid = smb_buf->Uid; /* UID left in wire format (le) */ in sess_auth_ntlmv2()
952 bytes_remaining = get_bcc(smb_buf); in sess_auth_ntlmv2()
953 bcc_ptr = pByteArea(smb_buf); in sess_auth_ntlmv2()
958 } else if (smb_buf->Flags2 & SMBFLG2_UNICODE) { in sess_auth_ntlmv2()
960 if (((unsigned long) bcc_ptr - (unsigned long) smb_buf) % 2) { in sess_auth_ntlmv2()
985 struct smb_hdr *smb_buf; in sess_auth_kerberos() local
1064 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_kerberos()
1066 if (smb_buf->WordCount != 4) { in sess_auth_kerberos()
1068 cifs_dbg(VFS, "bad word count %d\n", smb_buf->WordCount); in sess_auth_kerberos()
1075 ses->Suid = smb_buf->Uid; /* UID left in wire format (le) */ in sess_auth_kerberos()
1078 bytes_remaining = get_bcc(smb_buf); in sess_auth_kerberos()
1079 bcc_ptr = pByteArea(smb_buf); in sess_auth_kerberos()
1094 } else if (smb_buf->Flags2 & SMBFLG2_UNICODE) { in sess_auth_kerberos()
1096 if (((unsigned long) bcc_ptr - (unsigned long) smb_buf) % 2) { in sess_auth_kerberos()
1128 struct smb_hdr *smb_buf; in _sess_auth_rawntlmssp_assemble_req() local
1135 smb_buf = (struct smb_hdr *)pSMB; in _sess_auth_rawntlmssp_assemble_req()
1168 struct smb_hdr *smb_buf; in sess_auth_rawntlmssp_negotiate() local
1208 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_negotiate()
1212 smb_buf->Status.CifsError == in sess_auth_rawntlmssp_negotiate()
1221 if (smb_buf->WordCount != 4) { in sess_auth_rawntlmssp_negotiate()
1223 cifs_dbg(VFS, "bad word count %d\n", smb_buf->WordCount); in sess_auth_rawntlmssp_negotiate()
1227 ses->Suid = smb_buf->Uid; /* UID left in wire format (le) */ in sess_auth_rawntlmssp_negotiate()
1230 bytes_remaining = get_bcc(smb_buf); in sess_auth_rawntlmssp_negotiate()
1231 bcc_ptr = pByteArea(smb_buf); in sess_auth_rawntlmssp_negotiate()
1264 struct smb_hdr *smb_buf; in sess_auth_rawntlmssp_authenticate() local
1281 smb_buf = (struct smb_hdr *)pSMB; in sess_auth_rawntlmssp_authenticate()
1306 smb_buf->Uid = ses->Suid; in sess_auth_rawntlmssp_authenticate()
1317 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_authenticate()
1318 if (smb_buf->WordCount != 4) { in sess_auth_rawntlmssp_authenticate()
1320 cifs_dbg(VFS, "bad word count %d\n", smb_buf->WordCount); in sess_auth_rawntlmssp_authenticate()
1327 if (ses->Suid != smb_buf->Uid) { in sess_auth_rawntlmssp_authenticate()
1328 ses->Suid = smb_buf->Uid; in sess_auth_rawntlmssp_authenticate()
1332 bytes_remaining = get_bcc(smb_buf); in sess_auth_rawntlmssp_authenticate()
1333 bcc_ptr = pByteArea(smb_buf); in sess_auth_rawntlmssp_authenticate()
1348 } else if (smb_buf->Flags2 & SMBFLG2_UNICODE) { in sess_auth_rawntlmssp_authenticate()
1350 if (((unsigned long) bcc_ptr - (unsigned long) smb_buf) % 2) { in sess_auth_rawntlmssp_authenticate()