Home
last modified time | relevance | path

Searched refs:callback_fn (Results 1 – 12 of 12) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dwq.c57 int (callback_fn)(void *map, int *key, void *value)) in test_elem_callback()
80 if (bpf_wq_set_callback(wq, callback_fn, 0)) in test_elem_callback()
90 int (callback_fn)(void *map, int *key, void *value)) in test_hmap_elem_callback()
110 if (bpf_wq_set_callback(wq, callback_fn, 0)) in test_hmap_elem_callback()
/linux/drivers/hv/
H A Dconnection.c410 void (*callback_fn)(void *context); in vmbus_on_event() local
420 callback_fn = READ_ONCE(channel->onchannel_callback); in vmbus_on_event()
421 if (unlikely(!callback_fn)) in vmbus_on_event()
424 (*callback_fn)(channel->channel_callback_context); in vmbus_on_event()
H A Dvmbus_drv.c1265 void (*callback_fn)(void *context); in vmbus_chan_sched() local
1300 callback_fn = channel->onchannel_callback; in vmbus_chan_sched()
1301 if (unlikely(callback_fn == NULL)) in vmbus_chan_sched()
1310 (*callback_fn)(channel->channel_callback_context); in vmbus_chan_sched()
/linux/kernel/bpf/
H A Dhelpers.c1133 void __rcu *callback_fn; member
1188 bpf_callback_t callback_fn; in bpf_timer_cb() local
1193 callback_fn = rcu_dereference_check(t->cb.callback_fn, rcu_read_lock_bh_held()); in bpf_timer_cb()
1194 if (!callback_fn) in bpf_timer_cb()
1207 callback_fn((u64)(long)map, (u64)(long)key, (u64)(long)value, 0, 0); in bpf_timer_cb()
1220 bpf_callback_t callback_fn; in bpf_wq_work() local
1227 callback_fn = READ_ONCE(cb->callback_fn); in bpf_wq_work()
1228 if (!callback_fn) in bpf_wq_work()
1236 callback_fn((u64)(long)map, (u64)(long)key, (u64)(long)value, 0, 0); in bpf_wq_work()
1368 rcu_assign_pointer(cb->callback_fn, NULL); in __bpf_async_init()
[all …]
H A Dbpf_iter.c711 BPF_CALL_4(bpf_for_each_map_elem, struct bpf_map *, map, void *, callback_fn, in BPF_CALL_4() argument
714 return map->ops->map_for_each_callback(map, callback_fn, callback_ctx, flags); in BPF_CALL_4()
727 BPF_CALL_4(bpf_loop, u32, nr_loops, void *, callback_fn, void *, callback_ctx, in BPF_CALL_4() argument
730 bpf_callback_t callback = (bpf_callback_t)callback_fn; in BPF_CALL_4()
H A Darraymap.c747 static long bpf_for_each_array_elem(struct bpf_map *map, bpf_callback_t callback_fn, in bpf_for_each_array_elem() argument
770 ret = callback_fn((u64)(long)map, (u64)(long)&key, in bpf_for_each_array_elem()
H A Dhashtab.c2263 static long bpf_for_each_hash_elem(struct bpf_map *map, bpf_callback_t callback_fn, in bpf_for_each_hash_elem() argument
2302 ret = callback_fn((u64)(long)map, (u64)(long)key, in bpf_for_each_hash_elem()
H A Dfixups.c2020 bpf_callback_t callback_fn, in bpf_do_misc_fixups()
/linux/drivers/scsi/device_handler/
H A Dscsi_dh_rdac.c230 activate_complete callback_fn; member
591 if (qdata->callback_fn) in send_mode_select()
592 qdata->callback_fn(qdata->callback_data, err); in send_mode_select()
609 qdata->callback_fn = fn; in queue_mode_select()
/linux/tools/testing/selftests/hid/progs/
H A Dhid_bpf_helpers.h132 int (*callback_fn)(void *, int *, void *),
/linux/tools/testing/selftests/bpf/
H A Dbpf_experimental.h
/linux/include/linux/
H A Dbpf.h177 bpf_callback_t callback_fn,