Lines Matching defs:off
85 static int smb2_get_data_area_len(unsigned int *off, unsigned int *len,
90 *off = 0;
100 *off = le16_to_cpu(((struct smb2_sess_setup_req *)hdr)->SecurityBufferOffset);
104 *off = le16_to_cpu(((struct smb2_tree_connect_req *)hdr)->PathOffset);
115 *off = le32_to_cpu(((struct smb2_create_req *)
122 if (name_off + name_len < (u64)*off + *len)
126 *off = name_off;
131 *off = le16_to_cpu(((struct smb2_query_info_req *)hdr)->InputBufferOffset);
135 *off = le16_to_cpu(((struct smb2_set_info_req *)hdr)->BufferOffset);
139 *off = le16_to_cpu(((struct smb2_read_req *)hdr)->ReadChannelInfoOffset);
145 *off = max_t(unsigned int,
152 *off = le16_to_cpu(((struct smb2_write_req *)hdr)->WriteChannelInfoOffset);
156 *off = le16_to_cpu(((struct smb2_query_directory_req *)hdr)->FileNameOffset);
165 *off = offsetof(struct smb2_lock_req, locks);
171 *off = le32_to_cpu(((struct smb2_ioctl_req *)hdr)->InputOffset);
179 if (*off > 4096) {
180 ksmbd_debug(SMB, "offset %d too large\n", *off);
182 } else if ((u64)*off + *len > MAX_STREAM_PROT_LEN) {
184 MAX_STREAM_PROT_LEN, (u64)*off + *len);