Home
last modified time | relevance | path

Searched refs:callbacks (Results 1 – 25 of 209) sorted by relevance

123456789

/linux/kernel/livepatch/
H A Dcore.h30 if (obj->callbacks.pre_patch) in klp_pre_patch_callback()
31 ret = (*obj->callbacks.pre_patch)(obj); in klp_pre_patch_callback()
33 obj->callbacks.post_unpatch_enabled = !ret; in klp_pre_patch_callback()
40 if (obj->callbacks.post_patch) in klp_post_patch_callback()
41 (*obj->callbacks.post_patch)(obj); in klp_post_patch_callback()
46 if (obj->callbacks.pre_unpatch) in klp_pre_unpatch_callback()
47 (*obj->callbacks.pre_unpatch)(obj); in klp_pre_unpatch_callback()
52 if (obj->callbacks.post_unpatch_enabled && in klp_post_unpatch_callback()
53 obj->callbacks.post_unpatch) in klp_post_unpatch_callback()
54 (*obj->callbacks.post_unpatch)(obj); in klp_post_unpatch_callback()
[all …]
/linux/Documentation/driver-api/usb/
H A Dcallbacks.rst1 USB core callbacks
4 What callbacks will usbcore do?
7 Usbcore will call into a driver through callbacks defined in the driver
10 callbacks are completely independent of each other. Information on the
13 The callbacks defined in the driver structure are:
15 1. Hotplugging callbacks:
34 3. Power management (PM) callbacks:
55 reason. Sysfs is preferred these days. The PM callbacks are covered
61 All callbacks are mutually exclusive. There's no need for locking
62 against other USB callbacks. All callbacks are called from a task
[all …]
/linux/net/lapb/
H A Dlapb_iface.c140 const struct lapb_register_struct *callbacks) in lapb_register() argument
159 lapb->callbacks = callbacks; in lapb_register()
411 if (lapb->callbacks->connect_confirmation) in lapb_connect_confirmation()
412 lapb->callbacks->connect_confirmation(lapb->dev, reason); in lapb_connect_confirmation()
417 if (lapb->callbacks->connect_indication) in lapb_connect_indication()
418 lapb->callbacks->connect_indication(lapb->dev, reason); in lapb_connect_indication()
423 if (lapb->callbacks->disconnect_confirmation) in lapb_disconnect_confirmation()
424 lapb->callbacks->disconnect_confirmation(lapb->dev, reason); in lapb_disconnect_confirmation()
429 if (lapb->callbacks->disconnect_indication) in lapb_disconnect_indication()
430 lapb->callbacks->disconnect_indication(lapb->dev, reason); in lapb_disconnect_indication()
[all …]
/linux/sound/drivers/opl3/
H A Dopl3_oss.c49 struct snd_seq_port_callback callbacks; in snd_opl3_oss_create_port() local
60 memset(&callbacks, 0, sizeof(callbacks)); in snd_opl3_oss_create_port()
61 callbacks.owner = THIS_MODULE; in snd_opl3_oss_create_port()
62 callbacks.event_input = snd_opl3_oss_event_input; in snd_opl3_oss_create_port()
63 callbacks.private_free = snd_opl3_oss_free_port; in snd_opl3_oss_create_port()
64 callbacks.private_data = opl3; in snd_opl3_oss_create_port()
70 opl3->oss_chset->port = snd_seq_event_port_attach(opl3->seq_client, &callbacks, in snd_opl3_oss_create_port()
/linux/block/
H A Dblk-stat.c15 struct list_head callbacks; member
62 list_for_each_entry_rcu(cb, &q->stats->callbacks, list) { in blk_stat_add()
148 list_add_tail_rcu(&cb->list, &q->stats->callbacks); in blk_stat_add_callback()
160 if (list_empty(&q->stats->callbacks) && !q->stats->accounting) in blk_stat_remove_callback()
188 if (!--q->stats->accounting && list_empty(&q->stats->callbacks)) in blk_stat_disable_accounting()
199 if (!q->stats->accounting++ && list_empty(&q->stats->callbacks)) in blk_stat_enable_accounting()
213 INIT_LIST_HEAD(&stats->callbacks); in blk_alloc_queue_stats()
225 WARN_ON(!list_empty(&stats->callbacks)); in blk_free_queue_stats()
/linux/Documentation/core-api/
H A Dmin_heap.rst127 success = min_heap_push(heap, element, callbacks, args);
131 - **callbacks**: A pointer to a `struct min_heap_callbacks` providing the
138 **Inline Version:** min_heap_push_inline(heap, element, callbacks, args)
145 success = min_heap_pop(heap, callbacks, args);
148 - **callbacks**: A pointer to a `struct min_heap_callbacks` providing the
156 **Inline Version:** min_heap_pop_inline(heap, callbacks, args)
165 min_heap_sift_down(heap, pos, callbacks, args);
169 - **callbacks**: A pointer to a `struct min_heap_callbacks` providing the
177 **Inline Version:** min_heap_sift_down_inline(heap, pos, callbacks, args)
181 min_heap_sift_up(heap, idx, callbacks, args);
[all …]
/linux/samples/livepatch/
H A DMakefile6 obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-callbacks-demo.o
7 obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-callbacks-mod.o
8 obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-callbacks-busymod.o
H A Dlivepatch-callbacks-demo.c152 .callbacks = {
161 .callbacks = {
170 .callbacks = {
/linux/drivers/gpu/drm/amd/display/dc/dml2_0/
H A Ddml2_dc_resource_mgmt.c764 ctx->config.callbacks.acquire_secondary_pipe_for_mpc_odm(ctx->config.callbacks.dc, state, in map_pipes_for_stream()
798 ctx->config.callbacks.acquire_secondary_pipe_for_mpc_odm(ctx->config.callbacks.dc, state, in map_pipes_for_plane()
824 if (ctx->config.svp_pstate.callbacks.get_stream_subvp_type(state, stream) == SUBVP_PHANTOM) { in get_target_mpc_factor()
829 main_stream = ctx->config.svp_pstate.callbacks.get_paired_subvp_stream(state, stream); in get_target_mpc_factor()
835 main_stream_status = ctx->config.callbacks.get_stream_status(state, main_stream); in get_target_mpc_factor()
886 if (ctx->config.svp_pstate.callbacks.get_stream_subvp_type(state, stream) == SUBVP_PHANTOM) { in get_target_odm_factor()
890 main_stream = ctx->config.svp_pstate.callbacks.get_paired_subvp_stream(state, stream); in get_target_odm_factor()
914 …struct pipe_ctx *otg_master = ctx->config.callbacks.get_otg_master_for_stream(&state->res_ctx, str… in get_source_odm_factor()
919 return ctx->config.callbacks.get_odm_slice_count(otg_master); in get_source_odm_factor()
928 if (ctx->config.callbacks.get_dpp_pipes_for_plane(plane, &state->res_ctx, dpp_pipes) <= 0) in get_source_mpc_factor()
[all …]
/linux/Documentation/livepatch/
H A Dcallbacks.rst5 Livepatch (un)patch-callbacks provide a mechanism for livepatch modules
16 In most cases, (un)patch callbacks will need to be used in conjunction
61 symmetry: pre-patch callbacks have a post-unpatch counterpart and
62 post-patch callbacks have a pre-unpatch counterpart. An unpatch
69 in-kernel vmlinux targets, this means that callbacks will always execute
71 callbacks will only execute if the target module is loaded. When a
72 module target is (un)loaded, its callbacks will execute only if the
90 No post-patch, pre-unpatch, or post-unpatch callbacks will be executed
95 (this follows the previously mentioned symmetry -- pre-unpatch callbacks
127 callbacks.
H A Dcumulative-patches.rst70 extra modifications in (un)patching callbacks or in the module_init()
77 - Only the (un)patching callbacks from the _new_ cumulative livepatch are
78 executed. Any callbacks from the replaced patches are ignored.
84 older ones. The old livepatches might not provide the necessary callbacks.
92 the various callbacks and their interactions if the callbacks from all
/linux/Documentation/networking/
H A Dsriov.rst16 it consists of a number of ``ndo_set_vf_*`` and ``ndo_get_vf_*`` callbacks.
20 will be accepted. New drivers should not implement the uncommon callbacks;
21 namely the following callbacks are off limits:
/linux/tools/testing/selftests/livepatch/test_modules/
H A Dtest_klp_callbacks_demo.c75 .callbacks = {
84 .callbacks = {
93 .callbacks = {
/linux/Documentation/RCU/
H A DUP.rst77 It is far better to guarantee that callbacks are invoked
85 What locking restriction must RCU callbacks respect?
90 permit call_rcu() to directly invoke callbacks, but only if a full
91 grace period has elapsed since those callbacks were queued. This is
94 encouraged to avoid invoking callbacks from call_rcu(), thus obtaining
102 infrastructure *must* respect grace periods, and *must* invoke callbacks
123 What locking restriction must RCU callbacks respect?
134 then, since RCU callbacks can be invoked from softirq context,
140 callbacks acquire locks directly. However, a great many RCU
141 callbacks do acquire locks *indirectly*, for example, via
/linux/net/core/
H A Dgso.c21 if (ptype->type == type && ptype->callbacks.gso_segment) { in skb_eth_gso_segment()
22 segs = ptype->callbacks.gso_segment(skb, features); in skb_eth_gso_segment()
52 if (ptype->type == type && ptype->callbacks.gso_segment) { in skb_mac_gso_segment()
53 segs = ptype->callbacks.gso_segment(skb, features); in skb_mac_gso_segment()
/linux/Documentation/driver-api/pm/
H A Dnotifiers.rst16 ``->resume()`` or even ``->prepare()`` and ``->complete()`` callbacks are not
33 callbacks for the "freeze" transition.
37 error occurred during hibernation. Device restore callbacks have been
47 callbacks have been executed and tasks have been thawed.
54 resume callbacks have been executed and tasks have been thawed.
/linux/drivers/rtc/
H A Drtc-hid-sensor-time.c24 struct hid_sensor_hub_callbacks callbacks; member
256 time_state->callbacks.send_event = hid_time_proc_event; in hid_time_probe()
257 time_state->callbacks.capture_sample = hid_time_capture_sample; in hid_time_probe()
258 time_state->callbacks.pdev = pdev; in hid_time_probe()
260 &time_state->callbacks); in hid_time_probe()
/linux/drivers/iio/pressure/
H A Dhid-sensor-press.c22 struct hid_sensor_hub_callbacks callbacks; member
288 press_state->callbacks.send_event = press_proc_event; in hid_press_probe()
289 press_state->callbacks.capture_sample = press_capture_sample; in hid_press_probe()
290 press_state->callbacks.pdev = pdev; in hid_press_probe()
292 &press_state->callbacks); in hid_press_probe()
/linux/Documentation/driver-api/media/
H A Dv4l2-event.rst59 ``merge()`` and ``replace()`` callbacks which drivers can set. These
60 callbacks are called when a new event is raised and there is no more room.
75 A good example of these ``replace``/``merge`` callbacks is in v4l2-event.c:
76 ``ctrls_replace()`` and ``ctrls_merge()`` callbacks for the control event.
79 these callbacks can be called from interrupt context, so they must
110 The ops argument allows the driver to specify a number of callbacks:
124 All 4 callbacks are optional, if you don't want to specify any callbacks
/linux/drivers/iio/light/
H A Dhid-sensor-prox.c31 struct hid_sensor_hub_callbacks callbacks; member
309 prox_state->callbacks.send_event = prox_proc_event; in hid_prox_probe()
310 prox_state->callbacks.capture_sample = prox_capture_sample; in hid_prox_probe()
311 prox_state->callbacks.pdev = pdev; in hid_prox_probe()
313 &prox_state->callbacks); in hid_prox_probe()
/linux/drivers/iio/gyro/
H A Dhid-sensor-gyro-3d.c25 struct hid_sensor_hub_callbacks callbacks; member
321 gyro_state->callbacks.send_event = gyro_3d_proc_event; in hid_gyro_3d_probe()
322 gyro_state->callbacks.capture_sample = gyro_3d_capture_sample; in hid_gyro_3d_probe()
323 gyro_state->callbacks.pdev = pdev; in hid_gyro_3d_probe()
325 &gyro_state->callbacks); in hid_gyro_3d_probe()
/linux/drivers/iio/position/
H A Dhid-sensor-custom-intel-hinge.c36 struct hid_sensor_hub_callbacks callbacks; member
320 st->callbacks.send_event = hinge_proc_event; in hid_hinge_probe()
321 st->callbacks.capture_sample = hinge_capture_sample; in hid_hinge_probe()
322 st->callbacks.pdev = pdev; in hid_hinge_probe()
323 ret = sensor_hub_register_callback(hsdev, hsdev->usage, &st->callbacks); in hid_hinge_probe()
/linux/Documentation/driver-api/80211/
H A Dmac80211.rst25 Additionally, some discussion about the callbacks and the general
49 This chapter should describe PHY handling including start/stop callbacks
64 the add_iface/remove_iface callbacks as well as the interface
65 configuration callbacks.
/linux/drivers/iio/orientation/
H A Dhid-sensor-incl-3d.c26 struct hid_sensor_hub_callbacks callbacks; member
353 incl_state->callbacks.send_event = incl_3d_proc_event; in hid_incl_3d_probe()
354 incl_state->callbacks.capture_sample = incl_3d_capture_sample; in hid_incl_3d_probe()
355 incl_state->callbacks.pdev = pdev; in hid_incl_3d_probe()
358 &incl_state->callbacks); in hid_incl_3d_probe()
H A Dhid-sensor-rotation.c17 struct hid_sensor_hub_callbacks callbacks; member
366 rot_state->callbacks.send_event = dev_rot_proc_event; in hid_dev_rot_probe()
367 rot_state->callbacks.capture_sample = dev_rot_capture_sample; in hid_dev_rot_probe()
368 rot_state->callbacks.pdev = pdev; in hid_dev_rot_probe()
370 &rot_state->callbacks); in hid_dev_rot_probe()

123456789