Lines Matching refs:pSMBr

342 decode_ext_sec_blob(struct cifs_ses *ses, NEGOTIATE_RSP *pSMBr)  in decode_ext_sec_blob()  argument
346 char *guid = pSMBr->u.extended_response.GUID; in decode_ext_sec_blob()
349 count = get_bcc(&pSMBr->hdr); in decode_ext_sec_blob()
370 pSMBr->u.extended_response.SecurityBlob, count, server); in decode_ext_sec_blob()
401 NEGOTIATE_RSP *pSMBr; in CIFSSMBNegotiate() local
413 (void **) &pSMB, (void **) &pSMBr); in CIFSSMBNegotiate()
440 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBNegotiate()
444 server->dialect = le16_to_cpu(pSMBr->DialectIndex); in CIFSSMBNegotiate()
447 if ((pSMBr->hdr.WordCount <= 13) || (server->dialect == BAD_PROT)) { in CIFSSMBNegotiate()
453 } else if (pSMBr->hdr.WordCount != 17) { in CIFSSMBNegotiate()
460 server->sec_mode = pSMBr->SecurityMode; in CIFSSMBNegotiate()
466 server->maxReq = min_t(unsigned int, le16_to_cpu(pSMBr->MaxMpxCount), in CIFSSMBNegotiate()
470 server->maxBuf = le32_to_cpu(pSMBr->MaxBufferSize); in CIFSSMBNegotiate()
473 server->max_rw = le32_to_cpu(pSMBr->MaxRawSize); in CIFSSMBNegotiate()
475 server->capabilities = le32_to_cpu(pSMBr->Capabilities); in CIFSSMBNegotiate()
476 server->timeAdj = (int)(__s16)le16_to_cpu(pSMBr->ServerTimeZone); in CIFSSMBNegotiate()
479 if (pSMBr->EncryptionKeyLength == CIFS_CRYPTO_KEY_SIZE) { in CIFSSMBNegotiate()
481 memcpy(ses->server->cryptkey, pSMBr->u.EncryptionKey, in CIFSSMBNegotiate()
483 } else if (pSMBr->hdr.Flags2 & SMBFLG2_EXT_SEC || in CIFSSMBNegotiate()
486 rc = decode_ext_sec_blob(ses, pSMBr); in CIFSSMBNegotiate()
662 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSPOSIXDelFile() local
672 (void **) &pSMBr); in CIFSPOSIXDelFile()
720 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSPOSIXDelFile()
738 DELETE_FILE_RSP *pSMBr = NULL; in CIFSSMBDelFile() local
746 (void **) &pSMBr); in CIFSSMBDelFile()
765 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBDelFile()
782 DELETE_DIRECTORY_RSP *pSMBr = NULL; in CIFSSMBRmDir() local
791 (void **) &pSMBr); in CIFSSMBRmDir()
809 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBRmDir()
827 CREATE_DIRECTORY_RSP *pSMBr = NULL; in CIFSSMBMkDir() local
835 (void **) &pSMBr); in CIFSSMBMkDir()
853 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBMkDir()
872 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSPOSIXCreate() local
883 (void **) &pSMBr); in CIFSPOSIXCreate()
931 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSPOSIXCreate()
938 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSPOSIXCreate()
940 if (rc || get_bcc(&pSMBr->hdr) < sizeof(OPEN_PSX_RSP)) { in CIFSPOSIXCreate()
946 psx_rsp = (OPEN_PSX_RSP *)((char *) &pSMBr->hdr.Protocol in CIFSPOSIXCreate()
947 + le16_to_cpu(pSMBr->t2.DataOffset)); in CIFSPOSIXCreate()
961 if (get_bcc(&pSMBr->hdr) < sizeof(OPEN_PSX_RSP) in CIFSPOSIXCreate()
1039 OPENX_RSP *pSMBr = NULL; in SMBLegacyOpen() local
1046 (void **) &pSMBr); in SMBLegacyOpen()
1095 (struct smb_hdr *)pSMBr, &bytes_returned, 0); in SMBLegacyOpen()
1104 *netfid = pSMBr->Fid; /* cifs fid stays in le */ in SMBLegacyOpen()
1118 cpu_to_le32(le16_to_cpu(pSMBr->FileAttributes)); in SMBLegacyOpen()
1121 cpu_to_le64(le32_to_cpu(pSMBr->EndOfFile)); in SMBLegacyOpen()
1378 READ_RSP *pSMBr = NULL; in CIFSSMBRead() local
1437 pSMBr = (READ_RSP *)rsp_iov.iov_base; in CIFSSMBRead()
1441 int data_length = le16_to_cpu(pSMBr->DataLengthHigh); in CIFSSMBRead()
1443 data_length += le16_to_cpu(pSMBr->DataLength); in CIFSSMBRead()
1454 pReadData = (char *) (&pSMBr->hdr.Protocol) + in CIFSSMBRead()
1455 le16_to_cpu(pSMBr->DataOffset); in CIFSSMBRead()
1488 WRITE_RSP *pSMBr = NULL; in CIFSSMBWrite() local
1515 (void **) &pSMBr); in CIFSSMBWrite()
1577 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBWrite()
1582 *nbytes = le16_to_cpu(pSMBr->CountHigh); in CIFSSMBWrite()
1584 *nbytes += le16_to_cpu(pSMBr->Count); in CIFSSMBWrite()
1820 WRITE_RSP *pSMBr = (WRITE_RSP *)rsp_iov.iov_base; in CIFSSMBWrite2() local
1821 *nbytes = le16_to_cpu(pSMBr->CountHigh); in CIFSSMBWrite2()
1823 *nbytes += le16_to_cpu(pSMBr->Count); in CIFSSMBWrite2()
1964 struct smb_com_transaction2_sfi_rsp *pSMBr = NULL; in CIFSSMBPosixLock() local
1981 pSMBr = (struct smb_com_transaction2_sfi_rsp *)pSMB; in CIFSSMBPosixLock()
2030 (struct smb_hdr *) pSMBr, &bytes_returned); in CIFSSMBPosixLock()
2036 pSMBr = (struct smb_com_transaction2_sfi_rsp *)rsp_iov.iov_base; in CIFSSMBPosixLock()
2046 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBPosixLock()
2048 if (rc || get_bcc(&pSMBr->hdr) < sizeof(*parm_data)) { in CIFSSMBPosixLock()
2052 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBPosixLock()
2053 data_count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSSMBPosixLock()
2059 ((char *)&pSMBr->hdr.Protocol + data_offset); in CIFSSMBPosixLock()
2151 RENAME_RSP *pSMBr = NULL; in CIFSSMBRename() local
2160 (void **) &pSMBr); in CIFSSMBRename()
2196 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBRename()
2214 struct smb_com_transaction2_sfi_rsp *pSMBr = NULL; in CIFSSMBRenameOpenFile() local
2225 (void **) &pSMBr); in CIFSSMBRenameOpenFile()
2278 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBRenameOpenFile()
2299 COPY_RSP *pSMBr = NULL; in CIFSSMBCopy() local
2307 (void **) &pSMBr); in CIFSSMBCopy()
2342 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBCopy()
2345 rc, le16_to_cpu(pSMBr->CopyCount)); in CIFSSMBCopy()
2361 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSUnixCreateSymLink() local
2372 (void **) &pSMBr); in CIFSUnixCreateSymLink()
2428 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSUnixCreateSymLink()
2448 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSUnixCreateHardLink() local
2459 (void **) &pSMBr); in CIFSUnixCreateHardLink()
2512 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSUnixCreateHardLink()
2532 RENAME_RSP *pSMBr = NULL; in CIFSCreateHardLink() local
2542 (void **) &pSMBr); in CIFSCreateHardLink()
2582 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSCreateHardLink()
2601 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBUnixQuerySymLink() local
2612 (void **) &pSMBr); in CIFSSMBUnixQuerySymLink()
2652 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBUnixQuerySymLink()
2658 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBUnixQuerySymLink()
2660 if (rc || get_bcc(&pSMBr->hdr) < 2) in CIFSSMBUnixQuerySymLink()
2664 u16 count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSSMBUnixQuerySymLink()
2666 data_start = ((char *) &pSMBr->hdr.Protocol) + in CIFSSMBUnixQuerySymLink()
2667 le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBUnixQuerySymLink()
2669 if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) in CIFSSMBUnixQuerySymLink()
2705 struct smb_com_transaction_ioctl_rsp *pSMBr; in CIFSSMBQuerySymLink() local
2716 (void **) &pSMBr); in CIFSSMBQuerySymLink()
2740 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQuerySymLink()
2746 data_offset = le32_to_cpu(pSMBr->DataOffset); in CIFSSMBQuerySymLink()
2747 data_count = le32_to_cpu(pSMBr->DataCount); in CIFSSMBQuerySymLink()
2748 if (get_bcc(&pSMBr->hdr) < 2 || data_offset > 512) { in CIFSSMBQuerySymLink()
2758 end_of_smb = 2 + get_bcc(&pSMBr->hdr) + (char *)&pSMBr->ByteCount; in CIFSSMBQuerySymLink()
2760 ((char *)&pSMBr->hdr.Protocol + data_offset); in CIFSSMBQuerySymLink()
2800 if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) in CIFSSMBQuerySymLink()
2827 struct smb_com_transaction_ioctl_rsp *pSMBr; in CIFSSMB_set_compression() local
2831 (void **) &pSMBr); in CIFSSMB_set_compression()
2860 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMB_set_compression()
3056 TRANSACTION2_QPI_RSP *pSMBr = NULL; in cifs_do_get_acl() local
3066 (void **) &pSMBr); in cifs_do_get_acl()
3110 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in cifs_do_get_acl()
3117 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in cifs_do_get_acl()
3119 if (rc || get_bcc(&pSMBr->hdr) < 2) in cifs_do_get_acl()
3122 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in cifs_do_get_acl()
3123 __u16 count = le16_to_cpu(pSMBr->t2.DataCount); in cifs_do_get_acl()
3125 (char *)&pSMBr->hdr.Protocol+data_offset, in cifs_do_get_acl()
3146 struct smb_com_transaction2_spi_rsp *pSMBr = NULL; in cifs_do_set_acl() local
3156 (void **) &pSMBr); in cifs_do_set_acl()
3204 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in cifs_do_set_acl()
3238 struct smb_t2_qfi_rsp *pSMBr = NULL; in CIFSGetExtAttr() local
3248 (void **) &pSMBr); in CIFSGetExtAttr()
3279 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSGetExtAttr()
3284 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSGetExtAttr()
3286 if (rc || get_bcc(&pSMBr->hdr) < 2) in CIFSGetExtAttr()
3291 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSGetExtAttr()
3292 __u16 count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSGetExtAttr()
3301 (data_offset + (char *) &pSMBr->hdr.Protocol); in CIFSGetExtAttr()
3358 struct smb_com_ntransact_rsp *pSMBr; in validate_ntransact() local
3367 pSMBr = (struct smb_com_ntransact_rsp *)buf; in validate_ntransact()
3369 bcc = get_bcc(&pSMBr->hdr); in validate_ntransact()
3371 (char *)&pSMBr->ByteCount; in validate_ntransact()
3373 data_offset = le32_to_cpu(pSMBr->DataOffset); in validate_ntransact()
3374 data_count = le32_to_cpu(pSMBr->DataCount); in validate_ntransact()
3375 parm_offset = le32_to_cpu(pSMBr->ParameterOffset); in validate_ntransact()
3376 parm_count = le32_to_cpu(pSMBr->ParameterCount); in validate_ntransact()
3378 *ppparm = (char *)&pSMBr->hdr.Protocol + parm_offset; in validate_ntransact()
3379 *ppdata = (char *)&pSMBr->hdr.Protocol + data_offset; in validate_ntransact()
3394 end_of_smb, pSMBr); in validate_ntransact()
3447 struct smb_com_ntransact_rsp *pSMBr; in CIFSSMBGetCIFSACL() local
3455 pSMBr = (struct smb_com_ntransact_rsp *)rsp_iov.iov_base; in CIFSSMBGetCIFSACL()
3458 pSMBr, parm, *acl_inf); in CIFSSMBGetCIFSACL()
3460 if (le32_to_cpu(pSMBr->ParameterCount) != 4) { in CIFSSMBGetCIFSACL()
3504 void *pSMBr; in CIFSSMBSetCIFSACL() local
3507 rc = smb_init(SMB_COM_NT_TRANSACT, 19, tcon, (void **) &pSMB, &pSMBr); in CIFSSMBSetCIFSACL()
3537 memcpy((char *)pSMBr + offsetof(struct smb_hdr, Protocol) + in CIFSSMBSetCIFSACL()
3544 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetCIFSACL()
3567 QUERY_INFORMATION_RSP *pSMBr; in SMBQueryInformation() local
3575 (void **) &pSMBr); in SMBQueryInformation()
3595 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in SMBQueryInformation()
3600 __u32 time = le32_to_cpu(pSMBr->last_write_time); in SMBQueryInformation()
3612 cpu_to_le64(le32_to_cpu(pSMBr->size)); in SMBQueryInformation()
3615 cpu_to_le32(le16_to_cpu(pSMBr->attr)); in SMBQueryInformation()
3632 struct smb_t2_qfi_rsp *pSMBr = NULL; in CIFSSMBQFileInfo() local
3639 (void **) &pSMBr); in CIFSSMBQFileInfo()
3670 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFileInfo()
3674 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFileInfo()
3678 else if (get_bcc(&pSMBr->hdr) < 40) in CIFSSMBQFileInfo()
3681 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFileInfo()
3683 (char *) &pSMBr->hdr.Protocol + in CIFSSMBQFileInfo()
3703 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBQPathInfo() local
3712 (void **) &pSMBr); in CIFSSMBQPathInfo()
3755 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQPathInfo()
3759 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQPathInfo()
3763 else if (!legacy && get_bcc(&pSMBr->hdr) < 40) in CIFSSMBQPathInfo()
3765 else if (legacy && get_bcc(&pSMBr->hdr) < 24) in CIFSSMBQPathInfo()
3770 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQPathInfo()
3782 memcpy((char *) data, (char *) &pSMBr->hdr.Protocol + in CIFSSMBQPathInfo()
3799 struct smb_t2_qfi_rsp *pSMBr = NULL; in CIFSSMBUnixQFileInfo() local
3806 (void **) &pSMBr); in CIFSSMBUnixQFileInfo()
3837 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBUnixQFileInfo()
3841 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBUnixQFileInfo()
3843 if (rc || get_bcc(&pSMBr->hdr) < sizeof(FILE_UNIX_BASIC_INFO)) { in CIFSSMBUnixQFileInfo()
3847 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBUnixQFileInfo()
3849 (char *) &pSMBr->hdr.Protocol + in CIFSSMBUnixQFileInfo()
3870 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBUnixQPathInfo() local
3879 (void **) &pSMBr); in CIFSSMBUnixQPathInfo()
3919 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBUnixQPathInfo()
3923 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBUnixQPathInfo()
3925 if (rc || get_bcc(&pSMBr->hdr) < sizeof(FILE_UNIX_BASIC_INFO)) { in CIFSSMBUnixQPathInfo()
3929 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBUnixQPathInfo()
3931 (char *) &pSMBr->hdr.Protocol + in CIFSSMBUnixQPathInfo()
3952 TRANSACTION2_FFIRST_RSP *pSMBr = NULL; in CIFSFindFirst() local
3964 (void **) &pSMBr); in CIFSFindFirst()
4036 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSFindFirst()
4052 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSFindFirst()
4056 if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) in CIFSFindFirst()
4061 psrch_inf->ntwrk_buf_start = (char *)pSMBr; in CIFSFindFirst()
4064 (char *) &pSMBr->hdr.Protocol + in CIFSFindFirst()
4065 le16_to_cpu(pSMBr->t2.DataOffset); in CIFSFindFirst()
4066 parms = (T2_FFIRST_RSP_PARMS *)((char *) &pSMBr->hdr.Protocol + in CIFSFindFirst()
4067 le16_to_cpu(pSMBr->t2.ParameterOffset)); in CIFSFindFirst()
4103 TRANSACTION2_FNEXT_RSP *pSMBr = NULL; in CIFSFindNext() local
4117 (void **) &pSMBr); in CIFSFindNext()
4164 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSFindNext()
4174 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSFindNext()
4180 if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) in CIFSFindNext()
4184 response_data = (char *) &pSMBr->hdr.Protocol + in CIFSFindNext()
4185 le16_to_cpu(pSMBr->t2.ParameterOffset); in CIFSFindNext()
4187 response_data = (char *)&pSMBr->hdr.Protocol + in CIFSFindNext()
4188 le16_to_cpu(pSMBr->t2.DataOffset); in CIFSFindNext()
4273 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSGetSrvInodeNumber() local
4283 (void **) &pSMBr); in CIFSGetSrvInodeNumber()
4324 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSGetSrvInodeNumber()
4329 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSGetSrvInodeNumber()
4331 if (rc || get_bcc(&pSMBr->hdr) < 2) in CIFSGetSrvInodeNumber()
4336 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSGetSrvInodeNumber()
4337 __u16 count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSGetSrvInodeNumber()
4346 (data_offset + (char *) &pSMBr->hdr.Protocol); in CIFSGetSrvInodeNumber()
4365 TRANSACTION2_GET_DFS_REFER_RSP *pSMBr = NULL; in CIFSGetDFSRefer() local
4379 (void **) &pSMBr); in CIFSGetDFSRefer()
4435 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSGetDFSRefer()
4440 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSGetDFSRefer()
4443 if (rc || get_bcc(&pSMBr->hdr) < 17) { in CIFSGetDFSRefer()
4449 get_bcc(&pSMBr->hdr), le16_to_cpu(pSMBr->t2.DataOffset)); in CIFSGetDFSRefer()
4452 rc = parse_dfs_referrals(&pSMBr->dfs_data, in CIFSGetDFSRefer()
4453 le16_to_cpu(pSMBr->t2.DataCount), in CIFSGetDFSRefer()
4456 (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) != 0); in CIFSGetDFSRefer()
4474 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in SMBOldQFSInfo() local
4483 (void **) &pSMBr); in SMBOldQFSInfo()
4511 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in SMBOldQFSInfo()
4515 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in SMBOldQFSInfo()
4517 if (rc || get_bcc(&pSMBr->hdr) < 18) in SMBOldQFSInfo()
4520 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in SMBOldQFSInfo()
4522 get_bcc(&pSMBr->hdr), data_offset); in SMBOldQFSInfo()
4525 (((char *) &pSMBr->hdr.Protocol) + data_offset); in SMBOldQFSInfo()
4561 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSInfo() local
4570 (void **) &pSMBr); in CIFSSMBQFSInfo()
4598 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSInfo()
4602 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSInfo()
4604 if (rc || get_bcc(&pSMBr->hdr) < 24) in CIFSSMBQFSInfo()
4607 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSInfo()
4611 *) (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSInfo()
4647 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSAttributeInfo() local
4656 (void **) &pSMBr); in CIFSSMBQFSAttributeInfo()
4685 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSAttributeInfo()
4689 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSAttributeInfo()
4691 if (rc || get_bcc(&pSMBr->hdr) < 13) { in CIFSSMBQFSAttributeInfo()
4695 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSAttributeInfo()
4698 *) (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSAttributeInfo()
4717 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSDeviceInfo() local
4726 (void **) &pSMBr); in CIFSSMBQFSDeviceInfo()
4756 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSDeviceInfo()
4760 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSDeviceInfo()
4762 if (rc || get_bcc(&pSMBr->hdr) < in CIFSSMBQFSDeviceInfo()
4766 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSDeviceInfo()
4769 (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSDeviceInfo()
4788 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSUnixInfo() local
4797 (void **) &pSMB, (void **) &pSMBr); in CIFSSMBQFSUnixInfo()
4826 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSUnixInfo()
4830 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSUnixInfo()
4832 if (rc || get_bcc(&pSMBr->hdr) < 13) { in CIFSSMBQFSUnixInfo()
4835 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSUnixInfo()
4838 *) (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSUnixInfo()
4858 TRANSACTION2_SETFSI_RSP *pSMBr = NULL; in CIFSSMBSetFSUnixInfo() local
4867 (void **) &pSMB, (void **) &pSMBr); in CIFSSMBSetFSUnixInfo()
4909 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetFSUnixInfo()
4913 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBSetFSUnixInfo()
4933 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSPosixInfo() local
4942 (void **) &pSMBr); in CIFSSMBQFSPosixInfo()
4971 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSPosixInfo()
4975 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSPosixInfo()
4977 if (rc || get_bcc(&pSMBr->hdr) < 13) { in CIFSSMBQFSPosixInfo()
4980 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSPosixInfo()
4983 *) (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSPosixInfo()
5033 struct smb_com_transaction2_spi_rsp *pSMBr = NULL; in CIFSSMBSetEOF() local
5045 (void **) &pSMBr); in CIFSSMBSetEOF()
5104 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetEOF()
5362 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSSMBSetPathInfo() local
5374 (void **) &pSMBr); in CIFSSMBSetPathInfo()
5422 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetPathInfo()
5558 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSSMBUnixSetPathInfo() local
5568 (void **) &pSMBr); in CIFSSMBUnixSetPathInfo()
5616 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBUnixSetPathInfo()
5644 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBQAllEAs() local
5660 (void **) &pSMBr); in CIFSSMBQAllEAs()
5700 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQAllEAs()
5711 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQAllEAs()
5712 if (rc || get_bcc(&pSMBr->hdr) < 4) { in CIFSSMBQAllEAs()
5725 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQAllEAs()
5727 (((char *) &pSMBr->hdr.Protocol) + data_offset); in CIFSSMBQAllEAs()
5740 end_of_smb = (char *)pByteArea(&pSMBr->hdr) + get_bcc(&pSMBr->hdr); in CIFSSMBQAllEAs()
5829 struct smb_com_transaction2_spi_rsp *pSMBr = NULL; in CIFSSMBSetEA() local
5840 (void **) &pSMBr); in CIFSSMBSetEA()
5913 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetEA()