Lines Matching refs:pSMBr

408 decode_ext_sec_blob(struct cifs_ses *ses, NEGOTIATE_RSP *pSMBr)  in decode_ext_sec_blob()  argument
412 char *guid = pSMBr->u.extended_response.GUID; in decode_ext_sec_blob()
415 count = get_bcc(&pSMBr->hdr); in decode_ext_sec_blob()
436 pSMBr->u.extended_response.SecurityBlob, count, server); in decode_ext_sec_blob()
492 decode_lanman_negprot_rsp(struct TCP_Server_Info *server, NEGOTIATE_RSP *pSMBr) in decode_lanman_negprot_rsp() argument
495 struct lanman_neg_rsp *rsp = (struct lanman_neg_rsp *)pSMBr; in decode_lanman_negprot_rsp()
566 decode_lanman_negprot_rsp(struct TCP_Server_Info *server, NEGOTIATE_RSP *pSMBr) in decode_lanman_negprot_rsp() argument
594 NEGOTIATE_RSP *pSMBr; in CIFSSMBNegotiate() local
607 (void **) &pSMB, (void **) &pSMBr); in CIFSSMBNegotiate()
634 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBNegotiate()
638 server->dialect = le16_to_cpu(pSMBr->DialectIndex); in CIFSSMBNegotiate()
641 if ((pSMBr->hdr.WordCount < 13) || (server->dialect == BAD_PROT)) { in CIFSSMBNegotiate()
647 } else if (pSMBr->hdr.WordCount == 13) { in CIFSSMBNegotiate()
649 rc = decode_lanman_negprot_rsp(server, pSMBr); in CIFSSMBNegotiate()
651 } else if (pSMBr->hdr.WordCount != 17) { in CIFSSMBNegotiate()
658 server->sec_mode = pSMBr->SecurityMode; in CIFSSMBNegotiate()
664 server->maxReq = min_t(unsigned int, le16_to_cpu(pSMBr->MaxMpxCount), in CIFSSMBNegotiate()
668 server->maxBuf = le32_to_cpu(pSMBr->MaxBufferSize); in CIFSSMBNegotiate()
671 server->max_rw = le32_to_cpu(pSMBr->MaxRawSize); in CIFSSMBNegotiate()
673 server->capabilities = le32_to_cpu(pSMBr->Capabilities); in CIFSSMBNegotiate()
674 server->timeAdj = (int)(__s16)le16_to_cpu(pSMBr->ServerTimeZone); in CIFSSMBNegotiate()
677 if (pSMBr->EncryptionKeyLength == CIFS_CRYPTO_KEY_SIZE) { in CIFSSMBNegotiate()
679 memcpy(ses->server->cryptkey, pSMBr->u.EncryptionKey, in CIFSSMBNegotiate()
681 } else if (pSMBr->hdr.Flags2 & SMBFLG2_EXT_SEC || in CIFSSMBNegotiate()
684 rc = decode_ext_sec_blob(ses, pSMBr); in CIFSSMBNegotiate()
852 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSPOSIXDelFile() local
862 (void **) &pSMBr); in CIFSPOSIXDelFile()
907 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSPOSIXDelFile()
925 DELETE_FILE_RSP *pSMBr = NULL; in CIFSSMBDelFile() local
933 (void **) &pSMBr); in CIFSSMBDelFile()
952 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBDelFile()
969 DELETE_DIRECTORY_RSP *pSMBr = NULL; in CIFSSMBRmDir() local
978 (void **) &pSMBr); in CIFSSMBRmDir()
996 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBRmDir()
1014 CREATE_DIRECTORY_RSP *pSMBr = NULL; in CIFSSMBMkDir() local
1022 (void **) &pSMBr); in CIFSSMBMkDir()
1040 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBMkDir()
1059 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSPOSIXCreate() local
1070 (void **) &pSMBr); in CIFSPOSIXCreate()
1117 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSPOSIXCreate()
1124 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSPOSIXCreate()
1126 if (rc || get_bcc(&pSMBr->hdr) < sizeof(OPEN_PSX_RSP)) { in CIFSPOSIXCreate()
1132 psx_rsp = (OPEN_PSX_RSP *)((char *) &pSMBr->hdr.Protocol in CIFSPOSIXCreate()
1133 + le16_to_cpu(pSMBr->t2.DataOffset)); in CIFSPOSIXCreate()
1147 if (get_bcc(&pSMBr->hdr) < sizeof(OPEN_PSX_RSP) in CIFSPOSIXCreate()
1225 OPENX_RSP *pSMBr = NULL; in SMBLegacyOpen() local
1232 (void **) &pSMBr); in SMBLegacyOpen()
1281 (struct smb_hdr *)pSMBr, &bytes_returned, 0); in SMBLegacyOpen()
1290 *netfid = pSMBr->Fid; /* cifs fid stays in le */ in SMBLegacyOpen()
1304 cpu_to_le32(le16_to_cpu(pSMBr->FileAttributes)); in SMBLegacyOpen()
1307 cpu_to_le64(le32_to_cpu(pSMBr->EndOfFile)); in SMBLegacyOpen()
1745 READ_RSP *pSMBr = NULL; in CIFSSMBRead() local
1804 pSMBr = (READ_RSP *)rsp_iov.iov_base; in CIFSSMBRead()
1808 int data_length = le16_to_cpu(pSMBr->DataLengthHigh); in CIFSSMBRead()
1810 data_length += le16_to_cpu(pSMBr->DataLength); in CIFSSMBRead()
1821 pReadData = (char *) (&pSMBr->hdr.Protocol) + in CIFSSMBRead()
1822 le16_to_cpu(pSMBr->DataOffset); in CIFSSMBRead()
1855 WRITE_RSP *pSMBr = NULL; in CIFSSMBWrite() local
1882 (void **) &pSMBr); in CIFSSMBWrite()
1944 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBWrite()
1949 *nbytes = le16_to_cpu(pSMBr->CountHigh); in CIFSSMBWrite()
1951 *nbytes += le16_to_cpu(pSMBr->Count); in CIFSSMBWrite()
2366 WRITE_RSP *pSMBr = (WRITE_RSP *)rsp_iov.iov_base; in CIFSSMBWrite2() local
2367 *nbytes = le16_to_cpu(pSMBr->CountHigh); in CIFSSMBWrite2()
2369 *nbytes += le16_to_cpu(pSMBr->Count); in CIFSSMBWrite2()
2510 struct smb_com_transaction2_sfi_rsp *pSMBr = NULL; in CIFSSMBPosixLock() local
2527 pSMBr = (struct smb_com_transaction2_sfi_rsp *)pSMB; in CIFSSMBPosixLock()
2575 (struct smb_hdr *) pSMBr, &bytes_returned); in CIFSSMBPosixLock()
2581 pSMBr = (struct smb_com_transaction2_sfi_rsp *)rsp_iov.iov_base; in CIFSSMBPosixLock()
2591 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBPosixLock()
2593 if (rc || get_bcc(&pSMBr->hdr) < sizeof(*parm_data)) { in CIFSSMBPosixLock()
2597 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBPosixLock()
2598 data_count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSSMBPosixLock()
2604 ((char *)&pSMBr->hdr.Protocol + data_offset); in CIFSSMBPosixLock()
2695 RENAME_RSP *pSMBr = NULL; in CIFSSMBRename() local
2704 (void **) &pSMBr); in CIFSSMBRename()
2740 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBRename()
2758 struct smb_com_transaction2_sfi_rsp *pSMBr = NULL; in CIFSSMBRenameOpenFile() local
2769 (void **) &pSMBr); in CIFSSMBRenameOpenFile()
2821 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBRenameOpenFile()
2842 COPY_RSP *pSMBr = NULL; in CIFSSMBCopy() local
2850 (void **) &pSMBr); in CIFSSMBCopy()
2885 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBCopy()
2888 rc, le16_to_cpu(pSMBr->CopyCount)); in CIFSSMBCopy()
2904 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSUnixCreateSymLink() local
2915 (void **) &pSMBr); in CIFSUnixCreateSymLink()
2970 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSUnixCreateSymLink()
2990 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSUnixCreateHardLink() local
3001 (void **) &pSMBr); in CIFSUnixCreateHardLink()
3053 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSUnixCreateHardLink()
3073 RENAME_RSP *pSMBr = NULL; in CIFSCreateHardLink() local
3083 (void **) &pSMBr); in CIFSCreateHardLink()
3123 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSCreateHardLink()
3142 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBUnixQuerySymLink() local
3153 (void **) &pSMBr); in CIFSSMBUnixQuerySymLink()
3193 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBUnixQuerySymLink()
3199 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBUnixQuerySymLink()
3201 if (rc || get_bcc(&pSMBr->hdr) < 2) in CIFSSMBUnixQuerySymLink()
3205 u16 count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSSMBUnixQuerySymLink()
3207 data_start = ((char *) &pSMBr->hdr.Protocol) + in CIFSSMBUnixQuerySymLink()
3208 le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBUnixQuerySymLink()
3210 if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) in CIFSSMBUnixQuerySymLink()
3246 struct smb_com_transaction_ioctl_rsp *pSMBr; in CIFSSMBQuerySymLink() local
3257 (void **) &pSMBr); in CIFSSMBQuerySymLink()
3281 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQuerySymLink()
3287 data_offset = le32_to_cpu(pSMBr->DataOffset); in CIFSSMBQuerySymLink()
3288 data_count = le32_to_cpu(pSMBr->DataCount); in CIFSSMBQuerySymLink()
3289 if (get_bcc(&pSMBr->hdr) < 2 || data_offset > 512) { in CIFSSMBQuerySymLink()
3299 end_of_smb = 2 + get_bcc(&pSMBr->hdr) + (char *)&pSMBr->ByteCount; in CIFSSMBQuerySymLink()
3301 ((char *)&pSMBr->hdr.Protocol + data_offset); in CIFSSMBQuerySymLink()
3341 if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) in CIFSSMBQuerySymLink()
3368 struct smb_com_transaction_ioctl_rsp *pSMBr; in CIFSSMB_set_compression() local
3372 (void **) &pSMBr); in CIFSSMB_set_compression()
3401 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMB_set_compression()
3559 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBGetPosixACL() local
3569 (void **) &pSMBr); in CIFSSMBGetPosixACL()
3613 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBGetPosixACL()
3620 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBGetPosixACL()
3622 if (rc || get_bcc(&pSMBr->hdr) < 2) in CIFSSMBGetPosixACL()
3625 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBGetPosixACL()
3626 __u16 count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSSMBGetPosixACL()
3628 (char *)&pSMBr->hdr.Protocol+data_offset, in CIFSSMBGetPosixACL()
3646 struct smb_com_transaction2_spi_rsp *pSMBr = NULL; in CIFSSMBSetPosixACL() local
3656 (void **) &pSMBr); in CIFSSMBSetPosixACL()
3704 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetPosixACL()
3722 struct smb_t2_qfi_rsp *pSMBr = NULL; in CIFSGetExtAttr() local
3732 (void **) &pSMBr); in CIFSGetExtAttr()
3763 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSGetExtAttr()
3768 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSGetExtAttr()
3770 if (rc || get_bcc(&pSMBr->hdr) < 2) in CIFSGetExtAttr()
3775 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSGetExtAttr()
3776 __u16 count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSGetExtAttr()
3785 (data_offset + (char *) &pSMBr->hdr.Protocol); in CIFSGetExtAttr()
3842 struct smb_com_ntransact_rsp *pSMBr; in validate_ntransact() local
3851 pSMBr = (struct smb_com_ntransact_rsp *)buf; in validate_ntransact()
3853 bcc = get_bcc(&pSMBr->hdr); in validate_ntransact()
3855 (char *)&pSMBr->ByteCount; in validate_ntransact()
3857 data_offset = le32_to_cpu(pSMBr->DataOffset); in validate_ntransact()
3858 data_count = le32_to_cpu(pSMBr->DataCount); in validate_ntransact()
3859 parm_offset = le32_to_cpu(pSMBr->ParameterOffset); in validate_ntransact()
3860 parm_count = le32_to_cpu(pSMBr->ParameterCount); in validate_ntransact()
3862 *ppparm = (char *)&pSMBr->hdr.Protocol + parm_offset; in validate_ntransact()
3863 *ppdata = (char *)&pSMBr->hdr.Protocol + data_offset; in validate_ntransact()
3878 end_of_smb, pSMBr); in validate_ntransact()
3931 struct smb_com_ntransact_rsp *pSMBr; in CIFSSMBGetCIFSACL() local
3939 pSMBr = (struct smb_com_ntransact_rsp *)rsp_iov.iov_base; in CIFSSMBGetCIFSACL()
3942 pSMBr, parm, *acl_inf); in CIFSSMBGetCIFSACL()
3944 if (le32_to_cpu(pSMBr->ParameterCount) != 4) { in CIFSSMBGetCIFSACL()
3988 void *pSMBr; in CIFSSMBSetCIFSACL() local
3991 rc = smb_init(SMB_COM_NT_TRANSACT, 19, tcon, (void **) &pSMB, &pSMBr); in CIFSSMBSetCIFSACL()
4021 memcpy((char *)pSMBr + offsetof(struct smb_hdr, Protocol) + in CIFSSMBSetCIFSACL()
4028 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetCIFSACL()
4051 QUERY_INFORMATION_RSP *pSMBr; in SMBQueryInformation() local
4059 (void **) &pSMBr); in SMBQueryInformation()
4079 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in SMBQueryInformation()
4084 __u32 time = le32_to_cpu(pSMBr->last_write_time); in SMBQueryInformation()
4096 cpu_to_le64(le32_to_cpu(pSMBr->size)); in SMBQueryInformation()
4099 cpu_to_le32(le16_to_cpu(pSMBr->attr)); in SMBQueryInformation()
4116 struct smb_t2_qfi_rsp *pSMBr = NULL; in CIFSSMBQFileInfo() local
4123 (void **) &pSMBr); in CIFSSMBQFileInfo()
4154 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFileInfo()
4158 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFileInfo()
4162 else if (get_bcc(&pSMBr->hdr) < 40) in CIFSSMBQFileInfo()
4165 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFileInfo()
4167 (char *) &pSMBr->hdr.Protocol + in CIFSSMBQFileInfo()
4187 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBQPathInfo() local
4196 (void **) &pSMBr); in CIFSSMBQPathInfo()
4239 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQPathInfo()
4243 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQPathInfo()
4247 else if (!legacy && get_bcc(&pSMBr->hdr) < 40) in CIFSSMBQPathInfo()
4249 else if (legacy && get_bcc(&pSMBr->hdr) < 24) in CIFSSMBQPathInfo()
4254 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQPathInfo()
4266 memcpy((char *) data, (char *) &pSMBr->hdr.Protocol + in CIFSSMBQPathInfo()
4283 struct smb_t2_qfi_rsp *pSMBr = NULL; in CIFSSMBUnixQFileInfo() local
4290 (void **) &pSMBr); in CIFSSMBUnixQFileInfo()
4321 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBUnixQFileInfo()
4325 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBUnixQFileInfo()
4327 if (rc || get_bcc(&pSMBr->hdr) < sizeof(FILE_UNIX_BASIC_INFO)) { in CIFSSMBUnixQFileInfo()
4331 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBUnixQFileInfo()
4333 (char *) &pSMBr->hdr.Protocol + in CIFSSMBUnixQFileInfo()
4354 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBUnixQPathInfo() local
4363 (void **) &pSMBr); in CIFSSMBUnixQPathInfo()
4403 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBUnixQPathInfo()
4407 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBUnixQPathInfo()
4409 if (rc || get_bcc(&pSMBr->hdr) < sizeof(FILE_UNIX_BASIC_INFO)) { in CIFSSMBUnixQPathInfo()
4413 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBUnixQPathInfo()
4415 (char *) &pSMBr->hdr.Protocol + in CIFSSMBUnixQPathInfo()
4436 TRANSACTION2_FFIRST_RSP *pSMBr = NULL; in CIFSFindFirst() local
4448 (void **) &pSMBr); in CIFSFindFirst()
4520 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSFindFirst()
4536 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSFindFirst()
4540 if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) in CIFSFindFirst()
4545 psrch_inf->ntwrk_buf_start = (char *)pSMBr; in CIFSFindFirst()
4548 (char *) &pSMBr->hdr.Protocol + in CIFSFindFirst()
4549 le16_to_cpu(pSMBr->t2.DataOffset); in CIFSFindFirst()
4550 parms = (T2_FFIRST_RSP_PARMS *)((char *) &pSMBr->hdr.Protocol + in CIFSFindFirst()
4551 le16_to_cpu(pSMBr->t2.ParameterOffset)); in CIFSFindFirst()
4587 TRANSACTION2_FNEXT_RSP *pSMBr = NULL; in CIFSFindNext() local
4601 (void **) &pSMBr); in CIFSFindNext()
4648 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSFindNext()
4658 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSFindNext()
4664 if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) in CIFSFindNext()
4668 response_data = (char *) &pSMBr->hdr.Protocol + in CIFSFindNext()
4669 le16_to_cpu(pSMBr->t2.ParameterOffset); in CIFSFindNext()
4671 response_data = (char *)&pSMBr->hdr.Protocol + in CIFSFindNext()
4672 le16_to_cpu(pSMBr->t2.DataOffset); in CIFSFindNext()
4757 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSGetSrvInodeNumber() local
4767 (void **) &pSMBr); in CIFSGetSrvInodeNumber()
4808 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSGetSrvInodeNumber()
4813 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSGetSrvInodeNumber()
4815 if (rc || get_bcc(&pSMBr->hdr) < 2) in CIFSGetSrvInodeNumber()
4820 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSGetSrvInodeNumber()
4821 __u16 count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSGetSrvInodeNumber()
4830 (data_offset + (char *) &pSMBr->hdr.Protocol); in CIFSGetSrvInodeNumber()
4849 TRANSACTION2_GET_DFS_REFER_RSP *pSMBr = NULL; in CIFSGetDFSRefer() local
4863 (void **) &pSMBr); in CIFSGetDFSRefer()
4919 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSGetDFSRefer()
4924 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSGetDFSRefer()
4927 if (rc || get_bcc(&pSMBr->hdr) < 17) { in CIFSGetDFSRefer()
4933 get_bcc(&pSMBr->hdr), le16_to_cpu(pSMBr->t2.DataOffset)); in CIFSGetDFSRefer()
4936 rc = parse_dfs_referrals(&pSMBr->dfs_data, in CIFSGetDFSRefer()
4937 le16_to_cpu(pSMBr->t2.DataCount), in CIFSGetDFSRefer()
4940 (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) != 0); in CIFSGetDFSRefer()
4958 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in SMBOldQFSInfo() local
4967 (void **) &pSMBr); in SMBOldQFSInfo()
4995 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in SMBOldQFSInfo()
4999 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in SMBOldQFSInfo()
5001 if (rc || get_bcc(&pSMBr->hdr) < 18) in SMBOldQFSInfo()
5004 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in SMBOldQFSInfo()
5006 get_bcc(&pSMBr->hdr), data_offset); in SMBOldQFSInfo()
5009 (((char *) &pSMBr->hdr.Protocol) + data_offset); in SMBOldQFSInfo()
5045 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSInfo() local
5054 (void **) &pSMBr); in CIFSSMBQFSInfo()
5082 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSInfo()
5086 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSInfo()
5088 if (rc || get_bcc(&pSMBr->hdr) < 24) in CIFSSMBQFSInfo()
5091 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSInfo()
5095 *) (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSInfo()
5131 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSAttributeInfo() local
5140 (void **) &pSMBr); in CIFSSMBQFSAttributeInfo()
5169 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSAttributeInfo()
5173 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSAttributeInfo()
5175 if (rc || get_bcc(&pSMBr->hdr) < 13) { in CIFSSMBQFSAttributeInfo()
5179 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSAttributeInfo()
5182 *) (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSAttributeInfo()
5201 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSDeviceInfo() local
5210 (void **) &pSMBr); in CIFSSMBQFSDeviceInfo()
5240 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSDeviceInfo()
5244 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSDeviceInfo()
5246 if (rc || get_bcc(&pSMBr->hdr) < in CIFSSMBQFSDeviceInfo()
5250 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSDeviceInfo()
5253 (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSDeviceInfo()
5272 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSUnixInfo() local
5281 (void **) &pSMB, (void **) &pSMBr); in CIFSSMBQFSUnixInfo()
5310 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSUnixInfo()
5314 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSUnixInfo()
5316 if (rc || get_bcc(&pSMBr->hdr) < 13) { in CIFSSMBQFSUnixInfo()
5319 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSUnixInfo()
5322 *) (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSUnixInfo()
5342 TRANSACTION2_SETFSI_RSP *pSMBr = NULL; in CIFSSMBSetFSUnixInfo() local
5351 (void **) &pSMB, (void **) &pSMBr); in CIFSSMBSetFSUnixInfo()
5393 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetFSUnixInfo()
5397 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBSetFSUnixInfo()
5417 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSPosixInfo() local
5426 (void **) &pSMBr); in CIFSSMBQFSPosixInfo()
5455 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSPosixInfo()
5459 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSPosixInfo()
5461 if (rc || get_bcc(&pSMBr->hdr) < 13) { in CIFSSMBQFSPosixInfo()
5464 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSPosixInfo()
5467 *) (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSPosixInfo()
5517 struct smb_com_transaction2_spi_rsp *pSMBr = NULL; in CIFSSMBSetEOF() local
5529 (void **) &pSMBr); in CIFSSMBSetEOF()
5588 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetEOF()
5844 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSSMBSetPathInfo() local
5856 (void **) &pSMBr); in CIFSSMBSetPathInfo()
5904 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetPathInfo()
5930 SETATTR_RSP *pSMBr = NULL;
5939 (void **) &pSMBr);
5957 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
6090 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSSMBUnixSetPathInfo() local
6100 (void **) &pSMBr); in CIFSSMBUnixSetPathInfo()
6149 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBUnixSetPathInfo()
6177 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBQAllEAs() local
6193 (void **) &pSMBr); in CIFSSMBQAllEAs()
6233 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQAllEAs()
6244 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQAllEAs()
6245 if (rc || get_bcc(&pSMBr->hdr) < 4) { in CIFSSMBQAllEAs()
6258 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQAllEAs()
6260 (((char *) &pSMBr->hdr.Protocol) + data_offset); in CIFSSMBQAllEAs()
6273 end_of_smb = (char *)pByteArea(&pSMBr->hdr) + get_bcc(&pSMBr->hdr); in CIFSSMBQAllEAs()
6362 struct smb_com_transaction2_spi_rsp *pSMBr = NULL; in CIFSSMBSetEA() local
6373 (void **) &pSMBr); in CIFSSMBSetEA()
6446 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetEA()