| /linux/kernel/livepatch/ |
| A D | core.h | 30 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/drivers/gpu/drm/amd/display/dc/dml2/ |
| A D | dml2_mall_phantom.c | 125 …ctx->config.svp_pstate.callbacks.release_dsc(&context->res_ctx, ctx->config.svp_pstate.callbacks.d… in merge_pipes_for_subvp() 719 ctx->config.svp_pstate.callbacks.dc, in enable_phantom_stream() 729 ctx->config.svp_pstate.callbacks.add_phantom_stream(ctx->config.svp_pstate.callbacks.dc, in enable_phantom_stream() 750 ctx->config.svp_pstate.callbacks.dc, in enable_phantom_plane() 777 …ctx->config.svp_pstate.callbacks.add_phantom_plane(ctx->config.svp_pstate.callbacks.dc, phantom_st… in enable_phantom_plane() 805 if (!ctx->config.svp_pstate.callbacks.build_scaling_params(pipe)) { in add_phantom_pipes_for_main_pipe() 834 …if (!ctx->config.svp_pstate.callbacks.remove_phantom_plane(ctx->config.svp_pstate.callbacks.dc, st… in remove_all_phantom_planes_for_stream() 836 …ctx->config.svp_pstate.callbacks.release_phantom_plane(ctx->config.svp_pstate.callbacks.dc, contex… in remove_all_phantom_planes_for_stream() 855 …ctx->config.svp_pstate.callbacks.remove_phantom_stream(ctx->config.svp_pstate.callbacks.dc, state,… in dml2_svp_remove_all_phantom_pipes() 856 …ctx->config.svp_pstate.callbacks.release_phantom_stream(ctx->config.svp_pstate.callbacks.dc, state… in dml2_svp_remove_all_phantom_pipes() [all …]
|
| A D | dml2_dc_resource_mgmt.c | 750 ctx->config.callbacks.acquire_secondary_pipe_for_mpc_odm(ctx->config.callbacks.dc, state, in map_pipes_for_stream() 790 ctx->config.callbacks.acquire_secondary_pipe_for_mpc_odm(ctx->config.callbacks.dc, state, in map_pipes_for_plane() 911 return ctx->config.callbacks.get_odm_slice_count(otg_master); in get_source_odm_factor() 919 int dpp_pipe_count = ctx->config.callbacks.get_dpp_pipes_for_plane(plane, in get_source_mpc_factor() 923 return ctx->config.callbacks.get_mpc_slice_count(dpp_pipes[0]); in get_source_mpc_factor() 977 ctx->config.callbacks.dc->res_pool, in unmap_dc_pipes_for_stream() 984 ctx->config.callbacks.dc->res_pool, in unmap_dc_pipes_for_stream() 1006 ctx->config.callbacks.dc->res_pool, in map_dc_pipes_for_stream() 1013 ctx->config.callbacks.dc->res_pool, in map_dc_pipes_for_stream() 1168 if (!ctx->config.callbacks.build_scaling_params(pipe)) { in dml2_map_dc_pipes() [all …]
|
| /linux/sound/drivers/opl3/ |
| A D | opl3_seq.c | 163 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 D | opl3_oss.c | 49 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/Documentation/driver-api/usb/ |
| A D | callbacks.rst | 1 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 111 Device level callbacks [all …]
|
| /linux/net/lapb/ |
| A D | lapb_iface.c | 140 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/drivers/gpu/drm/amd/display/dc/dml2/dml21/ |
| A D | dml21_utils.c | 75 struct pipe_ctx *opp_head = dml_ctx->config.callbacks.get_opp_head(pipe); in find_pipe_regs_idx() 77 *pipe_regs_idx = dml_ctx->config.callbacks.get_odm_slice_index(opp_head); in find_pipe_regs_idx() 80 *pipe_regs_idx += dml_ctx->config.callbacks.get_mpc_slice_index(pipe); in find_pipe_regs_idx() 108 dc_main_stream = dml_ctx->config.callbacks.get_stream_from_id(context, main_stream_id); in dml21_find_dc_pipes_for_plane() 109 dc_main_stream_status = dml_ctx->config.callbacks.get_stream_status(context, dc_main_stream); in dml21_find_dc_pipes_for_plane() 129 …dc_phantom_stream_status = dml_ctx->config.callbacks.get_stream_status(context, dc_phantom_stream); in dml21_find_dc_pipes_for_plane() 262 if (in_ctx->config.svp_pstate.callbacks.get_pipe_subvp_type(context, dc_pipe) != SUBVP_PHANTOM) { in dml21_populate_mall_allocation_size() 373 dml_ctx->config.svp_pstate.callbacks.add_phantom_stream(dc, context, phantom_stream, main_stream); in dml21_add_phantom_stream() 434 main_stream = dml_ctx->config.callbacks.get_stream_from_id(context, in dml21_handle_phantom_streams_planes() 437 main_stream_status = dml_ctx->config.callbacks.get_stream_status(context, main_stream); in dml21_handle_phantom_streams_planes() [all …]
|
| /linux/block/ |
| A D | blk-stat.c | 15 struct list_head callbacks; member 62 list_for_each_entry_rcu(cb, &q->stats->callbacks, list) { in blk_stat_add() 149 list_add_tail_rcu(&cb->list, &q->stats->callbacks); in blk_stat_add_callback() 161 if (list_empty(&q->stats->callbacks) && !q->stats->accounting) in blk_stat_remove_callback() 189 if (!--q->stats->accounting && list_empty(&q->stats->callbacks)) in blk_stat_disable_accounting() 200 if (!q->stats->accounting++ && list_empty(&q->stats->callbacks)) in blk_stat_enable_accounting() 214 INIT_LIST_HEAD(&stats->callbacks); in blk_alloc_queue_stats() 226 WARN_ON(!list_empty(&stats->callbacks)); in blk_free_queue_stats()
|
| /linux/samples/livepatch/ |
| A D | Makefile | 6 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 D | livepatch-callbacks-demo.c | 152 .callbacks = { 161 .callbacks = { 170 .callbacks = {
|
| /linux/net/ipv6/ |
| A D | ip6_offload.c | 150 if (likely(ops && ops->callbacks.gso_segment)) { in ipv6_gso_segment() 152 segs = ops->callbacks.gso_segment(skb, features); in ipv6_gso_segment() 245 if (!ops || !ops->callbacks.gro_receive) { in ipv6_gro_receive() 249 if (!ops || !ops->callbacks.gro_receive) in ipv6_gro_receive() 300 ops->callbacks.gro_receive, head, skb); in ipv6_gro_receive() 380 if (WARN_ON(!ops || !ops->callbacks.gro_complete)) in ipv6_gro_complete() 383 err = INDIRECT_CALL_L4(ops->callbacks.gro_complete, tcp6_gro_complete, in ipv6_gro_complete() 440 .callbacks = { 448 .callbacks = { 456 .callbacks = { [all …]
|
| /linux/Documentation/core-api/ |
| A D | cpu_hotplug.rst | 163 When a CPU is offlined the teardown callbacks are invoked in the reverse 165 be invoked when the callbacks of a state are removed or an instance is 179 The startup callbacks in this section are invoked before the CPU is 196 The teardown callbacks in this section are not allowed to fail. 209 The callbacks in this section are not allowed to fail. 224 which is pinned on the hotplugged CPU. The callbacks are invoked with 227 The callbacks are allowed to fail. When a callback fails the hotplug 363 When there are no ordering requirements for the state callbacks then 435 and cpuhp_setup_state_multi() only install the callbacks 461 the state callbacks have to be removed later, e.g. module [all …]
|
| /linux/Documentation/livepatch/ |
| A D | callbacks.rst | 5 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 D | cumulative-patches.rst | 70 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/fs/bcachefs/ |
| A D | clock.c | 27 const struct min_heap_callbacks callbacks = { in bch2_io_timer_add() local 44 BUG_ON(!min_heap_push(&clock->timers, &timer, &callbacks, NULL)); in bch2_io_timer_add() 51 const struct min_heap_callbacks callbacks = { in bch2_io_timer_del() local 60 min_heap_del(&clock->timers, i, &callbacks, NULL); in bch2_io_timer_del() 145 const struct min_heap_callbacks callbacks = { in get_expired_timer() local 153 min_heap_pop(&clock->timers, &callbacks, NULL); in get_expired_timer()
|
| /linux/Documentation/networking/ |
| A D | sriov.rst | 16 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/ |
| A D | test_klp_callbacks_demo.c | 75 .callbacks = { 84 .callbacks = { 93 .callbacks = {
|
| /linux/Documentation/RCU/ |
| A D | UP.rst | 77 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 D | rcubarrier.rst | 34 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/net/core/ |
| A D | gso.c | 21 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/drivers/rtc/ |
| A D | rtc-hid-sensor-time.c | 24 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/Documentation/driver-api/pm/ |
| A D | notifiers.rst | 16 ``->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/iio/light/ |
| A D | hid-sensor-prox.c | 19 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/drivers/iio/pressure/ |
| A D | hid-sensor-press.c | 22 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()
|