Lines Matching refs:funcs
28 const struct min_heap_callbacks *funcs) in pop_verify_heap() argument
35 min_heap_pop(heap, funcs, NULL); in pop_verify_heap()
51 min_heap_pop(heap, funcs, NULL); in pop_verify_heap()
65 struct min_heap_callbacks funcs = { in test_heapify_all() local
72 min_heapify_all(&heap, &funcs, NULL); in test_heapify_all()
73 err = pop_verify_heap(min_heap, &heap, &funcs); in test_heapify_all()
81 min_heapify_all(&heap, &funcs, NULL); in test_heapify_all()
82 err += pop_verify_heap(min_heap, &heap, &funcs); in test_heapify_all()
97 struct min_heap_callbacks funcs = { in test_heap_push() local
105 min_heap_push(&heap, &data[i], &funcs, NULL); in test_heap_push()
107 err = pop_verify_heap(min_heap, &heap, &funcs); in test_heap_push()
112 min_heap_push(&heap, &temp, &funcs, NULL); in test_heap_push()
114 err += pop_verify_heap(min_heap, &heap, &funcs); in test_heap_push()
129 struct min_heap_callbacks funcs = { in test_heap_pop_push() local
138 min_heap_push(&heap, &temp, &funcs, NULL); in test_heap_pop_push()
142 min_heap_pop_push(&heap, &data[i], &funcs, NULL); in test_heap_pop_push()
144 err = pop_verify_heap(min_heap, &heap, &funcs); in test_heap_pop_push()
148 min_heap_push(&heap, &temp, &funcs, NULL); in test_heap_pop_push()
153 min_heap_pop_push(&heap, &temp, &funcs, NULL); in test_heap_pop_push()
155 err += pop_verify_heap(min_heap, &heap, &funcs); in test_heap_pop_push()
168 struct min_heap_callbacks funcs = { in test_heap_del() local
175 min_heapify_all(&heap, &funcs, NULL); in test_heap_del()
177 min_heap_del(&heap, get_random_u32() % heap.nr, &funcs, NULL); in test_heap_del()
178 err = pop_verify_heap(min_heap, &heap, &funcs); in test_heap_del()
185 min_heapify_all(&heap, &funcs, NULL); in test_heap_del()
188 min_heap_del(&heap, get_random_u32() % heap.nr, &funcs, NULL); in test_heap_del()
189 err += pop_verify_heap(min_heap, &heap, &funcs); in test_heap_del()