Home
last modified time | relevance | path

Searched refs:acl (Results 1 – 25 of 260) sorted by relevance

1234567891011

/openbmc/linux/drivers/target/
H A Dtarget_core_tpg.c48 return acl; in __core_tpg_get_initiator_node_acl()
74 if (acl) { in core_tpg_get_initiator_node_acl()
76 acl = NULL; in core_tpg_get_initiator_node_acl()
80 return acl; in core_tpg_get_initiator_node_acl()
178 if (!acl) in target_alloc_node_acl()
202 return acl; in target_alloc_node_acl()
249 if (acl) in core_tpg_check_initiator_node_acl()
256 if (!acl) in core_tpg_check_initiator_node_acl()
279 return acl; in core_tpg_check_initiator_node_acl()
297 if (acl) { in core_tpg_add_initiator_node_acl()
[all …]
/openbmc/linux/fs/9p/
H A Dacl.c44 return acl; in v9fs_fid_get_acl()
58 return acl; in v9fs_acl_get()
67 if (!IS_ERR(acl)) in __v9fs_get_acl()
68 return acl; in __v9fs_get_acl()
119 return acl; in v9fs_get_cached_acl()
164 if (acl) { in v9fs_iop_set_acl()
205 if (acl) { in v9fs_iop_set_acl()
255 if (!acl) in v9fs_set_acl()
290 if (acl) { in v9fs_acl_chmod()
329 if (!acl) in v9fs_acl_mode()
[all …]
/openbmc/linux/fs/
H A Dposix_acl.c55 if (!acl || is_uncached_acl(acl) || in get_cached_acl()
62 return acl; in get_cached_acl()
75 acl = ret; in get_cached_acl_rcu()
78 return acl; in get_cached_acl_rcu()
180 return acl; in __get_acl()
209 if (acl) in posix_acl_alloc()
223 if (acl) { in posix_acl_clone()
316 if (!acl) in posix_acl_equiv_mode()
356 if (!acl) in posix_acl_from_mode()
791 if (!acl) in posix_acl_from_xattr()
[all …]
/openbmc/linux/fs/nfs_common/
H A Dnfsacl.c37 struct posix_acl *acl; member
44 struct posix_acl acl; member
95 int entries = (acl && acl->a_count) ? max_t(int, acl->a_count, 4) : 0; in nfsacl_encode()
102 .acl = acl, in nfsacl_encode()
113 if (encode_entries && acl && acl->a_count == 3) { in nfsacl_encode()
157 u32 entries = (acl && acl->a_count) ? max_t(int, acl->a_count, 4) : 0; in nfs_stream_encode_acl()
164 .acl = acl, in nfs_stream_encode_acl()
178 if (encode_entries && acl && acl->a_count == 3) { in nfs_stream_encode_acl()
295 if (!acl) in posix_acl_from_nfsacl()
298 sort(acl->a_entries, acl->a_count, sizeof(struct posix_acl_entry), in posix_acl_from_nfsacl()
[all …]
/openbmc/linux/fs/reiserfs/
H A Dxattr_acl.c27 int size = acl ? posix_acl_xattr_size(acl->a_count) : 0; in reiserfs_set_acl()
72 struct posix_acl *acl; in reiserfs_posix_acl_from_disk() local
88 if (!acl) in reiserfs_posix_acl_from_disk()
128 return acl; in reiserfs_posix_acl_from_disk()
146 acl->a_count * in reiserfs_posix_acl_to_disk()
232 acl = NULL; in reiserfs_get_acl()
240 return acl; in reiserfs_get_acl()
271 if (acl) { in __reiserfs_set_acl()
341 if (acl) { in reiserfs_inherit_default_acl()
344 acl); in reiserfs_inherit_default_acl()
[all …]
/openbmc/linux/fs/ext2/
H A Dacl.c24 struct posix_acl *acl; in ext2_acl_from_disk() local
40 if (!acl) in ext2_acl_from_disk()
81 return acl; in ext2_acl_from_disk()
84 posix_acl_release(acl); in ext2_acl_from_disk()
148 struct posix_acl *acl; in ext2_get_acl() local
174 acl = NULL; in ext2_get_acl()
176 acl = ERR_PTR(retval); in ext2_get_acl()
179 return acl; in ext2_get_acl()
204 if (acl) { in __ext2_set_acl()
232 &acl); in ext2_set_acl()
[all …]
/openbmc/linux/fs/ocfs2/
H A Dacl.c36 struct posix_acl *acl; in ocfs2_acl_from_xattr() local
46 if (!acl) in ocfs2_acl_from_xattr()
71 return acl; in ocfs2_acl_from_xattr()
118 struct posix_acl *acl; in ocfs2_get_acl_nolock() local
144 acl = NULL; in ocfs2_get_acl_nolock()
150 return acl; in ocfs2_get_acl_nolock()
243 if (acl) { in ocfs2_set_acl()
278 &acl); in ocfs2_iop_set_acl()
318 return acl; in ocfs2_iop_get_acl()
370 if (IS_ERR(acl)) in ocfs2_init_acl()
[all …]
/openbmc/linux/fs/f2fs/
H A Dacl.c49 struct posix_acl *acl; in f2fs_acl_from_disk() local
67 if (!acl) in f2fs_acl_from_disk()
107 return acl; in f2fs_acl_from_disk()
191 acl = NULL; in __f2fs_get_acl()
196 return acl; in __f2fs_get_acl()
221 *acl = NULL; in f2fs_acl_update_mode()
261 if (acl) { in __f2fs_set_acl()
299 if (acl) { in f2fs_acl_clone()
371 *acl = NULL; in f2fs_acl_create()
398 *acl = clone; in f2fs_acl_create()
[all …]
/openbmc/linux/fs/ext4/
H A Dacl.c22 struct posix_acl *acl; in ext4_acl_from_disk() local
38 if (!acl) in ext4_acl_from_disk()
80 return acl; in ext4_acl_from_disk()
83 posix_acl_release(acl); in ext4_acl_from_disk()
149 struct posix_acl *acl; in ext4_get_acl() local
175 acl = NULL; in ext4_get_acl()
177 acl = ERR_PTR(retval); in ext4_get_acl()
180 return acl; in ext4_get_acl()
211 if (acl) { in __ext4_set_acl()
233 size_t acl_size = acl ? ext4_acl_size(acl->a_count) : 0; in ext4_set_acl()
[all …]
/openbmc/linux/fs/ceph/
H A Dacl.c38 struct posix_acl *acl; in ceph_get_acl() local
73 acl = NULL; in ceph_get_acl()
82 if (!IS_ERR(acl)) in ceph_get_acl()
85 return acl; in ceph_get_acl()
107 if (acl) { in ceph_set_acl()
126 if (acl) { in ceph_set_acl()
180 if (acl) { in ceph_pre_init_acls()
186 acl = NULL; in ceph_pre_init_acls()
193 if (acl) in ceph_pre_init_acls()
212 if (acl) { in ceph_pre_init_acls()
[all …]
/openbmc/linux/drivers/target/iscsi/
H A Discsi_target_nodeattrib.c28 struct iscsi_node_acl *acl, in iscsit_set_default_node_attribues() argument
45 struct iscsi_node_acl *acl, in iscsit_na_dataout_timeout() argument
70 struct iscsi_node_acl *acl, in iscsit_na_dataout_timeout_retries() argument
90 iscsit_na_get_initiatorname(acl)); in iscsit_na_dataout_timeout_retries()
96 struct iscsi_node_acl *acl, in iscsit_na_nopin_timeout() argument
121 iscsit_na_get_initiatorname(acl)); in iscsit_na_nopin_timeout()
151 struct iscsi_node_acl *acl, in iscsit_na_nopin_response_timeout() argument
177 struct iscsi_node_acl *acl, in iscsit_na_random_datain_pdu_offsets() argument
197 struct iscsi_node_acl *acl, in iscsit_na_random_datain_seq_offsets() argument
217 struct iscsi_node_acl *acl, in iscsit_na_random_r2t_offsets() argument
[all …]
/openbmc/linux/fs/jffs2/
H A Dacl.c60 struct posix_acl *acl; in jffs2_acl_from_medium() local
82 if (!acl) in jffs2_acl_from_medium()
122 return acl; in jffs2_acl_from_medium()
178 struct posix_acl *acl; in jffs2_get_acl() local
205 acl = NULL; in jffs2_get_acl()
207 acl = ERR_PTR(rc); in jffs2_get_acl()
210 return acl; in jffs2_get_acl()
219 if (acl) { in __jffs2_set_acl()
241 if (acl) { in jffs2_set_acl()
245 &acl); in jffs2_set_acl()
[all …]
/openbmc/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_acl.c56 struct prestera_acl *acl; member
151 ruleset->acl = acl; in prestera_acl_ruleset_create()
242 struct prestera_acl *acl = ruleset->acl; in prestera_acl_ruleset_destroy() local
883 acl = kzalloc(sizeof(*acl), GFP_KERNEL); in prestera_acl_init()
884 if (!acl) in prestera_acl_init()
887 acl->sw = sw; in prestera_acl_init()
890 idr_init(&acl->uid); in prestera_acl_init()
902 sw->acl = acl; in prestera_acl_init()
909 kfree(acl); in prestera_acl_init()
915 struct prestera_acl *acl = sw->acl; in prestera_acl_fini() local
[all …]
/openbmc/qemu/tests/tcg/mips/user/ase/dsp/
H A Dtest_dsp_r1_dpaq_sa_l_w.c7 int ach = 0, acl = 0; in main() local
22 : "+r"(ach), "+r"(acl), "=r"(dsp) in main()
28 assert(acl == resultl); in main()
31 acl = 0x00000048; in main()
51 assert(acl == resultl); in main()
54 acl = 0xFCEABB08; in main()
74 assert(acl == resultl); in main()
77 acl = 0; in main()
98 assert(acl == resultl); in main()
101 acl = 0; in main()
[all …]
H A Dtest_dsp_r1_extr_rs_w.c6 int rt, ach, acl, dsp; in main() local
10 acl = 0xB4CB; in main()
18 : "r"(ach), "r"(acl) in main()
33 acl = 0xB4CB; in main()
41 : "r"(ach), "r"(acl) in main()
56 acl = 0x2bcdef01; in main()
64 : "r"(ach), "r"(acl) in main()
79 acl = 0x00000000; in main()
87 : "r"(ach), "r"(acl) in main()
102 acl = 0xFFFFFFFF; in main()
[all …]
H A Dtest_dsp_r1_extr_s_h.c6 int rt, ach, acl, dsp; in main() local
10 acl = 0xB4CB; in main()
18 : "r"(ach), "r"(acl) in main()
25 acl = 0x12344321; in main()
33 : "r"(ach), "r"(acl) in main()
48 acl = 0x4321; in main()
56 : "r"(ach), "r"(acl) in main()
71 acl = 0x87654321; in main()
79 : "r"(ach), "r"(acl) in main()
/openbmc/linux/fs/jfs/
H A Dacl.c19 struct posix_acl *acl; in jfs_get_acl() local
49 acl = NULL; in jfs_get_acl()
51 acl = ERR_PTR(size); in jfs_get_acl()
56 return acl; in jfs_get_acl()
60 struct posix_acl *acl) in __jfs_set_acl() argument
78 if (acl) { in __jfs_set_acl()
92 set_cached_acl(inode, type, acl); in __jfs_set_acl()
98 struct posix_acl *acl, int type) in jfs_set_acl() argument
132 struct posix_acl *default_acl, *acl; in jfs_init_acl() local
146 if (acl) { in jfs_init_acl()
[all …]
/openbmc/linux/fs/xfs/
H A Dxfs_acl.c38 struct posix_acl *acl; in xfs_acl_from_disk() local
56 if (!acl) in xfs_acl_from_disk()
60 acl_e = &acl->a_entries[i]; in xfs_acl_from_disk()
90 return acl; in xfs_acl_from_disk()
93 posix_acl_release(acl); in xfs_acl_from_disk()
107 acl_e = &acl->a_entries[i]; in xfs_acl_to_disk()
167 acl = ERR_PTR(error); in xfs_get_acl()
171 return acl; in xfs_get_acl()
190 return acl ? -EACCES : 0; in __xfs_set_acl()
198 if (acl) { in __xfs_set_acl()
[all …]
/openbmc/linux/fs/smb/server/
H A Dndr.c343 struct xattr_smb_acl *acl, in ndr_encode_posix_acl() argument
357 if (acl) { in ndr_encode_posix_acl()
389 if (acl) { in ndr_encode_posix_acl()
433 ret = ndr_write_bytes(n, acl->desc, acl->desc_len); in ndr_encode_v4_ntacl()
446 ret = ndr_write_bytes(n, acl->sd_buf, acl->sd_size); in ndr_encode_v4_ntacl()
459 if (acl->version != 4) { in ndr_decode_v4_ntacl()
467 if (acl->version != version2) { in ndr_decode_v4_ntacl()
469 acl->version, version2); in ndr_decode_v4_ntacl()
508 acl->sd_buf = kzalloc(acl->sd_size, GFP_KERNEL); in ndr_decode_v4_ntacl()
509 if (!acl->sd_buf) in ndr_decode_v4_ntacl()
[all …]
/openbmc/linux/fs/gfs2/
H A Dacl.c43 struct posix_acl *acl; in __gfs2_get_acl() local
57 return acl; in __gfs2_get_acl()
65 struct posix_acl *acl; in gfs2_get_acl() local
77 acl = __gfs2_get_acl(inode, type); in gfs2_get_acl()
80 return acl; in gfs2_get_acl()
90 if (acl) { in __gfs2_set_acl()
106 set_cached_acl(inode, type, acl); in __gfs2_set_acl()
113 struct posix_acl *acl, int type) in gfs2_set_acl() argument
122 if (acl && acl->a_count > GFS2_ACL_MAX_ENTRIES(GFS2_SB(inode))) in gfs2_set_acl()
137 if (type == ACL_TYPE_ACCESS && acl) { in gfs2_set_acl()
[all …]
/openbmc/linux/fs/btrfs/
H A Dacl.c24 struct posix_acl *acl; in btrfs_get_acl() local
50 acl = NULL; in btrfs_get_acl()
52 acl = ERR_PTR(size); in btrfs_get_acl()
55 return acl; in btrfs_get_acl()
59 struct posix_acl *acl, int type) in __btrfs_set_acl() argument
71 return acl ? -EINVAL : 0; in __btrfs_set_acl()
78 if (acl) { in __btrfs_set_acl()
108 set_cached_acl(inode, type, acl); in __btrfs_set_acl()
114 struct posix_acl *acl, int type) in btrfs_set_acl() argument
120 if (type == ACL_TYPE_ACCESS && acl) { in btrfs_set_acl()
[all …]
/openbmc/linux/fs/orangefs/
H A Dacl.c15 struct posix_acl *acl; in orangefs_get_acl() local
55 acl = NULL; in orangefs_get_acl()
60 acl = ERR_PTR(ret); in orangefs_get_acl()
64 return acl; in orangefs_get_acl()
92 if (acl) { in __orangefs_set_acl()
93 size = posix_acl_xattr_size(acl->a_count); in __orangefs_set_acl()
105 __func__, name, value, size, acl); in __orangefs_set_acl()
117 set_cached_acl(inode, type, acl); in __orangefs_set_acl()
122 struct posix_acl *acl, int type) in orangefs_set_acl() argument
131 if (type == ACL_TYPE_ACCESS && acl) { in orangefs_set_acl()
[all …]
/openbmc/linux/include/linux/
H A Dposix_acl.h36 #define FOREACH_ACL_ENTRY(pa, acl, pe) \ argument
37 for(pa=(acl)->a_entries, pe=pa+(acl)->a_count; pa<pe; pa++)
44 posix_acl_dup(struct posix_acl *acl) in posix_acl_dup() argument
46 if (acl) in posix_acl_dup()
47 refcount_inc(&acl->a_refcount); in posix_acl_dup()
48 return acl; in posix_acl_dup()
55 posix_acl_release(struct posix_acl *acl) in posix_acl_release() argument
57 if (acl && refcount_dec_and_test(&acl->a_refcount)) in posix_acl_release()
58 kfree_rcu(acl, a_rcu); in posix_acl_release()
131 *default_acl = *acl = NULL; in posix_acl_create()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_acl.c41 return acl->afk; in mlxsw_sp_acl_afk()
46 return &acl->tcam; in mlxsw_sp_acl_to_tcam()
171 struct mlxsw_sp_acl *acl = mlxsw_sp->acl; in mlxsw_sp_acl_ruleset_create() local
215 struct mlxsw_sp_acl *acl = mlxsw_sp->acl; in mlxsw_sp_acl_ruleset_destroy() local
258 struct mlxsw_sp_acl *acl = mlxsw_sp->acl; in mlxsw_sp_acl_ruleset_lookup() local
277 struct mlxsw_sp_acl *acl = mlxsw_sp->acl; in mlxsw_sp_acl_ruleset_get() local
1061 if (!acl) in mlxsw_sp_acl_init()
1063 mlxsw_sp->acl = acl; in mlxsw_sp_acl_init()
1106 kfree(acl); in mlxsw_sp_acl_init()
1112 struct mlxsw_sp_acl *acl = mlxsw_sp->acl; in mlxsw_sp_acl_fini() local
[all …]
/openbmc/linux/fs/nfs/
H A Dnfs3acl.c33 posix_acl_dup(acl); in nfs3_complete_get_acl()
35 posix_acl_release(acl); in nfs3_complete_get_acl()
170 .acl_access = acl, in __nfs3_proc_setacls()
189 if (acl != NULL && acl->a_count > NFS_ACL_MAX_ENTRIES) in __nfs3_proc_setacls()
277 dfacl = acl; in nfs3_set_acl()
278 acl = alloc; in nfs3_set_acl()
283 if (acl == NULL) { in nfs3_set_acl()
287 acl = alloc; in nfs3_set_acl()
291 if (acl != orig) in nfs3_set_acl()
306 struct posix_acl *acl; in nfs3_list_one_acl() local
[all …]

1234567891011