Home
last modified time | relevance | path

Searched full:callback (Results 1 – 25 of 4695) sorted by relevance

12345678910>>...188

/OK3568_Linux_fs/kernel/Documentation/trace/
H A Dftrace-uses.rst26 The ability to add a callback to almost any function within the
27 kernel comes with risks. A callback can be called from any context
30 This requires extra care to what can be done inside a callback. A callback
40 To register a function callback, a ftrace_ops is required. This structure
41 is used to tell ftrace what function should be called as the callback
42 as well as what protections the callback will perform and not require
70 The registered callback will start being called some time after the
73 of services. The callback itself will have to handle any synchronization if it
76 The unregister_ftrace_function() will guarantee that the callback is
82 The callback function
[all …]
/OK3568_Linux_fs/kernel/arch/alpha/lib/
H A Dcallback_srm.S19 ldq $0,hwrpb # gp is set up by CALLBACK macro.
29 extwl $25,0,$16 # SRM callback function code
59 #define CALLBACK(NAME, CODE, ARG_CNT) \ macro
65 #define CALLBACK(NAME, CODE, ARG_CNT) \ macro
78 CALLBACK(puts, CCB_PUTS, 4)
79 CALLBACK(open, CCB_OPEN, 3)
80 CALLBACK(close, CCB_CLOSE, 2)
81 CALLBACK(read, CCB_READ, 5)
82 CALLBACK(open_console, CCB_OPEN_CONSOLE, 1)
83 CALLBACK(close_console, CCB_CLOSE_CONSOLE, 1)
[all …]
/OK3568_Linux_fs/kernel/drivers/acpi/
H A Dvideo_detect.c117 .callback = video_detect_force_vendor,
126 .callback = video_detect_force_vendor,
134 .callback = video_detect_force_vendor,
142 .callback = video_detect_force_vendor,
150 .callback = video_detect_force_vendor,
166 .callback = video_detect_force_video,
174 .callback = video_detect_force_video,
182 .callback = video_detect_force_video,
190 .callback = video_detect_force_video,
201 .callback = video_detect_force_video,
[all …]
/OK3568_Linux_fs/u-boot/env/
H A Dcallback.c16 * Look up a callback function pointer by name
27 /* look up the callback in the linker-list */ in find_env_callback()
42 * Look for a possible callback for a newly added variable
67 /* if an association was found, set the callback pointer */ in env_callback_init()
72 var_entry->callback = clbkp->callback + gd->reloc_off; in env_callback_init()
74 var_entry->callback = clbkp->callback; in env_callback_init()
81 * a callback association should remove its callback.
85 entry->callback = NULL; in clear_callback()
100 e.callback = NULL; in set_callback()
105 /* the assocaition delares no callback, so remove the pointer */ in set_callback()
[all …]
/OK3568_Linux_fs/kernel/drivers/hid/
H A Dhid-sensor-hub.c24 * @dyn_callback_list: Holds callback function
25 * @dyn_callback_lock: spin lock to protect callback list
42 * struct hid_sensor_hub_callbacks_list - Stores callback list
45 * @usage_callback: Stores registered callback functions.
105 struct hid_sensor_hub_callbacks_list *callback; in sensor_hub_get_callback() local
110 list_for_each_entry(callback, &pdata->dyn_callback_list, list) in sensor_hub_get_callback()
111 if ((callback->usage_id == usage_id || in sensor_hub_get_callback()
112 callback->usage_id == HID_USAGE_SENSOR_COLLECTION) && in sensor_hub_get_callback()
114 callback->hsdev->start_collection_index) && in sensor_hub_get_callback()
116 callback->hsdev->end_collection_index)) { in sensor_hub_get_callback()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/platform/default/
H A Ddefault_file_source.cpp48 …tRegions(std::function<void (std::exception_ptr, optional<std::vector<OfflineRegion>>)> callback) { in listRegions() argument
50 callback({}, offlineDatabase->listRegions()); in listRegions()
52 callback(std::current_exception(), {}); in listRegions()
58 std::function<void (std::exception_ptr, optional<OfflineRegion>)> callback) { in createRegion() argument
60 callback({}, offlineDatabase->createRegion(definition, metadata)); in createRegion()
62 callback(std::current_exception(), {}); in createRegion()
68 … std::function<void (std::exception_ptr, optional<OfflineRegionMetadata>)> callback) { in updateMetadata() argument
70 callback({}, offlineDatabase->updateMetadata(regionID, metadata)); in updateMetadata()
72 callback(std::current_exception(), {}); in updateMetadata()
76 …t64_t regionID, std::function<void (std::exception_ptr, optional<OfflineRegionStatus>)> callback) { in getRegionStatus() argument
[all …]
/OK3568_Linux_fs/kernel/block/
H A Dblk-stat.h12 * struct blk_stat_callback - Block statistics callback.
26 * @timer: Timer for the next callback invocation.
53 * @fn: Callback function.
70 /* record time/size info in request but not add a callback */
74 * blk_stat_alloc_callback() - Allocate a block statistics callback.
75 * @timer_fn: Timer callback function.
76 * @bucket_fn: Bucket callback function.
80 * See &struct blk_stat_callback for details on the callback functions.
90 * blk_stat_add_callback() - Add a block statistics callback to be run on a
93 * @cb: The callback.
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/
H A Dmali_kbase_config.h167 /** Callback for when the GPU is idle and the power to it can be switched off.
175 * then this callback should power off the GPU (or switch off the clocks
177 * then this callback can set the autosuspend timeout (if desired) and
182 /** Callback for when the GPU is about to become active and power must be supplied.
196 /** Callback for when the system is requesting a suspend and GPU power
199 * Note that if this callback is present, then this may be called
201 * callback must be able to take any action that might otherwise happen
211 /** Callback for when the system is resuming from a suspend and GPU
214 * Note that if this callback is present, then this may be called
216 * callback must be able to take any action that might otherwise happen
[all …]
/OK3568_Linux_fs/app/forlinx/quectelCM/libmnl/
H A Dcallback.c104 * \defgroup callback Callback helpers
109 * mnl_cb_run2 - callback runqueue for netlink messages
114 * \param cb_data callback handler for data messages
115 * \param data pointer to data that will be passed to the data callback handler
116 * \param cb_ctl_array array of custom callback handlers from control messages
117 * \param cb_ctl_array_len array length of custom control callback handlers
120 * callback handlers, in that case, the parameter cb_ctl_array_len is not
123 * Your callback may return three possible values:
124 * - MNL_CB_ERROR (<=-1): an error has occurred. Stop callback runqueue.
125 * - MNL_CB_STOP (=0): stop callback runqueue.
[all …]
/OK3568_Linux_fs/kernel/Documentation/power/
H A Druntime_pm.rst68 callback, the PM core will invoke the corresponding driver callback stored in
71 The PM core always checks which callback to use in the order given above, so the
81 interrupts disabled. This implies that the callback routines in question must
86 The subsystem-level suspend callback, if present, is _entirely_ _responsible_
88 include executing the device driver's own ->runtime_suspend() callback (from the
90 callback in a device driver as long as the subsystem-level suspend callback
93 * Once the subsystem-level suspend callback (or the driver suspend callback,
98 RAM until the appropriate resume callback is executed for it. The runtime
99 PM status of a device after successful execution of the suspend callback is
102 * If the suspend callback returns -EBUSY or -EAGAIN, the device's runtime PM
[all …]
/OK3568_Linux_fs/kernel/include/linux/
H A Dcpuhotplug.h144 /* Must be the last timer callback */
217 * @name: Name of the callback (will be used in debug output)
218 * @startup: startup callback function
219 * @teardown: teardown callback function
221 * Installs the callback functions and invokes the startup callback on
245 * @name: Name of the callback.
246 * @startup: startup callback function
247 * @teardown: teardown callback function
250 * during installation of this callback. NOP if SMP=n or HOTPLUG_CPU=n.
273 * @name: Name of the callback.
[all …]
/OK3568_Linux_fs/kernel/include/drm/
H A Ddrm_bridge.h61 * This callback is invoked whenever our bridge is being attached to a
65 * The @attach callback is optional.
77 * This callback is invoked whenever our bridge is being detached from a
80 * The @detach callback is optional.
87 * This callback is used to check if a specific mode is valid in this
91 * produce all the values for the available modes then this callback
100 * The @mode_valid callback is optional.
122 * This callback is used to validate and adjust a mode. The parameter
126 * requires. It can be modified by this callback and does not need to
133 * The mode_fixup callback is optional. &drm_bridge_funcs.mode_fixup()
[all …]
H A Ddrm_modeset_helper_vtables.h65 * Callback to control power levels on the CRTC. If the mode passed in
70 * This callback is also used to disable a CRTC by calling it with
73 * This callback is used by the legacy CRTC helpers. Atomic helpers
83 * This callback should prepare the CRTC for a subsequent modeset, which
88 * This callback is used by the legacy CRTC helpers. Atomic helpers
98 * This callback should commit the new mode on the CRTC after a modeset,
103 * This callback is used by the legacy CRTC helpers. Atomic helpers
113 * This callback is used to check if a specific mode is valid in this
117 * produce all the values for the available modes then this callback
147 * This callback is used to validate a mode. The parameter mode is the
[all …]
H A Ddrm_sync_helper.h58 * Callback executed when all fences in reservation callback are signaled
59 * @rcb: reservation callback structure
66 * Reservation callback structure
71 * @func: callback to execute when all fences are signaled
87 * Initialize reservation callback
88 * @rcb: reservation callback structure to initialize
97 * Add fences from reservation object to callback
98 * @rcb: reservation callback structure
109 * @rcb: reservation callback structure
111 * It will trigger callback worker if all fences were signaled before.
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/csf/
H A Dmali_kbase_csf_event.h33 * kbase_csf_event_callback - type for callback functions to be
35 * @param: Generic parameter to pass to the callback function.
37 * This is the type of callback functions that can be registered
41 * Return: KBASE_CSF_EVENT_CALLBACK_KEEP if the callback should remain
47 * kbase_csf_event_wait_add - Add a CSF event callback
49 * @kctx: The Kbase context the @callback should be registered to.
50 * @callback: The callback function to register.
51 * @param: Custom parameter to be passed to the @callback function.
53 * This function adds an event callback to the list of CSF event callbacks
60 kbase_csf_event_callback *callback, void *param);
[all …]
/OK3568_Linux_fs/kernel/Documentation/livepatch/
H A Dcallbacks.rst6 to execute callback functions when a kernel object is (un)patched. They
34 2. Callback types
48 active), used to clean up post-patch callback
54 used to cleanup pre-patch callback resources
59 Each callback is optional, omitting one does not preclude specifying any
63 callback will only be executed if its corresponding patch callback was
68 A callback is only executed if its host klp_object is loaded. For
75 The pre-patch callback, if specified, is expected to return a status
79 callback is provided, the transition is assumed to be safe.) If a
80 pre-patch callback returns failure, the kernel's module loader will:
[all …]
/OK3568_Linux_fs/kernel/arch/x86/kernel/
H A Dreboot.c167 .callback = set_kbd_reboot,
175 .callback = set_efi_reboot,
185 .callback = set_pci_reboot,
193 .callback = set_pci_reboot,
201 .callback = set_pci_reboot,
209 .callback = set_pci_reboot,
217 .callback = set_pci_reboot,
225 .callback = set_pci_reboot,
235 .callback = set_pci_reboot,
245 .callback = set_bios_reboot,
[all …]
/OK3568_Linux_fs/kernel/drivers/platform/x86/
H A Dasus-nb-wmi.c126 .callback = dmi_matched,
135 .callback = dmi_matched,
149 .callback = dmi_matched,
158 .callback = dmi_matched,
167 .callback = dmi_matched,
176 .callback = dmi_matched,
185 .callback = dmi_matched,
194 .callback = dmi_matched,
203 .callback = dmi_matched,
212 .callback = dmi_matched,
[all …]
/OK3568_Linux_fs/kernel/Documentation/networking/
H A Dstrparser.rst17 The strparser works in one of two modes: receive callback or general
20 In receive callback mode, the strparser is called from the data_ready
21 callback of a TCP socket. Messages are parsed and delivered as they are
33 functions, and a data_ready function for receive callback mode. The
49 callback mode; in general mode this is set to NULL. Callbacks
100 from a data_ready callback that is set on the socket. Note that
144 zero) and the parser is in receive callback mode, then it will set
154 The lock callback is called to lock the strp structure when
156 processing a timeout). In receive callback mode the default
158 mode the callback must be set appropriately.
[all …]
/OK3568_Linux_fs/kernel/drivers/dma/
H A Ddmaengine.h99 dma_async_tx_callback callback; member
105 * dmaengine_desc_get_callback - get the passed in callback function
107 * @cb: temp struct to hold the callback info
117 cb->callback = tx->callback; in dmaengine_desc_get_callback()
123 * dmaengine_desc_callback_invoke - call the callback function in cb struct
124 * @cb: temp struct that is holding the callback info
127 * Call the callback function provided in the cb struct with the parameter
144 } else if (cb->callback) { in dmaengine_desc_callback_invoke()
145 cb->callback(cb->callback_param); in dmaengine_desc_callback_invoke()
150 * dmaengine_desc_get_callback_invoke - get the callback in tx descriptor and
[all …]
/OK3568_Linux_fs/kernel/include/media/
H A Ddvb_frontend.h152 * enum dvbfe_search - search callback possible return status
186 * @release: callback function called when frontend is detached.
188 * @init: callback function used to initialize the tuner device.
189 * @sleep: callback function used to put the tuner to sleep.
190 * @suspend: callback function used to inform that the Kernel will
192 * @resume: callback function used to inform that the Kernel is
194 * @set_params: callback function used to inform the tuner to tune
202 * @set_analog_params: callback function used to tune into an analog TV
205 * @set_config: callback function used to send some tuner-specific
217 * @calc_regs: callback function used to pass register data settings
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/arm/midgard/
H A Dmali_kbase_config.h96 /** Callback for when the GPU is idle and the power to it can be switched off.
105 /** Callback for when the GPU is about to become active and power must be supplied.
119 /** Callback for when the system is requesting a suspend and GPU power
122 * Note that if this callback is present, then this may be called
124 * callback must be able to take any action that might otherwise happen
134 /** Callback for when the system is resuming from a suspend and GPU
137 * Note that if this callback is present, then this may be called
139 * callback must be able to take any action that might otherwise happen
149 /** Callback for handling runtime power management initialization.
160 /** Callback for handling runtime power management termination.
[all …]
/OK3568_Linux_fs/kernel/drivers/base/power/
H A Dmain.c286 * If the device is resumed asynchronously and the parent's callback in dpm_wait_for_superior()
309 * If the parent's callback has deleted the device, attempting to resume in dpm_wait_for_superior()
586 * device_resume_noirq - Execute a "noirq resume" callback for given device.
596 pm_callback_t callback = NULL; in device_resume_noirq() local
615 * If the driver callback is skipped below or by the middle layer in device_resume_noirq()
616 * callback and device_resume_early() also skips the driver callback for in device_resume_noirq()
631 callback = pm_noirq_op(&dev->pm_domain->ops, state); in device_resume_noirq()
634 callback = pm_noirq_op(dev->type->pm, state); in device_resume_noirq()
637 callback = pm_noirq_op(dev->class->pm, state); in device_resume_noirq()
640 callback = pm_noirq_op(dev->bus->pm, state); in device_resume_noirq()
[all …]
H A Dgeneric_ops.c13 * pm_generic_runtime_suspend - Generic runtime suspend callback for subsystems.
32 * pm_generic_runtime_resume - Generic runtime resume callback for subsystems.
70 * pm_generic_suspend_noirq - Generic suspend_noirq callback for subsystems.
82 * pm_generic_suspend_late - Generic suspend_late callback for subsystems.
94 * pm_generic_suspend - Generic suspend callback for subsystems.
106 * pm_generic_freeze_noirq - Generic freeze_noirq callback for subsystems.
118 * pm_generic_freeze_late - Generic freeze_late callback for subsystems.
130 * pm_generic_freeze - Generic freeze callback for subsystems.
142 * pm_generic_poweroff_noirq - Generic poweroff_noirq callback for subsystems.
154 * pm_generic_poweroff_late - Generic poweroff_late callback for subsystems.
[all …]
/OK3568_Linux_fs/kernel/drivers/char/
H A Dnwbutton.c36 static struct button_callback button_callback_list[32]; /* The callback list */
41 * This function is called by other drivers to register a callback function
43 * The callback list is a static array of 32 entries (I somehow doubt many
57 int button_add_callback (void (*callback) (void), int count) in button_add_callback()
63 if (!callback) { in button_add_callback()
67 for (; (button_callback_list [lp].callback); lp++); in button_add_callback()
68 button_callback_list [lp].callback = callback; in button_add_callback()
74 * This function is called by other drivers to deregister a callback function.
75 * If you attempt to unregister a callback which does not exist, it will fail
80 * at the same time, because another driver could have unregistered a callback
[all …]

12345678910>>...188