Home
last modified time | relevance | path

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

1234567891011

/linux-6.3-rc2/kernel/livepatch/
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-6.3-rc2/sound/drivers/opl3/
A Dopl3_seq.c163 struct snd_seq_port_callback callbacks; in snd_opl3_synth_create_port() local
174 memset(&callbacks, 0, sizeof(callbacks)); in snd_opl3_synth_create_port()
175 callbacks.owner = THIS_MODULE; in snd_opl3_synth_create_port()
176 callbacks.use = snd_opl3_synth_use; in snd_opl3_synth_create_port()
177 callbacks.unuse = snd_opl3_synth_unuse; in snd_opl3_synth_create_port()
178 callbacks.event_input = snd_opl3_synth_event_input; in snd_opl3_synth_create_port()
179 callbacks.private_free = snd_opl3_synth_free_port; in snd_opl3_synth_create_port()
180 callbacks.private_data = opl3; in snd_opl3_synth_create_port()
186 opl3->chset->port = snd_seq_event_port_attach(opl3->seq_client, &callbacks, in snd_opl3_synth_create_port()
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-6.3-rc2/Documentation/driver-api/usb/
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:
62 against other USB callbacks. All callbacks are called from a task
67 Hotplugging callbacks
109 Device level callbacks
[all …]
/linux-6.3-rc2/net/lapb/
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()
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()
429 if (lapb->callbacks->disconnect_indication) in lapb_disconnect_indication()
435 if (lapb->callbacks->data_indication) in lapb_data_indication()
436 return lapb->callbacks->data_indication(lapb->dev, skb); in lapb_data_indication()
446 if (lapb->callbacks->data_transmit) { in lapb_data_transmit()
[all …]
/linux-6.3-rc2/samples/livepatch/
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
A Dlivepatch-callbacks-demo.c152 .callbacks = {
161 .callbacks = {
170 .callbacks = {
/linux-6.3-rc2/net/ipv6/
A Dip6_offload.c117 if (likely(ops && ops->callbacks.gso_segment)) { in ipv6_gso_segment()
119 segs = ops->callbacks.gso_segment(skb, features); in ipv6_gso_segment()
215 if (!ops || !ops->callbacks.gro_receive) { in ipv6_gro_receive()
224 if (!ops || !ops->callbacks.gro_receive) in ipv6_gro_receive()
282 ops->callbacks.gro_receive, head, skb); in ipv6_gro_receive()
362 if (WARN_ON(!ops || !ops->callbacks.gro_complete)) in ipv6_gro_complete()
365 err = INDIRECT_CALL_L4(ops->callbacks.gro_complete, tcp6_gro_complete, in ipv6_gro_complete()
395 .callbacks = {
430 .callbacks = {
438 .callbacks = {
[all …]
/linux-6.3-rc2/Documentation/core-api/
A Dcpu_hotplug.rst178 When a CPU is offlined the teardown callbacks are invoked in the reverse
180 be invoked when the callbacks of a state are removed or an instance is
194 The startup callbacks in this section are invoked before the CPU is
211 The teardown callbacks in this section are not allowed to fail.
224 The callbacks in this section are not allowed to fail.
239 which is pinned on the hotplugged CPU. The callbacks are invoked with
242 The callbacks are allowed to fail. When a callback fails the hotplug
378 When there are no ordering requirements for the state callbacks then
450 and cpuhp_setup_state_multi() only install the callbacks
476 the state callbacks have to be removed later, e.g. module
[all …]
/linux-6.3-rc2/Documentation/livepatch/
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.
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-6.3-rc2/block/
A Dblk-stat.c16 struct list_head callbacks; member
66 list_for_each_entry_rcu(cb, &q->stats->callbacks, list) { in blk_stat_add()
153 list_add_tail_rcu(&cb->list, &q->stats->callbacks); in blk_stat_add_callback()
165 if (list_empty(&q->stats->callbacks) && !q->stats->accounting) in blk_stat_remove_callback()
218 INIT_LIST_HEAD(&stats->callbacks); in blk_alloc_queue_stats()
230 WARN_ON(!list_empty(&stats->callbacks)); in blk_free_queue_stats()
/linux-6.3-rc2/lib/livepatch/
A Dtest_klp_callbacks_demo.c75 .callbacks = {
84 .callbacks = {
93 .callbacks = {
/linux-6.3-rc2/drivers/crypto/virtio/
A Dvirtio_crypto_core.c100 vq_callback_t **callbacks; in virtcrypto_find_vqs() local
118 callbacks = kcalloc(total_vqs, sizeof(*callbacks), GFP_KERNEL); in virtcrypto_find_vqs()
119 if (!callbacks) in virtcrypto_find_vqs()
126 callbacks[total_vqs - 1] = virtcrypto_ctrlq_callback; in virtcrypto_find_vqs()
131 callbacks[i] = virtcrypto_dataq_callback; in virtcrypto_find_vqs()
137 ret = virtio_find_vqs(vi->vdev, total_vqs, vqs, callbacks, names, NULL); in virtcrypto_find_vqs()
156 kfree(callbacks); in virtcrypto_find_vqs()
165 kfree(callbacks); in virtcrypto_find_vqs()
/linux-6.3-rc2/Documentation/RCU/
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
A Drcubarrier.rst34 If we unload the module while some RCU callbacks are pending,
35 the CPUs executing these callbacks are going to be severely
41 grace period to elapse, it does not wait for the callbacks to complete.
56 outstanding RCU callbacks to complete. Please note that rcu_barrier()
58 callbacks queued anywhere, rcu_barrier() is within its rights to return
63 1. Prevent any new RCU callbacks from being posted.
136 52 /* Wait for all RCU callbacks to fire. */
149 Line 6 sets a global variable that prevents any RCU callbacks from
158 for any pre-existing callbacks to complete.
175 RCU callbacks to complete.
[all …]
/linux-6.3-rc2/drivers/virtio/
A Dvirtio_pci_common.c285 struct virtqueue *vqs[], vq_callback_t *callbacks[], in vp_find_vqs_msix() argument
302 if (names[i] && callbacks[i]) in vp_find_vqs_msix()
322 if (!callbacks[i]) in vp_find_vqs_msix()
328 vqs[i] = vp_setup_vq(vdev, queue_idx++, callbacks[i], names[i], in vp_find_vqs_msix()
359 struct virtqueue *vqs[], vq_callback_t *callbacks[], in vp_find_vqs_intx() argument
381 vqs[i] = vp_setup_vq(vdev, queue_idx++, callbacks[i], names[i], in vp_find_vqs_intx()
398 struct virtqueue *vqs[], vq_callback_t *callbacks[], in vp_find_vqs() argument
405 err = vp_find_vqs_msix(vdev, nvqs, vqs, callbacks, names, true, ctx, desc); in vp_find_vqs()
409 err = vp_find_vqs_msix(vdev, nvqs, vqs, callbacks, names, false, ctx, desc); in vp_find_vqs()
416 return vp_find_vqs_intx(vdev, nvqs, vqs, callbacks, names, ctx); in vp_find_vqs()
/linux-6.3-rc2/drivers/rtc/
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-6.3-rc2/Documentation/driver-api/pm/
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.
A Ddevices.rst282 PM core as mutually exclusive. Moreover, PM domain callbacks always take
283 precedence over all of the other callbacks and, for example, type callbacks take
457 soon as the ``->resume`` callbacks occur; it's not necessary to wait
464 ``->resume_early``, and ``->resume`` callbacks may have been
651 callbacks discussed above, because the callbacks occur too late or too early.
716 remaining callbacks. In other words, power management domain callbacks, if
728 runtime PM callbacks may be invoked with disabled interrupts (see
770 invoking device drivers' ``->suspend`` callbacks (or equivalent).
825 and whether or not any driver callbacks
859 callbacks are skipped, its system-wide "noirq" and "early" resume callbacks, if
[all …]
/linux-6.3-rc2/drivers/iio/pressure/
A Dhid-sensor-press.c22 struct hid_sensor_hub_callbacks callbacks; member
306 press_state->callbacks.send_event = press_proc_event; in hid_press_probe()
307 press_state->callbacks.capture_sample = press_capture_sample; in hid_press_probe()
308 press_state->callbacks.pdev = pdev; in hid_press_probe()
310 &press_state->callbacks); in hid_press_probe()
/linux-6.3-rc2/drivers/iio/light/
A Dhid-sensor-prox.c19 struct hid_sensor_hub_callbacks callbacks; member
296 prox_state->callbacks.send_event = prox_proc_event; in hid_prox_probe()
297 prox_state->callbacks.capture_sample = prox_capture_sample; in hid_prox_probe()
298 prox_state->callbacks.pdev = pdev; in hid_prox_probe()
300 &prox_state->callbacks); in hid_prox_probe()
/linux-6.3-rc2/include/linux/
A Dvirtio_config.h107 struct virtqueue *vqs[], vq_callback_t *callbacks[],
213 vq_callback_t *callbacks[] = { c }; in virtio_find_single_vq() local
216 int err = vdev->config->find_vqs(vdev, 1, &vq, callbacks, names, NULL, in virtio_find_single_vq()
225 struct virtqueue *vqs[], vq_callback_t *callbacks[], in virtio_find_vqs() argument
229 return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, NULL, desc); in virtio_find_vqs()
234 struct virtqueue *vqs[], vq_callback_t *callbacks[], in virtio_find_vqs_ctx() argument
238 return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, ctx, in virtio_find_vqs_ctx()
/linux-6.3-rc2/drivers/iio/orientation/
A Dhid-sensor-rotation.c18 struct hid_sensor_hub_callbacks callbacks; member
310 rot_state->callbacks.send_event = dev_rot_proc_event; in hid_dev_rot_probe()
311 rot_state->callbacks.capture_sample = dev_rot_capture_sample; in hid_dev_rot_probe()
312 rot_state->callbacks.pdev = pdev; in hid_dev_rot_probe()
314 &rot_state->callbacks); in hid_dev_rot_probe()
/linux-6.3-rc2/Documentation/power/
A Dpci.rst280 pointers to several device power management callbacks::
309 that these callbacks operate on::
363 Namely, it provides subsystem-level callbacks::
566 that correspond to the PCI bus type's callbacks::
586 of the driver's callbacks.
595 using the following PCI bus type's callbacks::
623 The PCI subsystem-level callbacks they correspond to::
669 callbacks::
676 pm->restore() callbacks, if available.
779 prepare() callbacks have been executed for all devices.
[all …]

Completed in 38 milliseconds

1234567891011