Lines Matching defs:buflen

5817 int nfs4_buf_to_pages_noslab(const void *buf, size_t buflen,
5826 len = min_t(size_t, PAGE_SIZE, buflen);
5833 buflen -= len;
5836 } while (buflen != 0);
5869 size_t buflen, enum nfs4_acl_type type)
5886 if (acl->len > buflen)
5901 size_t buflen = sizeof(*acl) + acl_len;
5903 if (buflen <= PAGE_SIZE) {
5904 acl = kmalloc(buflen, GFP_KERNEL);
5932 size_t buflen, enum nfs4_acl_type type)
5938 .acl_len = buflen,
5942 .acl_len = buflen,
5953 if (buflen == 0)
5954 buflen = server->rsize;
5956 npages = DIV_ROUND_UP(buflen, PAGE_SIZE) + 1;
5976 dprintk("%s buf %p buflen %zu npages %d args.acl_len %zu\n",
5977 __func__, buf, buflen, npages, args.acl_len);
5994 if (res.acl_len > buflen) {
6012 size_t buflen, enum nfs4_acl_type type)
6019 ret = __nfs4_get_acl_uncached(inode, buf, buflen, type);
6028 static ssize_t nfs4_proc_get_acl(struct inode *inode, void *buf, size_t buflen,
6041 ret = nfs4_read_cached_acl(inode, buf, buflen, type);
6046 return nfs4_get_acl_uncached(inode, buf, buflen, type);
6050 size_t buflen, enum nfs4_acl_type type)
6057 .acl_len = buflen,
6066 unsigned int npages = DIV_ROUND_UP(buflen, PAGE_SIZE);
6070 if (buflen == 0)
6076 i = nfs4_buf_to_pages_noslab(buf, buflen, arg.acl_pages);
6104 size_t buflen, enum nfs4_acl_type type)
6109 err = __nfs4_proc_set_acl(inode, buf, buflen, type);
6127 size_t buflen)
6130 struct nfs4_label label = {0, 0, buflen, buf};
6162 size_t buflen)
6173 err = _nfs4_get_security_label(inode, buf, buflen);
6233 nfs4_set_security_label(struct inode *inode, const void *buf, size_t buflen)
6235 struct nfs4_label ilabel = {0, 0, buflen, (char *)buf };
6276 nfs4_get_uniquifier(struct nfs_client *clp, char *buf, size_t buflen)
6288 strscpy(buf, id, buflen);
6293 strscpy(buf, nfs4_client_id_uniquifier, buflen);
6302 size_t buflen;
6317 buflen = nfs4_get_uniquifier(clp, buf, sizeof(buf));
6318 if (buflen)
6319 len += buflen + 1;
6334 if (buflen)
6354 size_t buflen;
6364 buflen = nfs4_get_uniquifier(clp, buf, sizeof(buf));
6365 if (buflen)
6366 len += buflen + 1;
6380 if (buflen)
7713 size_t buflen, int flags)
7715 return nfs4_proc_set_acl(inode, buf, buflen, NFS4ACL_ACL);
7720 const char *key, void *buf, size_t buflen)
7722 return nfs4_proc_get_acl(inode, buf, buflen, NFS4ACL_ACL);
7737 size_t buflen, int flags)
7739 return nfs4_proc_set_acl(inode, buf, buflen, NFS4ACL_DACL);
7744 const char *key, void *buf, size_t buflen)
7746 return nfs4_proc_get_acl(inode, buf, buflen, NFS4ACL_DACL);
7760 size_t buflen, int flags)
7762 return nfs4_proc_set_acl(inode, buf, buflen, NFS4ACL_SACL);
7767 const char *key, void *buf, size_t buflen)
7769 return nfs4_proc_get_acl(inode, buf, buflen, NFS4ACL_SACL);
7785 size_t buflen, int flags)
7788 return nfs4_set_security_label(inode, buf, buflen);
7795 const char *key, void *buf, size_t buflen)
7798 return nfs4_get_security_label(inode, buf, buflen);
7836 size_t buflen, int flags)
7863 ret = nfs42_proc_setxattr(inode, key, buf, buflen, flags);
7865 nfs4_xattr_cache_add(inode, key, buf, NULL, buflen);
7873 const char *key, void *buf, size_t buflen)
7890 ret = nfs4_xattr_cache_get(inode, key, buf, buflen);
7894 ret = nfs42_proc_getxattr(inode, key, buf, buflen);
7906 size_t buflen;
7927 buflen = list_len ? list_len : XATTR_LIST_MAX;
7932 ret = nfs42_proc_listxattrs(inode, buf, buflen,
7939 buflen -= ret;