Searched refs:smb (Results 1 – 7 of 7) sorted by relevance
/fs/cifs/ |
D | misc.c | 285 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 …]
|
D | cifs_debug.c | 62 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()
|
D | cifssmb.c | 731 ECHO_REQ *smb; in CIFSSMBEcho() local 739 rc = small_smb_init(SMB_COM_ECHO, 0, NULL, (void **)&smb); in CIFSSMBEcho() 744 smb->hdr.Flags2 |= SMBFLG2_UNICODE; in CIFSSMBEcho() 747 smb->hdr.Tid = 0xffff; in CIFSSMBEcho() 748 smb->hdr.WordCount = 1; in CIFSSMBEcho() 749 put_unaligned_le16(1, &smb->EchoCount); in CIFSSMBEcho() 750 put_bcc(1, &smb->hdr); in CIFSSMBEcho() 751 smb->Data[0] = 'a'; in CIFSSMBEcho() 752 inc_rfc1001_len(smb, 3); in CIFSSMBEcho() 753 iov.iov_base = smb; in CIFSSMBEcho() [all …]
|
D | netmisc.c | 826 struct smb_hdr *smb = (struct smb_hdr *)buf; in map_smb_to_linux_error() local 835 if (smb->Status.CifsError == 0) in map_smb_to_linux_error() 838 if (smb->Flags2 & SMBFLG2_ERR_STATUS) { in map_smb_to_linux_error() 841 __u32 err = le32_to_cpu(smb->Status.CifsError); in map_smb_to_linux_error() 848 smberrclass = smb->Status.DosError.ErrorClass; in map_smb_to_linux_error() 849 smberrcode = le16_to_cpu(smb->Status.DosError.Error); in map_smb_to_linux_error() 889 le32_to_cpu(smb->Status.CifsError), rc); in map_smb_to_linux_error()
|
D | smb2ops.c | 202 struct smb2_hdr *smb = (struct smb2_hdr *)buf; in smb2_dump_detail() local 205 smb->Command, smb->Status, smb->Flags, smb->MessageId, in smb2_dump_detail() 206 smb->ProcessId); in smb2_dump_detail() 207 cifs_dbg(VFS, "smb buf %p len %u\n", smb, smb2_calc_size(smb)); in smb2_dump_detail()
|
D | cifsglob.h | 699 get_mid(const struct smb_hdr *smb) in get_mid() argument 701 return le16_to_cpu(smb->Mid); in get_mid() 705 compare_mid(__u16 mid, const struct smb_hdr *smb) in compare_mid() argument 707 return mid == le16_to_cpu(smb->Mid); in compare_mid()
|
D | cifspdu.h | 437 BCC(struct smb_hdr *smb) in BCC() argument 439 return (void *)smb + sizeof(*smb) + 2 * smb->WordCount; in BCC()
|