Lines Matching defs:shdr
359 struct smb2_hdr *shdr = (struct smb2_hdr *)buf;
360 __u64 wire_mid = le64_to_cpu(shdr->MessageId);
362 if (shdr->ProtocolId == SMB2_TRANSFORM_PROTO_NUM) {
371 (mid->command == shdr->Command)) {
401 struct smb2_hdr *shdr = (struct smb2_hdr *)buf;
404 shdr->Command, shdr->Status, shdr->Flags, shdr->MessageId,
405 shdr->Id.SyncId.ProcessId);
2363 struct smb2_hdr *shdr = (struct smb2_hdr *)buf;
2366 if (shdr->Status != STATUS_PENDING)
2369 if (shdr->CreditRequest) {
2371 server->credits += le16_to_cpu(shdr->CreditRequest);
2379 le16_to_cpu(shdr->CreditRequest), in_flight);
2381 __func__, le16_to_cpu(shdr->CreditRequest), scredits);
2390 struct smb2_hdr *shdr = (struct smb2_hdr *)buf;
2392 if (shdr->Status != STATUS_NETWORK_SESSION_EXPIRED &&
2393 shdr->Status != STATUS_USER_SESSION_DELETED)
2396 trace_smb3_ses_expired(le32_to_cpu(shdr->Id.SyncId.TreeId),
2397 le64_to_cpu(shdr->SessionId),
2398 le16_to_cpu(shdr->Command),
2399 le64_to_cpu(shdr->MessageId));
2408 struct smb2_hdr *shdr = (struct smb2_hdr *)buf;
2410 if (shdr->Status == STATUS_IO_TIMEOUT)
2419 struct smb2_hdr *shdr = (struct smb2_hdr *)buf;
2424 if (shdr->Status != STATUS_NETWORK_NAME_DELETED)
2433 if (tcon->tid == le32_to_cpu(shdr->Id.SyncId.TreeId)) {
2464 struct smb2_hdr *shdr;
2466 shdr = (struct smb2_hdr *)(rqst->rq_iov[0].iov_base);
2467 if (shdr == NULL) {
2468 cifs_dbg(FYI, "shdr NULL in smb2_set_related\n");
2471 shdr->Flags |= SMB2_FLAGS_RELATED_OPERATIONS;
2479 struct smb2_hdr *shdr;
2485 shdr = (struct smb2_hdr *)(rqst->rq_iov[0].iov_base);
2486 if (shdr == NULL) {
2487 cifs_dbg(FYI, "shdr NULL in smb2_set_next_command\n");
2530 shdr->NextCommand = cpu_to_le32(len);
4220 struct smb2_hdr *shdr =
4232 memcpy(&tr_hdr->SessionId, &shdr->SessionId, 8);
4627 struct smb2_hdr *shdr = (struct smb2_hdr *)buf;
4631 if (shdr->Command != SMB2_READ) {
4959 struct smb2_hdr *shdr;
4990 shdr = (struct smb2_hdr *)buf;
4991 next_cmd = le32_to_cpu(shdr->NextCommand);