Searched refs:rsp (Results 1 – 8 of 8) sorted by relevance
/fs/cifs/ |
D | smb2pdu.c | 680 static int smb311_decode_neg_context(struct smb2_negotiate_rsp *rsp, in smb311_decode_neg_context() argument 685 unsigned int offset = le32_to_cpu(rsp->NegotiateContextOffset); in smb311_decode_neg_context() 686 unsigned int ctxt_cnt = le16_to_cpu(rsp->NegotiateContextCount); in smb311_decode_neg_context() 707 pctx = (struct smb2_neg_context *)(offset + (char *)rsp); in smb311_decode_neg_context() 818 struct smb2_negotiate_rsp *rsp; in SMB2_negotiate() local 896 rsp = (struct smb2_negotiate_rsp *)rsp_iov.iov_base; in SMB2_negotiate() 911 if (rsp->DialectRevision == cpu_to_le16(SMB20_PROT_ID)) { in SMB2_negotiate() 915 } else if (rsp->DialectRevision == cpu_to_le16(SMB21_PROT_ID)) { in SMB2_negotiate() 922 if (rsp->DialectRevision == cpu_to_le16(SMB20_PROT_ID)) { in SMB2_negotiate() 926 } else if (rsp->DialectRevision == cpu_to_le16(SMB21_PROT_ID)) { in SMB2_negotiate() [all …]
|
D | smb2misc.c | 526 smb2_tcon_has_lease(struct cifs_tcon *tcon, struct smb2_lease_break *rsp) in smb2_tcon_has_lease() argument 532 int ack_req = le32_to_cpu(rsp->Flags & in smb2_tcon_has_lease() 535 lease_state = le32_to_cpu(rsp->NewLeaseState); in smb2_tcon_has_lease() 541 if (memcmp(cinode->lease_key, rsp->LeaseKey, in smb2_tcon_has_lease() 556 cfile->oplock_epoch = le16_to_cpu(rsp->Epoch); in smb2_tcon_has_lease() 568 struct smb2_lease_break *rsp) in smb2_tcon_find_pending_open_lease() argument 570 __u8 lease_state = le32_to_cpu(rsp->NewLeaseState); in smb2_tcon_find_pending_open_lease() 571 int ack_req = le32_to_cpu(rsp->Flags & in smb2_tcon_find_pending_open_lease() 577 if (memcmp(open->lease_key, rsp->LeaseKey, in smb2_tcon_find_pending_open_lease() 598 struct smb2_lease_break *rsp = (struct smb2_lease_break *)buffer; in smb2_is_valid_lease_break() local [all …]
|
D | misc.c | 232 free_rsp_buf(int resp_buftype, void *rsp) in free_rsp_buf() argument 235 cifs_small_buf_release(rsp); in free_rsp_buf() 237 cifs_buf_release(rsp); in free_rsp_buf() 681 parse_dfs_referrals(struct get_dfs_referral_rsp *rsp, u32 rsp_size, in parse_dfs_referrals() argument 691 *num_of_nodes = le16_to_cpu(rsp->NumberOfReferrals); in parse_dfs_referrals() 700 ref = (struct dfs_referral_level_3 *) &(rsp->referrals); in parse_dfs_referrals() 709 data_end = (char *)rsp + rsp_size; in parse_dfs_referrals() 712 *num_of_nodes, le32_to_cpu(rsp->DFSFlags)); in parse_dfs_referrals() 727 node->flags = le32_to_cpu(rsp->DFSFlags); in parse_dfs_referrals() 738 le16_to_cpu(rsp->PathConsumed), in parse_dfs_referrals() [all …]
|
D | smb2ops.c | 1047 struct smb2_query_info_rsp *rsp; in smb2_query_eas() local 1073 rsp = (struct smb2_query_info_rsp *)rsp_iov.iov_base; in smb2_query_eas() 1074 rc = smb2_validate_iov(le16_to_cpu(rsp->OutputBufferOffset), in smb2_query_eas() 1075 le32_to_cpu(rsp->OutputBufferLength), in smb2_query_eas() 1082 le16_to_cpu(rsp->OutputBufferOffset) + (char *)rsp); in smb2_query_eas() 1084 le32_to_cpu(rsp->OutputBufferLength), ea_name); in smb2_query_eas() 1116 struct smb2_query_info_rsp *rsp; in smb2_set_ea() local 1155 rsp = (struct smb2_query_info_rsp *)rsp_iov[1].iov_base; in smb2_set_ea() 1156 used_len = le32_to_cpu(rsp->OutputBufferLength); in smb2_set_ea() 1782 struct smb2_read_rsp *rsp = (struct smb2_read_rsp *)buf; in smb2_read_data_offset() local [all …]
|
D | smb1ops.c | 73 READ_RSP *rsp = (READ_RSP *)buf; in cifs_read_data_offset() local 74 return le16_to_cpu(rsp->DataOffset); in cifs_read_data_offset() 80 READ_RSP *rsp = (READ_RSP *)buf; in cifs_read_data_length() local 83 return (le16_to_cpu(rsp->DataLengthHigh) << 16) + in cifs_read_data_length() 84 le16_to_cpu(rsp->DataLength); in cifs_read_data_length()
|
D | smb2proto.h | 242 struct smb2_create_rsp *rsp, 262 struct kvec *rsp, int *buftype,
|
D | cifssmb.c | 572 struct lanman_neg_rsp *rsp = (struct lanman_neg_rsp *)pSMBr; in decode_lanman_negprot_rsp() local 577 server->sec_mode = le16_to_cpu(rsp->SecurityMode); in decode_lanman_negprot_rsp() 579 le16_to_cpu(rsp->MaxMpxCount), in decode_lanman_negprot_rsp() 582 server->maxBuf = le16_to_cpu(rsp->MaxBufSize); in decode_lanman_negprot_rsp() 585 if ((le16_to_cpu(rsp->RawMode) & RAW_ENABLE) == RAW_ENABLE) { in decode_lanman_negprot_rsp() 592 tmp = (__s16)le16_to_cpu(rsp->ServerTimeZone); in decode_lanman_negprot_rsp() 604 ts = cnvrtDosUnixTm(rsp->SrvTime.Date, in decode_lanman_negprot_rsp() 605 rsp->SrvTime.Time, 0); in decode_lanman_negprot_rsp() 628 if (rsp->EncryptionKeyLength == in decode_lanman_negprot_rsp() 630 memcpy(server->cryptkey, rsp->EncryptionKey, in decode_lanman_negprot_rsp() [all …]
|
D | cifsproto.h | 311 extern int parse_dfs_referrals(struct get_dfs_referral_rsp *rsp, u32 rsp_size,
|