Home
last modified time | relevance | path

Searched refs:callback_fn (Results 1 – 13 of 13) 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.c427 void (*callback_fn)(void *context); in vmbus_on_event() local
437 callback_fn = READ_ONCE(channel->onchannel_callback); in vmbus_on_event()
438 if (unlikely(!callback_fn)) in vmbus_on_event()
441 (*callback_fn)(channel->channel_callback_context); in vmbus_on_event()
H A Dvmbus_drv.c1252 void (*callback_fn)(void *context); in vmbus_chan_sched() local
1287 callback_fn = channel->onchannel_callback; in vmbus_chan_sched()
1288 if (unlikely(callback_fn == NULL)) in vmbus_chan_sched()
1297 (*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 Dringbuf.c818 void *, callback_fn, void *, callback_ctx, u64, flags) in BPF_CALL_4() argument
822 bpf_callback_t callback = (bpf_callback_t)callback_fn; in BPF_CALL_4()
H A Dtask_iter.c754 bpf_callback_t, callback_fn, void *, callback_ctx, u64, flags) in BPF_CALL_5() argument
809 callback_fn((u64)(long)task, (u64)(long)vma, in BPF_CALL_5()
H A Darraymap.c802 static long bpf_for_each_array_elem(struct bpf_map *map, bpf_callback_t callback_fn, in bpf_for_each_array_elem() argument
825 ret = callback_fn((u64)(long)map, (u64)(long)&key, in bpf_for_each_array_elem()
H A Dhashtab.c2265 static long bpf_for_each_hash_elem(struct bpf_map *map, bpf_callback_t callback_fn, in bpf_for_each_hash_elem() argument
2304 ret = callback_fn((u64)(long)map, (u64)(long)key, in bpf_for_each_hash_elem()
3195 static long bpf_each_rhash_elem(struct bpf_map *map, bpf_callback_t callback_fn, in bpf_each_rhash_elem() argument
3219 ret = callback_fn((u64)(long)map, in bpf_each_rhash_elem()
H A Dfixups.c2105 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/include/linux/
H A Dbpf.h182 bpf_callback_t callback_fn,