Lines Matching refs:aa_profile
135 static int profile_cmp(struct aa_profile *a, struct aa_profile *b) in profile_cmp()
165 static int vec_cmp(struct aa_profile **a, int an, struct aa_profile **b, int bn) in vec_cmp()
186 static bool vec_is_stale(struct aa_profile **vec, int n) in vec_is_stale()
200 static bool vec_unconfined(struct aa_profile **vec, int n) in vec_unconfined()
216 return profile_cmp(*(struct aa_profile **)a, *(struct aa_profile **)b); in sort_cmp()
224 static inline int unique(struct aa_profile **vec, int n) in unique()
262 int aa_vec_unique(struct aa_profile **vec, int n, int flags) in aa_vec_unique()
271 sort(vec, n, sizeof(struct aa_profile *), sort_cmp, NULL); in aa_vec_unique()
278 struct aa_profile *tmp = vec[i]; in aa_vec_unique()
319 struct aa_profile *profile; in label_destroy()
326 label->vec[i.i] = (struct aa_profile *) in label_destroy()
433 new = kzalloc(sizeof(*new) + sizeof(struct aa_profile *) * (size + 1), in aa_label_alloc()
502 struct aa_profile *__aa_label_next_not_in_set(struct label_it *I, in __aa_label_next_not_in_set()
692 static struct aa_label *__vec_find(struct aa_profile **vec, int n) in __vec_find()
806 static struct aa_label *vec_find(struct aa_profile **vec, int n) in vec_find()
825 static struct aa_label *vec_create_and_insert_label(struct aa_profile **vec, in vec_create_and_insert_label()
859 struct aa_label *aa_vec_find_or_create_label(struct aa_profile **vec, int len, in aa_vec_find_or_create_label()
932 struct aa_profile *aa_label_next_in_merge(struct label_it *I, in aa_label_next_in_merge()
978 struct aa_profile *p = NULL; in label_merge_cmp()
1025 struct aa_profile *next; in label_merge_insert()
1230 static inline bool label_is_visible(struct aa_profile *profile, in label_is_visible()
1241 static inline unsigned int match_component(struct aa_profile *profile, in match_component()
1242 struct aa_profile *tp, in match_component()
1273 static int label_compound_match(struct aa_profile *profile, in label_compound_match()
1278 struct aa_profile *tp; in label_compound_match()
1331 static int label_components_match(struct aa_profile *profile, in label_components_match()
1336 struct aa_profile *tp; in label_components_match()
1390 int aa_label_match(struct aa_profile *profile, struct aa_label *label, in aa_label_match()
1483 struct aa_profile *profile, int flags, in aa_profile_snxprint()
1526 struct aa_profile *profile; in label_modename()
1560 struct aa_profile *profile; in display_mode()
1596 struct aa_profile *profile; in aa_label_snxprint()
1831 static struct aa_profile *fqlookupn_profile(struct aa_label *base, in fqlookupn_profile()