Searched refs:rsp (Results 1 – 6 of 6) sorted by relevance
/fs/cifs/ |
D | smb2pdu.c | 327 struct smb2_negotiate_rsp *rsp; in SMB2_negotiate() local 377 rsp = (struct smb2_negotiate_rsp *)iov[0].iov_base; in SMB2_negotiate() 385 cifs_dbg(FYI, "mode 0x%x\n", rsp->SecurityMode); in SMB2_negotiate() 389 if (rsp->DialectRevision == cpu_to_le16(SMB20_PROT_ID)) in SMB2_negotiate() 391 else if (rsp->DialectRevision == cpu_to_le16(SMB21_PROT_ID)) in SMB2_negotiate() 393 else if (rsp->DialectRevision == cpu_to_le16(SMB30_PROT_ID)) in SMB2_negotiate() 395 else if (rsp->DialectRevision == cpu_to_le16(SMB302_PROT_ID)) in SMB2_negotiate() 399 le16_to_cpu(rsp->DialectRevision)); in SMB2_negotiate() 403 server->dialect = le16_to_cpu(rsp->DialectRevision); in SMB2_negotiate() 408 server->maxBuf = min_t(unsigned int, le32_to_cpu(rsp->MaxTransactSize), in SMB2_negotiate() [all …]
|
D | smb2misc.c | 437 smb2_tcon_has_lease(struct cifs_tcon *tcon, struct smb2_lease_break *rsp, in smb2_tcon_has_lease() argument 447 int ack_req = le32_to_cpu(rsp->Flags & in smb2_tcon_has_lease() 450 lease_state = le32_to_cpu(rsp->NewLeaseState); in smb2_tcon_has_lease() 456 if (memcmp(cinode->lease_key, rsp->LeaseKey, in smb2_tcon_has_lease() 462 le32_to_cpu(rsp->NewLeaseState)); in smb2_tcon_has_lease() 478 if (memcmp(open->lease_key, rsp->LeaseKey, in smb2_tcon_has_lease() 492 le32_to_cpu(rsp->NewLeaseState)); in smb2_tcon_has_lease() 502 struct smb2_lease_break *rsp = (struct smb2_lease_break *)buffer; in smb2_is_valid_lease_break() local 514 lw->lease_state = rsp->NewLeaseState; in smb2_is_valid_lease_break() 532 if (smb2_tcon_has_lease(tcon, rsp, lw)) { in smb2_is_valid_lease_break() [all …]
|
D | misc.c | 230 free_rsp_buf(int resp_buftype, void *rsp) in free_rsp_buf() argument 233 cifs_small_buf_release(rsp); in free_rsp_buf() 235 cifs_buf_release(rsp); in free_rsp_buf()
|
D | smb1ops.c | 85 READ_RSP *rsp = (READ_RSP *)buf; in cifs_read_data_offset() local 86 return le16_to_cpu(rsp->DataOffset); in cifs_read_data_offset() 92 READ_RSP *rsp = (READ_RSP *)buf; in cifs_read_data_length() local 93 return (le16_to_cpu(rsp->DataLengthHigh) << 16) + in cifs_read_data_length() 94 le16_to_cpu(rsp->DataLength); in cifs_read_data_length()
|
D | cifssmb.c | 451 struct lanman_neg_rsp *rsp = (struct lanman_neg_rsp *)pSMBr; in decode_lanman_negprot_rsp() local 456 server->sec_mode = le16_to_cpu(rsp->SecurityMode); in decode_lanman_negprot_rsp() 458 le16_to_cpu(rsp->MaxMpxCount), in decode_lanman_negprot_rsp() 461 server->maxBuf = le16_to_cpu(rsp->MaxBufSize); in decode_lanman_negprot_rsp() 464 if ((le16_to_cpu(rsp->RawMode) & RAW_ENABLE) == RAW_ENABLE) { in decode_lanman_negprot_rsp() 471 tmp = (__s16)le16_to_cpu(rsp->ServerTimeZone); in decode_lanman_negprot_rsp() 483 ts = cnvrtDosUnixTm(rsp->SrvTime.Date, in decode_lanman_negprot_rsp() 484 rsp->SrvTime.Time, 0); in decode_lanman_negprot_rsp() 507 if (rsp->EncryptionKeyLength == in decode_lanman_negprot_rsp() 509 memcpy(server->cryptkey, rsp->EncryptionKey, in decode_lanman_negprot_rsp() [all …]
|
D | smb2ops.c | 709 struct smb2_read_rsp *rsp = (struct smb2_read_rsp *)buf; in smb2_read_data_offset() local 710 return rsp->DataOffset; in smb2_read_data_offset() 716 struct smb2_read_rsp *rsp = (struct smb2_read_rsp *)buf; in smb2_read_data_length() local 717 return le32_to_cpu(rsp->DataLength); in smb2_read_data_length()
|