Home
last modified time | relevance | path

Searched refs:callback_ctx (Results 1 – 19 of 19) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dfor_each_array_map_elem.c22 struct callback_ctx { struct
30 struct callback_ctx *data) in unused_subprog() argument
38 struct callback_ctx *data) in check_array_elem()
51 struct callback_ctx *data) in check_percpu_elem()
63 struct callback_ctx data; in test_pkt_access()
H A Dfor_each_hash_map_elem.c22 struct callback_ctx { struct
30 struct callback_ctx *data) in check_hash_elem() argument
59 struct callback_ctx *unused) in check_percpu_elem()
61 struct callback_ctx data; in check_percpu_elem()
84 struct callback_ctx data; in test_pkt_access()
H A Dfind_vma.c9 struct callback_ctx { struct
24 struct callback_ctx *data) in check_vma() argument
41 struct callback_ctx data = {}; in handle_getpid()
57 struct callback_ctx data = {}; in handle_pe()
H A Dbloom_filter_map.c34 struct callback_ctx { struct
42 struct callback_ctx *data) in check_elem() argument
59 struct callback_ctx data; in inner_map()
77 struct callback_ctx data; in check_bloom()
H A Dfind_vma_fail2.c8 struct callback_ctx { struct
13 struct callback_ctx *data) in write_task() argument
25 struct callback_ctx data = {}; in handle_getpid()
H A Dfind_vma_fail1.c9 struct callback_ctx { struct
14 struct callback_ctx *data) in write_vma() argument
26 struct callback_ctx data = {}; in handle_getpid()
H A Dbpf_loop.c10 struct callback_ctx { struct
37 struct callback_ctx *ctx = data; in callback()
68 struct callback_ctx data = {}; in test_prog()
97 struct callback_ctx data = {}; in prog_invalid_flags()
110 struct callback_ctx data = {}; in prog_nested_calls()
H A Dtimer_mim_reject.c76 struct callback_ctx { struct
80 static int mismatch_iter_cb(void *map, int *key, struct hmap_elem *val, struct callback_ctx *ctx) in mismatch_iter_cb() argument
88 struct callback_ctx ctx = { .map = map }; in timer_mismatch_cb()
99 static int match_iter_cb(void *map, int *key, struct hmap_elem *val, struct callback_ctx *ctx) in match_iter_cb()
107 struct callback_ctx ctx = {}; in timer_match_cb()
H A Dtest_map_ops.c109 int callback_ctx; in map_for_each_pass() local
116 err = bpf_for_each_map_elem(&array_map, callback, &callback_ctx, flags); in map_for_each_pass()
127 int callback_ctx; in map_for_each_fail() local
135 err = bpf_for_each_map_elem(&array_map, callback, &callback_ctx, flags); in map_for_each_fail()
H A Dbloom_filter_bench.c42 struct callback_ctx { struct
72 struct callback_ctx *data) in bloom_callback()
94 struct callback_ctx data; in bloom_lookup()
107 struct callback_ctx data; in bloom_update()
H A Dfor_each_multi_maps.c21 struct callback_ctx { struct
30 struct callback_ctx *data) in check_map_elem() argument
39 struct callback_ctx data; in test_pkt_access()
H A Dtest_spin_lock_fail.c325 struct callback_ctx { struct
330 struct foo *value, struct callback_ctx *ctx) in lock_different_value() argument
340 struct callback_ctx ctx = { .value = value }; in nest_lock_different_value()
356 struct callback_ctx ctx = { .value = value }; in nest_lock_different_inner_value()
/linux/kernel/bpf/
H A Dbpf_iter.c737 void *, callback_ctx, u64, flags) in BPF_CALL_4()
739 return map->ops->map_for_each_callback(map, callback_fn, callback_ctx, flags); in BPF_CALL_4()
752 BPF_CALL_4(bpf_loop, u32, nr_loops, void *, callback_fn, void *, callback_ctx,
769 ret = callback((u64)i, (u64)(long)callback_ctx, 0, 0, 0);
712 BPF_CALL_4(bpf_for_each_map_elem,struct bpf_map *,map,void *,callback_fn,void *,callback_ctx,u64,flags) BPF_CALL_4() argument
727 BPF_CALL_4(bpf_loop,u32,nr_loops,void *,callback_fn,void *,callback_ctx,u64,flags) BPF_CALL_4() argument
H A Dringbuf.c818 void *, callback_fn, void *, callback_ctx, u64, flags) in BPF_CALL_4() argument
855 ret = callback((uintptr_t)&dynptr, (uintptr_t)callback_ctx, 0, 0, 0); in BPF_CALL_4()
H A Dtask_iter.c758 bpf_callback_t, callback_fn, void *, callback_ctx, u64, flags) in BPF_CALL_5()
819 (u64)(long)callback_ctx, 0, 0); in BPF_CALL_5()
754 BPF_CALL_5(bpf_find_vma,struct task_struct *,task,u64,start,bpf_callback_t,callback_fn,void *,callback_ctx,u64,flags) BPF_CALL_5() argument
H A Darraymap.c804 void *callback_ctx, u64 flags) in bpf_for_each_array_elem() argument
827 (u64)(long)val, (u64)(long)callback_ctx, 0); in bpf_for_each_array_elem()
H A Dhashtab.c2492 void *callback_ctx, u64 flags) in htab_lru_percpu_map_lookup_elem()
2531 (u64)(long)val, (u64)(long)callback_ctx, 0); in bpf_percpu_hash_copy()
3401 void *callback_ctx, u64 flags) in __rhtab_map_lookup_and_delete_batch()
3427 (u64)(long)callback_ctx, 0);
2306 bpf_for_each_hash_elem(struct bpf_map * map,bpf_callback_t callback_fn,void * callback_ctx,u64 flags) bpf_for_each_hash_elem() argument
3227 bpf_each_rhash_elem(struct bpf_map * map,bpf_callback_t callback_fn,void * callback_ctx,u64 flags) bpf_each_rhash_elem() argument
H A Dfixups.c2459 void *callback_ctx, in bpf_do_misc_fixups()
/linux/include/linux/
H A Dbpf.h186 void *callback_ctx, u64 flags);