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()
1738 READ_RSP *pSMBr = NULL; in CIFSSMBRead() local
1797 pSMBr = (READ_RSP *)rsp_iov.iov_base; in CIFSSMBRead()
1801 int data_length = le16_to_cpu(pSMBr->DataLengthHigh); in CIFSSMBRead()
1803 data_length += le16_to_cpu(pSMBr->DataLength); in CIFSSMBRead()
1814 pReadData = (char *) (&pSMBr->hdr.Protocol) + in CIFSSMBRead()
1815 le16_to_cpu(pSMBr->DataOffset); in CIFSSMBRead()
1848 WRITE_RSP *pSMBr = NULL; in CIFSSMBWrite() local
1875 (void **) &pSMBr); in CIFSSMBWrite()
1937 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBWrite()
1942 *nbytes = le16_to_cpu(pSMBr->CountHigh); in CIFSSMBWrite()
1944 *nbytes += le16_to_cpu(pSMBr->Count); in CIFSSMBWrite()
2354 WRITE_RSP *pSMBr = (WRITE_RSP *)rsp_iov.iov_base; in CIFSSMBWrite2() local
2355 *nbytes = le16_to_cpu(pSMBr->CountHigh); in CIFSSMBWrite2()
2357 *nbytes += le16_to_cpu(pSMBr->Count); in CIFSSMBWrite2()
2498 struct smb_com_transaction2_sfi_rsp *pSMBr = NULL; in CIFSSMBPosixLock() local
2515 pSMBr = (struct smb_com_transaction2_sfi_rsp *)pSMB; in CIFSSMBPosixLock()
2563 (struct smb_hdr *) pSMBr, &bytes_returned); in CIFSSMBPosixLock()
2569 pSMBr = (struct smb_com_transaction2_sfi_rsp *)rsp_iov.iov_base; in CIFSSMBPosixLock()
2579 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBPosixLock()
2581 if (rc || get_bcc(&pSMBr->hdr) < sizeof(*parm_data)) { in CIFSSMBPosixLock()
2585 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBPosixLock()
2586 data_count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSSMBPosixLock()
2592 ((char *)&pSMBr->hdr.Protocol + data_offset); in CIFSSMBPosixLock()
2683 RENAME_RSP *pSMBr = NULL; in CIFSSMBRename() local
2692 (void **) &pSMBr); in CIFSSMBRename()
2733 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBRename()
2751 struct smb_com_transaction2_sfi_rsp *pSMBr = NULL; in CIFSSMBRenameOpenFile() local
2762 (void **) &pSMBr); in CIFSSMBRenameOpenFile()
2814 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBRenameOpenFile()
2835 COPY_RSP *pSMBr = NULL; in CIFSSMBCopy() local
2843 (void **) &pSMBr); in CIFSSMBCopy()
2883 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBCopy()
2886 rc, le16_to_cpu(pSMBr->CopyCount)); in CIFSSMBCopy()
2902 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSUnixCreateSymLink() local
2913 (void **) &pSMBr); in CIFSUnixCreateSymLink()
2972 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSUnixCreateSymLink()
2992 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSUnixCreateHardLink() local
3003 (void **) &pSMBr); in CIFSUnixCreateHardLink()
3059 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSUnixCreateHardLink()
3079 RENAME_RSP *pSMBr = NULL; in CIFSCreateHardLink() local
3089 (void **) &pSMBr); in CIFSCreateHardLink()
3134 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSCreateHardLink()
3153 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBUnixQuerySymLink() local
3164 (void **) &pSMBr); in CIFSSMBUnixQuerySymLink()
3206 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBUnixQuerySymLink()
3212 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBUnixQuerySymLink()
3214 if (rc || get_bcc(&pSMBr->hdr) < 2) in CIFSSMBUnixQuerySymLink()
3218 u16 count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSSMBUnixQuerySymLink()
3220 data_start = ((char *) &pSMBr->hdr.Protocol) + in CIFSSMBUnixQuerySymLink()
3221 le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBUnixQuerySymLink()
3223 if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) in CIFSSMBUnixQuerySymLink()
3259 struct smb_com_transaction_ioctl_rsp *pSMBr; in CIFSSMBQuerySymLink() local
3270 (void **) &pSMBr); in CIFSSMBQuerySymLink()
3294 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQuerySymLink()
3300 data_offset = le32_to_cpu(pSMBr->DataOffset); in CIFSSMBQuerySymLink()
3301 data_count = le32_to_cpu(pSMBr->DataCount); in CIFSSMBQuerySymLink()
3302 if (get_bcc(&pSMBr->hdr) < 2 || data_offset > 512) { in CIFSSMBQuerySymLink()
3312 end_of_smb = 2 + get_bcc(&pSMBr->hdr) + (char *)&pSMBr->ByteCount; in CIFSSMBQuerySymLink()
3314 ((char *)&pSMBr->hdr.Protocol + data_offset); in CIFSSMBQuerySymLink()
3354 if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) in CIFSSMBQuerySymLink()
3381 struct smb_com_transaction_ioctl_rsp *pSMBr; in CIFSSMB_set_compression() local
3385 (void **) &pSMBr); in CIFSSMB_set_compression()
3414 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMB_set_compression()
3580 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBGetPosixACL() local
3590 (void **) &pSMBr); in CIFSSMBGetPosixACL()
3636 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBGetPosixACL()
3643 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBGetPosixACL()
3645 if (rc || get_bcc(&pSMBr->hdr) < 2) in CIFSSMBGetPosixACL()
3648 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBGetPosixACL()
3649 __u16 count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSSMBGetPosixACL()
3651 (char *)&pSMBr->hdr.Protocol+data_offset, in CIFSSMBGetPosixACL()
3669 struct smb_com_transaction2_spi_rsp *pSMBr = NULL; in CIFSSMBSetPosixACL() local
3679 (void **) &pSMBr); in CIFSSMBSetPosixACL()
3729 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetPosixACL()
3747 struct smb_t2_qfi_rsp *pSMBr = NULL; in CIFSGetExtAttr() local
3757 (void **) &pSMBr); in CIFSGetExtAttr()
3788 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSGetExtAttr()
3793 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSGetExtAttr()
3795 if (rc || get_bcc(&pSMBr->hdr) < 2) in CIFSGetExtAttr()
3800 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSGetExtAttr()
3801 __u16 count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSGetExtAttr()
3810 (data_offset + (char *) &pSMBr->hdr.Protocol); in CIFSGetExtAttr()
3868 struct smb_com_ntransact_rsp *pSMBr; in validate_ntransact() local
3877 pSMBr = (struct smb_com_ntransact_rsp *)buf; in validate_ntransact()
3879 bcc = get_bcc(&pSMBr->hdr); in validate_ntransact()
3881 (char *)&pSMBr->ByteCount; in validate_ntransact()
3883 data_offset = le32_to_cpu(pSMBr->DataOffset); in validate_ntransact()
3884 data_count = le32_to_cpu(pSMBr->DataCount); in validate_ntransact()
3885 parm_offset = le32_to_cpu(pSMBr->ParameterOffset); in validate_ntransact()
3886 parm_count = le32_to_cpu(pSMBr->ParameterCount); in validate_ntransact()
3888 *ppparm = (char *)&pSMBr->hdr.Protocol + parm_offset; in validate_ntransact()
3889 *ppdata = (char *)&pSMBr->hdr.Protocol + data_offset; in validate_ntransact()
3904 end_of_smb, pSMBr); in validate_ntransact()
3957 struct smb_com_ntransact_rsp *pSMBr; in CIFSSMBGetCIFSACL() local
3965 pSMBr = (struct smb_com_ntransact_rsp *)rsp_iov.iov_base; in CIFSSMBGetCIFSACL()
3968 pSMBr, parm, *acl_inf); in CIFSSMBGetCIFSACL()
3970 if (le32_to_cpu(pSMBr->ParameterCount) != 4) { in CIFSSMBGetCIFSACL()
4014 void *pSMBr; in CIFSSMBSetCIFSACL() local
4017 rc = smb_init(SMB_COM_NT_TRANSACT, 19, tcon, (void **) &pSMB, &pSMBr); in CIFSSMBSetCIFSACL()
4047 memcpy((char *)pSMBr + offsetof(struct smb_hdr, Protocol) + in CIFSSMBSetCIFSACL()
4054 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetCIFSACL()
4078 QUERY_INFORMATION_RSP *pSMBr; in SMBQueryInformation() local
4086 (void **) &pSMBr); in SMBQueryInformation()
4108 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in SMBQueryInformation()
4113 __u32 time = le32_to_cpu(pSMBr->last_write_time); in SMBQueryInformation()
4125 cpu_to_le64(le32_to_cpu(pSMBr->size)); in SMBQueryInformation()
4128 cpu_to_le32(le16_to_cpu(pSMBr->attr)); in SMBQueryInformation()
4145 struct smb_t2_qfi_rsp *pSMBr = NULL; in CIFSSMBQFileInfo() local
4152 (void **) &pSMBr); in CIFSSMBQFileInfo()
4183 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFileInfo()
4187 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFileInfo()
4191 else if (get_bcc(&pSMBr->hdr) < 40) in CIFSSMBQFileInfo()
4194 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFileInfo()
4196 (char *) &pSMBr->hdr.Protocol + in CIFSSMBQFileInfo()
4216 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBQPathInfo() local
4225 (void **) &pSMBr); in CIFSSMBQPathInfo()
4270 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQPathInfo()
4274 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQPathInfo()
4278 else if (!legacy && get_bcc(&pSMBr->hdr) < 40) in CIFSSMBQPathInfo()
4280 else if (legacy && get_bcc(&pSMBr->hdr) < 24) in CIFSSMBQPathInfo()
4285 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQPathInfo()
4297 memcpy((char *) data, (char *) &pSMBr->hdr.Protocol + in CIFSSMBQPathInfo()
4314 struct smb_t2_qfi_rsp *pSMBr = NULL; in CIFSSMBUnixQFileInfo() local
4321 (void **) &pSMBr); in CIFSSMBUnixQFileInfo()
4352 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBUnixQFileInfo()
4356 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBUnixQFileInfo()
4358 if (rc || get_bcc(&pSMBr->hdr) < sizeof(FILE_UNIX_BASIC_INFO)) { in CIFSSMBUnixQFileInfo()
4362 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBUnixQFileInfo()
4364 (char *) &pSMBr->hdr.Protocol + in CIFSSMBUnixQFileInfo()
4385 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBUnixQPathInfo() local
4394 (void **) &pSMBr); in CIFSSMBUnixQPathInfo()
4436 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBUnixQPathInfo()
4440 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBUnixQPathInfo()
4442 if (rc || get_bcc(&pSMBr->hdr) < sizeof(FILE_UNIX_BASIC_INFO)) { in CIFSSMBUnixQPathInfo()
4446 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBUnixQPathInfo()
4448 (char *) &pSMBr->hdr.Protocol + in CIFSSMBUnixQPathInfo()
4469 TRANSACTION2_FFIRST_RSP *pSMBr = NULL; in CIFSFindFirst() local
4481 (void **) &pSMBr); in CIFSFindFirst()
4554 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSFindFirst()
4570 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSFindFirst()
4574 if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) in CIFSFindFirst()
4579 psrch_inf->ntwrk_buf_start = (char *)pSMBr; in CIFSFindFirst()
4582 (char *) &pSMBr->hdr.Protocol + in CIFSFindFirst()
4583 le16_to_cpu(pSMBr->t2.DataOffset); in CIFSFindFirst()
4584 parms = (T2_FFIRST_RSP_PARMS *)((char *) &pSMBr->hdr.Protocol + in CIFSFindFirst()
4585 le16_to_cpu(pSMBr->t2.ParameterOffset)); in CIFSFindFirst()
4621 TRANSACTION2_FNEXT_RSP *pSMBr = NULL; in CIFSFindNext() local
4635 (void **) &pSMBr); in CIFSFindNext()
4682 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSFindNext()
4692 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSFindNext()
4698 if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) in CIFSFindNext()
4702 response_data = (char *) &pSMBr->hdr.Protocol + in CIFSFindNext()
4703 le16_to_cpu(pSMBr->t2.ParameterOffset); in CIFSFindNext()
4705 response_data = (char *)&pSMBr->hdr.Protocol + in CIFSFindNext()
4706 le16_to_cpu(pSMBr->t2.DataOffset); in CIFSFindNext()
4791 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSGetSrvInodeNumber() local
4801 (void **) &pSMBr); in CIFSGetSrvInodeNumber()
4844 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSGetSrvInodeNumber()
4849 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSGetSrvInodeNumber()
4851 if (rc || get_bcc(&pSMBr->hdr) < 2) in CIFSGetSrvInodeNumber()
4856 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSGetSrvInodeNumber()
4857 __u16 count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSGetSrvInodeNumber()
4866 (data_offset + (char *) &pSMBr->hdr.Protocol); in CIFSGetSrvInodeNumber()
4885 TRANSACTION2_GET_DFS_REFER_RSP *pSMBr = NULL; in CIFSGetDFSRefer() local
4904 (void **)&pSMB, (void **)&pSMBr); in CIFSGetDFSRefer()
4962 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSGetDFSRefer()
4967 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSGetDFSRefer()
4970 if (rc || get_bcc(&pSMBr->hdr) < 17) { in CIFSGetDFSRefer()
4976 get_bcc(&pSMBr->hdr), le16_to_cpu(pSMBr->t2.DataOffset)); in CIFSGetDFSRefer()
4979 rc = parse_dfs_referrals(&pSMBr->dfs_data, in CIFSGetDFSRefer()
4980 le16_to_cpu(pSMBr->t2.DataCount), in CIFSGetDFSRefer()
4983 (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) != 0); in CIFSGetDFSRefer()
5001 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in SMBOldQFSInfo() local
5010 (void **) &pSMBr); in SMBOldQFSInfo()
5038 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in SMBOldQFSInfo()
5042 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in SMBOldQFSInfo()
5044 if (rc || get_bcc(&pSMBr->hdr) < 18) in SMBOldQFSInfo()
5047 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in SMBOldQFSInfo()
5049 get_bcc(&pSMBr->hdr), data_offset); in SMBOldQFSInfo()
5052 (((char *) &pSMBr->hdr.Protocol) + data_offset); in SMBOldQFSInfo()
5081 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSInfo() local
5090 (void **) &pSMBr); in CIFSSMBQFSInfo()
5118 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSInfo()
5122 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSInfo()
5124 if (rc || get_bcc(&pSMBr->hdr) < 24) in CIFSSMBQFSInfo()
5127 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSInfo()
5131 *) (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSInfo()
5160 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSAttributeInfo() local
5169 (void **) &pSMBr); in CIFSSMBQFSAttributeInfo()
5198 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSAttributeInfo()
5202 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSAttributeInfo()
5204 if (rc || get_bcc(&pSMBr->hdr) < 13) { in CIFSSMBQFSAttributeInfo()
5208 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSAttributeInfo()
5211 *) (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSAttributeInfo()
5230 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSDeviceInfo() local
5239 (void **) &pSMBr); in CIFSSMBQFSDeviceInfo()
5269 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSDeviceInfo()
5273 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSDeviceInfo()
5275 if (rc || get_bcc(&pSMBr->hdr) < in CIFSSMBQFSDeviceInfo()
5279 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSDeviceInfo()
5282 (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSDeviceInfo()
5301 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSUnixInfo() local
5310 (void **) &pSMB, (void **) &pSMBr); in CIFSSMBQFSUnixInfo()
5339 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSUnixInfo()
5343 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSUnixInfo()
5345 if (rc || get_bcc(&pSMBr->hdr) < 13) { in CIFSSMBQFSUnixInfo()
5348 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSUnixInfo()
5351 *) (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSUnixInfo()
5371 TRANSACTION2_SETFSI_RSP *pSMBr = NULL; in CIFSSMBSetFSUnixInfo() local
5380 (void **) &pSMB, (void **) &pSMBr); in CIFSSMBSetFSUnixInfo()
5422 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetFSUnixInfo()
5426 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBSetFSUnixInfo()
5446 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSPosixInfo() local
5455 (void **) &pSMBr); in CIFSSMBQFSPosixInfo()
5484 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSPosixInfo()
5488 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSPosixInfo()
5490 if (rc || get_bcc(&pSMBr->hdr) < 13) { in CIFSSMBQFSPosixInfo()
5493 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSPosixInfo()
5496 *) (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSPosixInfo()
5539 struct smb_com_transaction2_spi_rsp *pSMBr = NULL; in CIFSSMBSetEOF() local
5551 (void **) &pSMBr); in CIFSSMBSetEOF()
5612 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetEOF()
5836 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSSMBSetPathInfo() local
5847 (void **) &pSMBr); in CIFSSMBSetPathInfo()
5897 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetPathInfo()
5919 SETATTR_RSP *pSMBr = NULL;
5928 (void **) &pSMBr);
5948 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
6081 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSSMBUnixSetPathInfo() local
6091 (void **) &pSMBr); in CIFSSMBUnixSetPathInfo()
6142 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBUnixSetPathInfo()
6170 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBQAllEAs() local
6186 (void **) &pSMBr); in CIFSSMBQAllEAs()
6228 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQAllEAs()
6239 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQAllEAs()
6240 if (rc || get_bcc(&pSMBr->hdr) < 4) { in CIFSSMBQAllEAs()
6253 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQAllEAs()
6255 (((char *) &pSMBr->hdr.Protocol) + data_offset); in CIFSSMBQAllEAs()
6268 end_of_smb = (char *)pByteArea(&pSMBr->hdr) + get_bcc(&pSMBr->hdr); in CIFSSMBQAllEAs()
6357 struct smb_com_transaction2_spi_rsp *pSMBr = NULL; in CIFSSMBSetEA() local
6368 (void **) &pSMBr); in CIFSSMBSetEA()
6443 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetEA()
6484 struct smb_com_ntransaction_change_notify_rsp *pSMBr = NULL; in CIFSSMBNotify() local
6490 (void **) &pSMBr); in CIFSSMBNotify()
6514 (struct smb_hdr *)pSMBr, &bytes_returned, in CIFSSMBNotify()