Lines Matching refs:ptr
82 int *ptr = idr_find(&k_idr, a[i]); in ktest_idr_case1() local
83 assert(ptr == &a[i]); in ktest_idr_case1()
84 assert(ptr != NULL); in ktest_idr_case1()
85 assert(*ptr == a[i]); in ktest_idr_case1()
155 int *ptr = idr_find(&k_idr, a[i]); in ktest_idr_case1() local
156 assert(ptr == &a[i]); in ktest_idr_case1()
157 assert(*ptr == a[i]); in ktest_idr_case1()
206 int *ptr = idr_find(&k_idr, i); in ktest_idr_case2() local
208 assert(ptr != NULL); in ktest_idr_case2()
209 assert(*ptr == i); in ktest_idr_case2()
220 int *ptr = idr_find(&k_idr, i); in ktest_idr_case2() local
221 assert(ptr != NULL); in ktest_idr_case2()
222 assert(*ptr == N - 1); in ktest_idr_case2()
231 int *ptr = idr_find(&k_idr, i); in ktest_idr_case2() local
232 assert(*ptr == N - 1); in ktest_idr_case2()
244 int *ptr = idr_find(&k_idr, i); in ktest_idr_case2() local
245 assert(ptr != NULL); in ktest_idr_case2()
246 assert(*ptr == i); in ktest_idr_case2()
283 int *ptr = idr_find(&k_idr, i); in ktest_idr_case3() local
284 assert(ptr != NULL); in ktest_idr_case3()
285 assert(*ptr == i); in ktest_idr_case3()
292 int *ptr = idr_find_next_getid(&k_idr, i - 1, &nextid); in ktest_idr_case3() local
295 assert(ptr != NULL); in ktest_idr_case3()
296 assert(*ptr == N - 1); in ktest_idr_case3()
301 assert(ptr == NULL); in ktest_idr_case3()
310 int *ptr = idr_find(&k_idr, i); in ktest_idr_case3() local
311 assert(ptr != NULL); in ktest_idr_case3()
312 assert(*ptr == N - 1); in ktest_idr_case3()
324 int *ptr = idr_find_next_getid(&k_idr, i - 1, &nextid); in ktest_idr_case3() local
328 assert(ptr != NULL); in ktest_idr_case3()
329 assert(*ptr == N - 1); in ktest_idr_case3()
334 assert(ptr == NULL); in ktest_idr_case3()
372 int *ptr = idr_find(&k_idr, j); in ktest_idr_case4() local
373 assert(ptr != NULL); in ktest_idr_case4()
374 assert(*ptr == M - 1); in ktest_idr_case4()
380 int *ptr = idr_find(&k_idr, j); in ktest_idr_case4() local
381 assert(ptr != NULL); in ktest_idr_case4()
382 assert(*ptr == M - 1); in ktest_idr_case4()
388 int *ptr = idr_find(&k_idr, j); in ktest_idr_case4() local
389 assert(ptr != NULL); in ktest_idr_case4()
390 assert(*ptr == M - 1); in ktest_idr_case4()
429 int *ptr; in ktest_idr_case5() local
430 int flags = idr_replace_get_old(&k_idr, &a[(i + 1) % N], i, (void *)&ptr); in ktest_idr_case5()
432 assert(ptr != NULL); in ktest_idr_case5()
433 assert(*ptr == i); in ktest_idr_case5()
436 ptr = idr_find(&k_idr, i); in ktest_idr_case5()
437 assert(ptr != NULL); in ktest_idr_case5()
438 assert(*ptr == (i + 1) % N); in ktest_idr_case5()