Lines Matching refs:desc
35 struct xdr_array2_desc desc; member
49 xdr_nfsace_encode(struct xdr_array2_desc *desc, void *elem) in xdr_nfsace_encode() argument
52 (struct nfsacl_encode_desc *) desc; in xdr_nfsace_encode()
97 .desc = { in nfsacl_encode()
131 err = xdr_encode_array2(buf, base + 4, &nfsacl_desc.desc); in nfsacl_encode()
133 err = 8 + nfsacl_desc.desc.elem_size * in nfsacl_encode()
134 nfsacl_desc.desc.array_len; in nfsacl_encode()
159 .desc = { in nfs_stream_encode_acl()
199 elem_size * nfsacl_desc.desc.array_len)) in nfs_stream_encode_acl()
201 err = xdr_encode_array2(xdr->buf, base, &nfsacl_desc.desc); in nfs_stream_encode_acl()
211 struct xdr_array2_desc desc; member
217 xdr_nfsace_decode(struct xdr_array2_desc *desc, void *elem) in xdr_nfsace_decode() argument
220 (struct nfsacl_decode_desc *) desc; in xdr_nfsace_decode()
226 if (desc->array_len > NFS_ACL_MAX_ENTRIES) in xdr_nfsace_decode()
228 nfsacl_desc->acl = posix_acl_alloc(desc->array_len, GFP_KERNEL); in xdr_nfsace_decode()
340 .desc = { in nfsacl_decode()
351 nfsacl_desc.desc.array_maxlen = entries; in nfsacl_decode()
352 err = xdr_decode_array2(buf, base + 4, &nfsacl_desc.desc); in nfsacl_decode()
356 if (entries != nfsacl_desc.desc.array_len || in nfsacl_decode()
365 return 8 + nfsacl_desc.desc.elem_size * in nfsacl_decode()
366 nfsacl_desc.desc.array_len; in nfsacl_decode()
388 .desc = { in nfs_stream_decode_acl()
404 nfsacl_desc.desc.array_maxlen = entries; in nfs_stream_decode_acl()
405 if (xdr_decode_array2(xdr->buf, base, &nfsacl_desc.desc)) in nfs_stream_decode_acl()
409 if (entries != nfsacl_desc.desc.array_len || in nfs_stream_decode_acl()