Lines Matching refs:aa_profile

426 			       struct aa_profile *profile)  in __list_add_profile()
445 static void __list_remove_profile(struct aa_profile *profile) in __list_remove_profile()
459 static void __remove_profile(struct aa_profile *profile) in __remove_profile()
477 struct aa_profile *profile, *tmp; in __profile_list_release()
590 void aa_free_profile(struct aa_profile *profile) in aa_free_profile()
623 struct aa_profile *p = container_of(head, struct aa_profile, rcu); in aa_free_profile_rcu()
636 struct aa_profile *p = container_of(kref, struct aa_profile, count); in aa_free_profile_kref()
646 struct aa_profile *aa_alloc_profile(const char *hname) in aa_alloc_profile()
648 struct aa_profile *profile; in aa_alloc_profile()
688 struct aa_profile *aa_new_null_profile(struct aa_profile *parent, int hat) in aa_new_null_profile()
690 struct aa_profile *profile = NULL; in aa_new_null_profile()
736 static struct aa_profile *__find_child(struct list_head *head, const char *name) in __find_child()
738 return (struct aa_profile *)__policy_find(head, name); in __find_child()
751 static struct aa_profile *__strn_find_child(struct list_head *head, in __strn_find_child()
754 return (struct aa_profile *)__policy_strn_find(head, name, len); in __strn_find_child()
764 struct aa_profile *aa_find_child(struct aa_profile *parent, const char *name) in aa_find_child()
766 struct aa_profile *profile; in aa_find_child()
793 struct aa_profile *profile = NULL; in __lookup_parent()
823 static struct aa_profile *__lookup_profile(struct aa_policy *base, in __lookup_profile()
826 struct aa_profile *profile = NULL; in __lookup_profile()
852 struct aa_profile *aa_lookup_profile(struct aa_namespace *ns, const char *hname) in aa_lookup_profile()
854 struct aa_profile *profile; in aa_lookup_profile()
878 static int replacement_allowed(struct aa_profile *profile, int noreplace, in replacement_allowed()
941 static struct aa_profile *__list_lookup_parent(struct list_head *lh, in __list_lookup_parent()
942 struct aa_profile *profile) in __list_lookup_parent()
977 static void __replace_profile(struct aa_profile *old, struct aa_profile *new, in __replace_profile()
980 struct aa_profile *child, *tmp; in __replace_profile()
987 struct aa_profile *p; in __replace_profile()
1008 struct aa_profile *parent = aa_deref_parent(old); in __replace_profile()
1041 bool noreplace, struct aa_profile **p, in __lookup_replace()
1119 struct aa_profile *p; in aa_replace_profiles()
1130 struct aa_profile *p = (struct aa_profile *) policy; in aa_replace_profiles()
1147 struct aa_profile *p; in aa_replace_profiles()
1183 struct aa_profile *parent, *newest; in aa_replace_profiles()
1243 struct aa_profile *profile = NULL; in aa_remove_profiles()