Home
last modified time | relevance | path

Searched refs:shdr (Results 1 – 9 of 9) sorted by relevance

/fs/cifs/
Dsmb2misc.c22 check_smb2_hdr(struct smb2_sync_hdr *shdr, __u64 mid) in check_smb2_hdr() argument
24 __u64 wire_mid = le64_to_cpu(shdr->MessageId); in check_smb2_hdr()
30 if ((shdr->ProtocolId == SMB2_PROTO_NUMBER) && in check_smb2_hdr()
32 if (shdr->Flags & SMB2_FLAGS_SERVER_TO_REDIR) in check_smb2_hdr()
36 if (shdr->Command == SMB2_OPLOCK_BREAK) in check_smb2_hdr()
42 if (shdr->ProtocolId != SMB2_PROTO_NUMBER) in check_smb2_hdr()
44 le32_to_cpu(shdr->ProtocolId)); in check_smb2_hdr()
138 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf; in smb2_check_message() local
139 struct smb2_sync_pdu *pdu = (struct smb2_sync_pdu *)shdr; in smb2_check_message()
150 if (shdr->ProtocolId == SMB2_TRANSFORM_PROTO_NUM) { in smb2_check_message()
[all …]
Dsmb2transport.c216 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)iov[0].iov_base; in smb2_calc_signature() local
223 ses = smb2_find_smb_ses(server, shdr->SessionId); in smb2_calc_signature()
230 memset(shdr->Signature, 0x0, SMB2_SIGNATURE_SIZE); in smb2_calc_signature()
283 memcpy(shdr->Signature, sigptr, SMB2_SIGNATURE_SIZE); in smb2_calc_signature()
536 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)iov[0].iov_base; in smb3_calc_signature() local
543 rc = smb2_get_sign_key(shdr->SessionId, server, key); in smb3_calc_signature()
561 memset(shdr->Signature, 0x0, SMB2_SIGNATURE_SIZE); in smb3_calc_signature()
602 memcpy(shdr->Signature, sigptr, SMB2_SIGNATURE_SIZE); in smb3_calc_signature()
615 struct smb2_sync_hdr *shdr; in smb2_sign_rqst() local
620 shdr = (struct smb2_sync_hdr *)rqst->rq_iov[0].iov_base; in smb2_sign_rqst()
[all …]
Dsmb2ops.c328 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf; in __smb2_find_mid() local
329 __u64 wire_mid = le64_to_cpu(shdr->MessageId); in __smb2_find_mid()
331 if (shdr->ProtocolId == SMB2_TRANSFORM_PROTO_NUM) { in __smb2_find_mid()
340 (mid->command == shdr->Command)) { in __smb2_find_mid()
370 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf; in smb2_dump_detail() local
373 shdr->Command, shdr->Status, shdr->Flags, shdr->MessageId, in smb2_dump_detail()
374 shdr->ProcessId); in smb2_dump_detail()
2492 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf; in smb2_is_status_pending() local
2495 if (shdr->Status != STATUS_PENDING) in smb2_is_status_pending()
2498 if (shdr->CreditRequest) { in smb2_is_status_pending()
[all …]
Dsmb2pdu.c87 smb2_hdr_assemble(struct smb2_sync_hdr *shdr, __le16 smb2_cmd, in smb2_hdr_assemble() argument
91 shdr->ProtocolId = SMB2_PROTO_NUMBER; in smb2_hdr_assemble()
92 shdr->StructureSize = cpu_to_le16(64); in smb2_hdr_assemble()
93 shdr->Command = smb2_cmd; in smb2_hdr_assemble()
98 shdr->CreditRequest = cpu_to_le16(0); in smb2_hdr_assemble()
100 shdr->CreditRequest = cpu_to_le16( in smb2_hdr_assemble()
105 shdr->CreditRequest = cpu_to_le16(2); in smb2_hdr_assemble()
107 shdr->ProcessId = cpu_to_le32((__u16)current->tgid); in smb2_hdr_assemble()
115 shdr->CreditCharge = cpu_to_le16(1); in smb2_hdr_assemble()
118 shdr->TreeId = tcon->tid; in smb2_hdr_assemble()
[all …]
Dsmb2maperror.c2442 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf; in map_smb2_to_linux_error() local
2445 __le32 smb2err = shdr->Status; in map_smb2_to_linux_error()
2448 trace_smb3_cmd_done(shdr->TreeId, shdr->SessionId, in map_smb2_to_linux_error()
2449 le16_to_cpu(shdr->Command), le64_to_cpu(shdr->MessageId)); in map_smb2_to_linux_error()
2473 trace_smb3_cmd_err(shdr->TreeId, shdr->SessionId, in map_smb2_to_linux_error()
2474 le16_to_cpu(shdr->Command), in map_smb2_to_linux_error()
2475 le64_to_cpu(shdr->MessageId), le32_to_cpu(smb2err), rc); in map_smb2_to_linux_error()
Dconnect.c725 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buffer; in smb2_get_credits_from_hdr() local
733 return le16_to_cpu(shdr->CreditRequest); in smb2_get_credits_from_hdr()
929 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buffer; in smb2_add_credits_from_hdr() local
938 if (shdr->CreditRequest) { in smb2_add_credits_from_hdr()
940 server->credits += le16_to_cpu(shdr->CreditRequest); in smb2_add_credits_from_hdr()
948 le16_to_cpu(shdr->CreditRequest), in_flight); in smb2_add_credits_from_hdr()
950 __func__, le16_to_cpu(shdr->CreditRequest), in smb2_add_credits_from_hdr()
Dsmb2proto.h28 struct smb2_sync_hdr *shdr);
Dcifsglob.h797 const struct smb2_sync_hdr *shdr) in revert_current_mid_from_hdr() argument
799 unsigned int num = le16_to_cpu(shdr->CreditCharge); in revert_current_mid_from_hdr()
/fs/xfs/libxfs/
Dxfs_dir2_node.c952 struct xfs_dir3_icleaf_hdr *shdr, in xfs_dir3_leafn_moveents() argument
986 if (shdr->stale) { in xfs_dir3_leafn_moveents()
1007 if (start_s + count < shdr->count) { in xfs_dir3_leafn_moveents()
1010 xfs_dir3_leaf_log_ents(args, shdr, bp_s, start_s, in xfs_dir3_leafn_moveents()
1017 shdr->count -= count; in xfs_dir3_leafn_moveents()
1018 shdr->stale -= stale; in xfs_dir3_leafn_moveents()