Lines Matching defs:shdr
100 smb2_hdr_assemble(struct smb2_sync_hdr *shdr, __le16 smb2_cmd,
104 shdr->ProtocolId = SMB2_PROTO_NUMBER;
105 shdr->StructureSize = cpu_to_le16(64);
106 shdr->Command = smb2_cmd;
111 shdr->CreditRequest = cpu_to_le16(0);
113 shdr->CreditRequest = cpu_to_le16(
118 shdr->CreditRequest = cpu_to_le16(2);
120 shdr->ProcessId = cpu_to_le32((__u16)current->tgid);
128 shdr->CreditCharge = cpu_to_le16(1);
131 shdr->TreeId = tcon->tid;
134 shdr->SessionId = tcon->ses->Suid;
147 shdr->Flags |= SMB2_FLAGS_DFS_OPERATIONS; */
150 shdr->Flags |= SMB2_FLAGS_SIGNED;
3839 struct smb2_sync_hdr *shdr;
3850 shdr = &req->sync_hdr;
3851 shdr->ProcessId = cpu_to_le32(io_parms->pid);
3903 shdr->NextCommand = cpu_to_le32(*total_len);
3905 shdr->NextCommand = 0;
3907 shdr->Flags |= SMB2_FLAGS_RELATED_OPERATIONS;
3912 shdr->SessionId = 0xFFFFFFFFFFFFFFFF;
3913 shdr->TreeId = 0xFFFFFFFF;
3933 struct smb2_sync_hdr *shdr =
3957 credits.value = le16_to_cpu(shdr->CreditRequest);
3983 credits.value = le16_to_cpu(shdr->CreditRequest);
4023 struct smb2_sync_hdr *shdr;
4056 shdr = (struct smb2_sync_hdr *)buf;
4059 shdr->CreditCharge = cpu_to_le16(DIV_ROUND_UP(rdata->bytes,
4061 shdr->CreditRequest = cpu_to_le16(le16_to_cpu(shdr->CreditCharge) + 8);
4262 struct smb2_sync_hdr *shdr;
4280 shdr = (struct smb2_sync_hdr *)req;
4281 shdr->ProcessId = cpu_to_le32(wdata->cfile->pid);
4365 shdr->CreditCharge = cpu_to_le16(DIV_ROUND_UP(wdata->bytes,
4367 shdr->CreditRequest = cpu_to_le16(le16_to_cpu(shdr->CreditCharge) + 8);