Home
last modified time | relevance | path

Searched refs:smb (Results 1 – 7 of 7) sorted by relevance

/fs/cifs/
Dmisc.c285 check_smb_hdr(struct smb_hdr *smb) in check_smb_hdr() argument
288 if (*(__le32 *) smb->Protocol != cpu_to_le32(0x424d53ff)) { in check_smb_hdr()
290 *(unsigned int *)smb->Protocol); in check_smb_hdr()
295 if (smb->Flags & SMBFLG_RESPONSE) in check_smb_hdr()
299 if (smb->Command == SMB_COM_LOCKING_ANDX) in check_smb_hdr()
303 get_mid(smb)); in check_smb_hdr()
310 struct smb_hdr *smb = (struct smb_hdr *)buf; in checkSMB() local
311 __u32 rfclen = be32_to_cpu(smb->smb_buf_length); in checkSMB()
319 && (smb->Status.CifsError != 0)) { in checkSMB()
321 smb->WordCount = 0; in checkSMB()
[all …]
Dcifs_debug.c62 struct smb_hdr *smb = (struct smb_hdr *)buf; in cifs_dump_detail() local
65 smb->Command, smb->Status.CifsError, in cifs_dump_detail()
66 smb->Flags, smb->Flags2, smb->Mid, smb->Pid); in cifs_dump_detail()
67 cifs_dbg(VFS, "smb buf %p len %u\n", smb, smbCalcSize(smb)); in cifs_dump_detail()
Dcifssmb.c708 ECHO_REQ *smb; in CIFSSMBEcho() local
716 rc = small_smb_init(SMB_COM_ECHO, 0, NULL, (void **)&smb); in CIFSSMBEcho()
721 smb->hdr.Flags2 |= SMBFLG2_UNICODE; in CIFSSMBEcho()
724 smb->hdr.Tid = 0xffff; in CIFSSMBEcho()
725 smb->hdr.WordCount = 1; in CIFSSMBEcho()
726 put_unaligned_le16(1, &smb->EchoCount); in CIFSSMBEcho()
727 put_bcc(1, &smb->hdr); in CIFSSMBEcho()
728 smb->Data[0] = 'a'; in CIFSSMBEcho()
729 inc_rfc1001_len(smb, 3); in CIFSSMBEcho()
730 iov.iov_base = smb; in CIFSSMBEcho()
[all …]
Dnetmisc.c830 struct smb_hdr *smb = (struct smb_hdr *)buf; in map_smb_to_linux_error() local
839 if (smb->Status.CifsError == 0) in map_smb_to_linux_error()
842 if (smb->Flags2 & SMBFLG2_ERR_STATUS) { in map_smb_to_linux_error()
845 __u32 err = le32_to_cpu(smb->Status.CifsError); in map_smb_to_linux_error()
852 smberrclass = smb->Status.DosError.ErrorClass; in map_smb_to_linux_error()
853 smberrcode = le16_to_cpu(smb->Status.DosError.Error); in map_smb_to_linux_error()
893 le32_to_cpu(smb->Status.CifsError), rc); in map_smb_to_linux_error()
Dsmb2ops.c212 struct smb2_hdr *smb = (struct smb2_hdr *)buf; in smb2_dump_detail() local
215 smb->Command, smb->Status, smb->Flags, smb->MessageId, in smb2_dump_detail()
216 smb->ProcessId); in smb2_dump_detail()
217 cifs_dbg(VFS, "smb buf %p len %u\n", smb, smb2_calc_size(smb)); in smb2_dump_detail()
Dcifsglob.h719 get_mid(const struct smb_hdr *smb) in get_mid() argument
721 return le16_to_cpu(smb->Mid); in get_mid()
725 compare_mid(__u16 mid, const struct smb_hdr *smb) in compare_mid() argument
727 return mid == le16_to_cpu(smb->Mid); in compare_mid()
Dcifspdu.h437 BCC(struct smb_hdr *smb) in BCC() argument
439 return (void *)smb + sizeof(*smb) + 2 * smb->WordCount; in BCC()