Lines Matching refs:i
167 int i; in vec_cmp() local
176 for (i = 0; i < an && i < bn; i++) { in vec_cmp()
177 int res = profile_cmp(a[i], b[i]); in vec_cmp()
188 int i; in vec_is_stale() local
192 for (i = 0; i < n; i++) { in vec_is_stale()
193 if (profile_is_stale(vec[i])) in vec_is_stale()
202 int i; in vec_unconfined() local
206 for (i = 0; i < n; i++) { in vec_unconfined()
207 if (!profile_unconfined(vec[i])) in vec_unconfined()
226 int i, pos, dups = 0; in unique() local
232 for (i = 1; i < n; i++) { in unique()
233 int res = profile_cmp(vec[pos], vec[i]); in unique()
238 aa_put_profile(vec[i]); in unique()
244 vec[pos] = vec[i]; in unique()
264 int i, dups = 0; in aa_vec_unique() local
277 for (i = 1; i < n; i++) { in aa_vec_unique()
278 struct aa_profile *tmp = vec[i]; in aa_vec_unique()
281 for (pos = i - 1 - dups; pos >= 0; pos--) { in aa_vec_unique()
295 for (j = i - dups; j > pos; j--) in aa_vec_unique()
320 struct label_it i; in label_destroy() local
324 label_for_each(i, label, profile) { in label_destroy()
326 label->vec[i.i] = (struct aa_profile *) in label_destroy()
327 (LABEL_POISON + (long) i.i); in label_destroy()
480 int aa_label_next_confined(struct aa_label *label, int i) in aa_label_next_confined() argument
483 AA_BUG(i < 0); in aa_label_next_confined()
485 for (; i < label->size; i++) { in aa_label_next_confined()
486 if (!profile_unconfined(label->vec[i])) in aa_label_next_confined()
487 return i; in aa_label_next_confined()
490 return i; in aa_label_next_confined()
508 AA_BUG(I->i < 0); in __aa_label_next_not_in_set()
509 AA_BUG(I->i > set->size); in __aa_label_next_not_in_set()
514 while (I->j < sub->size && I->i < set->size) { in __aa_label_next_not_in_set()
515 int res = profile_cmp(sub->vec[I->j], set->vec[I->i]); in __aa_label_next_not_in_set()
519 (I->i)++; in __aa_label_next_not_in_set()
521 (I->i)++; in __aa_label_next_not_in_set()
542 struct label_it i = { }; in aa_label_is_subset() local
550 return __aa_label_next_not_in_set(&i, set, sub) == NULL; in aa_label_is_subset()
832 int i; in vec_create_and_insert_label() local
848 for (i = 0; i < len; i++) in vec_create_and_insert_label()
849 new->vec[i] = aa_get_profile(vec[i]); in vec_create_and_insert_label()
939 AA_BUG(I->i < 0); in aa_label_next_in_merge()
940 AA_BUG(I->i > a->size); in aa_label_next_in_merge()
944 if (I->i < a->size) { in aa_label_next_in_merge()
946 int res = profile_cmp(a->vec[I->i], b->vec[I->j]); in aa_label_next_in_merge()
954 return a->vec[(I->i)++]; in aa_label_next_in_merge()
979 struct label_it i = { }; in label_merge_cmp() local
987 k < z->size && (p = aa_label_next_in_merge(&i, a, b)); in label_merge_cmp()
1026 struct label_it i; in label_merge_insert() local
1038 label_for_each_in_merge(i, a, b, next) { in label_merge_insert()
1279 struct label_it i; in label_compound_match() local
1282 label_for_each(i, label, tp) { in label_compound_match()
1296 label_for_each_cont(i, label, tp) { in label_compound_match()
1337 struct label_it i; in label_components_match() local
1342 label_for_each(i, label, tp) { in label_components_match()
1358 label_for_each_cont(i, label, tp) { in label_components_match()
1529 struct label_it i; in label_modename() local
1532 label_for_each(i, label, profile) { in label_modename()
1563 struct label_it i; in display_mode() local
1565 label_for_each(i, label, profile) { in display_mode()
1600 struct label_it i; in aa_label_snxprint() local
1615 label_for_each(i, label, profile) { in aa_label_snxprint()
1863 int i, len, stack = 0, error; in aa_label_strn_parse() local
1887 for (i = 0; i < stack; i++) in aa_label_strn_parse()
1888 vec[i] = aa_get_profile(base->vec[i]); in aa_label_strn_parse()
1890 for (split = aa_label_strn_split(str, end - str), i = stack; in aa_label_strn_parse()
1891 split && i < len; i++) { in aa_label_strn_parse()
1892 vec[i] = fqlookupn_profile(base, currbase, str, split - str); in aa_label_strn_parse()
1893 if (!vec[i]) in aa_label_strn_parse()
1899 if (vec[i]->ns != labels_ns(currbase)) in aa_label_strn_parse()
1900 currbase = &vec[i]->label; in aa_label_strn_parse()
1905 if (i < len) { in aa_label_strn_parse()
1906 vec[i] = fqlookupn_profile(base, currbase, str, end - str); in aa_label_strn_parse()
1907 if (!vec[i]) in aa_label_strn_parse()
2026 int i, invcount = 0; in __label_update() local
2041 for (i = 0; i < label->size; i++) { in __label_update()
2042 AA_BUG(!label->vec[i]); in __label_update()
2043 new->vec[i] = aa_get_newest_profile(label->vec[i]); in __label_update()
2044 AA_BUG(!new->vec[i]); in __label_update()
2045 AA_BUG(!new->vec[i]->label.proxy); in __label_update()
2046 AA_BUG(!new->vec[i]->label.proxy->label); in __label_update()
2047 if (new->vec[i]->label.proxy != label->vec[i]->label.proxy) in __label_update()