Lines Matching refs:data_offset
1472 unsigned int data_offset, data_len; in cifs_readv_receive() local
1535 data_offset = server->ops->read_data_offset(buf) + 4; in cifs_readv_receive()
1536 if (data_offset < server->total_read) { in cifs_readv_receive()
1543 __func__, data_offset); in cifs_readv_receive()
1544 data_offset = server->total_read; in cifs_readv_receive()
1545 } else if (data_offset > MAX_CIFS_SMALL_BUFFER_SIZE) { in cifs_readv_receive()
1548 __func__, data_offset); in cifs_readv_receive()
1554 __func__, server->total_read, data_offset); in cifs_readv_receive()
1556 len = data_offset - server->total_read; in cifs_readv_receive()
1568 if (data_offset + data_len > buflen) { in cifs_readv_receive()
2530 __u16 data_offset; in CIFSSMBPosixLock() local
2538 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBPosixLock()
2545 ((char *)&pSMBr->hdr.Protocol + data_offset); in CIFSSMBPosixLock()
2706 char *data_offset; in CIFSSMBRenameOpenFile() local
2728 data_offset = (char *) (&pSMB->hdr.Protocol) + offset; in CIFSSMBRenameOpenFile()
2729 rename_info = (struct set_file_rename *) data_offset; in CIFSSMBRenameOpenFile()
2856 char *data_offset; in CIFSUnixCreateSymLink() local
2893 data_offset = (char *) (&pSMB->hdr.Protocol) + offset; in CIFSUnixCreateSymLink()
2896 cifsConvertToUTF16((__le16 *) data_offset, toName, in CIFSUnixCreateSymLink()
2904 strncpy(data_offset, toName, name_len_target); in CIFSUnixCreateSymLink()
2946 char *data_offset; in CIFSUnixCreateHardLink() local
2981 data_offset = (char *) (&pSMB->hdr.Protocol) + offset; in CIFSUnixCreateHardLink()
2984 cifsConvertToUTF16((__le16 *) data_offset, fromName, in CIFSUnixCreateHardLink()
2991 strncpy(data_offset, fromName, name_len_target); in CIFSUnixCreateHardLink()
3218 __u32 data_offset, data_count; in CIFSSMBQuerySymLink() local
3253 data_offset = le32_to_cpu(pSMBr->DataOffset); in CIFSSMBQuerySymLink()
3255 if (get_bcc(&pSMBr->hdr) < 2 || data_offset > 512) { in CIFSSMBQuerySymLink()
3267 ((char *)&pSMBr->hdr.Protocol + data_offset); in CIFSSMBQuerySymLink()
3601 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBGetPosixACL() local
3604 (char *)&pSMBr->hdr.Protocol+data_offset, in CIFSSMBGetPosixACL()
3753 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSGetExtAttr() local
3763 (data_offset + (char *) &pSMBr->hdr.Protocol); in CIFSGetExtAttr()
3820 __u32 data_count, data_offset, parm_count, parm_offset; in validate_ntransact() local
3836 data_offset = le32_to_cpu(pSMBr->DataOffset); in validate_ntransact()
3842 *ppdata = (char *)&pSMBr->hdr.Protocol + data_offset; in validate_ntransact()
3963 __u16 byte_count, param_count, data_count, param_offset, data_offset; in CIFSSMBSetCIFSACL() local
3980 data_offset = param_offset + param_count; in CIFSSMBSetCIFSACL()
3990 pSMB->DataOffset = cpu_to_le32(data_offset); in CIFSSMBSetCIFSACL()
4001 data_offset, pntsd, acllen); in CIFSSMBSetCIFSACL()
4147 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFileInfo() local
4150 data_offset, sizeof(FILE_ALL_INFO)); in CIFSSMBQFileInfo()
4238 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQPathInfo() local
4251 data_offset, size); in CIFSSMBQPathInfo()
4315 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBUnixQFileInfo() local
4318 data_offset, in CIFSSMBUnixQFileInfo()
4399 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBUnixQPathInfo() local
4402 data_offset, in CIFSSMBUnixQPathInfo()
4809 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSGetSrvInodeNumber() local
4819 (data_offset + (char *) &pSMBr->hdr.Protocol); in CIFSGetSrvInodeNumber()
4994 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in SMBOldQFSInfo() local
4996 get_bcc(&pSMBr->hdr), data_offset); in SMBOldQFSInfo()
4999 (((char *) &pSMBr->hdr.Protocol) + data_offset); in SMBOldQFSInfo()
5074 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSInfo() local
5079 data_offset); in CIFSSMBQFSInfo()
5155 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSAttributeInfo() local
5159 data_offset); in CIFSSMBQFSAttributeInfo()
5226 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSDeviceInfo() local
5230 data_offset); in CIFSSMBQFSDeviceInfo()
5295 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSUnixInfo() local
5299 data_offset); in CIFSSMBQFSUnixInfo()
5440 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQFSPosixInfo() local
5444 data_offset); in CIFSSMBQFSPosixInfo()
5660 char *data_offset; in CIFSSMBSetFileInfo() local
5682 data_offset = (char *)pSMB + in CIFSSMBSetFileInfo()
5707 memcpy(data_offset, data, sizeof(FILE_BASIC_INFO)); in CIFSSMBSetFileInfo()
5725 char *data_offset; in CIFSSMBSetFileDisposition() local
5747 data_offset = (char *) (&pSMB->hdr.Protocol) + offset; in CIFSSMBSetFileDisposition()
5768 *data_offset = delete_file ? 1 : 0; in CIFSSMBSetFileDisposition()
5787 char *data_offset; in CIFSSMBSetPathInfo() local
5823 data_offset = (char *) (&pSMB->hdr.Protocol) + offset; in CIFSSMBSetPathInfo()
5841 memcpy(data_offset, data, sizeof(FILE_BASIC_INFO)); in CIFSSMBSetPathInfo()
5909 cifs_fill_unix_set_info(FILE_UNIX_BASIC_INFO *data_offset, in cifs_fill_unix_set_info() argument
5927 data_offset->EndOfFile = cpu_to_le64(NO_CHANGE_64); in cifs_fill_unix_set_info()
5928 data_offset->NumOfBytes = cpu_to_le64(NO_CHANGE_64); in cifs_fill_unix_set_info()
5929 data_offset->LastStatusChange = cpu_to_le64(args->ctime); in cifs_fill_unix_set_info()
5930 data_offset->LastAccessTime = cpu_to_le64(args->atime); in cifs_fill_unix_set_info()
5931 data_offset->LastModificationTime = cpu_to_le64(args->mtime); in cifs_fill_unix_set_info()
5932 data_offset->Uid = cpu_to_le64(uid); in cifs_fill_unix_set_info()
5933 data_offset->Gid = cpu_to_le64(gid); in cifs_fill_unix_set_info()
5935 data_offset->DevMajor = cpu_to_le64(MAJOR(args->device)); in cifs_fill_unix_set_info()
5936 data_offset->DevMinor = cpu_to_le64(MINOR(args->device)); in cifs_fill_unix_set_info()
5937 data_offset->Permissions = cpu_to_le64(mode); in cifs_fill_unix_set_info()
5940 data_offset->Type = cpu_to_le32(UNIX_FILE); in cifs_fill_unix_set_info()
5942 data_offset->Type = cpu_to_le32(UNIX_DIR); in cifs_fill_unix_set_info()
5944 data_offset->Type = cpu_to_le32(UNIX_SYMLINK); in cifs_fill_unix_set_info()
5946 data_offset->Type = cpu_to_le32(UNIX_CHARDEV); in cifs_fill_unix_set_info()
5948 data_offset->Type = cpu_to_le32(UNIX_BLOCKDEV); in cifs_fill_unix_set_info()
5950 data_offset->Type = cpu_to_le32(UNIX_FIFO); in cifs_fill_unix_set_info()
5952 data_offset->Type = cpu_to_le32(UNIX_SOCKET); in cifs_fill_unix_set_info()
5961 char *data_offset; in CIFSSMBUnixSetFileInfo() local
5983 data_offset = (char *)pSMB + in CIFSSMBUnixSetFileInfo()
6007 cifs_fill_unix_set_info((FILE_UNIX_BASIC_INFO *)data_offset, args); in CIFSSMBUnixSetFileInfo()
6032 FILE_UNIX_BASIC_INFO *data_offset; in CIFSSMBUnixSetPathInfo() local
6067 data_offset = in CIFSSMBUnixSetPathInfo()
6070 memset(data_offset, 0, count); in CIFSSMBUnixSetPathInfo()
6085 cifs_fill_unix_set_info(data_offset, args); in CIFSSMBUnixSetPathInfo()
6127 __u16 params, byte_count, data_offset; in CIFSSMBQAllEAs() local
6200 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); in CIFSSMBQAllEAs()
6202 (((char *) &pSMBr->hdr.Protocol) + data_offset); in CIFSSMBQAllEAs()