Lines Matching defs:cmp
23 int (*cmp)(void *priv, struct list_head *a,
31 if ((*cmp)(priv, a, b) <= 0) {
52 int (*cmp)(void *priv, struct list_head *a,
61 if ((*cmp)(priv, a, b) <= 0) {
78 * element comparison is needed, so the client's cmp()
81 (*cmp)(priv, tail->next, tail->next);
93 * @priv: private data, opaque to list_sort(), passed to @cmp
95 * @cmp: the elements comparison function
100 * The comparison function @cmp must return a negative value if @a
103 * ordering is to be preserved, @cmp must return 0.
106 int (*cmp)(void *priv, struct list_head *a,
129 cur = merge(priv, cmp, part[lev], cur);
146 list = merge(priv, cmp, part[lev], list);
148 merge_and_restore_back_links(priv, cmp, head, part[max_lev], list);
205 static int __init cmp(void *priv, struct list_head *a, struct list_head *b)
248 list_sort(NULL, &head, cmp);
260 cmp_result = cmp(NULL, cur, cur->next);