Lines Matching refs:shdr
270 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf; in __smb2_find_mid() local
271 __u64 wire_mid = le64_to_cpu(shdr->MessageId); in __smb2_find_mid()
273 if (shdr->ProtocolId == SMB2_TRANSFORM_PROTO_NUM) { in __smb2_find_mid()
282 (mid->command == shdr->Command)) { in __smb2_find_mid()
312 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf; in smb2_dump_detail() local
315 shdr->Command, shdr->Status, shdr->Flags, shdr->MessageId, in smb2_dump_detail()
316 shdr->ProcessId); in smb2_dump_detail()
2371 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf; in smb2_is_status_pending() local
2373 if (shdr->Status != STATUS_PENDING) in smb2_is_status_pending()
2376 if (shdr->CreditRequest) { in smb2_is_status_pending()
2378 server->credits += le16_to_cpu(shdr->CreditRequest); in smb2_is_status_pending()
2389 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf; in smb2_is_session_expired() local
2391 if (shdr->Status != STATUS_NETWORK_SESSION_EXPIRED && in smb2_is_session_expired()
2392 shdr->Status != STATUS_USER_SESSION_DELETED) in smb2_is_session_expired()
2395 trace_smb3_ses_expired(shdr->TreeId, shdr->SessionId, in smb2_is_session_expired()
2396 le16_to_cpu(shdr->Command), in smb2_is_session_expired()
2397 le64_to_cpu(shdr->MessageId)); in smb2_is_session_expired()
2406 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf; in smb2_is_status_io_timeout() local
2408 if (shdr->Status == STATUS_IO_TIMEOUT) in smb2_is_status_io_timeout()
2430 struct smb2_sync_hdr *shdr; in smb2_set_related() local
2432 shdr = (struct smb2_sync_hdr *)(rqst->rq_iov[0].iov_base); in smb2_set_related()
2433 if (shdr == NULL) { in smb2_set_related()
2437 shdr->Flags |= SMB2_FLAGS_RELATED_OPERATIONS; in smb2_set_related()
2445 struct smb2_sync_hdr *shdr; in smb2_set_next_command() local
2451 shdr = (struct smb2_sync_hdr *)(rqst->rq_iov[0].iov_base); in smb2_set_next_command()
2452 if (shdr == NULL) { in smb2_set_next_command()
2496 shdr->NextCommand = cpu_to_le32(len); in smb2_set_next_command()
4152 struct smb2_sync_hdr *shdr = in fill_transform_hdr() local
4164 memcpy(&tr_hdr->SessionId, &shdr->SessionId, 8); in fill_transform_hdr()
4564 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf; in handle_read_data() local
4571 if (shdr->Command != SMB2_READ) { in handle_read_data()
4883 struct smb2_sync_hdr *shdr; in receive_encrypted_standard() local
4913 shdr = (struct smb2_sync_hdr *)buf; in receive_encrypted_standard()
4914 if (shdr->NextCommand) { in receive_encrypted_standard()
4920 buf + le32_to_cpu(shdr->NextCommand), in receive_encrypted_standard()
4921 pdu_length - le32_to_cpu(shdr->NextCommand)); in receive_encrypted_standard()
4945 if (ret == 0 && shdr->NextCommand) { in receive_encrypted_standard()
4946 pdu_length -= le32_to_cpu(shdr->NextCommand); in receive_encrypted_standard()