Home
last modified time | relevance | path

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

/linux-4.19.296/fs/cifs/
Dsmb2transport.c172 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)iov[0].iov_base; in smb2_calc_signature() local
177 ses = smb2_find_smb_ses(server, shdr->SessionId); in smb2_calc_signature()
184 memset(shdr->Signature, 0x0, SMB2_SIGNATURE_SIZE); in smb2_calc_signature()
228 memcpy(shdr->Signature, sigptr, SMB2_SIGNATURE_SIZE); in smb2_calc_signature()
432 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)iov[0].iov_base; in smb3_calc_signature() local
437 ses = smb2_find_smb_ses(server, shdr->SessionId); in smb3_calc_signature()
444 memset(shdr->Signature, 0x0, SMB2_SIGNATURE_SIZE); in smb3_calc_signature()
486 memcpy(shdr->Signature, sigptr, SMB2_SIGNATURE_SIZE); in smb3_calc_signature()
496 struct smb2_sync_hdr *shdr = in smb2_sign_rqst() local
499 if (!(shdr->Flags & SMB2_FLAGS_SIGNED) || in smb2_sign_rqst()
[all …]
Dsmb2misc.c34 check_smb2_hdr(struct smb2_sync_hdr *shdr, __u64 mid) in check_smb2_hdr() argument
36 __u64 wire_mid = le64_to_cpu(shdr->MessageId); in check_smb2_hdr()
42 if ((shdr->ProtocolId == SMB2_PROTO_NUMBER) && in check_smb2_hdr()
44 if (shdr->Flags & SMB2_FLAGS_SERVER_TO_REDIR) in check_smb2_hdr()
48 if (shdr->Command == SMB2_OPLOCK_BREAK) in check_smb2_hdr()
54 if (shdr->ProtocolId != SMB2_PROTO_NUMBER) in check_smb2_hdr()
56 le32_to_cpu(shdr->ProtocolId)); in check_smb2_hdr()
133 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf; in smb2_check_message() local
134 struct smb2_sync_pdu *pdu = (struct smb2_sync_pdu *)shdr; in smb2_check_message()
145 if (shdr->ProtocolId == SMB2_TRANSFORM_PROTO_NUM) { in smb2_check_message()
[all …]
Dsmb2ops.c145 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)mid->resp_buf; in smb2_get_credits() local
147 return le16_to_cpu(shdr->CreditRequest); in smb2_get_credits()
221 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf; in smb2_find_mid() local
222 __u64 wire_mid = le64_to_cpu(shdr->MessageId); in smb2_find_mid()
224 if (shdr->ProtocolId == SMB2_TRANSFORM_PROTO_NUM) { in smb2_find_mid()
233 (mid->command == shdr->Command)) { in smb2_find_mid()
247 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf; in smb2_dump_detail() local
250 shdr->Command, shdr->Status, shdr->Flags, shdr->MessageId, in smb2_dump_detail()
251 shdr->ProcessId); in smb2_dump_detail()
1599 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf; in smb2_is_status_pending() local
[all …]
Dsmb2pdu.c97 smb2_hdr_assemble(struct smb2_sync_hdr *shdr, __le16 smb2_cmd, in smb2_hdr_assemble() argument
100 shdr->ProtocolId = SMB2_PROTO_NUMBER; in smb2_hdr_assemble()
101 shdr->StructureSize = cpu_to_le16(64); in smb2_hdr_assemble()
102 shdr->Command = smb2_cmd; in smb2_hdr_assemble()
109 shdr->CreditRequest = cpu_to_le16(0); in smb2_hdr_assemble()
111 shdr->CreditRequest = cpu_to_le16( in smb2_hdr_assemble()
116 shdr->CreditRequest = cpu_to_le16(2); in smb2_hdr_assemble()
118 shdr->ProcessId = cpu_to_le32((__u16)current->tgid); in smb2_hdr_assemble()
127 shdr->CreditCharge = cpu_to_le16(1); in smb2_hdr_assemble()
130 shdr->TreeId = tcon->tid; in smb2_hdr_assemble()
[all …]
Dsmb2maperror.c2455 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf; in map_smb2_to_linux_error() local
2458 __le32 smb2err = shdr->Status; in map_smb2_to_linux_error()
2461 trace_smb3_cmd_done(shdr->TreeId, shdr->SessionId, in map_smb2_to_linux_error()
2462 le16_to_cpu(shdr->Command), le64_to_cpu(shdr->MessageId)); in map_smb2_to_linux_error()
2486 trace_smb3_cmd_err(shdr->TreeId, shdr->SessionId, in map_smb2_to_linux_error()
2487 le16_to_cpu(shdr->Command), in map_smb2_to_linux_error()
2488 le64_to_cpu(shdr->MessageId), le32_to_cpu(smb2err), rc); in map_smb2_to_linux_error()
Dsmb2proto.h41 struct smb2_sync_hdr *shdr);
Dcifsglob.h772 const struct smb2_sync_hdr *shdr) in revert_current_mid_from_hdr() argument
774 unsigned int num = le16_to_cpu(shdr->CreditCharge); in revert_current_mid_from_hdr()
Dconnect.c939 struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buffer; in smb2_add_credits_from_hdr() local
947 if (shdr->CreditRequest) { in smb2_add_credits_from_hdr()
949 server->credits += le16_to_cpu(shdr->CreditRequest); in smb2_add_credits_from_hdr()
/linux-4.19.296/drivers/bluetooth/
Dbtmtkuart.c278 struct mtk_stp_hdr *shdr; in mtk_stp_split() local
294 shdr = (struct mtk_stp_hdr *)&bdev->stp_pad[2]; in mtk_stp_split()
295 bdev->stp_dlen = be16_to_cpu(shdr->dlen) & 0x0fff; in mtk_stp_split()
298 if (shdr->prefix != 0x80 || bdev->stp_dlen > 2048) { in mtk_stp_split()
300 shdr->prefix, bdev->stp_dlen); in mtk_stp_split()
517 struct mtk_stp_hdr *shdr; in btmtkuart_send_frame() local
524 if (unlikely(skb_headroom(skb) < sizeof(*shdr)) || in btmtkuart_send_frame()
526 err = pskb_expand_head(skb, sizeof(*shdr), MTK_STP_TLR_SIZE, in btmtkuart_send_frame()
534 shdr = skb_push(skb, sizeof(*shdr)); in btmtkuart_send_frame()
535 shdr->prefix = 0x80; in btmtkuart_send_frame()
[all …]
/linux-4.19.296/drivers/cpufreq/
Dpmac64-cpufreq.c386 const struct smu_sdbp_header *shdr; in g5_neo2_cpufreq_init() local
389 shdr = smu_get_sdb_partition(SMU_SDB_FVT_ID, NULL); in g5_neo2_cpufreq_init()
390 if (!shdr) in g5_neo2_cpufreq_init()
392 g5_fvt_table = (struct smu_sdbp_fvt *)&shdr[1]; in g5_neo2_cpufreq_init()
393 ssize = (shdr->len * sizeof(u32)) - sizeof(*shdr); in g5_neo2_cpufreq_init()
/linux-4.19.296/fs/xfs/libxfs/
Dxfs_dir2_node.c893 struct xfs_dir3_icleaf_hdr *shdr, in xfs_dir3_leafn_moveents() argument
927 if (shdr->stale) { in xfs_dir3_leafn_moveents()
948 if (start_s + count < shdr->count) { in xfs_dir3_leafn_moveents()
957 shdr->count -= count; in xfs_dir3_leafn_moveents()
958 shdr->stale -= stale; in xfs_dir3_leafn_moveents()