Lines Matching defs:len

759 	unsigned int len = le16_to_cpu(ctxt->DataLength);
765 if (len < MIN_PREAUTH_CTXT_DATA_LEN) {
768 } else if (len < MIN_PREAUTH_CTXT_DATA_LEN + le16_to_cpu(ctxt->SaltLength)) {
781 unsigned int len = le16_to_cpu(ctxt->DataLength);
788 if (len < 10) {
806 unsigned int len = le16_to_cpu(ctxt->DataLength);
808 cifs_dbg(FYI, "decode SMB3.11 encryption neg context of len %d\n", len);
814 if (len < MIN_ENCRYPT_CTXT_DATA_LEN) {
815 pr_warn_once("server sent bad crypto ctxt len\n");
858 unsigned int len = le16_to_cpu(pctxt->DataLength);
865 if ((len < 4) || (len > 16)) {
1307 /* SMB 2.1 not included so subtract one dialect from len */
1628 ses->auth_key.len = msg->sesskey_len;
1652 ses->auth_key.len = 0;
2301 size_t rem, off, len;
2315 if (check_add_overflow(off, rem, &len) || len > rsp_iov->iov_len)
2326 if (check_add_overflow(doff, dlen, &len) || len > rem)
2581 create_sd_buf(umode_t mode, bool set_owner, unsigned int *len)
2590 *len = round_up(sizeof(struct crt_sd_ctxt) + (sizeof(struct cifs_ace) * 4), 8);
2594 *len += sizeof(struct owner_group_sids);
2597 buf = kzalloc(*len, GFP_KERNEL);
2665 *len = round_up((unsigned int)(ptr - (__u8 *)buf), 8);
2674 unsigned int len = 0;
2676 iov[num].iov_base = create_sd_buf(mode, set_owner, &len);
2679 iov[num].iov_len = len;
2851 /* MUST set path len (NameLength) to 0 opening root of share */
2993 /* MUST set path len (NameLength) to 0 opening root of share */
3083 size_t len = v->iov_len;
3087 cctx->Next = cpu_to_le32(len);
3088 le32_add_cpu(&req->CreateContextsLength, len);
3317 u32 *plen /* returned data len */)
3334 /* zero out returned data len, in case of error */
3415 cifs_tcon_dbg(VFS, "Malformed ioctl resp: len %d offset %d\n", *plen,
3453 2 /* in data len */, CIFSMaxBufSize /* max out data */,
3643 size_t len;
3646 if (unlikely(check_add_overflow(input_len, sizeof(*req), &len) ||
3647 len > CIFSMaxBufSize))
3671 iov[0].iov_len = len;
3864 u32 *plen /* returned data len */)
4980 /* check name len */
5007 int len = posix_info_parse(beg, end, NULL);
5009 if (len < 0)
5011 return len - sizeof(struct smb2_posix_info);
5018 int len;
5041 len = posix_info_extra_size(entryptr, end_of_buf);
5043 len = le32_to_cpu(dir_info->FileNameLength);
5045 if (len < 0 ||
5046 entryptr + len < entryptr ||
5047 entryptr + len > end_of_buf ||
5048 entryptr + len + size > end_of_buf) {
5083 int len, rc;
5113 len = 0x2;
5115 memcpy(bufptr, &asteriks, len);
5119 req->FileNameLength = cpu_to_le16(len);
5133 iov[1].iov_len = len;
5436 struct smb2_file_full_ea_info *buf, int len)
5440 0, 1, (void **)&buf, &len);