Lines Matching defs:shdr
87 smb2_hdr_assemble(struct smb2_hdr *shdr, __le16 smb2_cmd,
93 shdr->ProtocolId = SMB2_PROTO_NUMBER;
94 shdr->StructureSize = cpu_to_le16(64);
95 shdr->Command = smb2_cmd;
100 smb3_hdr = (struct smb3_hdr_req *)shdr;
115 shdr->CreditRequest = cpu_to_le16(0);
117 shdr->CreditRequest = cpu_to_le16(
122 shdr->CreditRequest = cpu_to_le16(2);
124 shdr->Id.SyncId.ProcessId = cpu_to_le32((__u16)current->tgid);
132 shdr->CreditCharge = cpu_to_le16(1);
135 shdr->Id.SyncId.TreeId = cpu_to_le32(tcon->tid);
138 shdr->SessionId = cpu_to_le64(tcon->ses->Suid);
151 shdr->Flags |= SMB2_FLAGS_DFS_OPERATIONS; */
154 shdr->Flags |= SMB2_FLAGS_SIGNED;
4256 struct smb2_hdr *shdr;
4267 shdr = &req->hdr;
4268 shdr->Id.SyncId.ProcessId = cpu_to_le32(io_parms->pid);
4316 shdr->NextCommand = cpu_to_le32(*total_len);
4318 shdr->NextCommand = 0;
4320 shdr->Flags |= SMB2_FLAGS_RELATED_OPERATIONS;
4325 shdr->SessionId = cpu_to_le64(0xFFFFFFFFFFFFFFFF);
4326 shdr->Id.SyncId.TreeId = cpu_to_le32(0xFFFFFFFF);
4346 struct smb2_hdr *shdr =
4366 credits.value = le16_to_cpu(shdr->CreditRequest);
4394 credits.value = le16_to_cpu(shdr->CreditRequest);
4434 struct smb2_hdr *shdr;
4468 shdr = (struct smb2_hdr *)buf;
4471 shdr->CreditCharge = cpu_to_le16(DIV_ROUND_UP(rdata->bytes,
4473 credit_request = le16_to_cpu(shdr->CreditCharge) + 8;
4475 shdr->CreditRequest = cpu_to_le16(0);
4477 shdr->CreditRequest = cpu_to_le16(
4681 struct smb2_hdr *shdr;
4717 shdr = (struct smb2_hdr *)req;
4718 shdr->Id.SyncId.ProcessId = cpu_to_le32(io_parms->pid);
4792 shdr->CreditCharge = cpu_to_le16(DIV_ROUND_UP(wdata->bytes,
4794 credit_request = le16_to_cpu(shdr->CreditCharge) + 8;
4796 shdr->CreditRequest = cpu_to_le16(0);
4798 shdr->CreditRequest = cpu_to_le16(