Lines Matching refs:shdr

154 	struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)mid->resp_buf;  in smb2_get_credits()  local
158 return le16_to_cpu(shdr->CreditRequest); in smb2_get_credits()
271 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf; in smb2_find_mid() local
272 __u64 wire_mid = le64_to_cpu(shdr->MessageId); in smb2_find_mid()
274 if (shdr->ProtocolId == SMB2_TRANSFORM_PROTO_NUM) { in smb2_find_mid()
283 (mid->command == shdr->Command)) { in smb2_find_mid()
297 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf; in smb2_dump_detail() local
300 shdr->Command, shdr->Status, shdr->Flags, shdr->MessageId, in smb2_dump_detail()
301 shdr->ProcessId); in smb2_dump_detail()
2059 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf; in smb2_is_status_pending() local
2061 if (shdr->Status != STATUS_PENDING) in smb2_is_status_pending()
2064 if (shdr->CreditRequest) { in smb2_is_status_pending()
2066 server->credits += le16_to_cpu(shdr->CreditRequest); in smb2_is_status_pending()
2077 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf; in smb2_is_session_expired() local
2079 if (shdr->Status != STATUS_NETWORK_SESSION_EXPIRED && in smb2_is_session_expired()
2080 shdr->Status != STATUS_USER_SESSION_DELETED) in smb2_is_session_expired()
2083 trace_smb3_ses_expired(shdr->TreeId, shdr->SessionId, in smb2_is_session_expired()
2084 le16_to_cpu(shdr->Command), in smb2_is_session_expired()
2085 le64_to_cpu(shdr->MessageId)); in smb2_is_session_expired()
2107 struct smb2_sync_hdr *shdr; in smb2_set_related() local
2109 shdr = (struct smb2_sync_hdr *)(rqst->rq_iov[0].iov_base); in smb2_set_related()
2110 if (shdr == NULL) { in smb2_set_related()
2114 shdr->Flags |= SMB2_FLAGS_RELATED_OPERATIONS; in smb2_set_related()
2122 struct smb2_sync_hdr *shdr; in smb2_set_next_command() local
2128 shdr = (struct smb2_sync_hdr *)(rqst->rq_iov[0].iov_base); in smb2_set_next_command()
2129 if (shdr == NULL) { in smb2_set_next_command()
2173 shdr->NextCommand = cpu_to_le32(len); in smb2_set_next_command()
3515 struct smb2_sync_hdr *shdr = in fill_transform_hdr() local
3526 memcpy(&tr_hdr->SessionId, &shdr->SessionId, 8); in fill_transform_hdr()
3921 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf; in handle_read_data() local
3928 if (shdr->Command != SMB2_READ) { in handle_read_data()
4200 struct smb2_sync_hdr *shdr; in receive_encrypted_standard() local
4230 shdr = (struct smb2_sync_hdr *)buf; in receive_encrypted_standard()
4231 if (shdr->NextCommand) { in receive_encrypted_standard()
4237 buf + le32_to_cpu(shdr->NextCommand), in receive_encrypted_standard()
4238 pdu_length - le32_to_cpu(shdr->NextCommand)); in receive_encrypted_standard()
4262 if (ret == 0 && shdr->NextCommand) { in receive_encrypted_standard()
4263 pdu_length -= le32_to_cpu(shdr->NextCommand); in receive_encrypted_standard()