Lines Matching defs:shdr
270 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf;
271 __u64 wire_mid = le64_to_cpu(shdr->MessageId);
273 if (shdr->ProtocolId == SMB2_TRANSFORM_PROTO_NUM) {
282 (mid->command == shdr->Command)) {
312 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf;
315 shdr->Command, shdr->Status, shdr->Flags, shdr->MessageId,
316 shdr->ProcessId);
2372 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf;
2374 if (shdr->Status != STATUS_PENDING)
2377 if (shdr->CreditRequest) {
2379 server->credits += le16_to_cpu(shdr->CreditRequest);
2390 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf;
2392 if (shdr->Status != STATUS_NETWORK_SESSION_EXPIRED &&
2393 shdr->Status != STATUS_USER_SESSION_DELETED)
2396 trace_smb3_ses_expired(shdr->TreeId, shdr->SessionId,
2397 le16_to_cpu(shdr->Command),
2398 le64_to_cpu(shdr->MessageId));
2407 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf;
2409 if (shdr->Status == STATUS_IO_TIMEOUT)
2431 struct smb2_sync_hdr *shdr;
2433 shdr = (struct smb2_sync_hdr *)(rqst->rq_iov[0].iov_base);
2434 if (shdr == NULL) {
2435 cifs_dbg(FYI, "shdr NULL in smb2_set_related\n");
2438 shdr->Flags |= SMB2_FLAGS_RELATED_OPERATIONS;
2446 struct smb2_sync_hdr *shdr;
2452 shdr = (struct smb2_sync_hdr *)(rqst->rq_iov[0].iov_base);
2453 if (shdr == NULL) {
2454 cifs_dbg(FYI, "shdr NULL in smb2_set_next_command\n");
2497 shdr->NextCommand = cpu_to_le32(len);
4161 struct smb2_sync_hdr *shdr =
4173 memcpy(&tr_hdr->SessionId, &shdr->SessionId, 8);
4573 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf;
4580 if (shdr->Command != SMB2_READ) {
4892 struct smb2_sync_hdr *shdr;
4922 shdr = (struct smb2_sync_hdr *)buf;
4923 if (shdr->NextCommand) {
4929 buf + le32_to_cpu(shdr->NextCommand),
4930 pdu_length - le32_to_cpu(shdr->NextCommand));
4954 if (ret == 0 && shdr->NextCommand) {
4955 pdu_length -= le32_to_cpu(shdr->NextCommand);