Home
last modified time | relevance | path

Searched refs:cmp_fn (Results 1 – 7 of 7) sorted by relevance

/linux-6.6.21/kernel/trace/
Dtracing_map.c203 tracing_map_cmp_fn_t cmp_fn) in tracing_map_add_field() argument
209 map->fields[map->n_fields++].cmp_fn = cmp_fn; in tracing_map_add_field()
272 tracing_map_cmp_fn_t cmp_fn) in tracing_map_add_key_field() argument
275 int idx = tracing_map_add_field(map, cmp_fn); in tracing_map_add_key_field()
363 if (elt->fields[i].cmp_fn == tracing_map_cmp_atomic64) in tracing_map_elt_clear()
382 elt->fields[i].cmp_fn = elt->map->fields[i].cmp_fn; in tracing_map_elt_init_fields()
384 if (elt->fields[i].cmp_fn != tracing_map_cmp_atomic64) in tracing_map_elt_init_fields()
865 tracing_map_cmp_fn_t cmp_fn; in cmp_entries_sum() local
878 cmp_fn = field->cmp_fn; in cmp_entries_sum()
883 ret = cmp_fn(val_a, val_b); in cmp_entries_sum()
[all …]
Dtracing_map.h131 tracing_map_cmp_fn_t cmp_fn; member
251 tracing_map_cmp_fn_t cmp_fn);
Dtrace_events_hist.c5062 tracing_map_cmp_fn_t cmp_fn; in create_tracing_map_fields() local
5067 cmp_fn = tracing_map_cmp_none; in create_tracing_map_fields()
5069 cmp_fn = tracing_map_cmp_num(hist_field->size, in create_tracing_map_fields()
5072 cmp_fn = tracing_map_cmp_string; in create_tracing_map_fields()
5074 cmp_fn = tracing_map_cmp_num(field->size, in create_tracing_map_fields()
5078 cmp_fn); in create_tracing_map_fields()
/linux-6.6.21/fs/xfs/scrub/
Dxfarray.h72 xfarray_cmp_fn cmp_fn; member
138 int xfarray_sort(struct xfarray *array, xfarray_cmp_fn cmp_fn,
Dxfarray.c415 return si->cmp_fn(a, b); in xfarray_sort_cmp()
442 xfarray_cmp_fn cmp_fn, in xfarray_sortinfo_alloc() argument
482 si->cmp_fn = cmp_fn; in xfarray_sortinfo_alloc()
560 sort(scratch, hi - lo + 1, si->array->obj_size, si->cmp_fn, NULL); in xfarray_isort()
641 sort(startp, hi - lo + 1, si->array->obj_size, si->cmp_fn, NULL); in xfarray_pagesort()
749 sort(parray, XFARRAY_QSORT_PIVOT_NR, pivot_rec_sz, si->cmp_fn, NULL); in xfarray_qsort_pivot()
932 xfarray_cmp_fn cmp_fn, in xfarray_sort() argument
947 error = xfarray_sortinfo_alloc(array, cmp_fn, flags, &si); in xfarray_sort()
/linux-6.6.21/include/linux/
Dlockdep_types.h118 lock_cmp_fn cmp_fn; member
/linux-6.6.21/kernel/locking/
Dlockdep.c3002 if (class->cmp_fn) { in print_deadlock_bug()
3004 class->cmp_fn(prev->instance, next->instance)); in print_deadlock_bug()
3051 if (class->cmp_fn && in check_deadlock()
3052 class->cmp_fn(prev->instance, next->instance) < 0) in check_deadlock()
3119 if (class->cmp_fn && in check_prev_add()
3120 class->cmp_fn(prev->instance, next->instance) < 0) in check_prev_add()
4922 void lockdep_set_lock_cmp_fn(struct lockdep_map *lock, lock_cmp_fn cmp_fn, in lockdep_set_lock_cmp_fn() argument
4935 WARN_ON(class->cmp_fn && class->cmp_fn != cmp_fn); in lockdep_set_lock_cmp_fn()
4938 class->cmp_fn = cmp_fn; in lockdep_set_lock_cmp_fn()