Home
last modified time | relevance | path

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

12345678910

/Linux-v4.19/kernel/livepatch/
Dcore.h18 if (obj->callbacks.pre_patch) in klp_pre_patch_callback()
19 ret = (*obj->callbacks.pre_patch)(obj); in klp_pre_patch_callback()
21 obj->callbacks.post_unpatch_enabled = !ret; in klp_pre_patch_callback()
28 if (obj->callbacks.post_patch) in klp_post_patch_callback()
29 (*obj->callbacks.post_patch)(obj); in klp_post_patch_callback()
34 if (obj->callbacks.pre_unpatch) in klp_pre_unpatch_callback()
35 (*obj->callbacks.pre_unpatch)(obj); in klp_pre_unpatch_callback()
40 if (obj->callbacks.post_unpatch_enabled && in klp_post_unpatch_callback()
41 obj->callbacks.post_unpatch) in klp_post_unpatch_callback()
42 (*obj->callbacks.post_unpatch)(obj); in klp_post_unpatch_callback()
[all …]
/Linux-v4.19/Documentation/livepatch/
Dcallbacks.txt5 Livepatch (un)patch-callbacks provide a mechanism for livepatch modules
16 In most cases, (un)patch callbacks will need to be used in conjunction
48 symmetry: pre-patch callbacks have a post-unpatch counterpart and
49 post-patch callbacks have a pre-unpatch counterpart. An unpatch
56 in-kernel vmlinux targets, this means that callbacks will always execute
58 callbacks will only execute if the target module is loaded. When a
59 module target is (un)loaded, its callbacks will execute only if the
77 No post-patch, pre-unpatch, or post-unpatch callbacks will be executed
82 (this follows the previously mentioned symmetry -- pre-unpatch callbacks
112 callbacks.
[all …]
/Linux-v4.19/net/lapb/
Dlapb_iface.c145 const struct lapb_register_struct *callbacks) in lapb_register() argument
164 lapb->callbacks = callbacks; in lapb_register()
383 if (lapb->callbacks->connect_confirmation) in lapb_connect_confirmation()
384 lapb->callbacks->connect_confirmation(lapb->dev, reason); in lapb_connect_confirmation()
389 if (lapb->callbacks->connect_indication) in lapb_connect_indication()
390 lapb->callbacks->connect_indication(lapb->dev, reason); in lapb_connect_indication()
395 if (lapb->callbacks->disconnect_confirmation) in lapb_disconnect_confirmation()
396 lapb->callbacks->disconnect_confirmation(lapb->dev, reason); in lapb_disconnect_confirmation()
401 if (lapb->callbacks->disconnect_indication) in lapb_disconnect_indication()
402 lapb->callbacks->disconnect_indication(lapb->dev, reason); in lapb_disconnect_indication()
[all …]
/Linux-v4.19/sound/drivers/opl3/
Dopl3_seq.c175 struct snd_seq_port_callback callbacks; in snd_opl3_synth_create_port() local
186 memset(&callbacks, 0, sizeof(callbacks)); in snd_opl3_synth_create_port()
187 callbacks.owner = THIS_MODULE; in snd_opl3_synth_create_port()
188 callbacks.use = snd_opl3_synth_use; in snd_opl3_synth_create_port()
189 callbacks.unuse = snd_opl3_synth_unuse; in snd_opl3_synth_create_port()
190 callbacks.event_input = snd_opl3_synth_event_input; in snd_opl3_synth_create_port()
191 callbacks.private_free = snd_opl3_synth_free_port; in snd_opl3_synth_create_port()
192 callbacks.private_data = opl3; in snd_opl3_synth_create_port()
198 opl3->chset->port = snd_seq_event_port_attach(opl3->seq_client, &callbacks, in snd_opl3_synth_create_port()
Dopl3_oss.c62 struct snd_seq_port_callback callbacks; in snd_opl3_oss_create_port() local
73 memset(&callbacks, 0, sizeof(callbacks)); in snd_opl3_oss_create_port()
74 callbacks.owner = THIS_MODULE; in snd_opl3_oss_create_port()
75 callbacks.event_input = snd_opl3_oss_event_input; in snd_opl3_oss_create_port()
76 callbacks.private_free = snd_opl3_oss_free_port; in snd_opl3_oss_create_port()
77 callbacks.private_data = opl3; in snd_opl3_oss_create_port()
83 opl3->oss_chset->port = snd_seq_event_port_attach(opl3->seq_client, &callbacks, in snd_opl3_oss_create_port()
/Linux-v4.19/Documentation/driver-api/usb/
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-v4.19/fs/dlm/
Dast.c221 struct dlm_callback callbacks[DLM_CALLBACKS_SIZE]; in dlm_callback_work() local
224 memset(&callbacks, 0, sizeof(callbacks)); in dlm_callback_work()
235 rv = dlm_rem_lkb_callback(ls, lkb, &callbacks[i], &resid); in dlm_callback_work()
253 if (!callbacks[i].seq) in dlm_callback_work()
255 if (callbacks[i].flags & DLM_CB_SKIP) { in dlm_callback_work()
257 } else if (callbacks[i].flags & DLM_CB_BAST) { in dlm_callback_work()
258 bastfn(lkb->lkb_astparam, callbacks[i].mode); in dlm_callback_work()
259 } else if (callbacks[i].flags & DLM_CB_CAST) { in dlm_callback_work()
260 lkb->lkb_lksb->sb_status = callbacks[i].sb_status; in dlm_callback_work()
261 lkb->lkb_lksb->sb_flags = callbacks[i].sb_flags; in dlm_callback_work()
/Linux-v4.19/net/ipv6/
Dip6_offload.c98 if (likely(ops && ops->callbacks.gso_segment)) { in ipv6_gso_segment()
100 segs = ops->callbacks.gso_segment(skb, features); in ipv6_gso_segment()
198 if (!ops || !ops->callbacks.gro_receive) { in ipv6_gro_receive()
207 if (!ops || !ops->callbacks.gro_receive) in ipv6_gro_receive()
256 pp = call_gro_receive(ops->callbacks.gro_receive, head, skb); in ipv6_gro_receive()
313 if (WARN_ON(!ops || !ops->callbacks.gro_complete)) in ipv6_gro_complete()
316 err = ops->callbacks.gro_complete(skb, nhoff); in ipv6_gro_complete()
347 .callbacks = {
355 .callbacks = {
363 .callbacks = {
[all …]
/Linux-v4.19/fs/afs/
Dcallback.c303 struct afs_callback_break *callbacks) in afs_break_callbacks() argument
312 for (; count > 0; callbacks++, count--) { in afs_break_callbacks()
314 callbacks->fid.vid, in afs_break_callbacks()
315 callbacks->fid.vnode, in afs_break_callbacks()
316 callbacks->fid.unique, in afs_break_callbacks()
317 callbacks->cb.version, in afs_break_callbacks()
318 callbacks->cb.expiry, in afs_break_callbacks()
319 callbacks->cb.type in afs_break_callbacks()
321 afs_break_one_callback(server, &callbacks->fid); in afs_break_callbacks()
/Linux-v4.19/samples/livepatch/
DMakefile5 obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-callbacks-demo.o
6 obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-callbacks-mod.o
7 obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-callbacks-busymod.o
Dlivepatch-callbacks-demo.c164 .callbacks = {
173 .callbacks = {
182 .callbacks = {
/Linux-v4.19/block/
Dblk-stat.c15 struct list_head callbacks; member
63 list_for_each_entry_rcu(cb, &q->stats->callbacks, list) { in blk_stat_add()
150 list_add_tail_rcu(&cb->list, &q->stats->callbacks); in blk_stat_add_callback()
161 if (list_empty(&q->stats->callbacks) && !q->stats->enable_accounting) in blk_stat_remove_callback()
202 INIT_LIST_HEAD(&stats->callbacks); in blk_alloc_queue_stats()
214 WARN_ON(!list_empty(&stats->callbacks)); in blk_free_queue_stats()
/Linux-v4.19/drivers/crypto/virtio/
Dvirtio_crypto_core.c62 vq_callback_t **callbacks; in virtcrypto_find_vqs() local
80 callbacks = kcalloc(total_vqs, sizeof(*callbacks), GFP_KERNEL); in virtcrypto_find_vqs()
81 if (!callbacks) in virtcrypto_find_vqs()
88 callbacks[total_vqs - 1] = NULL; in virtcrypto_find_vqs()
93 callbacks[i] = virtcrypto_dataq_callback; in virtcrypto_find_vqs()
99 ret = virtio_find_vqs(vi->vdev, total_vqs, vqs, callbacks, names, NULL); in virtcrypto_find_vqs()
117 kfree(callbacks); in virtcrypto_find_vqs()
126 kfree(callbacks); in virtcrypto_find_vqs()
/Linux-v4.19/include/linux/
Dvirtio_config.h75 struct virtqueue *vqs[], vq_callback_t *callbacks[],
176 vq_callback_t *callbacks[] = { c }; in virtio_find_single_vq() local
179 int err = vdev->config->find_vqs(vdev, 1, &vq, callbacks, names, NULL, in virtio_find_single_vq()
188 struct virtqueue *vqs[], vq_callback_t *callbacks[], in virtio_find_vqs() argument
192 return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, NULL, desc); in virtio_find_vqs()
197 struct virtqueue *vqs[], vq_callback_t *callbacks[], in virtio_find_vqs_ctx() argument
201 return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, ctx, in virtio_find_vqs_ctx()
/Linux-v4.19/Documentation/RCU/
Drcubarrier.txt55 If we unload the module while some RCU callbacks are pending,
56 the CPUs executing these callbacks are going to be severely
62 grace period to elapse, it does not wait for the callbacks to complete.
66 heavy RCU-callback load, then some of the callbacks might be deferred
75 callbacks to complete. Please note that rcu_barrier() does -not- imply
76 synchronize_rcu(), in particular, if there are no RCU callbacks queued
82 1. Prevent any new RCU callbacks from being posted.
153 52 /* Wait for all RCU callbacks to fire. */
166 Line 6 sets a global variable that prevents any RCU callbacks from
168 RCU callbacks rarely include calls to call_rcu(). However, the rcutorture
[all …]
DUP.txt72 It is far better to guarantee that callbacks are invoked
79 Quick Quiz #2: What locking restriction must RCU callbacks respect?
86 infrastructure -must- respect grace periods, and -must- invoke callbacks
107 What locking restriction must RCU callbacks respect?
117 then, since RCU callbacks can be invoked from softirq context,
123 callbacks acquire locks directly. However, a great many RCU
124 callbacks do acquire locks -indirectly-, for example, via
/Linux-v4.19/drivers/virtio/
Dvirtio_pci_common.c281 struct virtqueue *vqs[], vq_callback_t *callbacks[], in vp_find_vqs_msix() argument
298 if (callbacks[i]) in vp_find_vqs_msix()
318 if (!callbacks[i]) in vp_find_vqs_msix()
324 vqs[i] = vp_setup_vq(vdev, i, callbacks[i], names[i], in vp_find_vqs_msix()
355 struct virtqueue *vqs[], vq_callback_t *callbacks[], in vp_find_vqs_intx() argument
377 vqs[i] = vp_setup_vq(vdev, i, callbacks[i], names[i], in vp_find_vqs_intx()
394 struct virtqueue *vqs[], vq_callback_t *callbacks[], in vp_find_vqs() argument
401 err = vp_find_vqs_msix(vdev, nvqs, vqs, callbacks, names, true, ctx, desc); in vp_find_vqs()
405 err = vp_find_vqs_msix(vdev, nvqs, vqs, callbacks, names, false, ctx, desc); in vp_find_vqs()
409 return vp_find_vqs_intx(vdev, nvqs, vqs, callbacks, names, ctx); in vp_find_vqs()
/Linux-v4.19/Documentation/driver-api/pm/
Dnotifiers.rst12 ``->resume()`` or even ``->prepare()`` and ``->complete()`` callbacks are not
29 callbacks for the "freeze" transition.
33 error occurred during hibernation. Device restore callbacks have been
43 callbacks have been executed and tasks have been thawed.
50 resume callbacks have been executed and tasks have been thawed.
/Linux-v4.19/drivers/rtc/
Drtc-hid-sensor-time.c37 struct hid_sensor_hub_callbacks callbacks; member
268 time_state->callbacks.send_event = hid_time_proc_event; in hid_time_probe()
269 time_state->callbacks.capture_sample = hid_time_capture_sample; in hid_time_probe()
270 time_state->callbacks.pdev = pdev; in hid_time_probe()
272 &time_state->callbacks); in hid_time_probe()
/Linux-v4.19/drivers/iio/light/
Dhid-sensor-prox.c36 struct hid_sensor_hub_callbacks callbacks; member
319 prox_state->callbacks.send_event = prox_proc_event; in hid_prox_probe()
320 prox_state->callbacks.capture_sample = prox_capture_sample; in hid_prox_probe()
321 prox_state->callbacks.pdev = pdev; in hid_prox_probe()
323 &prox_state->callbacks); in hid_prox_probe()
Dhid-sensor-als.c41 struct hid_sensor_hub_callbacks callbacks; member
342 als_state->callbacks.send_event = als_proc_event; in hid_als_probe()
343 als_state->callbacks.capture_sample = als_capture_sample; in hid_als_probe()
344 als_state->callbacks.pdev = pdev; in hid_als_probe()
346 &als_state->callbacks); in hid_als_probe()
/Linux-v4.19/drivers/iio/orientation/
Dhid-sensor-rotation.c30 struct hid_sensor_hub_callbacks callbacks; member
319 rot_state->callbacks.send_event = dev_rot_proc_event; in hid_dev_rot_probe()
320 rot_state->callbacks.capture_sample = dev_rot_capture_sample; in hid_dev_rot_probe()
321 rot_state->callbacks.pdev = pdev; in hid_dev_rot_probe()
323 &rot_state->callbacks); in hid_dev_rot_probe()
/Linux-v4.19/drivers/iio/pressure/
Dhid-sensor-press.c36 struct hid_sensor_hub_callbacks callbacks; member
323 press_state->callbacks.send_event = press_proc_event; in hid_press_probe()
324 press_state->callbacks.capture_sample = press_capture_sample; in hid_press_probe()
325 press_state->callbacks.pdev = pdev; in hid_press_probe()
327 &press_state->callbacks); in hid_press_probe()
/Linux-v4.19/Documentation/power/
Dpci.txt273 pointers to several device power management callbacks:
295 These callbacks are executed by the PM core in various situations related to
296 device power management and they, in turn, execute power management callbacks
302 that these callbacks operate on:
354 Namely, it provides subsystem-level callbacks:
422 callbacks for this purpose. They are executed in phases such that each phase
434 The following PCI bus type's callbacks, respectively, are used in these phases:
449 pointers to the driver's callbacks), pci_pm_default_suspend() is called, which
473 device driver's callbacks executed before might do that), pci_pm_suspend_noirq()
484 PCI device drivers (that don't implement legacy power management callbacks) are
[all …]
/Linux-v4.19/Documentation/media/kapi/
Dv4l2-event.rst58 ``merge()`` and ``replace()`` callbacks which drivers can set. These
59 callbacks are called when a new event is raised and there is no more room.
74 A good example of these ``replace``/``merge`` callbacks is in v4l2-event.c:
75 ``ctrls_replace()`` and ``ctrls_merge()`` callbacks for the control event.
78 these callbacks can be called from interrupt context, so they must
109 The ops argument allows the driver to specify a number of callbacks:
123 All 4 callbacks are optional, if you don't want to specify any callbacks

12345678910