Lines Matching refs:entries
95 int entries = (acl && acl->a_count) ? max_t(int, acl->a_count, 4) : 0; in nfsacl_encode() local
99 .array_len = encode_entries ? entries : 0, in nfsacl_encode()
110 if (entries > NFS_ACL_MAX_ENTRIES || in nfsacl_encode()
111 xdr_encode_word(buf, base, entries)) in nfsacl_encode()
157 u32 entries = (acl && acl->a_count) ? max_t(int, acl->a_count, 4) : 0; in nfs_stream_encode_acl() local
161 .array_len = encode_entries ? entries : 0, in nfs_stream_encode_acl()
173 if (entries > NFS_ACL_MAX_ENTRIES) in nfs_stream_encode_acl()
175 if (xdr_stream_encode_u32(xdr, entries) < 0) in nfs_stream_encode_acl()
345 u32 entries; in nfsacl_decode() local
348 if (xdr_decode_word(buf, base, &entries) || in nfsacl_decode()
349 entries > NFS_ACL_MAX_ENTRIES) in nfsacl_decode()
351 nfsacl_desc.desc.array_maxlen = entries; in nfsacl_decode()
356 if (entries != nfsacl_desc.desc.array_len || in nfsacl_decode()
364 *aclcnt = entries; in nfsacl_decode()
394 u32 entries; in nfs_stream_decode_acl() local
396 if (xdr_stream_decode_u32(xdr, &entries) < 0) in nfs_stream_decode_acl()
398 if (entries > NFS_ACL_MAX_ENTRIES) in nfs_stream_decode_acl()
402 if (!xdr_inline_decode(xdr, XDR_UNIT + elem_size * entries)) in nfs_stream_decode_acl()
404 nfsacl_desc.desc.array_maxlen = entries; in nfs_stream_decode_acl()
409 if (entries != nfsacl_desc.desc.array_len || in nfs_stream_decode_acl()
417 *aclcnt = entries; in nfs_stream_decode_acl()