Lines Matching full:smb

812 	struct smb_hdr *smb = (struct smb_hdr *)buf;  in map_smb_to_linux_error()  local
814 int rc = -EIO; /* if transport error smb error may not be set */ in map_smb_to_linux_error()
820 /* old style smb error codes */ in map_smb_to_linux_error()
821 if (smb->Status.CifsError == 0) in map_smb_to_linux_error()
824 if (smb->Flags2 & SMBFLG2_ERR_STATUS) { in map_smb_to_linux_error()
825 /* translate the newer STATUS codes to old style SMB errors in map_smb_to_linux_error()
827 __u32 err = le32_to_cpu(smb->Status.CifsError); in map_smb_to_linux_error()
834 smberrclass = smb->Status.DosError.ErrorClass; in map_smb_to_linux_error()
835 smberrcode = le16_to_cpu(smb->Status.DosError.Error); in map_smb_to_linux_error()
840 /* DOS class smb error codes - map DOS */ in map_smb_to_linux_error()
874 cifs_dbg(FYI, "Mapping smb error code 0x%x to POSIX err %d\n", in map_smb_to_linux_error()
875 le32_to_cpu(smb->Status.CifsError), rc); in map_smb_to_linux_error()
877 /* generic corrective action e.g. reconnect SMB session on in map_smb_to_linux_error()
887 struct smb_hdr *smb = (struct smb_hdr *)mid->resp_buf; in map_and_check_smb_error() local
889 rc = map_smb_to_linux_error((char *)smb, logErr); in map_and_check_smb_error()
890 if (rc == -EACCES && !(smb->Flags2 & SMBFLG2_ERR_STATUS)) { in map_and_check_smb_error()
892 __u8 class = smb->Status.DosError.ErrorClass; in map_and_check_smb_error()
893 __u16 code = le16_to_cpu(smb->Status.DosError.Error); in map_and_check_smb_error()
908 * calculate the size of the SMB message based on the fixed header