Home
last modified time | relevance | path

Searched refs:priv (Results 1 – 8 of 8) sorted by relevance

/lib/
Dlist_sort.c19 static struct list_head *merge(void *priv, cmp_func cmp, in merge() argument
26 if (cmp(priv, a, b) <= 0) { in merge()
55 static void merge_final(void *priv, cmp_func cmp, struct list_head *head, in merge_final() argument
63 if (cmp(priv, a, b) <= 0) { in merge_final()
93 cmp(priv, b, b); in merge_final()
188 void list_sort(void *priv, struct list_head *head, in list_sort() argument
189 int (*cmp)(void *priv, struct list_head *a, in list_sort() argument
230 a = merge(priv, cmp, b, a); in list_sort()
252 list = merge(priv, cmp, pending, list); in list_sort()
256 merge_final(priv, cmp, head, pending, list); in list_sort()
Dsort.c152 cmp_r_func_t cmp, const void *priv) in do_cmp() argument
155 return ((cmp_func_t)(priv))(a, b); in do_cmp()
156 return cmp(a, b, priv); in do_cmp()
207 const void *priv) in sort_r() argument
255 b = do_cmp(base + c, base + d, cmp_func, priv) >= 0 ? c : d; in sort_r()
260 while (b != a && do_cmp(base + a, base + b, cmp_func, priv) >= 0) in sort_r()
Dparman.c52 void *priv; member
65 err = parman->ops->resize(parman->priv, new_count); in parman_enlarge()
80 err = parman->ops->resize(parman->priv, new_count); in parman_shrink()
130 parman->ops->move(parman->priv, item->index, to_index, count); in __parman_prio_move()
268 struct parman *parman_create(const struct parman_ops *ops, void *priv) in parman_create() argument
277 parman->priv = priv; in parman_create()
Derror-inject.c20 void *priv; member
59 void *priv) in populate_error_injection_list() argument
82 ent->priv = priv; in populate_error_injection_list()
119 if (ent->priv == mod) { in module_unload_ei_list()
Dtest_objagg.c90 static bool delta_check(void *priv, const void *parent_obj, const void *obj) in delta_check() argument
99 static void *delta_create(void *priv, void *parent_obj, void *obj) in delta_create() argument
102 struct world *world = priv; in delta_create()
107 if (!delta_check(priv, parent_obj, obj)) in delta_create()
118 static void delta_destroy(void *priv, void *delta_priv) in delta_destroy() argument
121 struct world *world = priv; in delta_destroy()
127 static void *root_create(void *priv, void *obj, unsigned int id) in root_create() argument
129 struct world *world = priv; in root_create()
142 static void root_destroy(void *priv, void *root_priv) in root_destroy() argument
145 struct world *world = priv; in root_destroy()
[all …]
Dtest_parman.c92 static int test_parman_resize(void *priv, unsigned long new_count) in test_parman_resize() argument
94 struct test_parman *test_parman = priv; in test_parman_resize()
113 static void test_parman_move(void *priv, unsigned long from_index, in test_parman_move() argument
116 struct test_parman *test_parman = priv; in test_parman_move()
Dobjagg.c45 void *priv; member
170 delta_priv = objagg->ops->delta_create(objagg->priv, parent->obj, in objagg_obj_parent_assign()
217 objagg->ops->delta_destroy(objagg->priv, objagg_obj->delta_priv); in objagg_obj_parent_unassign()
270 objagg_obj->root_priv = objagg->ops->root_create(objagg->priv, in objagg_obj_root_create()
289 objagg->ops->root_destroy(objagg->priv, objagg_obj->root_priv); in objagg_obj_root_destroy()
515 struct objagg_hints *objagg_hints, void *priv) in objagg_create() argument
533 objagg->priv = priv; in objagg_create()
817 if (objagg->ops->delta_check(objagg->priv, in objagg_tmp_graph_create()
Dtest_list_sort.c59 static int __init cmp(void *priv, struct list_head *a, struct list_head *b) in cmp() argument