Lines Matching defs:smb
31 in a similar way to the mid which is useful to track each sent smb,
306 check_smb_hdr(struct smb_hdr *smb)
309 if (*(__le32 *) smb->Protocol != cpu_to_le32(0x424d53ff)) {
311 *(unsigned int *)smb->Protocol);
316 if (smb->Flags & SMBFLG_RESPONSE)
320 if (smb->Command == SMB_COM_LOCKING_ANDX)
324 get_mid(smb));
331 struct smb_hdr *smb = (struct smb_hdr *)buf;
332 __u32 rfclen = be32_to_cpu(smb->smb_buf_length);
340 && (smb->Status.CifsError != 0)) {
342 smb->WordCount = 0;
346 (smb->WordCount == 0)) {
347 char *tmp = (char *)smb;
363 cifs_dbg(VFS, "Length less than smb header size\n");
366 } else if (total_read < sizeof(*smb) + 2 * smb->WordCount) {
368 __func__, smb->WordCount);
373 if (check_smb_hdr(smb))
375 clc_len = smbCalcSize(smb);
384 __u16 mid = get_mid(smb);