Lines Matching refs:pSMBr
367 decode_ext_sec_blob(struct cifs_ses *ses, NEGOTIATE_RSP *pSMBr) in decode_ext_sec_blob() argument
371 char *guid = pSMBr->u.extended_response.GUID; in decode_ext_sec_blob()
374 count = get_bcc(&pSMBr->hdr); in decode_ext_sec_blob()
395 pSMBr->u.extended_response.SecurityBlob, count, server); in decode_ext_sec_blob()
448 decode_lanman_negprot_rsp(struct TCP_Server_Info *server, NEGOTIATE_RSP *pSMBr) in decode_lanman_negprot_rsp() argument
451 struct lanman_neg_rsp *rsp = (struct lanman_neg_rsp *)pSMBr; in decode_lanman_negprot_rsp()
520 decode_lanman_negprot_rsp(struct TCP_Server_Info *server, NEGOTIATE_RSP *pSMBr) in decode_lanman_negprot_rsp() argument
548 NEGOTIATE_RSP *pSMBr; in CIFSSMBNegotiate() local
561 (void **) &pSMB, (void **) &pSMBr); in CIFSSMBNegotiate()
583 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBNegotiate()
587 server->dialect = le16_to_cpu(pSMBr->DialectIndex); in CIFSSMBNegotiate()
590 if ((pSMBr->hdr.WordCount < 13) || (server->dialect == BAD_PROT)) { in CIFSSMBNegotiate()
596 } else if (pSMBr->hdr.WordCount == 13) { in CIFSSMBNegotiate()
598 rc = decode_lanman_negprot_rsp(server, pSMBr); in CIFSSMBNegotiate()
600 } else if (pSMBr->hdr.WordCount != 17) { in CIFSSMBNegotiate()
607 server->sec_mode = pSMBr->SecurityMode; in CIFSSMBNegotiate()
613 server->maxReq = min_t(unsigned int, le16_to_cpu(pSMBr->MaxMpxCount), in CIFSSMBNegotiate()
617 server->maxBuf = le32_to_cpu(pSMBr->MaxBufferSize); in CIFSSMBNegotiate()
618 server->max_rw = le32_to_cpu(pSMBr->MaxRawSize); in CIFSSMBNegotiate()
620 server->capabilities = le32_to_cpu(pSMBr->Capabilities); in CIFSSMBNegotiate()
621 server->timeAdj = (int)(__s16)le16_to_cpu(pSMBr->ServerTimeZone); in CIFSSMBNegotiate()
624 if (pSMBr->EncryptionKeyLength == CIFS_CRYPTO_KEY_SIZE) { in CIFSSMBNegotiate()
626 memcpy(ses->server->cryptkey, pSMBr->u.EncryptionKey, in CIFSSMBNegotiate()
628 } else if ((pSMBr->hdr.Flags2 & SMBFLG2_EXT_SEC || in CIFSSMBNegotiate()
630 (pSMBr->EncryptionKeyLength == 0)) { in CIFSSMBNegotiate()
632 rc = decode_ext_sec_blob(ses, pSMBr); in CIFSSMBNegotiate()
791 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSPOSIXDelFile() local
801 (void **) &pSMBr); in CIFSPOSIXDelFile()
848 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSPOSIXDelFile()
866 DELETE_FILE_RSP *pSMBr = NULL; in CIFSSMBDelFile() local
874 (void **) &pSMBr); in CIFSSMBDelFile()
895 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBDelFile()
912 DELETE_DIRECTORY_RSP *pSMBr = NULL; in CIFSSMBRmDir() local
921 (void **) &pSMBr); in CIFSSMBRmDir()
941 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBRmDir()
958 CREATE_DIRECTORY_RSP *pSMBr = NULL; in CIFSSMBMkDir() local
966 (void **) &pSMBr); in CIFSSMBMkDir()
986 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBMkDir()
1005 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSPOSIXCreate() local
1016 (void **) &pSMBr); in CIFSPOSIXCreate()
1065 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSPOSIXCreate()
1072 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSPOSIXCreate()
1074 if (rc || get_bcc(&pSMBr->hdr) < sizeof(OPEN_PSX_RSP)) { in CIFSPOSIXCreate()
1080 psx_rsp = (OPEN_PSX_RSP *)((char *) &pSMBr->hdr.Protocol in CIFSPOSIXCreate()
1081 + le16_to_cpu(pSMBr->t2.DataOffset)); in CIFSPOSIXCreate()
1095 if (get_bcc(&pSMBr->hdr) < sizeof(OPEN_PSX_RSP) in CIFSPOSIXCreate()
1173 OPENX_RSP *pSMBr = NULL; in SMBLegacyOpen() local
1180 (void **) &pSMBr); in SMBLegacyOpen()
1232 (struct smb_hdr *)pSMBr, &bytes_returned, 0); in SMBLegacyOpen()
1241 *netfid = pSMBr->Fid; /* cifs fid stays in le */ in SMBLegacyOpen()
1255 cpu_to_le32(le16_to_cpu(pSMBr->FileAttributes)); in SMBLegacyOpen()
1258 cpu_to_le64(le32_to_cpu(pSMBr->EndOfFile)); in SMBLegacyOpen()
1666 READ_RSP *pSMBr = NULL; in CIFSSMBRead() local
1723 pSMBr = (READ_RSP *)iov[0].iov_base; in CIFSSMBRead()
1727 int data_length = le16_to_cpu(pSMBr->DataLengthHigh); in CIFSSMBRead()
1729 data_length += le16_to_cpu(pSMBr->DataLength); in CIFSSMBRead()
1740 pReadData = (char *) (&pSMBr->hdr.Protocol) + in CIFSSMBRead()
1741 le16_to_cpu(pSMBr->DataOffset); in CIFSSMBRead()
1776 WRITE_RSP *pSMBr = NULL; in CIFSSMBWrite() local
1803 (void **) &pSMBr); in CIFSSMBWrite()
1870 (struct smb_hdr *) pSMBr, &bytes_returned, long_op); in CIFSSMBWrite()
1875 *nbytes = le16_to_cpu(pSMBr->CountHigh); in CIFSSMBWrite()
1877 *nbytes += le16_to_cpu(pSMBr->Count); in CIFSSMBWrite()
2256 WRITE_RSP *pSMBr = (WRITE_RSP *)iov[0].iov_base; in CIFSSMBWrite2() local
2257 *nbytes = le16_to_cpu(pSMBr->CountHigh); in CIFSSMBWrite2()
2259 *nbytes += le16_to_cpu(pSMBr->Count); in CIFSSMBWrite2()
2400 struct smb_com_transaction2_sfi_rsp *pSMBr = NULL; in CIFSSMBPosixLock() local
2416 pSMBr = (struct smb_com_transaction2_sfi_rsp *)pSMB; in CIFSSMBPosixLock()
2464 (struct smb_hdr *) pSMBr, &bytes_returned); in CIFSSMBPosixLock()
2472 pSMBr = (struct smb_com_transaction2_sfi_rsp *)iov[0].iov_base; in CIFSSMBPosixLock()
2481 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBPosixLock()
2483 if (rc || get_bcc(&pSMBr->hdr) < sizeof(*parm_data)) { in CIFSSMBPosixLock()
2487 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBPosixLock()
2488 data_count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSSMBPosixLock()
2494 ((char *)&pSMBr->hdr.Protocol + data_offset); in CIFSSMBPosixLock()
2586 RENAME_RSP *pSMBr = NULL; in CIFSSMBRename() local
2595 (void **) &pSMBr); in CIFSSMBRename()
2636 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBRename()
2654 struct smb_com_transaction2_sfi_rsp *pSMBr = NULL; in CIFSSMBRenameOpenFile() local
2665 (void **) &pSMBr); in CIFSSMBRenameOpenFile()
2717 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBRenameOpenFile()
2738 COPY_RSP *pSMBr = NULL; in CIFSSMBCopy() local
2746 (void **) &pSMBr); in CIFSSMBCopy()
2786 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBCopy()
2789 rc, le16_to_cpu(pSMBr->CopyCount)); in CIFSSMBCopy()
2805 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSUnixCreateSymLink() local
2816 (void **) &pSMBr); in CIFSUnixCreateSymLink()
2875 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSUnixCreateSymLink()
2895 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSUnixCreateHardLink() local
2906 (void **) &pSMBr); in CIFSUnixCreateHardLink()
2962 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSUnixCreateHardLink()
2982 RENAME_RSP *pSMBr = NULL; in CIFSCreateHardLink() local
2992 (void **) &pSMBr); in CIFSCreateHardLink()
3037 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSCreateHardLink()
3056 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBUnixQuerySymLink() local
3067 (void **) &pSMBr); in CIFSSMBUnixQuerySymLink()
3109 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBUnixQuerySymLink()
3115 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBUnixQuerySymLink()
3117 if (rc || get_bcc(&pSMBr->hdr) < 2) in CIFSSMBUnixQuerySymLink()
3121 u16 count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSSMBUnixQuerySymLink()
3123 data_start = ((char *) &pSMBr->hdr.Protocol) + in CIFSSMBUnixQuerySymLink()
3124 le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBUnixQuerySymLink()
3126 if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) in CIFSSMBUnixQuerySymLink()
3162 struct smb_com_transaction_ioctl_rsp *pSMBr; in CIFSSMBQuerySymLink() local
3173 (void **) &pSMBr); in CIFSSMBQuerySymLink()
3197 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQuerySymLink()
3203 data_offset = le32_to_cpu(pSMBr->DataOffset); in CIFSSMBQuerySymLink()
3204 data_count = le32_to_cpu(pSMBr->DataCount); in CIFSSMBQuerySymLink()
3205 if (get_bcc(&pSMBr->hdr) < 2 || data_offset > 512) { in CIFSSMBQuerySymLink()
3215 end_of_smb = 2 + get_bcc(&pSMBr->hdr) + (char *)&pSMBr->ByteCount; in CIFSSMBQuerySymLink()
3217 ((char *)&pSMBr->hdr.Protocol + data_offset); in CIFSSMBQuerySymLink()
3257 if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) in CIFSSMBQuerySymLink()
3284 struct smb_com_transaction_ioctl_rsp *pSMBr; in CIFSSMB_set_compression() local
3288 (void **) &pSMBr); in CIFSSMB_set_compression()
3317 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMB_set_compression()
3481 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBGetPosixACL() local
3491 (void **) &pSMBr); in CIFSSMBGetPosixACL()
3537 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBGetPosixACL()
3544 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBGetPosixACL()
3546 if (rc || get_bcc(&pSMBr->hdr) < 2) in CIFSSMBGetPosixACL()
3549 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBGetPosixACL()
3550 __u16 count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSSMBGetPosixACL()
3552 (char *)&pSMBr->hdr.Protocol+data_offset, in CIFSSMBGetPosixACL()
3570 struct smb_com_transaction2_spi_rsp *pSMBr = NULL; in CIFSSMBSetPosixACL() local
3580 (void **) &pSMBr); in CIFSSMBSetPosixACL()
3630 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetPosixACL()
3648 struct smb_t2_qfi_rsp *pSMBr = NULL; in CIFSGetExtAttr() local
3658 (void **) &pSMBr); in CIFSGetExtAttr()
3689 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSGetExtAttr()
3694 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSGetExtAttr()
3696 if (rc || get_bcc(&pSMBr->hdr) < 2) in CIFSGetExtAttr()
3701 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSGetExtAttr()
3702 __u16 count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSGetExtAttr()
3711 (data_offset + (char *) &pSMBr->hdr.Protocol); in CIFSGetExtAttr()
3769 struct smb_com_ntransact_rsp *pSMBr; in validate_ntransact() local
3778 pSMBr = (struct smb_com_ntransact_rsp *)buf; in validate_ntransact()
3780 bcc = get_bcc(&pSMBr->hdr); in validate_ntransact()
3782 (char *)&pSMBr->ByteCount; in validate_ntransact()
3784 data_offset = le32_to_cpu(pSMBr->DataOffset); in validate_ntransact()
3785 data_count = le32_to_cpu(pSMBr->DataCount); in validate_ntransact()
3786 parm_offset = le32_to_cpu(pSMBr->ParameterOffset); in validate_ntransact()
3787 parm_count = le32_to_cpu(pSMBr->ParameterCount); in validate_ntransact()
3789 *ppparm = (char *)&pSMBr->hdr.Protocol + parm_offset; in validate_ntransact()
3790 *ppdata = (char *)&pSMBr->hdr.Protocol + data_offset; in validate_ntransact()
3805 end_of_smb, pSMBr); in validate_ntransact()
3856 struct smb_com_ntransact_rsp *pSMBr; in CIFSSMBGetCIFSACL() local
3864 pSMBr = (struct smb_com_ntransact_rsp *)iov[0].iov_base; in CIFSSMBGetCIFSACL()
3867 pSMBr, parm, *acl_inf); in CIFSSMBGetCIFSACL()
3869 if (le32_to_cpu(pSMBr->ParameterCount) != 4) { in CIFSSMBGetCIFSACL()
3914 void *pSMBr; in CIFSSMBSetCIFSACL() local
3917 rc = smb_init(SMB_COM_NT_TRANSACT, 19, tcon, (void **) &pSMB, &pSMBr); in CIFSSMBSetCIFSACL()
3947 memcpy((char *)pSMBr + offsetof(struct smb_hdr, Protocol) + in CIFSSMBSetCIFSACL()
3954 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetCIFSACL()
3978 QUERY_INFORMATION_RSP *pSMBr; in SMBQueryInformation() local
3986 (void **) &pSMBr); in SMBQueryInformation()
4008 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in SMBQueryInformation()
4013 __u32 time = le32_to_cpu(pSMBr->last_write_time); in SMBQueryInformation()
4025 cpu_to_le64(le32_to_cpu(pSMBr->size)); in SMBQueryInformation()
4028 cpu_to_le32(le16_to_cpu(pSMBr->attr)); in SMBQueryInformation()
4045 struct smb_t2_qfi_rsp *pSMBr = NULL; in CIFSSMBQFileInfo() local
4052 (void **) &pSMBr); in CIFSSMBQFileInfo()
4083 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFileInfo()
4087 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFileInfo()
4091 else if (get_bcc(&pSMBr->hdr) < 40) in CIFSSMBQFileInfo()
4094 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFileInfo()
4096 (char *) &pSMBr->hdr.Protocol + in CIFSSMBQFileInfo()
4116 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBQPathInfo() local
4125 (void **) &pSMBr); in CIFSSMBQPathInfo()
4170 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQPathInfo()
4174 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQPathInfo()
4178 else if (!legacy && get_bcc(&pSMBr->hdr) < 40) in CIFSSMBQPathInfo()
4180 else if (legacy && get_bcc(&pSMBr->hdr) < 24) in CIFSSMBQPathInfo()
4185 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQPathInfo()
4197 memcpy((char *) data, (char *) &pSMBr->hdr.Protocol + in CIFSSMBQPathInfo()
4214 struct smb_t2_qfi_rsp *pSMBr = NULL; in CIFSSMBUnixQFileInfo() local
4221 (void **) &pSMBr); in CIFSSMBUnixQFileInfo()
4252 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBUnixQFileInfo()
4256 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBUnixQFileInfo()
4258 if (rc || get_bcc(&pSMBr->hdr) < sizeof(FILE_UNIX_BASIC_INFO)) { in CIFSSMBUnixQFileInfo()
4262 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBUnixQFileInfo()
4264 (char *) &pSMBr->hdr.Protocol + in CIFSSMBUnixQFileInfo()
4285 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBUnixQPathInfo() local
4294 (void **) &pSMBr); in CIFSSMBUnixQPathInfo()
4336 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBUnixQPathInfo()
4340 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBUnixQPathInfo()
4342 if (rc || get_bcc(&pSMBr->hdr) < sizeof(FILE_UNIX_BASIC_INFO)) { in CIFSSMBUnixQPathInfo()
4346 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBUnixQPathInfo()
4348 (char *) &pSMBr->hdr.Protocol + in CIFSSMBUnixQPathInfo()
4369 TRANSACTION2_FFIRST_RSP *pSMBr = NULL; in CIFSFindFirst() local
4381 (void **) &pSMBr); in CIFSFindFirst()
4454 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSFindFirst()
4470 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSFindFirst()
4474 if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) in CIFSFindFirst()
4479 psrch_inf->ntwrk_buf_start = (char *)pSMBr; in CIFSFindFirst()
4482 (char *) &pSMBr->hdr.Protocol + in CIFSFindFirst()
4483 le16_to_cpu(pSMBr->t2.DataOffset); in CIFSFindFirst()
4484 parms = (T2_FFIRST_RSP_PARMS *)((char *) &pSMBr->hdr.Protocol + in CIFSFindFirst()
4485 le16_to_cpu(pSMBr->t2.ParameterOffset)); in CIFSFindFirst()
4521 TRANSACTION2_FNEXT_RSP *pSMBr = NULL; in CIFSFindNext() local
4535 (void **) &pSMBr); in CIFSFindNext()
4582 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSFindNext()
4592 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSFindNext()
4598 if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) in CIFSFindNext()
4602 response_data = (char *) &pSMBr->hdr.Protocol + in CIFSFindNext()
4603 le16_to_cpu(pSMBr->t2.ParameterOffset); in CIFSFindNext()
4605 response_data = (char *)&pSMBr->hdr.Protocol + in CIFSFindNext()
4606 le16_to_cpu(pSMBr->t2.DataOffset); in CIFSFindNext()
4690 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSGetSrvInodeNumber() local
4700 (void **) &pSMBr); in CIFSGetSrvInodeNumber()
4743 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSGetSrvInodeNumber()
4748 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSGetSrvInodeNumber()
4750 if (rc || get_bcc(&pSMBr->hdr) < 2) in CIFSGetSrvInodeNumber()
4755 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSGetSrvInodeNumber()
4756 __u16 count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSGetSrvInodeNumber()
4765 (data_offset + (char *) &pSMBr->hdr.Protocol); in CIFSGetSrvInodeNumber()
4783 parse_DFS_referrals(TRANSACTION2_GET_DFS_REFER_RSP *pSMBr, in parse_DFS_referrals() argument
4794 if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) in parse_DFS_referrals()
4798 *num_of_nodes = le16_to_cpu(pSMBr->NumberOfReferrals); in parse_DFS_referrals()
4807 ref = (struct dfs_referral_level_3 *) &(pSMBr->referrals); in parse_DFS_referrals()
4816 data_end = (char *)(&(pSMBr->PathConsumed)) + in parse_DFS_referrals()
4817 le16_to_cpu(pSMBr->t2.DataCount); in parse_DFS_referrals()
4820 *num_of_nodes, le32_to_cpu(pSMBr->DFSFlags)); in parse_DFS_referrals()
4835 node->flags = le32_to_cpu(pSMBr->DFSFlags); in parse_DFS_referrals()
4846 le16_to_cpu(pSMBr->PathConsumed), in parse_DFS_referrals()
4850 node->path_consumed = le16_to_cpu(pSMBr->PathConsumed); in parse_DFS_referrals()
4895 TRANSACTION2_GET_DFS_REFER_RSP *pSMBr = NULL; in CIFSGetDFSRefer() local
4908 (void **) &pSMBr); in CIFSGetDFSRefer()
4966 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSGetDFSRefer()
4971 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSGetDFSRefer()
4974 if (rc || get_bcc(&pSMBr->hdr) < 17) { in CIFSGetDFSRefer()
4980 get_bcc(&pSMBr->hdr), le16_to_cpu(pSMBr->t2.DataOffset)); in CIFSGetDFSRefer()
4983 rc = parse_DFS_referrals(pSMBr, num_of_nodes, in CIFSGetDFSRefer()
5003 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in SMBOldQFSInfo() local
5012 (void **) &pSMBr); in SMBOldQFSInfo()
5040 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in SMBOldQFSInfo()
5044 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in SMBOldQFSInfo()
5046 if (rc || get_bcc(&pSMBr->hdr) < 18) in SMBOldQFSInfo()
5049 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in SMBOldQFSInfo()
5051 get_bcc(&pSMBr->hdr), data_offset); in SMBOldQFSInfo()
5054 (((char *) &pSMBr->hdr.Protocol) + data_offset); in SMBOldQFSInfo()
5083 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSInfo() local
5092 (void **) &pSMBr); in CIFSSMBQFSInfo()
5120 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSInfo()
5124 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSInfo()
5126 if (rc || get_bcc(&pSMBr->hdr) < 24) in CIFSSMBQFSInfo()
5129 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSInfo()
5133 *) (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSInfo()
5162 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSAttributeInfo() local
5171 (void **) &pSMBr); in CIFSSMBQFSAttributeInfo()
5200 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSAttributeInfo()
5204 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSAttributeInfo()
5206 if (rc || get_bcc(&pSMBr->hdr) < 13) { in CIFSSMBQFSAttributeInfo()
5210 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSAttributeInfo()
5213 *) (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSAttributeInfo()
5232 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSDeviceInfo() local
5241 (void **) &pSMBr); in CIFSSMBQFSDeviceInfo()
5271 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSDeviceInfo()
5275 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSDeviceInfo()
5277 if (rc || get_bcc(&pSMBr->hdr) < in CIFSSMBQFSDeviceInfo()
5281 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSDeviceInfo()
5284 (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSDeviceInfo()
5303 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSUnixInfo() local
5312 (void **) &pSMB, (void **) &pSMBr); in CIFSSMBQFSUnixInfo()
5341 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSUnixInfo()
5345 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSUnixInfo()
5347 if (rc || get_bcc(&pSMBr->hdr) < 13) { in CIFSSMBQFSUnixInfo()
5350 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSUnixInfo()
5353 *) (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSUnixInfo()
5373 TRANSACTION2_SETFSI_RSP *pSMBr = NULL; in CIFSSMBSetFSUnixInfo() local
5382 (void **) &pSMB, (void **) &pSMBr); in CIFSSMBSetFSUnixInfo()
5424 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetFSUnixInfo()
5428 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBSetFSUnixInfo()
5448 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSPosixInfo() local
5457 (void **) &pSMBr); in CIFSSMBQFSPosixInfo()
5486 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSPosixInfo()
5490 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSPosixInfo()
5492 if (rc || get_bcc(&pSMBr->hdr) < 13) { in CIFSSMBQFSPosixInfo()
5495 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSPosixInfo()
5498 *) (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSPosixInfo()
5541 struct smb_com_transaction2_spi_rsp *pSMBr = NULL; in CIFSSMBSetEOF() local
5553 (void **) &pSMBr); in CIFSSMBSetEOF()
5614 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetEOF()
5835 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSSMBSetPathInfo() local
5846 (void **) &pSMBr); in CIFSSMBSetPathInfo()
5896 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetPathInfo()
5918 SETATTR_RSP *pSMBr = NULL;
5927 (void **) &pSMBr);
5947 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
6079 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSSMBUnixSetPathInfo() local
6089 (void **) &pSMBr); in CIFSSMBUnixSetPathInfo()
6140 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBUnixSetPathInfo()
6168 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBQAllEAs() local
6182 (void **) &pSMBr); in CIFSSMBQAllEAs()
6224 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQAllEAs()
6235 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQAllEAs()
6236 if (rc || get_bcc(&pSMBr->hdr) < 4) { in CIFSSMBQAllEAs()
6249 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQAllEAs()
6251 (((char *) &pSMBr->hdr.Protocol) + data_offset); in CIFSSMBQAllEAs()
6264 end_of_smb = (char *)pByteArea(&pSMBr->hdr) + get_bcc(&pSMBr->hdr); in CIFSSMBQAllEAs()
6353 struct smb_com_transaction2_spi_rsp *pSMBr = NULL; in CIFSSMBSetEA() local
6363 (void **) &pSMBr); in CIFSSMBSetEA()
6440 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetEA()
6481 struct smb_com_ntransaction_change_notify_rsp *pSMBr = NULL; in CIFSSMBNotify() local
6487 (void **) &pSMBr); in CIFSSMBNotify()
6511 (struct smb_hdr *)pSMBr, &bytes_returned, in CIFSSMBNotify()