Lines Matching refs:smb_hdr
141 struct smb_hdr *
144 struct smb_hdr *ret_buf = NULL; in cifs_buf_get()
145 size_t buf_size = sizeof(struct smb_hdr); in cifs_buf_get()
188 struct smb_hdr *
191 struct smb_hdr *ret_buf = NULL; in cifs_small_buf_get()
236 header_assemble(struct smb_hdr *buffer, char smb_command /* command */ , in header_assemble()
245 (2 * word_count) + sizeof(struct smb_hdr) - in header_assemble()
285 check_smb_hdr(struct smb_hdr *smb) in check_smb_hdr()
310 struct smb_hdr *smb = (struct smb_hdr *)buf; in checkSMB()
317 if (total_read < 2 + sizeof(struct smb_hdr)) { in checkSMB()
318 if ((total_read >= sizeof(struct smb_hdr) - 1) in checkSMB()
324 } else if ((total_read == sizeof(struct smb_hdr) + 1) && in checkSMB()
329 if (tmp[sizeof(struct smb_hdr)] == 0) { in checkSMB()
337 tmp[sizeof(struct smb_hdr)+1] = 0; in checkSMB()
394 struct smb_hdr *buf = (struct smb_hdr *)buffer; in is_valid_oplock_break()