Lines Matching defs:cmp
15 int (*cmp)(void *priv, struct list_head *a,
23 if ((*cmp)(priv, a, b) <= 0) {
44 int (*cmp)(void *priv, struct list_head *a,
53 if ((*cmp)(priv, a, b) <= 0) {
70 * element comparison is needed, so the client's cmp()
73 (*cmp)(priv, tail->next, tail->next);
85 * @priv: private data, opaque to list_sort(), passed to @cmp
87 * @cmp: the elements comparison function
92 * The comparison function @cmp must return a negative value if @a
95 * ordering is to be preserved, @cmp must return 0.
98 int (*cmp)(void *priv, struct list_head *a,
121 cur = merge(priv, cmp, part[lev], cur);
138 list = merge(priv, cmp, part[lev], list);
140 merge_and_restore_back_links(priv, cmp, head, part[max_lev], list);
151 static int cmp(void *priv, struct list_head *a, struct list_head *b)
185 list_sort(NULL, head, cmp);
190 int cmp_result = cmp(NULL, cur, cur->next);