Lines Matching defs:pSMBr

348 decode_ext_sec_blob(struct cifs_ses *ses, NEGOTIATE_RSP *pSMBr)
352 char *guid = pSMBr->u.extended_response.GUID;
355 count = get_bcc(&pSMBr->hdr);
376 pSMBr->u.extended_response.SecurityBlob, count, server);
407 NEGOTIATE_RSP *pSMBr;
419 (void **) &pSMB, (void **) &pSMBr);
446 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
450 server->dialect = le16_to_cpu(pSMBr->DialectIndex);
453 if ((pSMBr->hdr.WordCount <= 13) || (server->dialect == BAD_PROT)) {
459 } else if (pSMBr->hdr.WordCount != 17) {
466 server->sec_mode = pSMBr->SecurityMode;
472 server->maxReq = min_t(unsigned int, le16_to_cpu(pSMBr->MaxMpxCount),
476 server->maxBuf = le32_to_cpu(pSMBr->MaxBufferSize);
479 server->max_rw = le32_to_cpu(pSMBr->MaxRawSize);
481 server->capabilities = le32_to_cpu(pSMBr->Capabilities);
482 server->timeAdj = (int)(__s16)le16_to_cpu(pSMBr->ServerTimeZone);
485 if (pSMBr->EncryptionKeyLength == CIFS_CRYPTO_KEY_SIZE) {
487 memcpy(ses->server->cryptkey, pSMBr->u.EncryptionKey,
489 } else if (pSMBr->hdr.Flags2 & SMBFLG2_EXT_SEC ||
492 rc = decode_ext_sec_blob(ses, pSMBr);
668 TRANSACTION2_SPI_RSP *pSMBr = NULL;
678 (void **) &pSMBr);
726 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
744 DELETE_FILE_RSP *pSMBr = NULL;
752 (void **) &pSMBr);
771 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
788 DELETE_DIRECTORY_RSP *pSMBr = NULL;
797 (void **) &pSMBr);
815 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
833 CREATE_DIRECTORY_RSP *pSMBr = NULL;
841 (void **) &pSMBr);
859 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
878 TRANSACTION2_SPI_RSP *pSMBr = NULL;
889 (void **) &pSMBr);
937 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
944 rc = validate_t2((struct smb_t2_rsp *)pSMBr);
946 if (rc || get_bcc(&pSMBr->hdr) < sizeof(OPEN_PSX_RSP)) {
952 psx_rsp = (OPEN_PSX_RSP *)((char *) &pSMBr->hdr.Protocol
953 + le16_to_cpu(pSMBr->t2.DataOffset));
967 if (get_bcc(&pSMBr->hdr) < sizeof(OPEN_PSX_RSP)
1045 OPENX_RSP *pSMBr = NULL;
1052 (void **) &pSMBr);
1101 (struct smb_hdr *)pSMBr, &bytes_returned, 0);
1108 /* *pOplock = pSMBr->OplockLevel; */ /* BB take from action field*/
1110 *netfid = pSMBr->Fid; /* cifs fid stays in le */
1114 /* if (cpu_to_le32(FILE_CREATE) == pSMBr->CreateAction)
1124 cpu_to_le32(le16_to_cpu(pSMBr->FileAttributes));
1127 cpu_to_le64(le32_to_cpu(pSMBr->EndOfFile));
1386 READ_RSP *pSMBr = NULL;
1445 pSMBr = (READ_RSP *)rsp_iov.iov_base;
1449 int data_length = le16_to_cpu(pSMBr->DataLengthHigh);
1451 data_length += le16_to_cpu(pSMBr->DataLength);
1462 pReadData = (char *) (&pSMBr->hdr.Protocol) +
1463 le16_to_cpu(pSMBr->DataOffset);
1496 WRITE_RSP *pSMBr = NULL;
1523 (void **) &pSMBr);
1585 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
1590 *nbytes = le16_to_cpu(pSMBr->CountHigh);
1592 *nbytes += le16_to_cpu(pSMBr->Count);
1828 WRITE_RSP *pSMBr = (WRITE_RSP *)rsp_iov.iov_base;
1829 *nbytes = le16_to_cpu(pSMBr->CountHigh);
1831 *nbytes += le16_to_cpu(pSMBr->Count);
1904 /* LOCK_RSP *pSMBr = NULL; */ /* No response data other than rc to parse */
1972 struct smb_com_transaction2_sfi_rsp *pSMBr = NULL;
1989 pSMBr = (struct smb_com_transaction2_sfi_rsp *)pSMB;
2038 (struct smb_hdr *) pSMBr, &bytes_returned);
2044 pSMBr = (struct smb_com_transaction2_sfi_rsp *)rsp_iov.iov_base;
2054 rc = validate_t2((struct smb_t2_rsp *)pSMBr);
2056 if (rc || get_bcc(&pSMBr->hdr) < sizeof(*parm_data)) {
2060 data_offset = le16_to_cpu(pSMBr->t2.DataOffset);
2061 data_count = le16_to_cpu(pSMBr->t2.DataCount);
2067 ((char *)&pSMBr->hdr.Protocol + data_offset);
2159 RENAME_RSP *pSMBr = NULL;
2168 (void **) &pSMBr);
2204 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
2222 struct smb_com_transaction2_sfi_rsp *pSMBr = NULL;
2233 (void **) &pSMBr);
2286 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
2307 COPY_RSP *pSMBr = NULL;
2315 (void **) &pSMBr);
2350 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
2353 rc, le16_to_cpu(pSMBr->CopyCount));
2369 TRANSACTION2_SPI_RSP *pSMBr = NULL;
2380 (void **) &pSMBr);
2436 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
2456 TRANSACTION2_SPI_RSP *pSMBr = NULL;
2467 (void **) &pSMBr);
2520 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
2541 RENAME_RSP *pSMBr = NULL;
2551 (void **) &pSMBr);
2591 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
2610 TRANSACTION2_QPI_RSP *pSMBr = NULL;
2621 (void **) &pSMBr);
2661 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
2667 rc = validate_t2((struct smb_t2_rsp *)pSMBr);
2669 if (rc || get_bcc(&pSMBr->hdr) < 2)
2673 u16 count = le16_to_cpu(pSMBr->t2.DataCount);
2675 data_start = ((char *) &pSMBr->hdr.Protocol) +
2676 le16_to_cpu(pSMBr->t2.DataOffset);
2678 if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE)
2807 struct smb_com_transaction_ioctl_rsp *pSMBr;
2811 (void **) &pSMBr);
2840 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
3036 TRANSACTION2_QPI_RSP *pSMBr = NULL;
3046 (void **) &pSMBr);
3090 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
3097 rc = validate_t2((struct smb_t2_rsp *)pSMBr);
3099 if (rc || get_bcc(&pSMBr->hdr) < 2)
3102 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset);
3103 __u16 count = le16_to_cpu(pSMBr->t2.DataCount);
3105 (char *)&pSMBr->hdr.Protocol+data_offset,
3126 struct smb_com_transaction2_spi_rsp *pSMBr = NULL;
3136 (void **) &pSMBr);
3184 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
3218 struct smb_t2_qfi_rsp *pSMBr = NULL;
3228 (void **) &pSMBr);
3259 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
3264 rc = validate_t2((struct smb_t2_rsp *)pSMBr);
3266 if (rc || get_bcc(&pSMBr->hdr) < 2)
3271 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset);
3272 __u16 count = le16_to_cpu(pSMBr->t2.DataCount);
3281 (data_offset + (char *) &pSMBr->hdr.Protocol);
3338 struct smb_com_ntransact_rsp *pSMBr;
3347 pSMBr = (struct smb_com_ntransact_rsp *)buf;
3349 bcc = get_bcc(&pSMBr->hdr);
3351 (char *)&pSMBr->ByteCount;
3353 data_offset = le32_to_cpu(pSMBr->DataOffset);
3354 data_count = le32_to_cpu(pSMBr->DataCount);
3355 parm_offset = le32_to_cpu(pSMBr->ParameterOffset);
3356 parm_count = le32_to_cpu(pSMBr->ParameterCount);
3358 *ppparm = (char *)&pSMBr->hdr.Protocol + parm_offset;
3359 *ppdata = (char *)&pSMBr->hdr.Protocol + data_offset;
3374 end_of_smb, pSMBr);
3427 struct smb_com_ntransact_rsp *pSMBr;
3435 pSMBr = (struct smb_com_ntransact_rsp *)rsp_iov.iov_base;
3438 pSMBr, parm, *acl_inf);
3440 if (le32_to_cpu(pSMBr->ParameterCount) != 4) {
3484 void *pSMBr;
3487 rc = smb_init(SMB_COM_NT_TRANSACT, 19, tcon, (void **) &pSMB, &pSMBr);
3517 memcpy((char *)pSMBr + offsetof(struct smb_hdr, Protocol) +
3524 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
3547 QUERY_INFORMATION_RSP *pSMBr;
3555 (void **) &pSMBr);
3575 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
3580 __u32 time = le32_to_cpu(pSMBr->last_write_time);
3592 cpu_to_le64(le32_to_cpu(pSMBr->size));
3595 cpu_to_le32(le16_to_cpu(pSMBr->attr));
3612 struct smb_t2_qfi_rsp *pSMBr = NULL;
3619 (void **) &pSMBr);
3650 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
3654 rc = validate_t2((struct smb_t2_rsp *)pSMBr);
3658 else if (get_bcc(&pSMBr->hdr) < 40)
3661 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset);
3663 (char *) &pSMBr->hdr.Protocol +
3683 TRANSACTION2_QPI_RSP *pSMBr = NULL;
3692 (void **) &pSMBr);
3735 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
3739 rc = validate_t2((struct smb_t2_rsp *)pSMBr);
3743 else if (!legacy && get_bcc(&pSMBr->hdr) < 40)
3745 else if (legacy && get_bcc(&pSMBr->hdr) < 24)
3750 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset);
3762 memcpy((char *) data, (char *) &pSMBr->hdr.Protocol +
3779 struct smb_t2_qfi_rsp *pSMBr = NULL;
3786 (void **) &pSMBr);
3817 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
3821 rc = validate_t2((struct smb_t2_rsp *)pSMBr);
3823 if (rc || get_bcc(&pSMBr->hdr) < sizeof(FILE_UNIX_BASIC_INFO)) {
3827 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset);
3829 (char *) &pSMBr->hdr.Protocol +
3850 TRANSACTION2_QPI_RSP *pSMBr = NULL;
3859 (void **) &pSMBr);
3899 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
3903 rc = validate_t2((struct smb_t2_rsp *)pSMBr);
3905 if (rc || get_bcc(&pSMBr->hdr) < sizeof(FILE_UNIX_BASIC_INFO)) {
3909 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset);
3911 (char *) &pSMBr->hdr.Protocol +
3932 TRANSACTION2_FFIRST_RSP *pSMBr = NULL;
3945 (void **) &pSMBr);
4017 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
4037 rc = validate_t2((struct smb_t2_rsp *)pSMBr);
4043 psrch_inf->unicode = !!(pSMBr->hdr.Flags2 & SMBFLG2_UNICODE);
4044 psrch_inf->ntwrk_buf_start = (char *)pSMBr;
4046 psrch_inf->srch_entries_start = (char *)&pSMBr->hdr.Protocol +
4047 le16_to_cpu(pSMBr->t2.DataOffset);
4049 parms = (T2_FFIRST_RSP_PARMS *)((char *)&pSMBr->hdr.Protocol +
4050 le16_to_cpu(pSMBr->t2.ParameterOffset));
4073 TRANSACTION2_FNEXT_RSP *pSMBr = NULL;
4088 (void **) &pSMBr);
4135 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
4150 rc = validate_t2((struct smb_t2_rsp *)pSMBr);
4156 psrch_inf->unicode = !!(pSMBr->hdr.Flags2 & SMBFLG2_UNICODE);
4157 response_data = (char *)&pSMBr->hdr.Protocol +
4158 le16_to_cpu(pSMBr->t2.ParameterOffset);
4160 response_data = (char *)&pSMBr->hdr.Protocol +
4161 le16_to_cpu(pSMBr->t2.DataOffset);
4234 TRANSACTION2_QPI_RSP *pSMBr = NULL;
4244 (void **) &pSMBr);
4285 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
4290 rc = validate_t2((struct smb_t2_rsp *)pSMBr);
4292 if (rc || get_bcc(&pSMBr->hdr) < 2)
4297 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset);
4298 __u16 count = le16_to_cpu(pSMBr->t2.DataCount);
4307 (data_offset + (char *) &pSMBr->hdr.Protocol);
4326 TRANSACTION2_GET_DFS_REFER_RSP *pSMBr = NULL;
4345 (void **)&pSMB, (void **)&pSMBr);
4401 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
4406 rc = validate_t2((struct smb_t2_rsp *)pSMBr);
4409 if (rc || get_bcc(&pSMBr->hdr) < 17) {
4415 get_bcc(&pSMBr->hdr), le16_to_cpu(pSMBr->t2.DataOffset));
4418 rc = parse_dfs_referrals(&pSMBr->dfs_data,
4419 le16_to_cpu(pSMBr->t2.DataCount),
4422 (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) != 0);
4440 TRANSACTION2_QFSI_RSP *pSMBr = NULL;
4449 (void **) &pSMBr);
4477 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
4481 rc = validate_t2((struct smb_t2_rsp *)pSMBr);
4483 if (rc || get_bcc(&pSMBr->hdr) < 18)
4486 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset);
4488 get_bcc(&pSMBr->hdr), data_offset);
4491 (((char *) &pSMBr->hdr.Protocol) + data_offset);
4527 TRANSACTION2_QFSI_RSP *pSMBr = NULL;
4536 (void **) &pSMBr);
4564 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
4568 rc = validate_t2((struct smb_t2_rsp *)pSMBr);
4570 if (rc || get_bcc(&pSMBr->hdr) < 24)
4573 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset);
4577 *) (((char *) &pSMBr->hdr.Protocol) +
4613 TRANSACTION2_QFSI_RSP *pSMBr = NULL;
4622 (void **) &pSMBr);
4651 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
4655 rc = validate_t2((struct smb_t2_rsp *)pSMBr);
4657 if (rc || get_bcc(&pSMBr->hdr) < 13) {
4661 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset);
4664 *) (((char *) &pSMBr->hdr.Protocol) +
4683 TRANSACTION2_QFSI_RSP *pSMBr = NULL;
4692 (void **) &pSMBr);
4722 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
4726 rc = validate_t2((struct smb_t2_rsp *)pSMBr);
4728 if (rc || get_bcc(&pSMBr->hdr) <
4732 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset);
4735 (((char *) &pSMBr->hdr.Protocol) +
4754 TRANSACTION2_QFSI_RSP *pSMBr = NULL;
4763 (void **) &pSMB, (void **) &pSMBr);
4792 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
4796 rc = validate_t2((struct smb_t2_rsp *)pSMBr);
4798 if (rc || get_bcc(&pSMBr->hdr) < 13) {
4801 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset);
4804 *) (((char *) &pSMBr->hdr.Protocol) +
4824 TRANSACTION2_SETFSI_RSP *pSMBr = NULL;
4833 (void **) &pSMB, (void **) &pSMBr);
4875 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
4879 rc = validate_t2((struct smb_t2_rsp *)pSMBr);
4899 TRANSACTION2_QFSI_RSP *pSMBr = NULL;
4908 (void **) &pSMBr);
4937 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
4941 rc = validate_t2((struct smb_t2_rsp *)pSMBr);
4943 if (rc || get_bcc(&pSMBr->hdr) < 13) {
4946 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset);
4949 *) (((char *) &pSMBr->hdr.Protocol) +
4999 struct smb_com_transaction2_spi_rsp *pSMBr = NULL;
5011 (void **) &pSMBr);
5070 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
5328 TRANSACTION2_SPI_RSP *pSMBr = NULL;
5340 (void **) &pSMBr);
5388 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
5524 TRANSACTION2_SPI_RSP *pSMBr = NULL;
5534 (void **) &pSMBr);
5582 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
5610 TRANSACTION2_QPI_RSP *pSMBr = NULL;
5626 (void **) &pSMBr);
5666 (struct smb_hdr *) pSMBr, &bytes_returned, 0);
5677 rc = validate_t2((struct smb_t2_rsp *)pSMBr);
5678 if (rc || get_bcc(&pSMBr->hdr) < 4) {
5691 data_offset = le16_to_cpu(pSMBr->t2.DataOffset);
5693 (((char *) &pSMBr->hdr.Protocol) + data_offset);
5706 end_of_smb = (char *)pByteArea(&pSMBr->hdr) + get_bcc(&pSMBr->hdr);
5795 struct smb_com_transaction2_spi_rsp *pSMBr = NULL;
5806 (void **) &pSMBr);
5877 (struct smb_hdr *) pSMBr, &bytes_returned, 0);