Lines Matching refs:a
70 int a[128]; in ktest_idr_case1() local
75 assert(idr_alloc(&k_idr, &a[i], &a[i]) == 0); in ktest_idr_case1()
76 assert(a[i] == i); in ktest_idr_case1()
82 int *ptr = idr_find(&k_idr, a[i]); in ktest_idr_case1()
83 assert(ptr == &a[i]); in ktest_idr_case1()
85 assert(*ptr == a[i]); in ktest_idr_case1()
91 int *id = idr_remove(&k_idr, a[i]); in ktest_idr_case1()
94 assert(idr_find(&k_idr, a[i]) == NULL); in ktest_idr_case1()
100 int *id = idr_remove(&k_idr, a[i]); in ktest_idr_case1()
103 assert(idr_find(&k_idr, a[i]) == NULL); in ktest_idr_case1()
114 assert(idr_alloc(&k_idr, &a[i], &a[i]) == 0); in ktest_idr_case1()
115 assert(a[i] == i); in ktest_idr_case1()
126 int *id = idr_remove(&k_idr, a[i]); in ktest_idr_case1()
129 assert(idr_find(&k_idr, a[i]) == NULL); in ktest_idr_case1()
135 int *id = idr_remove(&k_idr, a[i]); in ktest_idr_case1()
138 assert(idr_find(&k_idr, a[i]) == NULL); in ktest_idr_case1()
148 assert(idr_alloc(&k_idr, &a[i], &a[i]) == 0); in ktest_idr_case1()
149 assert(a[i] == i); in ktest_idr_case1()
155 int *ptr = idr_find(&k_idr, a[i]); in ktest_idr_case1()
156 assert(ptr == &a[i]); in ktest_idr_case1()
157 assert(*ptr == a[i]); in ktest_idr_case1()
163 idr_remove(&k_idr, a[i]); in ktest_idr_case1()
164 assert(idr_find(&k_idr, a[i]) == NULL); in ktest_idr_case1()
170 idr_remove(&k_idr, a[i]); in ktest_idr_case1()
171 assert(idr_find(&k_idr, a[i]) == NULL); in ktest_idr_case1()
417 int a[N]; in ktest_idr_case5() local
422 assert(idr_alloc(&k_idr, &a[i], &a[i]) == 0); in ktest_idr_case5()
423 assert(a[i] == i); in ktest_idr_case5()
430 int flags = idr_replace_get_old(&k_idr, &a[(i + 1) % N], i, (void *)&ptr); in ktest_idr_case5()
449 assert(idr_alloc(&k_idr, &a[i], &a[i]) == 0); in ktest_idr_case5()
450 assert(a[i] == i); in ktest_idr_case5()