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 = max_t(unsigned short int,
119 *off = le32_to_cpu(((struct smb2_create_req *)
126 if (name_off + name_len < (u64)*off + *len)
130 *off = name_off;
135 *off = max_t(unsigned int,
141 *off = max_t(unsigned int,
147 *off = le16_to_cpu(((struct smb2_read_req *)hdr)->ReadChannelInfoOffset);
153 *off = max_t(unsigned short int,
160 *off = le16_to_cpu(((struct smb2_write_req *)hdr)->WriteChannelInfoOffset);
164 *off = max_t(unsigned short int,
175 *off = offsetof(struct smb2_lock_req, locks);
181 *off = max_t(unsigned int,
191 if (*off > 4096) {
192 ksmbd_debug(SMB, "offset %d too large\n", *off);
194 } else if ((u64)*off + *len > MAX_STREAM_PROT_LEN) {
196 MAX_STREAM_PROT_LEN, (u64)*off + *len);