Lines Matching refs:pSMBr

394 decode_ext_sec_blob(struct cifs_ses *ses, NEGOTIATE_RSP *pSMBr)  in decode_ext_sec_blob()  argument
398 char *guid = pSMBr->u.extended_response.GUID; in decode_ext_sec_blob()
401 count = get_bcc(&pSMBr->hdr); in decode_ext_sec_blob()
422 pSMBr->u.extended_response.SecurityBlob, count, server); in decode_ext_sec_blob()
478 decode_lanman_negprot_rsp(struct TCP_Server_Info *server, NEGOTIATE_RSP *pSMBr) in decode_lanman_negprot_rsp() argument
481 struct lanman_neg_rsp *rsp = (struct lanman_neg_rsp *)pSMBr; in decode_lanman_negprot_rsp()
550 decode_lanman_negprot_rsp(struct TCP_Server_Info *server, NEGOTIATE_RSP *pSMBr) in decode_lanman_negprot_rsp() argument
578 NEGOTIATE_RSP *pSMBr; in CIFSSMBNegotiate() local
591 (void **) &pSMB, (void **) &pSMBr); in CIFSSMBNegotiate()
618 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBNegotiate()
622 server->dialect = le16_to_cpu(pSMBr->DialectIndex); in CIFSSMBNegotiate()
625 if ((pSMBr->hdr.WordCount < 13) || (server->dialect == BAD_PROT)) { in CIFSSMBNegotiate()
631 } else if (pSMBr->hdr.WordCount == 13) { in CIFSSMBNegotiate()
633 rc = decode_lanman_negprot_rsp(server, pSMBr); in CIFSSMBNegotiate()
635 } else if (pSMBr->hdr.WordCount != 17) { in CIFSSMBNegotiate()
642 server->sec_mode = pSMBr->SecurityMode; in CIFSSMBNegotiate()
648 server->maxReq = min_t(unsigned int, le16_to_cpu(pSMBr->MaxMpxCount), in CIFSSMBNegotiate()
652 server->maxBuf = le32_to_cpu(pSMBr->MaxBufferSize); in CIFSSMBNegotiate()
653 server->max_rw = le32_to_cpu(pSMBr->MaxRawSize); in CIFSSMBNegotiate()
655 server->capabilities = le32_to_cpu(pSMBr->Capabilities); in CIFSSMBNegotiate()
656 server->timeAdj = (int)(__s16)le16_to_cpu(pSMBr->ServerTimeZone); in CIFSSMBNegotiate()
659 if (pSMBr->EncryptionKeyLength == CIFS_CRYPTO_KEY_SIZE) { in CIFSSMBNegotiate()
661 memcpy(ses->server->cryptkey, pSMBr->u.EncryptionKey, in CIFSSMBNegotiate()
663 } else if (pSMBr->hdr.Flags2 & SMBFLG2_EXT_SEC || in CIFSSMBNegotiate()
666 rc = decode_ext_sec_blob(ses, pSMBr); in CIFSSMBNegotiate()
833 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSPOSIXDelFile() local
843 (void **) &pSMBr); in CIFSPOSIXDelFile()
890 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSPOSIXDelFile()
908 DELETE_FILE_RSP *pSMBr = NULL; in CIFSSMBDelFile() local
916 (void **) &pSMBr); in CIFSSMBDelFile()
937 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBDelFile()
954 DELETE_DIRECTORY_RSP *pSMBr = NULL; in CIFSSMBRmDir() local
963 (void **) &pSMBr); in CIFSSMBRmDir()
983 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBRmDir()
1000 CREATE_DIRECTORY_RSP *pSMBr = NULL; in CIFSSMBMkDir() local
1008 (void **) &pSMBr); in CIFSSMBMkDir()
1028 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBMkDir()
1047 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSPOSIXCreate() local
1058 (void **) &pSMBr); in CIFSPOSIXCreate()
1107 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSPOSIXCreate()
1114 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSPOSIXCreate()
1116 if (rc || get_bcc(&pSMBr->hdr) < sizeof(OPEN_PSX_RSP)) { in CIFSPOSIXCreate()
1122 psx_rsp = (OPEN_PSX_RSP *)((char *) &pSMBr->hdr.Protocol in CIFSPOSIXCreate()
1123 + le16_to_cpu(pSMBr->t2.DataOffset)); in CIFSPOSIXCreate()
1137 if (get_bcc(&pSMBr->hdr) < sizeof(OPEN_PSX_RSP) in CIFSPOSIXCreate()
1215 OPENX_RSP *pSMBr = NULL; in SMBLegacyOpen() local
1222 (void **) &pSMBr); in SMBLegacyOpen()
1273 (struct smb_hdr *)pSMBr, &bytes_returned, 0); in SMBLegacyOpen()
1282 *netfid = pSMBr->Fid; /* cifs fid stays in le */ in SMBLegacyOpen()
1296 cpu_to_le32(le16_to_cpu(pSMBr->FileAttributes)); in SMBLegacyOpen()
1299 cpu_to_le64(le32_to_cpu(pSMBr->EndOfFile)); in SMBLegacyOpen()
1726 READ_RSP *pSMBr = NULL; in CIFSSMBRead() local
1785 pSMBr = (READ_RSP *)rsp_iov.iov_base; in CIFSSMBRead()
1789 int data_length = le16_to_cpu(pSMBr->DataLengthHigh); in CIFSSMBRead()
1791 data_length += le16_to_cpu(pSMBr->DataLength); in CIFSSMBRead()
1802 pReadData = (char *) (&pSMBr->hdr.Protocol) + in CIFSSMBRead()
1803 le16_to_cpu(pSMBr->DataOffset); in CIFSSMBRead()
1836 WRITE_RSP *pSMBr = NULL; in CIFSSMBWrite() local
1863 (void **) &pSMBr); in CIFSSMBWrite()
1925 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBWrite()
1930 *nbytes = le16_to_cpu(pSMBr->CountHigh); in CIFSSMBWrite()
1932 *nbytes += le16_to_cpu(pSMBr->Count); in CIFSSMBWrite()
2332 WRITE_RSP *pSMBr = (WRITE_RSP *)rsp_iov.iov_base; in CIFSSMBWrite2() local
2333 *nbytes = le16_to_cpu(pSMBr->CountHigh); in CIFSSMBWrite2()
2335 *nbytes += le16_to_cpu(pSMBr->Count); in CIFSSMBWrite2()
2476 struct smb_com_transaction2_sfi_rsp *pSMBr = NULL; in CIFSSMBPosixLock() local
2493 pSMBr = (struct smb_com_transaction2_sfi_rsp *)pSMB; in CIFSSMBPosixLock()
2541 (struct smb_hdr *) pSMBr, &bytes_returned); in CIFSSMBPosixLock()
2547 pSMBr = (struct smb_com_transaction2_sfi_rsp *)rsp_iov.iov_base; in CIFSSMBPosixLock()
2557 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBPosixLock()
2559 if (rc || get_bcc(&pSMBr->hdr) < sizeof(*parm_data)) { in CIFSSMBPosixLock()
2563 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBPosixLock()
2564 data_count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSSMBPosixLock()
2570 ((char *)&pSMBr->hdr.Protocol + data_offset); in CIFSSMBPosixLock()
2661 RENAME_RSP *pSMBr = NULL; in CIFSSMBRename() local
2670 (void **) &pSMBr); in CIFSSMBRename()
2711 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBRename()
2729 struct smb_com_transaction2_sfi_rsp *pSMBr = NULL; in CIFSSMBRenameOpenFile() local
2740 (void **) &pSMBr); in CIFSSMBRenameOpenFile()
2792 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBRenameOpenFile()
2813 COPY_RSP *pSMBr = NULL; in CIFSSMBCopy() local
2821 (void **) &pSMBr); in CIFSSMBCopy()
2861 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBCopy()
2864 rc, le16_to_cpu(pSMBr->CopyCount)); in CIFSSMBCopy()
2880 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSUnixCreateSymLink() local
2891 (void **) &pSMBr); in CIFSUnixCreateSymLink()
2950 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSUnixCreateSymLink()
2970 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSUnixCreateHardLink() local
2981 (void **) &pSMBr); in CIFSUnixCreateHardLink()
3037 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSUnixCreateHardLink()
3057 RENAME_RSP *pSMBr = NULL; in CIFSCreateHardLink() local
3067 (void **) &pSMBr); in CIFSCreateHardLink()
3112 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSCreateHardLink()
3131 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBUnixQuerySymLink() local
3142 (void **) &pSMBr); in CIFSSMBUnixQuerySymLink()
3184 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBUnixQuerySymLink()
3190 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBUnixQuerySymLink()
3192 if (rc || get_bcc(&pSMBr->hdr) < 2) in CIFSSMBUnixQuerySymLink()
3196 u16 count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSSMBUnixQuerySymLink()
3198 data_start = ((char *) &pSMBr->hdr.Protocol) + in CIFSSMBUnixQuerySymLink()
3199 le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBUnixQuerySymLink()
3201 if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) in CIFSSMBUnixQuerySymLink()
3237 struct smb_com_transaction_ioctl_rsp *pSMBr; in CIFSSMBQuerySymLink() local
3248 (void **) &pSMBr); in CIFSSMBQuerySymLink()
3272 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQuerySymLink()
3278 data_offset = le32_to_cpu(pSMBr->DataOffset); in CIFSSMBQuerySymLink()
3279 data_count = le32_to_cpu(pSMBr->DataCount); in CIFSSMBQuerySymLink()
3280 if (get_bcc(&pSMBr->hdr) < 2 || data_offset > 512) { in CIFSSMBQuerySymLink()
3290 end_of_smb = 2 + get_bcc(&pSMBr->hdr) + (char *)&pSMBr->ByteCount; in CIFSSMBQuerySymLink()
3292 ((char *)&pSMBr->hdr.Protocol + data_offset); in CIFSSMBQuerySymLink()
3332 if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) in CIFSSMBQuerySymLink()
3359 struct smb_com_transaction_ioctl_rsp *pSMBr; in CIFSSMB_set_compression() local
3363 (void **) &pSMBr); in CIFSSMB_set_compression()
3392 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMB_set_compression()
3558 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBGetPosixACL() local
3568 (void **) &pSMBr); in CIFSSMBGetPosixACL()
3614 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBGetPosixACL()
3621 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBGetPosixACL()
3623 if (rc || get_bcc(&pSMBr->hdr) < 2) in CIFSSMBGetPosixACL()
3626 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBGetPosixACL()
3627 __u16 count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSSMBGetPosixACL()
3629 (char *)&pSMBr->hdr.Protocol+data_offset, in CIFSSMBGetPosixACL()
3647 struct smb_com_transaction2_spi_rsp *pSMBr = NULL; in CIFSSMBSetPosixACL() local
3657 (void **) &pSMBr); in CIFSSMBSetPosixACL()
3707 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetPosixACL()
3725 struct smb_t2_qfi_rsp *pSMBr = NULL; in CIFSGetExtAttr() local
3735 (void **) &pSMBr); in CIFSGetExtAttr()
3766 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSGetExtAttr()
3771 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSGetExtAttr()
3773 if (rc || get_bcc(&pSMBr->hdr) < 2) in CIFSGetExtAttr()
3778 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSGetExtAttr()
3779 __u16 count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSGetExtAttr()
3788 (data_offset + (char *) &pSMBr->hdr.Protocol); in CIFSGetExtAttr()
3846 struct smb_com_ntransact_rsp *pSMBr; in validate_ntransact() local
3855 pSMBr = (struct smb_com_ntransact_rsp *)buf; in validate_ntransact()
3857 bcc = get_bcc(&pSMBr->hdr); in validate_ntransact()
3859 (char *)&pSMBr->ByteCount; in validate_ntransact()
3861 data_offset = le32_to_cpu(pSMBr->DataOffset); in validate_ntransact()
3862 data_count = le32_to_cpu(pSMBr->DataCount); in validate_ntransact()
3863 parm_offset = le32_to_cpu(pSMBr->ParameterOffset); in validate_ntransact()
3864 parm_count = le32_to_cpu(pSMBr->ParameterCount); in validate_ntransact()
3866 *ppparm = (char *)&pSMBr->hdr.Protocol + parm_offset; in validate_ntransact()
3867 *ppdata = (char *)&pSMBr->hdr.Protocol + data_offset; in validate_ntransact()
3882 end_of_smb, pSMBr); in validate_ntransact()
3935 struct smb_com_ntransact_rsp *pSMBr; in CIFSSMBGetCIFSACL() local
3943 pSMBr = (struct smb_com_ntransact_rsp *)rsp_iov.iov_base; in CIFSSMBGetCIFSACL()
3946 pSMBr, parm, *acl_inf); in CIFSSMBGetCIFSACL()
3948 if (le32_to_cpu(pSMBr->ParameterCount) != 4) { in CIFSSMBGetCIFSACL()
3992 void *pSMBr; in CIFSSMBSetCIFSACL() local
3995 rc = smb_init(SMB_COM_NT_TRANSACT, 19, tcon, (void **) &pSMB, &pSMBr); in CIFSSMBSetCIFSACL()
4025 memcpy((char *)pSMBr + offsetof(struct smb_hdr, Protocol) + in CIFSSMBSetCIFSACL()
4032 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetCIFSACL()
4056 QUERY_INFORMATION_RSP *pSMBr; in SMBQueryInformation() local
4064 (void **) &pSMBr); in SMBQueryInformation()
4086 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in SMBQueryInformation()
4091 __u32 time = le32_to_cpu(pSMBr->last_write_time); in SMBQueryInformation()
4103 cpu_to_le64(le32_to_cpu(pSMBr->size)); in SMBQueryInformation()
4106 cpu_to_le32(le16_to_cpu(pSMBr->attr)); in SMBQueryInformation()
4123 struct smb_t2_qfi_rsp *pSMBr = NULL; in CIFSSMBQFileInfo() local
4130 (void **) &pSMBr); in CIFSSMBQFileInfo()
4161 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFileInfo()
4165 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFileInfo()
4169 else if (get_bcc(&pSMBr->hdr) < 40) in CIFSSMBQFileInfo()
4172 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFileInfo()
4174 (char *) &pSMBr->hdr.Protocol + in CIFSSMBQFileInfo()
4194 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBQPathInfo() local
4203 (void **) &pSMBr); in CIFSSMBQPathInfo()
4248 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQPathInfo()
4252 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQPathInfo()
4256 else if (!legacy && get_bcc(&pSMBr->hdr) < 40) in CIFSSMBQPathInfo()
4258 else if (legacy && get_bcc(&pSMBr->hdr) < 24) in CIFSSMBQPathInfo()
4263 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQPathInfo()
4275 memcpy((char *) data, (char *) &pSMBr->hdr.Protocol + in CIFSSMBQPathInfo()
4292 struct smb_t2_qfi_rsp *pSMBr = NULL; in CIFSSMBUnixQFileInfo() local
4299 (void **) &pSMBr); in CIFSSMBUnixQFileInfo()
4330 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBUnixQFileInfo()
4334 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBUnixQFileInfo()
4336 if (rc || get_bcc(&pSMBr->hdr) < sizeof(FILE_UNIX_BASIC_INFO)) { in CIFSSMBUnixQFileInfo()
4340 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBUnixQFileInfo()
4342 (char *) &pSMBr->hdr.Protocol + in CIFSSMBUnixQFileInfo()
4363 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBUnixQPathInfo() local
4372 (void **) &pSMBr); in CIFSSMBUnixQPathInfo()
4414 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBUnixQPathInfo()
4418 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBUnixQPathInfo()
4420 if (rc || get_bcc(&pSMBr->hdr) < sizeof(FILE_UNIX_BASIC_INFO)) { in CIFSSMBUnixQPathInfo()
4424 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBUnixQPathInfo()
4426 (char *) &pSMBr->hdr.Protocol + in CIFSSMBUnixQPathInfo()
4447 TRANSACTION2_FFIRST_RSP *pSMBr = NULL; in CIFSFindFirst() local
4459 (void **) &pSMBr); in CIFSFindFirst()
4532 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSFindFirst()
4548 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSFindFirst()
4552 if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) in CIFSFindFirst()
4557 psrch_inf->ntwrk_buf_start = (char *)pSMBr; in CIFSFindFirst()
4560 (char *) &pSMBr->hdr.Protocol + in CIFSFindFirst()
4561 le16_to_cpu(pSMBr->t2.DataOffset); in CIFSFindFirst()
4562 parms = (T2_FFIRST_RSP_PARMS *)((char *) &pSMBr->hdr.Protocol + in CIFSFindFirst()
4563 le16_to_cpu(pSMBr->t2.ParameterOffset)); in CIFSFindFirst()
4599 TRANSACTION2_FNEXT_RSP *pSMBr = NULL; in CIFSFindNext() local
4613 (void **) &pSMBr); in CIFSFindNext()
4660 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSFindNext()
4670 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSFindNext()
4676 if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) in CIFSFindNext()
4680 response_data = (char *) &pSMBr->hdr.Protocol + in CIFSFindNext()
4681 le16_to_cpu(pSMBr->t2.ParameterOffset); in CIFSFindNext()
4683 response_data = (char *)&pSMBr->hdr.Protocol + in CIFSFindNext()
4684 le16_to_cpu(pSMBr->t2.DataOffset); in CIFSFindNext()
4769 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSGetSrvInodeNumber() local
4779 (void **) &pSMBr); in CIFSGetSrvInodeNumber()
4822 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSGetSrvInodeNumber()
4827 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSGetSrvInodeNumber()
4829 if (rc || get_bcc(&pSMBr->hdr) < 2) in CIFSGetSrvInodeNumber()
4834 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSGetSrvInodeNumber()
4835 __u16 count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSGetSrvInodeNumber()
4844 (data_offset + (char *) &pSMBr->hdr.Protocol); in CIFSGetSrvInodeNumber()
4863 TRANSACTION2_GET_DFS_REFER_RSP *pSMBr = NULL; in CIFSGetDFSRefer() local
4877 (void **) &pSMBr); in CIFSGetDFSRefer()
4935 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSGetDFSRefer()
4940 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSGetDFSRefer()
4943 if (rc || get_bcc(&pSMBr->hdr) < 17) { in CIFSGetDFSRefer()
4949 get_bcc(&pSMBr->hdr), le16_to_cpu(pSMBr->t2.DataOffset)); in CIFSGetDFSRefer()
4952 rc = parse_dfs_referrals(&pSMBr->dfs_data, in CIFSGetDFSRefer()
4953 le16_to_cpu(pSMBr->t2.DataCount), in CIFSGetDFSRefer()
4956 (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) != 0); in CIFSGetDFSRefer()
4974 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in SMBOldQFSInfo() local
4983 (void **) &pSMBr); in SMBOldQFSInfo()
5011 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in SMBOldQFSInfo()
5015 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in SMBOldQFSInfo()
5017 if (rc || get_bcc(&pSMBr->hdr) < 18) in SMBOldQFSInfo()
5020 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in SMBOldQFSInfo()
5022 get_bcc(&pSMBr->hdr), data_offset); in SMBOldQFSInfo()
5025 (((char *) &pSMBr->hdr.Protocol) + data_offset); in SMBOldQFSInfo()
5054 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSInfo() local
5063 (void **) &pSMBr); in CIFSSMBQFSInfo()
5091 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSInfo()
5095 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSInfo()
5097 if (rc || get_bcc(&pSMBr->hdr) < 24) in CIFSSMBQFSInfo()
5100 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSInfo()
5104 *) (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSInfo()
5133 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSAttributeInfo() local
5142 (void **) &pSMBr); in CIFSSMBQFSAttributeInfo()
5171 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSAttributeInfo()
5175 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSAttributeInfo()
5177 if (rc || get_bcc(&pSMBr->hdr) < 13) { in CIFSSMBQFSAttributeInfo()
5181 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSAttributeInfo()
5184 *) (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSAttributeInfo()
5203 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSDeviceInfo() local
5212 (void **) &pSMBr); in CIFSSMBQFSDeviceInfo()
5242 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSDeviceInfo()
5246 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSDeviceInfo()
5248 if (rc || get_bcc(&pSMBr->hdr) < in CIFSSMBQFSDeviceInfo()
5252 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSDeviceInfo()
5255 (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSDeviceInfo()
5274 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSUnixInfo() local
5283 (void **) &pSMB, (void **) &pSMBr); in CIFSSMBQFSUnixInfo()
5312 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSUnixInfo()
5316 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSUnixInfo()
5318 if (rc || get_bcc(&pSMBr->hdr) < 13) { in CIFSSMBQFSUnixInfo()
5321 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSUnixInfo()
5324 *) (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSUnixInfo()
5344 TRANSACTION2_SETFSI_RSP *pSMBr = NULL; in CIFSSMBSetFSUnixInfo() local
5353 (void **) &pSMB, (void **) &pSMBr); in CIFSSMBSetFSUnixInfo()
5395 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetFSUnixInfo()
5399 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBSetFSUnixInfo()
5419 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSPosixInfo() local
5428 (void **) &pSMBr); in CIFSSMBQFSPosixInfo()
5457 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSPosixInfo()
5461 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSPosixInfo()
5463 if (rc || get_bcc(&pSMBr->hdr) < 13) { in CIFSSMBQFSPosixInfo()
5466 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSPosixInfo()
5469 *) (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSPosixInfo()
5512 struct smb_com_transaction2_spi_rsp *pSMBr = NULL; in CIFSSMBSetEOF() local
5524 (void **) &pSMBr); in CIFSSMBSetEOF()
5585 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetEOF()
5809 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSSMBSetPathInfo() local
5820 (void **) &pSMBr); in CIFSSMBSetPathInfo()
5870 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetPathInfo()
5892 SETATTR_RSP *pSMBr = NULL;
5901 (void **) &pSMBr);
5921 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
6054 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSSMBUnixSetPathInfo() local
6064 (void **) &pSMBr); in CIFSSMBUnixSetPathInfo()
6115 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBUnixSetPathInfo()
6143 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBQAllEAs() local
6159 (void **) &pSMBr); in CIFSSMBQAllEAs()
6201 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQAllEAs()
6212 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQAllEAs()
6213 if (rc || get_bcc(&pSMBr->hdr) < 4) { in CIFSSMBQAllEAs()
6226 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQAllEAs()
6228 (((char *) &pSMBr->hdr.Protocol) + data_offset); in CIFSSMBQAllEAs()
6241 end_of_smb = (char *)pByteArea(&pSMBr->hdr) + get_bcc(&pSMBr->hdr); in CIFSSMBQAllEAs()
6330 struct smb_com_transaction2_spi_rsp *pSMBr = NULL; in CIFSSMBSetEA() local
6341 (void **) &pSMBr); in CIFSSMBSetEA()
6416 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetEA()
6457 struct smb_com_ntransaction_change_notify_rsp *pSMBr = NULL; in CIFSSMBNotify() local
6463 (void **) &pSMBr); in CIFSSMBNotify()
6487 (struct smb_hdr *)pSMBr, &bytes_returned, in CIFSSMBNotify()