Lines Matching defs:smb
43 in a similar way to the mid which is useful to track each sent smb,
296 check_smb_hdr(struct smb_hdr *smb)
299 if (*(__le32 *) smb->Protocol != cpu_to_le32(0x424d53ff)) {
301 *(unsigned int *)smb->Protocol);
306 if (smb->Flags & SMBFLG_RESPONSE)
310 if (smb->Command == SMB_COM_LOCKING_ANDX)
314 get_mid(smb));
321 struct smb_hdr *smb = (struct smb_hdr *)buf;
322 __u32 rfclen = be32_to_cpu(smb->smb_buf_length);
330 && (smb->Status.CifsError != 0)) {
332 smb->WordCount = 0;
336 (smb->WordCount == 0)) {
337 char *tmp = (char *)smb;
353 cifs_dbg(VFS, "Length less than smb header size\n");
356 } else if (total_read < sizeof(*smb) + 2 * smb->WordCount) {
358 __func__, smb->WordCount);
363 if (check_smb_hdr(smb))
365 clc_len = smbCalcSize(smb, server);
374 __u16 mid = get_mid(smb);