Lines Matching refs:pSMBr

377 decode_ext_sec_blob(struct cifs_ses *ses, NEGOTIATE_RSP *pSMBr)  in decode_ext_sec_blob()  argument
381 char *guid = pSMBr->u.extended_response.GUID; in decode_ext_sec_blob()
384 count = get_bcc(&pSMBr->hdr); in decode_ext_sec_blob()
405 pSMBr->u.extended_response.SecurityBlob, count, server); in decode_ext_sec_blob()
436 NEGOTIATE_RSP *pSMBr; in CIFSSMBNegotiate() local
448 (void **) &pSMB, (void **) &pSMBr); in CIFSSMBNegotiate()
475 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBNegotiate()
479 server->dialect = le16_to_cpu(pSMBr->DialectIndex); in CIFSSMBNegotiate()
482 if ((pSMBr->hdr.WordCount <= 13) || (server->dialect == BAD_PROT)) { in CIFSSMBNegotiate()
488 } else if (pSMBr->hdr.WordCount != 17) { in CIFSSMBNegotiate()
495 server->sec_mode = pSMBr->SecurityMode; in CIFSSMBNegotiate()
501 server->maxReq = min_t(unsigned int, le16_to_cpu(pSMBr->MaxMpxCount), in CIFSSMBNegotiate()
505 server->maxBuf = le32_to_cpu(pSMBr->MaxBufferSize); in CIFSSMBNegotiate()
508 server->max_rw = le32_to_cpu(pSMBr->MaxRawSize); in CIFSSMBNegotiate()
510 server->capabilities = le32_to_cpu(pSMBr->Capabilities); in CIFSSMBNegotiate()
511 server->timeAdj = (int)(__s16)le16_to_cpu(pSMBr->ServerTimeZone); in CIFSSMBNegotiate()
514 if (pSMBr->EncryptionKeyLength == CIFS_CRYPTO_KEY_SIZE) { in CIFSSMBNegotiate()
516 memcpy(ses->server->cryptkey, pSMBr->u.EncryptionKey, in CIFSSMBNegotiate()
518 } else if (pSMBr->hdr.Flags2 & SMBFLG2_EXT_SEC || in CIFSSMBNegotiate()
521 rc = decode_ext_sec_blob(ses, pSMBr); in CIFSSMBNegotiate()
697 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSPOSIXDelFile() local
707 (void **) &pSMBr); in CIFSPOSIXDelFile()
755 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSPOSIXDelFile()
773 DELETE_FILE_RSP *pSMBr = NULL; in CIFSSMBDelFile() local
781 (void **) &pSMBr); in CIFSSMBDelFile()
800 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBDelFile()
817 DELETE_DIRECTORY_RSP *pSMBr = NULL; in CIFSSMBRmDir() local
826 (void **) &pSMBr); in CIFSSMBRmDir()
844 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBRmDir()
862 CREATE_DIRECTORY_RSP *pSMBr = NULL; in CIFSSMBMkDir() local
870 (void **) &pSMBr); in CIFSSMBMkDir()
888 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBMkDir()
907 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSPOSIXCreate() local
918 (void **) &pSMBr); in CIFSPOSIXCreate()
966 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSPOSIXCreate()
973 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSPOSIXCreate()
975 if (rc || get_bcc(&pSMBr->hdr) < sizeof(OPEN_PSX_RSP)) { in CIFSPOSIXCreate()
981 psx_rsp = (OPEN_PSX_RSP *)((char *) &pSMBr->hdr.Protocol in CIFSPOSIXCreate()
982 + le16_to_cpu(pSMBr->t2.DataOffset)); in CIFSPOSIXCreate()
996 if (get_bcc(&pSMBr->hdr) < sizeof(OPEN_PSX_RSP) in CIFSPOSIXCreate()
1074 OPENX_RSP *pSMBr = NULL; in SMBLegacyOpen() local
1081 (void **) &pSMBr); in SMBLegacyOpen()
1130 (struct smb_hdr *)pSMBr, &bytes_returned, 0); in SMBLegacyOpen()
1139 *netfid = pSMBr->Fid; /* cifs fid stays in le */ in SMBLegacyOpen()
1153 cpu_to_le32(le16_to_cpu(pSMBr->FileAttributes)); in SMBLegacyOpen()
1156 cpu_to_le64(le32_to_cpu(pSMBr->EndOfFile)); in SMBLegacyOpen()
1416 READ_RSP *pSMBr = NULL; in CIFSSMBRead() local
1475 pSMBr = (READ_RSP *)rsp_iov.iov_base; in CIFSSMBRead()
1479 int data_length = le16_to_cpu(pSMBr->DataLengthHigh); in CIFSSMBRead()
1481 data_length += le16_to_cpu(pSMBr->DataLength); in CIFSSMBRead()
1492 pReadData = (char *) (&pSMBr->hdr.Protocol) + in CIFSSMBRead()
1493 le16_to_cpu(pSMBr->DataOffset); in CIFSSMBRead()
1526 WRITE_RSP *pSMBr = NULL; in CIFSSMBWrite() local
1553 (void **) &pSMBr); in CIFSSMBWrite()
1615 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBWrite()
1620 *nbytes = le16_to_cpu(pSMBr->CountHigh); in CIFSSMBWrite()
1622 *nbytes += le16_to_cpu(pSMBr->Count); in CIFSSMBWrite()
1861 WRITE_RSP *pSMBr = (WRITE_RSP *)rsp_iov.iov_base; in CIFSSMBWrite2() local
1862 *nbytes = le16_to_cpu(pSMBr->CountHigh); in CIFSSMBWrite2()
1864 *nbytes += le16_to_cpu(pSMBr->Count); in CIFSSMBWrite2()
2005 struct smb_com_transaction2_sfi_rsp *pSMBr = NULL; in CIFSSMBPosixLock() local
2022 pSMBr = (struct smb_com_transaction2_sfi_rsp *)pSMB; in CIFSSMBPosixLock()
2071 (struct smb_hdr *) pSMBr, &bytes_returned); in CIFSSMBPosixLock()
2077 pSMBr = (struct smb_com_transaction2_sfi_rsp *)rsp_iov.iov_base; in CIFSSMBPosixLock()
2087 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBPosixLock()
2089 if (rc || get_bcc(&pSMBr->hdr) < sizeof(*parm_data)) { in CIFSSMBPosixLock()
2093 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBPosixLock()
2094 data_count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSSMBPosixLock()
2100 ((char *)&pSMBr->hdr.Protocol + data_offset); in CIFSSMBPosixLock()
2192 RENAME_RSP *pSMBr = NULL; in CIFSSMBRename() local
2201 (void **) &pSMBr); in CIFSSMBRename()
2237 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBRename()
2255 struct smb_com_transaction2_sfi_rsp *pSMBr = NULL; in CIFSSMBRenameOpenFile() local
2266 (void **) &pSMBr); in CIFSSMBRenameOpenFile()
2319 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBRenameOpenFile()
2340 COPY_RSP *pSMBr = NULL; in CIFSSMBCopy() local
2348 (void **) &pSMBr); in CIFSSMBCopy()
2383 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBCopy()
2386 rc, le16_to_cpu(pSMBr->CopyCount)); in CIFSSMBCopy()
2402 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSUnixCreateSymLink() local
2413 (void **) &pSMBr); in CIFSUnixCreateSymLink()
2469 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSUnixCreateSymLink()
2489 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSUnixCreateHardLink() local
2500 (void **) &pSMBr); in CIFSUnixCreateHardLink()
2553 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSUnixCreateHardLink()
2573 RENAME_RSP *pSMBr = NULL; in CIFSCreateHardLink() local
2583 (void **) &pSMBr); in CIFSCreateHardLink()
2623 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSCreateHardLink()
2642 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBUnixQuerySymLink() local
2653 (void **) &pSMBr); in CIFSSMBUnixQuerySymLink()
2693 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBUnixQuerySymLink()
2699 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBUnixQuerySymLink()
2701 if (rc || get_bcc(&pSMBr->hdr) < 2) in CIFSSMBUnixQuerySymLink()
2705 u16 count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSSMBUnixQuerySymLink()
2707 data_start = ((char *) &pSMBr->hdr.Protocol) + in CIFSSMBUnixQuerySymLink()
2708 le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBUnixQuerySymLink()
2710 if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) in CIFSSMBUnixQuerySymLink()
2746 struct smb_com_transaction_ioctl_rsp *pSMBr; in CIFSSMBQuerySymLink() local
2757 (void **) &pSMBr); in CIFSSMBQuerySymLink()
2781 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQuerySymLink()
2787 data_offset = le32_to_cpu(pSMBr->DataOffset); in CIFSSMBQuerySymLink()
2788 data_count = le32_to_cpu(pSMBr->DataCount); in CIFSSMBQuerySymLink()
2789 if (get_bcc(&pSMBr->hdr) < 2 || data_offset > 512) { in CIFSSMBQuerySymLink()
2799 end_of_smb = 2 + get_bcc(&pSMBr->hdr) + (char *)&pSMBr->ByteCount; in CIFSSMBQuerySymLink()
2801 ((char *)&pSMBr->hdr.Protocol + data_offset); in CIFSSMBQuerySymLink()
2841 if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) in CIFSSMBQuerySymLink()
2868 struct smb_com_transaction_ioctl_rsp *pSMBr; in CIFSSMB_set_compression() local
2872 (void **) &pSMBr); in CIFSSMB_set_compression()
2901 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMB_set_compression()
3059 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBGetPosixACL() local
3069 (void **) &pSMBr); in CIFSSMBGetPosixACL()
3113 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBGetPosixACL()
3120 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBGetPosixACL()
3122 if (rc || get_bcc(&pSMBr->hdr) < 2) in CIFSSMBGetPosixACL()
3125 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBGetPosixACL()
3126 __u16 count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSSMBGetPosixACL()
3128 (char *)&pSMBr->hdr.Protocol+data_offset, in CIFSSMBGetPosixACL()
3146 struct smb_com_transaction2_spi_rsp *pSMBr = NULL; in CIFSSMBSetPosixACL() local
3156 (void **) &pSMBr); in CIFSSMBSetPosixACL()
3204 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetPosixACL()
3221 struct smb_t2_qfi_rsp *pSMBr = NULL; in CIFSGetExtAttr() local
3231 (void **) &pSMBr); in CIFSGetExtAttr()
3262 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSGetExtAttr()
3267 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSGetExtAttr()
3269 if (rc || get_bcc(&pSMBr->hdr) < 2) in CIFSGetExtAttr()
3274 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSGetExtAttr()
3275 __u16 count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSGetExtAttr()
3284 (data_offset + (char *) &pSMBr->hdr.Protocol); in CIFSGetExtAttr()
3341 struct smb_com_ntransact_rsp *pSMBr; in validate_ntransact() local
3350 pSMBr = (struct smb_com_ntransact_rsp *)buf; in validate_ntransact()
3352 bcc = get_bcc(&pSMBr->hdr); in validate_ntransact()
3354 (char *)&pSMBr->ByteCount; in validate_ntransact()
3356 data_offset = le32_to_cpu(pSMBr->DataOffset); in validate_ntransact()
3357 data_count = le32_to_cpu(pSMBr->DataCount); in validate_ntransact()
3358 parm_offset = le32_to_cpu(pSMBr->ParameterOffset); in validate_ntransact()
3359 parm_count = le32_to_cpu(pSMBr->ParameterCount); in validate_ntransact()
3361 *ppparm = (char *)&pSMBr->hdr.Protocol + parm_offset; in validate_ntransact()
3362 *ppdata = (char *)&pSMBr->hdr.Protocol + data_offset; in validate_ntransact()
3377 end_of_smb, pSMBr); in validate_ntransact()
3430 struct smb_com_ntransact_rsp *pSMBr; in CIFSSMBGetCIFSACL() local
3438 pSMBr = (struct smb_com_ntransact_rsp *)rsp_iov.iov_base; in CIFSSMBGetCIFSACL()
3441 pSMBr, parm, *acl_inf); in CIFSSMBGetCIFSACL()
3443 if (le32_to_cpu(pSMBr->ParameterCount) != 4) { in CIFSSMBGetCIFSACL()
3487 void *pSMBr; in CIFSSMBSetCIFSACL() local
3490 rc = smb_init(SMB_COM_NT_TRANSACT, 19, tcon, (void **) &pSMB, &pSMBr); in CIFSSMBSetCIFSACL()
3520 memcpy((char *)pSMBr + offsetof(struct smb_hdr, Protocol) + in CIFSSMBSetCIFSACL()
3527 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetCIFSACL()
3550 QUERY_INFORMATION_RSP *pSMBr; in SMBQueryInformation() local
3558 (void **) &pSMBr); in SMBQueryInformation()
3578 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in SMBQueryInformation()
3583 __u32 time = le32_to_cpu(pSMBr->last_write_time); in SMBQueryInformation()
3595 cpu_to_le64(le32_to_cpu(pSMBr->size)); in SMBQueryInformation()
3598 cpu_to_le32(le16_to_cpu(pSMBr->attr)); in SMBQueryInformation()
3615 struct smb_t2_qfi_rsp *pSMBr = NULL; in CIFSSMBQFileInfo() local
3622 (void **) &pSMBr); in CIFSSMBQFileInfo()
3653 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFileInfo()
3657 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFileInfo()
3661 else if (get_bcc(&pSMBr->hdr) < 40) in CIFSSMBQFileInfo()
3664 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFileInfo()
3666 (char *) &pSMBr->hdr.Protocol + in CIFSSMBQFileInfo()
3686 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBQPathInfo() local
3695 (void **) &pSMBr); in CIFSSMBQPathInfo()
3738 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQPathInfo()
3742 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQPathInfo()
3746 else if (!legacy && get_bcc(&pSMBr->hdr) < 40) in CIFSSMBQPathInfo()
3748 else if (legacy && get_bcc(&pSMBr->hdr) < 24) in CIFSSMBQPathInfo()
3753 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQPathInfo()
3765 memcpy((char *) data, (char *) &pSMBr->hdr.Protocol + in CIFSSMBQPathInfo()
3782 struct smb_t2_qfi_rsp *pSMBr = NULL; in CIFSSMBUnixQFileInfo() local
3789 (void **) &pSMBr); in CIFSSMBUnixQFileInfo()
3820 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBUnixQFileInfo()
3824 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBUnixQFileInfo()
3826 if (rc || get_bcc(&pSMBr->hdr) < sizeof(FILE_UNIX_BASIC_INFO)) { in CIFSSMBUnixQFileInfo()
3830 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBUnixQFileInfo()
3832 (char *) &pSMBr->hdr.Protocol + in CIFSSMBUnixQFileInfo()
3853 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBUnixQPathInfo() local
3862 (void **) &pSMBr); in CIFSSMBUnixQPathInfo()
3902 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBUnixQPathInfo()
3906 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBUnixQPathInfo()
3908 if (rc || get_bcc(&pSMBr->hdr) < sizeof(FILE_UNIX_BASIC_INFO)) { in CIFSSMBUnixQPathInfo()
3912 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBUnixQPathInfo()
3914 (char *) &pSMBr->hdr.Protocol + in CIFSSMBUnixQPathInfo()
3935 TRANSACTION2_FFIRST_RSP *pSMBr = NULL; in CIFSFindFirst() local
3947 (void **) &pSMBr); in CIFSFindFirst()
4019 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSFindFirst()
4035 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSFindFirst()
4039 if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) in CIFSFindFirst()
4044 psrch_inf->ntwrk_buf_start = (char *)pSMBr; in CIFSFindFirst()
4047 (char *) &pSMBr->hdr.Protocol + in CIFSFindFirst()
4048 le16_to_cpu(pSMBr->t2.DataOffset); in CIFSFindFirst()
4049 parms = (T2_FFIRST_RSP_PARMS *)((char *) &pSMBr->hdr.Protocol + in CIFSFindFirst()
4050 le16_to_cpu(pSMBr->t2.ParameterOffset)); in CIFSFindFirst()
4086 TRANSACTION2_FNEXT_RSP *pSMBr = NULL; in CIFSFindNext() local
4100 (void **) &pSMBr); in CIFSFindNext()
4147 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSFindNext()
4157 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSFindNext()
4163 if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) in CIFSFindNext()
4167 response_data = (char *) &pSMBr->hdr.Protocol + in CIFSFindNext()
4168 le16_to_cpu(pSMBr->t2.ParameterOffset); in CIFSFindNext()
4170 response_data = (char *)&pSMBr->hdr.Protocol + in CIFSFindNext()
4171 le16_to_cpu(pSMBr->t2.DataOffset); in CIFSFindNext()
4256 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSGetSrvInodeNumber() local
4266 (void **) &pSMBr); in CIFSGetSrvInodeNumber()
4307 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSGetSrvInodeNumber()
4312 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSGetSrvInodeNumber()
4314 if (rc || get_bcc(&pSMBr->hdr) < 2) in CIFSGetSrvInodeNumber()
4319 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSGetSrvInodeNumber()
4320 __u16 count = le16_to_cpu(pSMBr->t2.DataCount); in CIFSGetSrvInodeNumber()
4329 (data_offset + (char *) &pSMBr->hdr.Protocol); in CIFSGetSrvInodeNumber()
4348 TRANSACTION2_GET_DFS_REFER_RSP *pSMBr = NULL; in CIFSGetDFSRefer() local
4362 (void **) &pSMBr); in CIFSGetDFSRefer()
4418 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSGetDFSRefer()
4423 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSGetDFSRefer()
4426 if (rc || get_bcc(&pSMBr->hdr) < 17) { in CIFSGetDFSRefer()
4432 get_bcc(&pSMBr->hdr), le16_to_cpu(pSMBr->t2.DataOffset)); in CIFSGetDFSRefer()
4435 rc = parse_dfs_referrals(&pSMBr->dfs_data, in CIFSGetDFSRefer()
4436 le16_to_cpu(pSMBr->t2.DataCount), in CIFSGetDFSRefer()
4439 (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) != 0); in CIFSGetDFSRefer()
4457 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in SMBOldQFSInfo() local
4466 (void **) &pSMBr); in SMBOldQFSInfo()
4494 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in SMBOldQFSInfo()
4498 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in SMBOldQFSInfo()
4500 if (rc || get_bcc(&pSMBr->hdr) < 18) in SMBOldQFSInfo()
4503 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in SMBOldQFSInfo()
4505 get_bcc(&pSMBr->hdr), data_offset); in SMBOldQFSInfo()
4508 (((char *) &pSMBr->hdr.Protocol) + data_offset); in SMBOldQFSInfo()
4544 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSInfo() local
4553 (void **) &pSMBr); in CIFSSMBQFSInfo()
4581 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSInfo()
4585 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSInfo()
4587 if (rc || get_bcc(&pSMBr->hdr) < 24) in CIFSSMBQFSInfo()
4590 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSInfo()
4594 *) (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSInfo()
4630 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSAttributeInfo() local
4639 (void **) &pSMBr); in CIFSSMBQFSAttributeInfo()
4668 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSAttributeInfo()
4672 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSAttributeInfo()
4674 if (rc || get_bcc(&pSMBr->hdr) < 13) { in CIFSSMBQFSAttributeInfo()
4678 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSAttributeInfo()
4681 *) (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSAttributeInfo()
4700 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSDeviceInfo() local
4709 (void **) &pSMBr); in CIFSSMBQFSDeviceInfo()
4739 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSDeviceInfo()
4743 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSDeviceInfo()
4745 if (rc || get_bcc(&pSMBr->hdr) < in CIFSSMBQFSDeviceInfo()
4749 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSDeviceInfo()
4752 (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSDeviceInfo()
4771 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSUnixInfo() local
4780 (void **) &pSMB, (void **) &pSMBr); in CIFSSMBQFSUnixInfo()
4809 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSUnixInfo()
4813 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSUnixInfo()
4815 if (rc || get_bcc(&pSMBr->hdr) < 13) { in CIFSSMBQFSUnixInfo()
4818 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSUnixInfo()
4821 *) (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSUnixInfo()
4841 TRANSACTION2_SETFSI_RSP *pSMBr = NULL; in CIFSSMBSetFSUnixInfo() local
4850 (void **) &pSMB, (void **) &pSMBr); in CIFSSMBSetFSUnixInfo()
4892 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetFSUnixInfo()
4896 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBSetFSUnixInfo()
4916 TRANSACTION2_QFSI_RSP *pSMBr = NULL; in CIFSSMBQFSPosixInfo() local
4925 (void **) &pSMBr); in CIFSSMBQFSPosixInfo()
4954 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQFSPosixInfo()
4958 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQFSPosixInfo()
4960 if (rc || get_bcc(&pSMBr->hdr) < 13) { in CIFSSMBQFSPosixInfo()
4963 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSPosixInfo()
4966 *) (((char *) &pSMBr->hdr.Protocol) + in CIFSSMBQFSPosixInfo()
5016 struct smb_com_transaction2_spi_rsp *pSMBr = NULL; in CIFSSMBSetEOF() local
5028 (void **) &pSMBr); in CIFSSMBSetEOF()
5087 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetEOF()
5344 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSSMBSetPathInfo() local
5356 (void **) &pSMBr); in CIFSSMBSetPathInfo()
5404 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetPathInfo()
5540 TRANSACTION2_SPI_RSP *pSMBr = NULL; in CIFSSMBUnixSetPathInfo() local
5550 (void **) &pSMBr); in CIFSSMBUnixSetPathInfo()
5598 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBUnixSetPathInfo()
5626 TRANSACTION2_QPI_RSP *pSMBr = NULL; in CIFSSMBQAllEAs() local
5642 (void **) &pSMBr); in CIFSSMBQAllEAs()
5682 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBQAllEAs()
5693 rc = validate_t2((struct smb_t2_rsp *)pSMBr); in CIFSSMBQAllEAs()
5694 if (rc || get_bcc(&pSMBr->hdr) < 4) { in CIFSSMBQAllEAs()
5707 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQAllEAs()
5709 (((char *) &pSMBr->hdr.Protocol) + data_offset); in CIFSSMBQAllEAs()
5722 end_of_smb = (char *)pByteArea(&pSMBr->hdr) + get_bcc(&pSMBr->hdr); in CIFSSMBQAllEAs()
5811 struct smb_com_transaction2_spi_rsp *pSMBr = NULL; in CIFSSMBSetEA() local
5822 (void **) &pSMBr); in CIFSSMBSetEA()
5895 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBSetEA()