Searched refs:handler (Results 1 - 200 of 3585) sorted by relevance

1234567891011>>

/linux-4.1.27/include/trace/events/
H A Dnmi.h12 TP_PROTO(void *handler, s64 delta_ns, int handled),
14 TP_ARGS(handler, delta_ns, handled),
17 __field( void *, handler )
23 __entry->handler = handler;
29 __entry->handler,
H A Dirq.h42 * irq_handler_entry - called immediately before the irq action handler
47 * information about the handler, including the device name,
50 * out irq handler latencies.
72 * irq_handler_exit - called immediately after the irq action handler returns
78 * @action->handler scuccessully handled this irq. Otherwise, the irq might be
80 * conjunction with the irq_handler_entry to understand irq handler latencies.
121 * softirq_entry - called immediately before the softirq handler
125 * we can determine the softirq handler routine.
135 * softirq_exit - called immediately after the softirq handler returns
139 * we can determine the softirq handler routine.
H A Dipi.h55 * ipi_entry - called immediately before the IPI handler
71 * ipi_exit - called immediately after the IPI handler returns
/linux-4.1.27/net/ipv4/
H A Dxfrm4_protocol.c44 #define for_each_protocol_rcu(head, handler) \
45 for (handler = rcu_dereference(head); \
46 handler != NULL; \
47 handler = rcu_dereference(handler->next)) \
52 struct xfrm4_protocol *handler; xfrm4_rcv_cb() local
58 for_each_protocol_rcu(*head, handler) xfrm4_rcv_cb()
59 if ((ret = handler->cb_handler(skb, err)) <= 0) xfrm4_rcv_cb()
70 struct xfrm4_protocol *handler; xfrm4_rcv_encap() local
80 for_each_protocol_rcu(*head, handler) xfrm4_rcv_encap()
81 if ((ret = handler->input_handler(skb, nexthdr, spi, encap_type)) != -EINVAL) xfrm4_rcv_encap()
95 struct xfrm4_protocol *handler; xfrm4_esp_rcv() local
99 for_each_protocol_rcu(esp4_handlers, handler) xfrm4_esp_rcv()
100 if ((ret = handler->handler(skb)) != -EINVAL) xfrm4_esp_rcv()
111 struct xfrm4_protocol *handler; xfrm4_esp_err() local
113 for_each_protocol_rcu(esp4_handlers, handler) xfrm4_esp_err()
114 if (!handler->err_handler(skb, info)) xfrm4_esp_err()
121 struct xfrm4_protocol *handler; xfrm4_ah_rcv() local
125 for_each_protocol_rcu(ah4_handlers, handler) xfrm4_ah_rcv()
126 if ((ret = handler->handler(skb)) != -EINVAL) xfrm4_ah_rcv()
137 struct xfrm4_protocol *handler; xfrm4_ah_err() local
139 for_each_protocol_rcu(ah4_handlers, handler) xfrm4_ah_err()
140 if (!handler->err_handler(skb, info)) xfrm4_ah_err()
147 struct xfrm4_protocol *handler; xfrm4_ipcomp_rcv() local
151 for_each_protocol_rcu(ipcomp4_handlers, handler) xfrm4_ipcomp_rcv()
152 if ((ret = handler->handler(skb)) != -EINVAL) xfrm4_ipcomp_rcv()
163 struct xfrm4_protocol *handler; xfrm4_ipcomp_err() local
165 for_each_protocol_rcu(ipcomp4_handlers, handler) xfrm4_ipcomp_err()
166 if (!handler->err_handler(skb, info)) xfrm4_ipcomp_err()
171 .handler = xfrm4_esp_rcv,
178 .handler = xfrm4_ah_rcv,
185 .handler = xfrm4_ipcomp_rcv,
211 int xfrm4_protocol_register(struct xfrm4_protocol *handler, xfrm4_protocol_register() argument
218 int priority = handler->priority; xfrm4_protocol_register()
239 handler->next = *pprev; xfrm4_protocol_register()
240 rcu_assign_pointer(*pprev, handler); xfrm4_protocol_register()
258 int xfrm4_protocol_deregister(struct xfrm4_protocol *handler, xfrm4_protocol_deregister() argument
274 if (t == handler) { xfrm4_protocol_deregister()
275 *pprev = handler->next; xfrm4_protocol_deregister()
H A Dtunnel4.c26 int xfrm4_tunnel_register(struct xfrm_tunnel *handler, unsigned short family) xfrm4_tunnel_register() argument
32 int priority = handler->priority; xfrm4_tunnel_register()
46 handler->next = *pprev; xfrm4_tunnel_register()
47 rcu_assign_pointer(*pprev, handler); xfrm4_tunnel_register()
58 int xfrm4_tunnel_deregister(struct xfrm_tunnel *handler, unsigned short family) xfrm4_tunnel_deregister() argument
70 if (t == handler) { xfrm4_tunnel_deregister()
71 *pprev = handler->next; xfrm4_tunnel_deregister()
85 #define for_each_tunnel_rcu(head, handler) \
86 for (handler = rcu_dereference(head); \
87 handler != NULL; \
88 handler = rcu_dereference(handler->next)) \
92 struct xfrm_tunnel *handler; tunnel4_rcv() local
97 for_each_tunnel_rcu(tunnel4_handlers, handler) tunnel4_rcv()
98 if (!handler->handler(skb)) tunnel4_rcv()
111 struct xfrm_tunnel *handler; tunnel64_rcv() local
116 for_each_tunnel_rcu(tunnel64_handlers, handler) tunnel64_rcv()
117 if (!handler->handler(skb)) tunnel64_rcv()
130 struct xfrm_tunnel *handler; tunnel4_err() local
132 for_each_tunnel_rcu(tunnel4_handlers, handler) tunnel4_err()
133 if (!handler->err_handler(skb, info)) tunnel4_err()
140 struct xfrm_tunnel *handler; tunnel64_err() local
142 for_each_tunnel_rcu(tunnel64_handlers, handler) tunnel64_err()
143 if (!handler->err_handler(skb, info)) tunnel64_err()
149 .handler = tunnel4_rcv,
157 .handler = tunnel64_rcv,
H A Dxfrm4_tunnel.c64 .handler = xfrm_tunnel_rcv,
71 .handler = xfrm_tunnel_rcv,
85 pr_info("%s: can't add xfrm handler for AF_INET\n", __func__); ipip_init()
91 pr_info("%s: can't add xfrm handler for AF_INET6\n", __func__); ipip_init()
104 pr_info("%s: can't remove xfrm handler for AF_INET6\n", ipip_fini()
108 pr_info("%s: can't remove xfrm handler for AF_INET\n", ipip_fini()
/linux-4.1.27/net/ipv6/
H A Dxfrm6_protocol.c44 #define for_each_protocol_rcu(head, handler) \
45 for (handler = rcu_dereference(head); \
46 handler != NULL; \
47 handler = rcu_dereference(handler->next)) \
52 struct xfrm6_protocol *handler; xfrm6_rcv_cb() local
58 for_each_protocol_rcu(*proto_handlers(protocol), handler) xfrm6_rcv_cb()
59 if ((ret = handler->cb_handler(skb, err)) <= 0) xfrm6_rcv_cb()
69 struct xfrm6_protocol *handler; xfrm6_esp_rcv() local
73 for_each_protocol_rcu(esp6_handlers, handler) xfrm6_esp_rcv()
74 if ((ret = handler->handler(skb)) != -EINVAL) xfrm6_esp_rcv()
86 struct xfrm6_protocol *handler; xfrm6_esp_err() local
88 for_each_protocol_rcu(esp6_handlers, handler) xfrm6_esp_err()
89 if (!handler->err_handler(skb, opt, type, code, offset, info)) xfrm6_esp_err()
96 struct xfrm6_protocol *handler; xfrm6_ah_rcv() local
100 for_each_protocol_rcu(ah6_handlers, handler) xfrm6_ah_rcv()
101 if ((ret = handler->handler(skb)) != -EINVAL) xfrm6_ah_rcv()
113 struct xfrm6_protocol *handler; xfrm6_ah_err() local
115 for_each_protocol_rcu(ah6_handlers, handler) xfrm6_ah_err()
116 if (!handler->err_handler(skb, opt, type, code, offset, info)) xfrm6_ah_err()
123 struct xfrm6_protocol *handler; xfrm6_ipcomp_rcv() local
127 for_each_protocol_rcu(ipcomp6_handlers, handler) xfrm6_ipcomp_rcv()
128 if ((ret = handler->handler(skb)) != -EINVAL) xfrm6_ipcomp_rcv()
140 struct xfrm6_protocol *handler; xfrm6_ipcomp_err() local
142 for_each_protocol_rcu(ipcomp6_handlers, handler) xfrm6_ipcomp_err()
143 if (!handler->err_handler(skb, opt, type, code, offset, info)) xfrm6_ipcomp_err()
148 .handler = xfrm6_esp_rcv,
154 .handler = xfrm6_ah_rcv,
160 .handler = xfrm6_ipcomp_rcv,
185 int xfrm6_protocol_register(struct xfrm6_protocol *handler, xfrm6_protocol_register() argument
192 int priority = handler->priority; xfrm6_protocol_register()
213 handler->next = *pprev; xfrm6_protocol_register()
214 rcu_assign_pointer(*pprev, handler); xfrm6_protocol_register()
232 int xfrm6_protocol_deregister(struct xfrm6_protocol *handler, xfrm6_protocol_deregister() argument
248 if (t == handler) { xfrm6_protocol_deregister()
249 *pprev = handler->next; xfrm6_protocol_deregister()
H A Dtunnel6.c38 int xfrm6_tunnel_register(struct xfrm6_tunnel *handler, unsigned short family) xfrm6_tunnel_register() argument
43 int priority = handler->priority; xfrm6_tunnel_register()
57 handler->next = *pprev; xfrm6_tunnel_register()
58 rcu_assign_pointer(*pprev, handler); xfrm6_tunnel_register()
69 int xfrm6_tunnel_deregister(struct xfrm6_tunnel *handler, unsigned short family) xfrm6_tunnel_deregister() argument
81 if (t == handler) { xfrm6_tunnel_deregister()
82 *pprev = handler->next; xfrm6_tunnel_deregister()
96 #define for_each_tunnel_rcu(head, handler) \
97 for (handler = rcu_dereference(head); \
98 handler != NULL; \
99 handler = rcu_dereference(handler->next)) \
103 struct xfrm6_tunnel *handler; tunnel6_rcv() local
108 for_each_tunnel_rcu(tunnel6_handlers, handler) tunnel6_rcv()
109 if (!handler->handler(skb)) tunnel6_rcv()
121 struct xfrm6_tunnel *handler; tunnel46_rcv() local
126 for_each_tunnel_rcu(tunnel46_handlers, handler) tunnel46_rcv()
127 if (!handler->handler(skb)) tunnel46_rcv()
140 struct xfrm6_tunnel *handler; tunnel6_err() local
142 for_each_tunnel_rcu(tunnel6_handlers, handler) tunnel6_err()
143 if (!handler->err_handler(skb, opt, type, code, offset, info)) tunnel6_err()
148 .handler = tunnel6_rcv,
154 .handler = tunnel46_rcv,
H A Dxfrm6_mode_tunnel.c66 #define for_each_input_rcu(head, handler) \
67 for (handler = rcu_dereference(head); \
68 handler != NULL; \
69 handler = rcu_dereference(handler->next))
/linux-4.1.27/drivers/acpi/acpica/
H A Devxface.c71 * handler_type - The type of handler:
75 * handler - Address of the handler
76 * context - Value passed to the handler on each GPE
80 * DESCRIPTION: Install a handler for notifications on an ACPI Device,
83 * NOTES: The Root namespace object may have only one handler for each
85 * may have one device notify handler, and multiple system notify
93 acpi_notify_handler handler, void *context) acpi_install_notify_handler()
106 if ((!device) || (!handler) || (!handler_type) || acpi_install_notify_handler()
118 * Registering a notify handler on the root object indicates that the acpi_install_notify_handler()
120 * only one global handler can be registered per notify type. acpi_install_notify_handler()
121 * Ensure that a handler is not already installed. acpi_install_notify_handler()
126 if (acpi_gbl_global_notify[i].handler) { acpi_install_notify_handler()
131 acpi_gbl_global_notify[i].handler = handler; acpi_install_notify_handler()
136 goto unlock_and_exit; /* Global notify handler installed, all done */ acpi_install_notify_handler()
175 /* Ensure that the handler is not already installed in the lists */ acpi_install_notify_handler()
181 if (handler_obj->notify.handler == handler) { acpi_install_notify_handler()
191 /* Create and populate a new notify handler object */ acpi_install_notify_handler()
201 handler_obj->notify.handler = handler; acpi_install_notify_handler()
204 /* Install the handler at the list head(s) */ acpi_install_notify_handler()
215 /* Add an extra reference if handler was installed in both lists */ acpi_install_notify_handler()
232 * PARAMETERS: device - The device for which the handler is installed ACPI_EXPORT_SYMBOL()
233 * handler_type - The type of handler: ACPI_EXPORT_SYMBOL()
237 * handler - Address of the handler ACPI_EXPORT_SYMBOL()
241 * DESCRIPTION: Remove a handler for notifies on an ACPI device ACPI_EXPORT_SYMBOL()
246 u32 handler_type, acpi_notify_handler handler) ACPI_EXPORT_SYMBOL()
260 if ((!device) || (!handler) || (!handler_type) || ACPI_EXPORT_SYMBOL()
276 if (!acpi_gbl_global_notify[i].handler || ACPI_EXPORT_SYMBOL()
277 (acpi_gbl_global_notify[i].handler != ACPI_EXPORT_SYMBOL()
278 handler)) { ACPI_EXPORT_SYMBOL()
284 "Removing global notify handler\n")); ACPI_EXPORT_SYMBOL()
286 acpi_gbl_global_notify[i].handler = NULL; ACPI_EXPORT_SYMBOL()
313 /* Internal object exists. Find the handler and remove it */ ACPI_EXPORT_SYMBOL()
325 /* Attempt to find the handler in the handler list */ ACPI_EXPORT_SYMBOL()
328 (handler_obj->notify.handler != handler)) { ACPI_EXPORT_SYMBOL()
338 /* Remove the handler object from the list */ ACPI_EXPORT_SYMBOL()
371 * PARAMETERS: handler - Pointer to the handler function for the ACPI_EXPORT_SYMBOL()
376 * DESCRIPTION: Saves the pointer to the handler function ACPI_EXPORT_SYMBOL()
380 acpi_status acpi_install_exception_handler(acpi_exception_handler handler) ACPI_EXPORT_SYMBOL()
398 /* Install the handler */ ACPI_EXPORT_SYMBOL()
400 acpi_gbl_exception_handler = handler; ACPI_EXPORT_SYMBOL()
415 * PARAMETERS: address - Address of the handler ACPI_EXPORT_SYMBOL()
416 * context - Value passed to the handler on each SCI ACPI_EXPORT_SYMBOL()
420 * DESCRIPTION: Install a handler for a System Control Interrupt. ACPI_EXPORT_SYMBOL()
436 /* Allocate and init a handler object */ ACPI_EXPORT_SYMBOL()
456 /* Ensure handler does not already exist */ ACPI_EXPORT_SYMBOL()
467 /* Install the new handler into the global list (at head) */ ACPI_EXPORT_SYMBOL()
490 * PARAMETERS: address - Address of the handler ACPI_EXPORT_SYMBOL()
494 * DESCRIPTION: Remove a handler for a System Control Interrupt. ACPI_EXPORT_SYMBOL()
515 /* Remove the SCI handler with lock */ ACPI_EXPORT_SYMBOL()
524 /* Unlink and free the SCI handler info block */ ACPI_EXPORT_SYMBOL()
556 * PARAMETERS: handler - Pointer to the global event handler function ACPI_EXPORT_SYMBOL()
557 * context - Value passed to the handler on each event ACPI_EXPORT_SYMBOL()
561 * DESCRIPTION: Saves the pointer to the handler function. The global handler ACPI_EXPORT_SYMBOL()
568 acpi_install_global_event_handler(acpi_gbl_event_handler handler, void *context) ACPI_EXPORT_SYMBOL()
576 if (!handler) { ACPI_EXPORT_SYMBOL()
592 acpi_gbl_global_event_handler = handler; ACPI_EXPORT_SYMBOL()
607 * handler - Pointer to the handler function for the ACPI_EXPORT_SYMBOL()
609 * context - Value passed to the handler on each GPE ACPI_EXPORT_SYMBOL()
613 * DESCRIPTION: Saves the pointer to the handler function and then enables the ACPI_EXPORT_SYMBOL()
619 acpi_event_handler handler, void *context) ACPI_EXPORT_SYMBOL()
638 if (acpi_gbl_fixed_event_handlers[event].handler) { ACPI_EXPORT_SYMBOL()
643 /* Install the handler before enabling the event */ ACPI_EXPORT_SYMBOL()
645 acpi_gbl_fixed_event_handlers[event].handler = handler; ACPI_EXPORT_SYMBOL()
656 /* Remove the handler */ ACPI_EXPORT_SYMBOL()
658 acpi_gbl_fixed_event_handlers[event].handler = NULL; ACPI_EXPORT_SYMBOL()
664 handler)); ACPI_EXPORT_SYMBOL()
679 * handler - Address of the handler ACPI_EXPORT_SYMBOL()
683 * DESCRIPTION: Disables the event and unregisters the event handler. ACPI_EXPORT_SYMBOL()
687 acpi_remove_fixed_event_handler(u32 event, acpi_event_handler handler) ACPI_EXPORT_SYMBOL()
704 /* Disable the event before removing the handler */ ACPI_EXPORT_SYMBOL()
708 /* Always Remove the handler */ ACPI_EXPORT_SYMBOL()
710 acpi_gbl_fixed_event_handlers[event].handler = NULL; ACPI_EXPORT_SYMBOL()
739 * the special GPE handler mode.
740 * address - Address of the handler
741 * context - Value passed to the handler on each GPE
745 * DESCRIPTION: Internal function to install a handler for a General Purpose
757 struct acpi_gpe_handler_info *handler; acpi_ev_install_gpe_handler() local
774 /* Allocate and init handler object (before lock) */ acpi_ev_install_gpe_handler()
776 handler = ACPI_ALLOCATE_ZEROED(sizeof(struct acpi_gpe_handler_info)); acpi_ev_install_gpe_handler()
777 if (!handler) { acpi_ev_install_gpe_handler()
792 /* Make sure that there isn't a handler there already */ acpi_ev_install_gpe_handler()
802 handler->address = address; acpi_ev_install_gpe_handler()
803 handler->context = context; acpi_ev_install_gpe_handler()
804 handler->method_node = gpe_event_info->dispatch.method_node; acpi_ev_install_gpe_handler()
805 handler->original_flags = (u8)(gpe_event_info->flags & acpi_ev_install_gpe_handler()
812 * disabled now to avoid spurious execution of the handler. acpi_ev_install_gpe_handler()
814 if (((ACPI_GPE_DISPATCH_TYPE(handler->original_flags) == acpi_ev_install_gpe_handler()
816 (ACPI_GPE_DISPATCH_TYPE(handler->original_flags) == acpi_ev_install_gpe_handler()
818 handler->originally_enabled = TRUE; acpi_ev_install_gpe_handler()
830 /* Install the handler */ acpi_ev_install_gpe_handler()
832 gpe_event_info->dispatch.handler = handler; acpi_ev_install_gpe_handler()
834 /* Setup up dispatch flags to indicate handler (vs. method/notify) */ acpi_ev_install_gpe_handler()
851 ACPI_FREE(handler); acpi_ev_install_gpe_handler()
864 * address - Address of the handler
865 * context - Value passed to the handler on each GPE
869 * DESCRIPTION: Install a handler for a General Purpose Event.
900 * address - Address of the handler ACPI_EXPORT_SYMBOL()
901 * context - Value passed to the handler on each GPE ACPI_EXPORT_SYMBOL()
905 * DESCRIPTION: Install a handler for a General Purpose Event. ACPI_EXPORT_SYMBOL()
931 * gpe_number - The event to remove a handler ACPI_EXPORT_SYMBOL()
932 * address - Address of the handler ACPI_EXPORT_SYMBOL()
936 * DESCRIPTION: Remove a handler for a General Purpose acpi_event. ACPI_EXPORT_SYMBOL()
944 struct acpi_gpe_handler_info *handler; ACPI_EXPORT_SYMBOL() local
971 /* Make sure that a handler is indeed installed */ ACPI_EXPORT_SYMBOL()
981 /* Make sure that the installed handler is the same */ ACPI_EXPORT_SYMBOL()
983 if (gpe_event_info->dispatch.handler->address != address) { ACPI_EXPORT_SYMBOL()
988 /* Remove the handler */ ACPI_EXPORT_SYMBOL()
990 handler = gpe_event_info->dispatch.handler; ACPI_EXPORT_SYMBOL()
991 gpe_event_info->dispatch.handler = NULL; ACPI_EXPORT_SYMBOL()
995 gpe_event_info->dispatch.method_node = handler->method_node; ACPI_EXPORT_SYMBOL()
998 gpe_event_info->flags |= handler->original_flags; ACPI_EXPORT_SYMBOL()
1005 if (((ACPI_GPE_DISPATCH_TYPE(handler->original_flags) == ACPI_EXPORT_SYMBOL()
1007 (ACPI_GPE_DISPATCH_TYPE(handler->original_flags) == ACPI_EXPORT_SYMBOL()
1008 ACPI_GPE_DISPATCH_NOTIFY)) && handler->originally_enabled) { ACPI_EXPORT_SYMBOL()
1019 /* Now we can free the handler object */ ACPI_EXPORT_SYMBOL()
1021 ACPI_FREE(handler); ACPI_EXPORT_SYMBOL()
91 acpi_install_notify_handler(acpi_handle device, u32 handler_type, acpi_notify_handler handler, void *context) acpi_install_notify_handler() argument
H A Devhandler.c99 * We install the default PCI config space handler at the root so that acpi_ev_install_region_handlers()
106 * NOTE: We ignore AE_ALREADY_EXISTS because this means that a handler acpi_ev_install_region_handlers()
144 * RETURN: TRUE if default handler is installed, FALSE otherwise
146 * DESCRIPTION: Check if the default handler is installed for the requested
162 handler_obj = obj_desc->device.handler; acpi_ev_has_default_handler()
187 * DESCRIPTION: This routine installs an address handler into objects that are
190 * If the Object is a Device, and the device has a handler of
193 * This is because the existing handler is closer in proximity
248 /* Check if this Device already has a handler for this address space */ acpi_ev_install_handler()
250 next_handler_obj = obj_desc->device.handler; acpi_ev_install_handler()
253 /* Found a handler, is it for the same address space? */ acpi_ev_install_handler()
258 "Found handler for region [%s] in device %p(%p) " acpi_ev_install_handler()
259 "handler %p\n", acpi_ev_install_handler()
268 * means that someone has already installed a handler for acpi_ev_install_handler()
282 * As long as the device didn't have a handler for this space we acpi_ev_install_handler()
298 * Now we have a region and it is for the handler's address space type. acpi_ev_install_handler()
300 * First disconnect region for any previous handler (if any) acpi_ev_install_handler()
304 /* Connect the region to the new handler */ acpi_ev_install_handler()
316 * handler - Address of the handler
318 * context - Value passed to the handler on each access
322 * DESCRIPTION: Install a handler for all op_regions of a given space_id.
330 acpi_adr_space_handler handler, acpi_ev_install_space_handler()
352 if (handler == ACPI_DEFAULT_HANDLER) { acpi_ev_install_space_handler()
358 handler = acpi_ex_system_memory_space_handler; acpi_ev_install_space_handler()
364 handler = acpi_ex_system_io_space_handler; acpi_ev_install_space_handler()
370 handler = acpi_ex_pci_config_space_handler; acpi_ev_install_space_handler()
376 handler = acpi_ex_cmos_space_handler; acpi_ev_install_space_handler()
382 handler = acpi_ex_pci_bar_space_handler; acpi_ev_install_space_handler()
388 handler = acpi_ex_data_table_space_handler; acpi_ev_install_space_handler()
410 * The attached device object already exists. Make sure the handler acpi_ev_install_space_handler()
413 handler_obj = obj_desc->device.handler; acpi_ev_install_space_handler()
415 /* Walk the handler list for this device */ acpi_ev_install_space_handler()
419 /* Same space_id indicates a handler already installed */ acpi_ev_install_space_handler()
422 if (handler_obj->address_space.handler == acpi_ev_install_space_handler()
423 handler) { acpi_ev_install_space_handler()
426 * handler twice. This can easily happen with the acpi_ev_install_space_handler()
432 /* A handler is already installed */ acpi_ev_install_space_handler()
445 "Creating object on Device %p while installing handler\n", acpi_ev_install_space_handler()
480 "Installing address handler for region %s(%X) on Device %4.4s %p(%p)\n", acpi_ev_install_space_handler()
485 * Install the handler acpi_ev_install_space_handler()
487 * At this point there is no existing handler. Just allocate the object acpi_ev_install_space_handler()
488 * for the handler and link it into the list. acpi_ev_install_space_handler()
497 /* Init handler obj */ acpi_ev_install_space_handler()
503 handler_obj->address_space.handler = handler; acpi_ev_install_space_handler()
509 handler_obj->address_space.next = obj_desc->device.handler; acpi_ev_install_space_handler()
513 * Each region that uses the handler adds a reference. acpi_ev_install_space_handler()
515 obj_desc->device.handler = handler_obj; acpi_ev_install_space_handler()
519 * handler will manage. acpi_ev_install_space_handler()
523 * a device is detected that has an address handler of the acpi_ev_install_space_handler()
328 acpi_ev_install_space_handler(struct acpi_namespace_node * node, acpi_adr_space_type space_id, acpi_adr_space_handler handler, acpi_adr_space_setup setup, void *context) acpi_ev_install_space_handler() argument
H A Devxfregn.c61 * handler - Address of the handler
63 * context - Value passed to the handler on each access
67 * DESCRIPTION: Install a handler for all op_regions of a given space_id.
79 acpi_adr_space_handler handler, acpi_install_address_space_handler()
106 /* Install the handler for all Regions for this Space ID */ acpi_install_address_space_handler()
109 acpi_ev_install_space_handler(node, space_id, handler, setup, acpi_install_address_space_handler()
164 * handler - Address of the handler ACPI_EXPORT_SYMBOL()
168 * DESCRIPTION: Remove a previously installed handler. ACPI_EXPORT_SYMBOL()
174 acpi_adr_space_handler handler) ACPI_EXPORT_SYMBOL()
216 /* Find the address handler the user requested */ ACPI_EXPORT_SYMBOL()
218 handler_obj = obj_desc->device.handler; ACPI_EXPORT_SYMBOL()
219 last_obj_ptr = &obj_desc->device.handler; ACPI_EXPORT_SYMBOL()
222 /* We have a handler, see if user requested this one */ ACPI_EXPORT_SYMBOL()
226 /* Handler must be the same as the installed handler */ ACPI_EXPORT_SYMBOL()
228 if (handler_obj->address_space.handler != handler) { ACPI_EXPORT_SYMBOL()
236 "Removing address handler %p(%p) for region %s " ACPI_EXPORT_SYMBOL()
238 handler_obj, handler, ACPI_EXPORT_SYMBOL()
244 /* Walk the handler's region list */ ACPI_EXPORT_SYMBOL()
248 * First disassociate the handler from the region. ACPI_EXPORT_SYMBOL()
269 /* Now we can delete the handler object */ ACPI_EXPORT_SYMBOL()
281 /* The handler does not exist */ ACPI_EXPORT_SYMBOL()
284 "Unable to remove address handler %p for %s(%X), DevNode %p, obj %p\n", ACPI_EXPORT_SYMBOL()
285 handler, acpi_ut_get_region_name(space_id), space_id, ACPI_EXPORT_SYMBOL()
77 acpi_install_address_space_handler(acpi_handle device, acpi_adr_space_type space_id, acpi_adr_space_handler handler, acpi_adr_space_setup setup, void *context) acpi_install_address_space_handler() argument
H A Devrgnini.c61 * handler_context - Address space handler context
108 /* Save the region length and address for use in the handler */ acpi_ev_system_memory_region_setup()
123 * handler_context - Address space handler context
154 * handler_context - Address space handler context
182 handler_obj = region_obj->region.handler; acpi_ev_pci_config_region_setup()
185 * No installed handler. This shouldn't happen because the dispatch acpi_ev_pci_config_region_setup()
189 "Attempting to init a region %p, with no handler\n", acpi_ev_pci_config_region_setup()
205 * Get the _SEG and _BBN values from the device upon which the handler acpi_ev_pci_config_region_setup()
209 * This is the device the handler has been registered to handle. acpi_ev_pci_config_region_setup()
228 /* Install a handler for this PCI root bridge */ acpi_ev_pci_config_region_setup()
234 * It is OK if the handler is already installed on the acpi_ev_pci_config_region_setup()
241 "Could not install PciConfig handler " acpi_ev_pci_config_region_setup()
397 * handler_context - Address space handler context
424 * handler_context - Address space handler context
451 * handler_context - Address space handler context
488 * Get the appropriate address space handler for a newly
534 region_obj->region.handler = NULL; acpi_ev_initialize_region()
547 * definition. This will be executed when the handler is attached acpi_ev_initialize_region()
559 /* Check to see if a handler exists */ acpi_ev_initialize_region()
565 /* Can only be a handler if the object exists */ acpi_ev_initialize_region()
570 handler_obj = obj_desc->device.handler; acpi_ev_initialize_region()
575 handler_obj = obj_desc->processor.handler; acpi_ev_initialize_region()
580 handler_obj = obj_desc->thermal_zone.handler; acpi_ev_initialize_region()
587 * saved the handler in the method object. acpi_ev_initialize_region()
594 obj_desc->method.dispatch.handler; acpi_ev_initialize_region()
607 /* Is this handler of the correct type? */ acpi_ev_initialize_region()
612 /* Found correct handler */ acpi_ev_initialize_region()
615 "Found handler %p for region %p in obj %p\n", acpi_ev_initialize_region()
656 /* Try next handler in the list */ acpi_ev_initialize_region()
662 /* This node does not have the handler we need; Pop up one level */ acpi_ev_initialize_region()
667 /* If we get here, there is no handler for this region */ acpi_ev_initialize_region()
670 "No handler for RegionType %s(%X) (RegionObj %p)\n", acpi_ev_initialize_region()
H A Devregion.c73 * an installed default region handler.
93 * Make sure the installed handler is the DEFAULT handler. If not the acpi_ev_initialize_op_regions()
95 * handler was installed) acpi_ev_initialize_op_regions()
128 * a previously installed handler.
139 acpi_adr_space_handler handler; acpi_ev_address_space_dispatch() local
154 /* Ensure that there is a handler associated with this region */ acpi_ev_address_space_dispatch()
156 handler_desc = region_obj->region.handler; acpi_ev_address_space_dispatch()
159 "No handler for Region [%4.4s] (%p) [%s]", acpi_ev_address_space_dispatch()
223 * the handler for this particular region acpi_ev_address_space_dispatch()
232 /* We have everything we need, we can invoke the address space handler */ acpi_ev_address_space_dispatch()
234 handler = handler_desc->address_space.handler; acpi_ev_address_space_dispatch()
240 * handler via the context: acpi_ev_address_space_dispatch()
274 &region_obj->region.handler->address_space, handler, acpi_ev_address_space_dispatch()
283 * exit the interpreter because the handler *might* block -- we don't acpi_ev_address_space_dispatch()
289 /* Call the handler */ acpi_ev_address_space_dispatch()
291 status = handler(function, address, bit_width, value, context, acpi_ev_address_space_dispatch()
303 * We just returned from a non-default handler, we must re-enter the acpi_ev_address_space_dispatch()
321 * DESCRIPTION: Break the association between the handler and the region
347 /* Get the address handler from the region object */ acpi_ev_detach_region()
349 handler_obj = region_obj->region.handler; acpi_ev_detach_region()
352 /* This region has no handler, all done */ acpi_ev_detach_region()
357 /* Find this region in the handler's list */ acpi_ev_detach_region()
369 "Removing Region %p from address handler %p\n", acpi_ev_detach_region()
372 /* This is it, remove it from the handler's list */ acpi_ev_detach_region()
406 * If the region has been activated, call the setup handler with acpi_ev_detach_region()
429 "from region handler - deactivate, [%s]", acpi_ev_detach_region()
440 * Remove handler reference in the region acpi_ev_detach_region()
445 * If the region is on the handler's list, this must be the acpi_ev_detach_region()
446 * region's handler acpi_ev_detach_region()
448 region_obj->region.handler = NULL; acpi_ev_detach_region()
463 "Circular handler list in region object %p", acpi_ev_detach_region()
469 /* If we get here, the region was not in the handler's region list */ acpi_ev_detach_region()
472 "Cannot remove region %p from address handler %p\n", acpi_ev_detach_region()
488 * DESCRIPTION: Create the association between the handler and the region
502 "Adding Region [%4.4s] %p to address handler %p [%s]\n", acpi_ev_attach_region()
508 /* Link this region to the front of the handler's list */ acpi_ev_attach_region()
513 /* Install the region's handler */ acpi_ev_attach_region()
515 if (region_obj->region.handler) { acpi_ev_attach_region()
519 region_obj->region.handler = handler_obj; acpi_ev_attach_region()
576 * connection status 1 for connecting the handler, 0 for disconnecting acpi_ev_execute_reg_method()
577 * the handler (Passed as a parameter) acpi_ev_execute_reg_method()
727 * during EC handler installation. Otherwise, we would need to
H A Devmisc.c96 * installed handler.
131 /* We have an attached object, Get the correct handler list */ acpi_ev_queue_notify_request()
138 * If there is no notify handler (Global or Local) acpi_ev_queue_notify_request()
141 if (!acpi_gbl_global_notify[handler_list_id].handler acpi_ev_queue_notify_request()
144 "No notify handler for Notify, ignoring (%4.4s, %X) node %p\n", acpi_ev_queue_notify_request()
186 * PARAMETERS: context - To be passed to the notify handler
191 * installed handler.
202 /* Invoke a global notify handler if installed */ acpi_ev_notify_dispatch()
204 if (info->notify.global->handler) { acpi_ev_notify_dispatch()
205 info->notify.global->handler(info->notify.node, acpi_ev_notify_dispatch()
210 /* Now invoke the local notify handler(s) if any are installed */ acpi_ev_notify_dispatch()
214 handler_obj->notify.handler(info->notify.node, acpi_ev_notify_dispatch()
271 "Could not remove Global Lock handler")); acpi_ev_terminate()
281 ACPI_ERROR((AE_INFO, "Could not remove SCI handler")); acpi_ev_terminate()
284 /* Deallocate all handler objects installed within GPE info structs */ acpi_ev_terminate()
H A Dtbxface.c399 * PARAMETERS: handler - Table event handler ACPI_EXPORT_SYMBOL()
400 * context - Value passed to the handler on each event ACPI_EXPORT_SYMBOL()
404 * DESCRIPTION: Install a global table event handler. ACPI_EXPORT_SYMBOL()
408 acpi_install_table_handler(acpi_table_handler handler, void *context) ACPI_EXPORT_SYMBOL()
414 if (!handler) { ACPI_EXPORT_SYMBOL()
423 /* Don't allow more than one handler */ ACPI_EXPORT_SYMBOL()
430 /* Install the handler */ ACPI_EXPORT_SYMBOL()
432 acpi_gbl_table_handler = handler; ACPI_EXPORT_SYMBOL()
446 * PARAMETERS: handler - Table event handler that was installed ACPI_EXPORT_SYMBOL()
451 * DESCRIPTION: Remove a table event handler ACPI_EXPORT_SYMBOL()
454 acpi_status acpi_remove_table_handler(acpi_table_handler handler) ACPI_EXPORT_SYMBOL()
465 /* Make sure that the installed handler is the same */ ACPI_EXPORT_SYMBOL()
467 if (!handler || handler != acpi_gbl_table_handler) { ACPI_EXPORT_SYMBOL()
472 /* Remove the handler */ ACPI_EXPORT_SYMBOL()
H A Devevent.c126 /* Install the SCI handler */ acpi_ev_install_xrupt_handlers()
131 "Unable to install System Control Interrupt handler")); acpi_ev_install_xrupt_handlers()
135 /* Install the handler for the Global Lock */ acpi_ev_install_xrupt_handlers()
140 "Unable to initialize Global Lock handler")); acpi_ev_install_xrupt_handlers()
170 acpi_gbl_fixed_event_handlers[i].handler = NULL; acpi_ev_fixed_event_initialize()
234 * handler if present. acpi_ev_fixed_event_detect()
259 * handler that previously registered for the event.
260 * NOTE: If there is no handler for the event, the event is
276 * Make sure that a handler exists. If not, report an error acpi_ev_fixed_event_dispatch()
279 if (!acpi_gbl_fixed_event_handlers[event].handler) { acpi_ev_fixed_event_dispatch()
285 "No installed handler for fixed event - %s (%u), disabling", acpi_ev_fixed_event_dispatch()
291 /* Invoke the Fixed Event handler */ acpi_ev_fixed_event_dispatch()
294 handler) (acpi_gbl_fixed_event_handlers[event].context)); acpi_ev_fixed_event_dispatch()
H A Dnsobject.c335 * handler - Handler to be associated with the data
346 acpi_object_handler handler, void *data) acpi_ns_attach_data()
352 /* We only allow one attachment per handler */ acpi_ns_attach_data()
358 (obj_desc->data.handler == handler)) { acpi_ns_attach_data()
373 data_desc->data.handler = handler; acpi_ns_attach_data()
392 * handler - Handler associated with the data
403 acpi_object_handler handler) acpi_ns_detach_data()
412 (obj_desc->data.handler == handler)) { acpi_ns_detach_data()
436 * handler - Handler associated with the data
448 acpi_object_handler handler, void **data) acpi_ns_get_attached_data()
455 (obj_desc->data.handler == handler)) { acpi_ns_get_attached_data()
345 acpi_ns_attach_data(struct acpi_namespace_node *node, acpi_object_handler handler, void *data) acpi_ns_attach_data() argument
402 acpi_ns_detach_data(struct acpi_namespace_node * node, acpi_object_handler handler) acpi_ns_detach_data() argument
447 acpi_ns_get_attached_data(struct acpi_namespace_node * node, acpi_object_handler handler, void **data) acpi_ns_get_attached_data() argument
H A Dutxface.c253 * PARAMETERS: handler - Callback procedure ACPI_EXPORT_SYMBOL()
258 * DESCRIPTION: Install an initialization handler ACPI_EXPORT_SYMBOL()
264 acpi_install_initialization_handler(acpi_init_handler handler, u32 function) ACPI_EXPORT_SYMBOL()
267 if (!handler) { ACPI_EXPORT_SYMBOL()
275 acpi_gbl_init_handler = handler; ACPI_EXPORT_SYMBOL()
398 * PARAMETERS: handler - The _OSI interface handler to install ACPI_EXPORT_SYMBOL()
399 * NULL means "remove existing handler" ACPI_EXPORT_SYMBOL()
403 * DESCRIPTION: Install a handler for the predefined _OSI ACPI method. ACPI_EXPORT_SYMBOL()
405 * _OSI. A NULL handler simply removes any existing handler. ACPI_EXPORT_SYMBOL()
408 acpi_status acpi_install_interface_handler(acpi_interface_handler handler) ACPI_EXPORT_SYMBOL()
417 if (handler && acpi_gbl_interface_handler) { ACPI_EXPORT_SYMBOL()
420 acpi_gbl_interface_handler = handler; ACPI_EXPORT_SYMBOL()
H A Devsci.c88 /* Invoke the installed handler (at interrupt level) */ acpi_ev_sci_dispatch()
107 * DESCRIPTION: Interrupt handler that will figure out what function or
121 * if this interrupt handler is installed, ACPI is enabled. acpi_ev_sci_xrupt_handler()
165 * if this interrupt handler is installed, ACPI is enabled. acpi_ev_gpe_xrupt_handler()
182 * DESCRIPTION: Installs SCI handler.
205 * RETURN: AE_OK if handler uninstalled, AE_ERROR if handler was not
208 * DESCRIPTION: Remove the SCI interrupt handler. No further SCIs will be
213 * the SCI interrupt level when the handler is removed, so no more
226 /* Just let the OS remove the handler and disable the level */ acpi_ev_remove_all_sci_handlers()
H A Devgpe.c450 /* Invoke global event handler if present */ acpi_ev_gpe_detect()
466 /* Dispatch the event to a raw handler */ acpi_ev_gpe_detect()
470 handler; acpi_ev_gpe_detect()
474 * and the GPE handler to ensure a safe destruction acpi_ev_gpe_detect()
478 * 2. The GPE handler is expected to be flushed by acpi_ev_gpe_detect()
495 * Dispatch the event to a standard handler or acpi_ev_gpe_detect()
528 * an interrupt handler.
547 * Dispatch a DEVICE_WAKE notify to the appropriate handler. acpi_ev_asynch_execute_gpe_method()
651 * of a GPE method or a synchronous or asynchronous GPE handler.
692 * or method (e.g. _Lxx/_Exx) handler.
710 * of a GPE method or an asynchronous GPE handler.) acpi_ev_gpe_dispatch()
712 * If there is no handler or method to run, just disable the acpi_ev_gpe_dispatch()
741 * Dispatch the GPE to either an installed handler or the control acpi_ev_gpe_dispatch()
742 * method associated with this GPE (_Lxx or _Exx). If a handler acpi_ev_gpe_dispatch()
744 * If there is neither a handler nor a method, leave the GPE acpi_ev_gpe_dispatch()
750 /* Invoke the installed handler (at interrupt level) */ acpi_ev_gpe_dispatch()
753 gpe_event_info->dispatch.handler->address(gpe_device, acpi_ev_gpe_dispatch()
756 dispatch.handler-> acpi_ev_gpe_dispatch()
777 "Unable to queue handler for GPE %02X - event disabled", acpi_ev_gpe_dispatch()
784 * No handler or method to run! acpi_ev_gpe_dispatch()
786 * a GPE to be enabled if it has no handler or method. acpi_ev_gpe_dispatch()
789 "No handler or method for GPE %02X, disabling event", acpi_ev_gpe_dispatch()
H A Devgpeutil.c213 /* Install new interrupt handler if not SCI_INT */ acpi_ev_get_gpe_xrupt_block()
221 "Could not install GPE interrupt handler at level 0x%X", acpi_ev_get_gpe_xrupt_block()
240 * interrupt handler if not the SCI interrupt.
251 /* We never want to remove the SCI interrupt handler */ acpi_ev_delete_gpe_xrupt()
332 /* Delete an installed handler block */ acpi_ev_delete_gpe_handlers()
334 ACPI_FREE(gpe_event_info->dispatch.handler); acpi_ev_delete_gpe_handlers()
335 gpe_event_info->dispatch.handler = NULL; acpi_ev_delete_gpe_handlers()
/linux-4.1.27/arch/x86/include/asm/trace/
H A Dirq_vectors.h43 * vector handler
48 * reschedule - called when entering/exiting a reschedule vector handler
53 * spurious_apic - called when entering/exiting a spurious apic vector handler
58 * error_apic - called when entering/exiting an error apic vector handler
64 * vector handler
70 * vector handler
87 * vector handler
93 * single interrupt vector handler
99 * vector handler
105 * vector handler
/linux-4.1.27/arch/arm/probes/uprobes/
H A Dactions-arm.c198 [PROBES_PRELOAD_IMM] = {.handler = probes_simulate_nop},
199 [PROBES_PRELOAD_REG] = {.handler = probes_simulate_nop},
200 [PROBES_BRANCH_IMM] = {.handler = simulate_blx1},
201 [PROBES_MRS] = {.handler = simulate_mrs},
202 [PROBES_BRANCH_REG] = {.handler = simulate_blx2bx},
203 [PROBES_CLZ] = {.handler = probes_simulate_nop},
204 [PROBES_SATURATING_ARITHMETIC] = {.handler = probes_simulate_nop},
205 [PROBES_MUL1] = {.handler = probes_simulate_nop},
206 [PROBES_MUL2] = {.handler = probes_simulate_nop},
207 [PROBES_SWP] = {.handler = probes_simulate_nop},
213 [PROBES_MOV_IP_SP] = {.handler = simulate_mov_ipsp},
218 [PROBES_MOV_HALFWORD] = {.handler = probes_simulate_nop},
219 [PROBES_SEV] = {.handler = probes_simulate_nop},
220 [PROBES_WFE] = {.handler = probes_simulate_nop},
221 [PROBES_SATURATE] = {.handler = probes_simulate_nop},
222 [PROBES_REV] = {.handler = probes_simulate_nop},
223 [PROBES_MMI] = {.handler = probes_simulate_nop},
224 [PROBES_PACK] = {.handler = probes_simulate_nop},
225 [PROBES_EXTEND] = {.handler = probes_simulate_nop},
226 [PROBES_EXTEND_ADD] = {.handler = probes_simulate_nop},
227 [PROBES_MUL_ADD_LONG] = {.handler = probes_simulate_nop},
228 [PROBES_MUL_ADD] = {.handler = probes_simulate_nop},
229 [PROBES_BITFIELD] = {.handler = probes_simulate_nop},
230 [PROBES_BRANCH] = {.handler = simulate_bbl},
/linux-4.1.27/arch/blackfin/kernel/
H A Dexception.c11 int bfin_request_exception(unsigned int exception, void (*handler)(void)) bfin_request_exception() argument
23 ex_table[exception] = handler; bfin_request_exception()
29 int bfin_free_exception(unsigned int exception, void (*handler)(void)) bfin_free_exception() argument
38 if (curr_handler != handler) bfin_free_exception()
/linux-4.1.27/arch/arm/include/asm/
H A Dglue-df.h22 * v4_early - ARMv4 without Thumb early abort handler
23 * v4t_late - ARMv4 with Thumb late abort handler
24 * v4t_early - ARMv4 with Thumb early abort handler
25 * v5t_early - ARMv5 with Thumb early abort handler
26 * v5tj_early - ARMv5 with Thumb and Java early abort handler
28 * v6_early - ARMv6 generic early abort handler
29 * v7_early - ARMv7 generic early abort handler
99 #error Unknown data abort handler type
H A Dpmu.h23 * @handle_irq: an optional handler which will be called from the
24 * interrupt and passed the address of the low level handler,
27 * @runtime_resume: an optional handler which will be called by the
30 * succession this handler will only be called once.
31 * @runtime_suspend: an optional handler which will be called by the
34 * succession this handler will only be called following the
111 int (*request_irq)(struct arm_pmu *, irq_handler_t handler);
/linux-4.1.27/include/linux/
H A Dirqreturn.h8 * @IRQ_WAKE_THREAD handler requests to wake the handler thread
H A Dirqhandler.h5 * Interrupt flow handler typedefs are defined here to avoid circular
H A Dsfi_acpi.h68 int (*handler)(struct acpi_table_header *));
71 int (*handler)(struct acpi_table_header *)) acpi_sfi_table_parse()
73 if (!acpi_table_parse(signature, handler)) acpi_sfi_table_parse()
76 return sfi_acpi_table_parse(signature, NULL, NULL, handler); acpi_sfi_table_parse()
81 int (*handler)(struct acpi_table_header *)) sfi_acpi_table_parse()
87 int (*handler)(struct acpi_table_header *)) acpi_sfi_table_parse()
89 return acpi_table_parse(signature, handler); acpi_sfi_table_parse()
H A Dinet_diag.h45 extern int inet_diag_register(const struct inet_diag_handler *handler);
46 extern void inet_diag_unregister(const struct inet_diag_handler *handler);
H A Dirqdesc.h22 * @handle_irq: highlevel irq-events handler
23 * @preflow_handler: handler called before the flow handler (currently used by sparc)
47 * @name: flow handler name for /proc/interrupts output
124 * irqchip-style controller then we call the ->handle_irq() handler,
160 irq_flow_handler_t handler) __irq_set_handler_locked()
165 desc->handle_irq = handler; __irq_set_handler_locked()
171 irq_flow_handler_t handler, const char *name) __irq_set_chip_handler_name_locked()
177 desc->handle_irq = handler; __irq_set_chip_handler_name_locked()
208 __irq_set_preflow_handler(unsigned int irq, irq_preflow_handler_t handler) __irq_set_preflow_handler() argument
213 desc->preflow_handler = handler; __irq_set_preflow_handler()
159 __irq_set_handler_locked(unsigned int irq, irq_flow_handler_t handler) __irq_set_handler_locked() argument
170 __irq_set_chip_handler_name_locked(unsigned int irq, struct irq_chip *chip, irq_flow_handler_t handler, const char *name) __irq_set_chip_handler_name_locked() argument
H A Dgenl_magic_struct.h102 #define GENL_doit(handler) \
103 .doit = handler, \
105 #define GENL_dumpit(handler) \
106 .dumpit = handler, \
127 #define GENL_op(op_name, op_num, handler, tla_list) \
138 #define GENL_op(op_name, op_num, handler, attr_list)
177 #define GENL_op(op_name, op_num, handler, attr_list) \
193 #define GENL_op(op_name, op_num, handler, attr_list)
H A Dinput.h91 * @event: event handler for events sent _to_ the device, like EV_LED
247 * @event: event handler. This method is being called by input core with
250 * @events: event sequence handler. This method is being called by
255 * @match: called after comparing device's id with handler's id_table
256 * to perform fine-grained matching between device and handler
257 * @connect: called when attaching a handler to an input device
258 * @disconnect: disconnects a handler from input device
259 * @start: starts handler for given handle. This function is called by
265 * @name: name of the handler, to be shown in /proc/bus/input/handlers
268 * @h_list: list of input handles associated with the handler
292 bool (*match)(struct input_handler *handler, struct input_dev *dev);
293 int (*connect)(struct input_handler *handler, struct input_dev *dev, const struct input_device_id *id);
308 * struct input_handle - links input device with an input handler
309 * @private: handler-specific data
312 * @name: name given to the handle by handler that created it
314 * @handler: handler that works with the device through this handle
316 * @h_node: used to put the handle on handler's list of handles from which
327 struct input_handler *handler; member in struct:input_handle
/linux-4.1.27/arch/ia64/kernel/
H A Dsigframe.h9 * Place signal handler args where user-level unwinder can find them easily.
20 void __user *handler; /* pointer to the plabel of the signal handler */ member in struct:sigframe
/linux-4.1.27/arch/arm/probes/kprobes/
H A Dactions-arm.c31 * setting a handler for it to run the instruction.
33 * In the execution phase by an instruction's handler:
39 * directly executed. Its handler calls the
306 [PROBES_PRELOAD_IMM] = {.handler = probes_simulate_nop},
307 [PROBES_PRELOAD_REG] = {.handler = probes_simulate_nop},
308 [PROBES_BRANCH_IMM] = {.handler = simulate_blx1},
309 [PROBES_MRS] = {.handler = simulate_mrs},
310 [PROBES_BRANCH_REG] = {.handler = simulate_blx2bx},
311 [PROBES_CLZ] = {.handler = emulate_rd12rm0_noflags_nopc},
313 .handler = emulate_rd12rn16rm0_rwflags_nopc},
314 [PROBES_MUL1] = {.handler = emulate_rdlo12rdhi16rn0rm8_rwflags_nopc},
315 [PROBES_MUL2] = {.handler = emulate_rd16rn12rm0rs8_rwflags_nopc},
316 [PROBES_SWP] = {.handler = emulate_rd12rn16rm0_rwflags_nopc},
317 [PROBES_LDRSTRD] = {.handler = emulate_ldrdstrd},
318 [PROBES_LOAD_EXTRA] = {.handler = emulate_ldr},
319 [PROBES_LOAD] = {.handler = emulate_ldr},
320 [PROBES_STORE_EXTRA] = {.handler = emulate_str},
321 [PROBES_STORE] = {.handler = emulate_str},
322 [PROBES_MOV_IP_SP] = {.handler = simulate_mov_ipsp},
324 .handler = emulate_rd12rn16rm0rs8_rwflags},
326 .handler = emulate_rd12rn16rm0rs8_rwflags},
327 [PROBES_MOV_HALFWORD] = {.handler = emulate_rd12rm0_noflags_nopc},
328 [PROBES_SEV] = {.handler = probes_emulate_none},
329 [PROBES_WFE] = {.handler = probes_simulate_nop},
330 [PROBES_SATURATE] = {.handler = emulate_rd12rn16rm0_rwflags_nopc},
331 [PROBES_REV] = {.handler = emulate_rd12rm0_noflags_nopc},
332 [PROBES_MMI] = {.handler = emulate_rd12rn16rm0_rwflags_nopc},
333 [PROBES_PACK] = {.handler = emulate_rd12rn16rm0_rwflags_nopc},
334 [PROBES_EXTEND] = {.handler = emulate_rd12rm0_noflags_nopc},
335 [PROBES_EXTEND_ADD] = {.handler = emulate_rd12rn16rm0_rwflags_nopc},
337 .handler = emulate_rdlo12rdhi16rn0rm8_rwflags_nopc},
338 [PROBES_MUL_ADD] = {.handler = emulate_rd16rn12rm0rs8_rwflags_nopc},
339 [PROBES_BITFIELD] = {.handler = emulate_rd12rm0_noflags_nopc},
340 [PROBES_BRANCH] = {.handler = simulate_bbl},
H A Dactions-common.c131 probes_insn_handler_t *handler = 0; kprobe_decode_ldmstm() local
138 handler = emulate_generic_r0_12_noflags; kprobe_decode_ldmstm()
144 handler = emulate_generic_r2_14_noflags; kprobe_decode_ldmstm()
151 handler = emulate_ldm_r3_15; kprobe_decode_ldmstm()
155 if (handler) { kprobe_decode_ldmstm()
159 asi->insn_handler = handler; kprobe_decode_ldmstm()
165 handler = is_ldm ? simulate_ldm1_pc : simulate_stm1_pc; kprobe_decode_ldmstm()
167 handler = simulate_ldm1stm1; kprobe_decode_ldmstm()
168 asi->insn_handler = handler; kprobe_decode_ldmstm()
H A Dactions-thumb.c616 [PROBES_T16_ADD_SP] = {.handler = t16_simulate_add_sp_imm},
617 [PROBES_T16_CBZ] = {.handler = t16_simulate_cbz},
618 [PROBES_T16_SIGN_EXTEND] = {.handler = t16_emulate_loregs_rwflags},
621 [PROBES_T16_SEV] = {.handler = probes_emulate_none},
622 [PROBES_T16_WFE] = {.handler = probes_simulate_nop},
624 [PROBES_T16_CMP] = {.handler = t16_emulate_loregs_rwflags},
625 [PROBES_T16_ADDSUB] = {.handler = t16_emulate_loregs_noitrwflags},
626 [PROBES_T16_LOGICAL] = {.handler = t16_emulate_loregs_noitrwflags},
627 [PROBES_T16_LDR_LIT] = {.handler = t16_simulate_ldr_literal},
628 [PROBES_T16_BLX] = {.handler = t16_simulate_bxblx},
630 [PROBES_T16_LDRHSTRH] = {.handler = t16_emulate_loregs_rwflags},
631 [PROBES_T16_LDRSTR] = {.handler = t16_simulate_ldrstr_sp_relative},
632 [PROBES_T16_ADR] = {.handler = t16_simulate_reladr},
633 [PROBES_T16_LDMSTM] = {.handler = t16_emulate_loregs_rwflags},
635 [PROBES_T16_BRANCH] = {.handler = t16_simulate_branch},
640 [PROBES_T32_LDRDSTRD] = {.handler = t32_emulate_ldrdstrd},
641 [PROBES_T32_TABLE_BRANCH] = {.handler = t32_simulate_table_branch},
642 [PROBES_T32_TST] = {.handler = t32_emulate_rd8rn16rm0_rwflags},
643 [PROBES_T32_MOV] = {.handler = t32_emulate_rd8rn16rm0_rwflags},
644 [PROBES_T32_ADDSUB] = {.handler = t32_emulate_rd8rn16rm0_rwflags},
645 [PROBES_T32_LOGICAL] = {.handler = t32_emulate_rd8rn16rm0_rwflags},
646 [PROBES_T32_CMP] = {.handler = t32_emulate_rd8rn16rm0_rwflags},
647 [PROBES_T32_ADDWSUBW_PC] = {.handler = t32_emulate_rd8pc16_noflags,},
648 [PROBES_T32_ADDWSUBW] = {.handler = t32_emulate_rd8rn16_noflags},
649 [PROBES_T32_MOVW] = {.handler = t32_emulate_rd8rn16_noflags},
650 [PROBES_T32_SAT] = {.handler = t32_emulate_rd8rn16rm0_rwflags},
651 [PROBES_T32_BITFIELD] = {.handler = t32_emulate_rd8rn16_noflags},
652 [PROBES_T32_SEV] = {.handler = probes_emulate_none},
653 [PROBES_T32_WFE] = {.handler = probes_simulate_nop},
654 [PROBES_T32_MRS] = {.handler = t32_simulate_mrs},
656 [PROBES_T32_BRANCH] = {.handler = t32_simulate_branch},
657 [PROBES_T32_PLDI] = {.handler = probes_simulate_nop},
658 [PROBES_T32_LDR_LIT] = {.handler = t32_simulate_ldr_literal},
659 [PROBES_T32_LDRSTR] = {.handler = t32_emulate_ldrstr},
660 [PROBES_T32_SIGN_EXTEND] = {.handler = t32_emulate_rd8rn16rm0_rwflags},
661 [PROBES_T32_MEDIA] = {.handler = t32_emulate_rd8rn16rm0_rwflags},
662 [PROBES_T32_REVERSE] = {.handler = t32_emulate_rd8rn16_noflags},
663 [PROBES_T32_MUL_ADD] = {.handler = t32_emulate_rd8rn16rm0_rwflags},
664 [PROBES_T32_MUL_ADD2] = {.handler = t32_emulate_rd8rn16rm0ra12_noflags},
666 .handler = t32_emulate_rdlo12rdhi8rn16rm0_noflags},
/linux-4.1.27/arch/mips/dec/
H A DMakefile5 obj-y := ecc-berr.o int-handler.o ioasic-irq.o kn01-berr.o \
H A Dioasic-irq.c76 * so that if they retrigger before the handler has completed, usually as
77 * a side effect of actions taken by the handler, then they are reissued.
78 * These use the `handle_edge_irq' handler that clears the request right
84 * the `handle_fasteoi_irq' handler that only clears the request on the
/linux-4.1.27/arch/m68k/include/asm/
H A Datari_stdma.h12 void stdma_lock(irq_handler_t handler, void *data);
H A Dmachdep.h14 extern void (*mach_sched_init) (irq_handler_t handler);
36 extern void hw_timer_init(irq_handler_t handler);
/linux-4.1.27/drivers/net/wireless/b43/
H A Dsdio.h18 void (*handler)(struct b43_wldev *dev));
29 void (*handler)(struct b43_wldev *dev)) b43_sdio_request_irq()
/linux-4.1.27/arch/sh/include/asm/
H A Dpush-switch.h16 /* platform device, for workqueue handler */
21 /* IRQ handler */
/linux-4.1.27/drivers/scsi/device_handler/
H A Dscsi_dh.c2 * SCSI device handler infrastruture.
48 * device_handler_match_function - Match a device handler to a device
52 * Returns the found device handler or NULL if not found.
71 * device_handler_match - Attach a device handler to a device
72 * @scsi_dh - The device handler to match against or NULL
75 * Tests @sdev against the device handler @scsi_dh or against
77 * Returns the found device handler or NULL if not found.
94 * scsi_dh_handler_attach - Attach a device handler to a device
95 * @sdev - SCSI device the device handler should attach to
96 * @scsi_dh - The device handler to attach
150 * scsi_dh_handler_detach - Detach a device handler from a device
151 * @sdev - SCSI device the device handler should be detached from
152 * @scsi_dh - Device handler to be detached
154 * Detach from a device handler. If a device handler is specified,
155 * only detach if the currently attached handler matches @scsi_dh.
190 * Attach to a device handler store_dh_state()
199 * Detach from a device handler store_dh_state()
205 * Activate a device handler store_dh_state()
346 * scsi_register_device_handler - register a device handler personality
348 * @scsi_dh - device handler to be registered.
350 * Returns 0 on success, -EBUSY if handler already registered.
366 printk(KERN_INFO "%s: device handler registered\n", scsi_dh->name); scsi_register_device_handler()
373 * scsi_unregister_device_handler - register a device handler personality
375 * @scsi_dh - device handler to be unregistered.
377 * Returns 0 on success, -ENODEV if handler not registered.
391 printk(KERN_INFO "%s: device handler unregistered\n", scsi_dh->name); scsi_unregister_device_handler()
487 * scsi_dh_handler_exist - Return TRUE(1) if a device handler exists for
489 * @name - name of the device handler.
498 * scsi_dh_attach - Attach device handler
500 * the handler should be attached to
501 * @name - name of the handler to attach
529 * scsi_dh_detach - Detach device handler
531 * the handler should be detached from
533 * This function will detach the device handler only
561 * scsi_dh_attached_handler_name - Get attached device handler's name
563 * that may have a device handler attached
566 * Returns name of attached handler, NULL if no handler is attached.
619 MODULE_DESCRIPTION("SCSI device handler");
/linux-4.1.27/drivers/s390/cio/
H A Dcrw.c24 * crw_register_handler() - register a channel report word handler
26 * @handler: handler to be registered
30 int crw_register_handler(int rsc, crw_handler_t handler) crw_register_handler() argument
40 crw_handlers[rsc] = handler; crw_register_handler()
46 * crw_unregister_handler() - unregister a channel report word handler
74 crw_handler_t handler; crw_collect_info() local
122 handler = crw_handlers[crw[chain].rsc]; crw_collect_info()
123 if (handler) crw_collect_info()
124 handler(&crw[0], chain ? &crw[1] : NULL, 0); crw_collect_info()
/linux-4.1.27/arch/powerpc/sysdev/
H A Dpmi.c41 struct list_head handler; member in struct:pmi_data
114 struct pmi_handler *handler; pmi_notify_handlers() local
117 list_for_each_entry(handler, &data->handler, node) { pmi_notify_handlers()
118 pr_debug("pmi: notifying handler %p\n", handler); pmi_notify_handlers()
119 if (handler->type == data->msg.type) pmi_notify_handlers()
120 handler->handle_pmi_message(data->msg); pmi_notify_handlers()
150 INIT_LIST_HEAD(&data->handler); pmi_of_probe()
190 struct pmi_handler *handler, *tmp; pmi_of_remove() local
197 list_for_each_entry_safe(handler, tmp, &data->handler, node) pmi_of_remove()
198 list_del(&handler->node); pmi_of_remove()
253 int pmi_register_handler(struct pmi_handler *handler) pmi_register_handler() argument
259 list_add_tail(&handler->node, &data->handler); pmi_register_handler()
266 void pmi_unregister_handler(struct pmi_handler *handler) pmi_unregister_handler() argument
271 pr_debug("pmi: unregistering handler %p\n", handler); pmi_unregister_handler()
274 list_del(&handler->node); pmi_unregister_handler()
/linux-4.1.27/kernel/irq/
H A Ddebug.h22 printk("->action->handler(): %p, ", desc->action->handler); print_irq_desc()
23 print_symbol("%s\n", (unsigned long)desc->action->handler); print_irq_desc()
H A Ddevres.c32 * @handler: Function to be called when the IRQ occurs
34 * for devices which handle everything in @handler
37 * @dev_id: A cookie passed back to the handler function
48 irq_handler_t handler, irq_handler_t thread_fn, devm_request_threaded_irq()
60 rc = request_threaded_irq(irq, handler, thread_fn, irqflags, devname, devm_request_threaded_irq()
79 * @handler: Function to be called when the IRQ occurs
81 * for devices which handle everything in @handler
84 * @dev_id: A cookie passed back to the handler function
95 irq_handler_t handler, unsigned long irqflags, devm_request_any_context_irq()
106 rc = request_any_context_irq(irq, handler, irqflags, devname, dev_id); devm_request_any_context_irq()
47 devm_request_threaded_irq(struct device *dev, unsigned int irq, irq_handler_t handler, irq_handler_t thread_fn, unsigned long irqflags, const char *devname, void *dev_id) devm_request_threaded_irq() argument
94 devm_request_any_context_irq(struct device *dev, unsigned int irq, irq_handler_t handler, unsigned long irqflags, const char *devname, void *dev_id) devm_request_any_context_irq() argument
H A Dhandle.c38 * Special, empty irq handler:
59 * we handled the interrupt. The hardirq handler has disabled the __irq_wake_thread()
66 * Wake up the handler thread for this action. If the __irq_wake_thread()
86 * Hard irq handler: __irq_wake_thread()
112 * or we are waiting in the flow handler for desc->lock to be __irq_wake_thread()
122 * it returns from the handler or in the exit path and wakes __irq_wake_thread()
125 * against this code (hard irq handler) via IRQS_INPROGRESS __irq_wake_thread()
143 res = action->handler(irq, action->dev_id); handle_irq_event_percpu()
146 if (WARN_ONCE(!irqs_disabled(),"irq %u handler %pF enabled interrupts\n", handle_irq_event_percpu()
147 irq, action->handler)) handle_irq_event_percpu()
H A Dmanage.c64 * function while holding a resource the IRQ handler may need you
69 * that all parts (hardirq and threaded handler) have completed.
71 * Returns: false if a threaded handler is active.
94 * holding a resource the IRQ handler may need you will deadlock.
105 * We made sure that no hardirq handler is synchronize_irq()
420 * instances of the IRQ handler have completed before returning.
438 * holding a resource the IRQ handler may need you will deadlock.
457 * holding a resource the hard IRQ handler may need you will deadlock.
462 * Returns: false if a threaded handler is active.
681 * Default primary interrupt handler for threaded interrupts. Is
682 * assigned as primary handler when request_threaded_irq is called
683 * with handler == NULL. Useful for oneshot interrupts.
691 * Primary handler for nested threaded interrupts. Should never be
696 WARN(1, "Primary handler called for nested irq %d\n", irq); irq_nested_primary_handler()
720 * handler finished. unmask if the interrupt has not been disabled and
736 * The thread is faster done than the hard interrupt handler irq_finalize_oneshot()
881 * Interrupt handler thread
965 new->thread_fn = new->handler; irq_setup_forced_threading()
966 new->handler = irq_default_primary_handler; irq_setup_forced_threading()
1018 * Replace the primary handler which was provided from __setup_irq()
1022 new->handler = irq_nested_primary_handler; __setup_irq()
1029 * Create a handler thread when a thread function is supplied __setup_irq()
1075 * threaded irq without a primary hard irq context handler __setup_irq()
1079 * the threaded handler for those. __setup_irq()
1139 * IRQF_ONESHOT thread handler has been woken, but not __setup_irq()
1158 } else if (new->handler == irq_default_primary_handler && __setup_irq()
1161 * The interrupt was requested with handler = NULL, so __setup_irq()
1162 * we use the default primary handler for it. But it __setup_irq()
1165 * default primary handler just wakes the thread, then __setup_irq()
1175 pr_err("Threaded irq requested with handler=NULL and !ONESHOT for irq %d\n", __setup_irq()
1232 /* hope the handler works with current trigger mode */ __setup_irq()
1242 /* Reset broken irq detection when installing new handler */ __setup_irq()
1247 * Check whether we disabled the irq via the spurious handler __setup_irq()
1362 /* If this was the last handler, shut down the IRQ line: */ __free_irq()
1385 * is so by doing an extra call to the handler .... __free_irq()
1392 action->handler(irq, dev_id); __free_irq()
1427 * Remove an interrupt handler. The handler is removed and if the
1457 * @handler: Function to be called when the IRQ occurs.
1458 * Primary handler for threaded interrupts
1460 * primary handler is installed
1461 * @thread_fn: Function called from the irq handler thread
1465 * @dev_id: A cookie passed back to the handler function
1469 * call is made your handler function may be invoked. Since
1470 * your handler function must clear any interrupt the board
1472 * and to set up the interrupt handler in the right order.
1474 * If you want to set up a threaded irq handler for your device
1475 * then you need to supply @handler and @thread_fn. @handler is
1479 * IRQ_WAKE_THREAD which will wake up the handler thread and run
1480 * @thread_fn. This split handler design is necessary to support
1484 * device data structure is used as the cookie. Since the handler
1496 int request_threaded_irq(unsigned int irq, irq_handler_t handler, request_threaded_irq() argument
1526 if (!handler) { request_threaded_irq()
1529 handler = irq_default_primary_handler; request_threaded_irq()
1536 action->handler = handler; request_threaded_irq()
1562 handler(irq, dev_id); request_threaded_irq()
1575 * @handler: Function to be called when the IRQ occurs.
1576 * Threaded handler for threaded interrupts.
1579 * @dev_id: A cookie passed back to the handler function
1589 int request_any_context_irq(unsigned int irq, irq_handler_t handler, request_any_context_irq() argument
1599 ret = request_threaded_irq(irq, NULL, handler, request_any_context_irq()
1604 ret = request_irq(irq, handler, flags, name, dev_id); request_any_context_irq()
1713 * Remove a percpu interrupt handler. The handler is removed, but
1756 * @handler: Function to be called when the IRQ occurs.
1758 * @dev_id: A percpu cookie passed back to the handler function
1765 * the handler gets called with the interrupted CPU's instance of
1768 int request_percpu_irq(unsigned int irq, irq_handler_t handler, request_percpu_irq() argument
1787 action->handler = handler; request_percpu_irq()
H A Dgeneric-chip.c207 void __iomem *reg_base, irq_flow_handler_t handler) irq_init_generic_chip()
214 gc->chip_types->handler = handler; irq_init_generic_chip()
223 * @handler: Default flow handler associated with this chip
226 * to the primary (index 0) irq_chip_type and @handler
230 void __iomem *reg_base, irq_flow_handler_t handler) irq_alloc_generic_chip()
238 handler); irq_alloc_generic_chip()
268 * @handler: Default flow handler associated with these chips
275 irq_flow_handler_t handler, irq_alloc_domain_generic_chips()
312 NULL, handler); irq_alloc_domain_generic_chips()
408 irq_set_chip_and_handler(virq, chip, ct->handler); irq_map_generic_chip()
431 * associated handler.
462 irq_set_chip_and_handler(i, chip, ct->handler); irq_setup_generic_chip()
486 irq_data_to_desc(d)->handle_irq = ct->handler; irq_setup_alt_chip()
516 /* Remove handler first. That will mask the irq line */ irq_remove_generic_chip()
205 irq_init_generic_chip(struct irq_chip_generic *gc, const char *name, int num_ct, unsigned int irq_base, void __iomem *reg_base, irq_flow_handler_t handler) irq_init_generic_chip() argument
229 irq_alloc_generic_chip(const char *name, int num_ct, unsigned int irq_base, void __iomem *reg_base, irq_flow_handler_t handler) irq_alloc_generic_chip() argument
273 irq_alloc_domain_generic_chips(struct irq_domain *d, int irqs_per_chip, int num_ct, const char *name, irq_flow_handler_t handler, unsigned int clr, unsigned int set, enum irq_gc_flags gcflags) irq_alloc_domain_generic_chips() argument
/linux-4.1.27/Documentation/filesystems/
H A Ddnotify_test.c10 static void handler(int sig, siginfo_t *si, void *data) handler() function
20 act.sa_sigaction = handler; main()
/linux-4.1.27/kernel/power/
H A Dpoweroff.c2 * poweroff.c - sysrq handler to gracefully power down machine.
34 .handler = handle_poweroff,
/linux-4.1.27/arch/m68k/68360/
H A Dcommproc.c67 irq_handler_t handler; member in struct:cpm_action
75 void cpm_install_handler(int vec, irq_handler_t handler, void *dev_id);
147 /* Set our interrupt handler with the core CPU. */ cpm_interrupt_init()
151 /* Install our own error handler. cpm_interrupt_init()
173 /* call that vector's handler */ cpm_interrupt()
185 if (cpm_vecs[vec].handler != 0) cpm_interrupt()
186 (*cpm_vecs[vec].handler)(cpm_vecs[vec].dev_id); cpm_interrupt()
201 * tests in the interrupt handler.
208 /* Install a CPM interrupt handler.
211 cpm_install_handler(int vec, irq_handler_t handler, void *dev_id) cpm_install_handler() argument
214 request_irq(vec, handler, 0, "timer", dev_id); cpm_install_handler()
216 /* if (cpm_vecs[vec].handler != 0) */ cpm_install_handler()
218 /* (uint)handler, (uint)cpm_vecs[vec].handler); */ cpm_install_handler()
219 /* cpm_vecs[vec].handler = handler; */ cpm_install_handler()
227 /* Free a CPM interrupt handler.
232 cpm_vecs[vec].handler = NULL; cpm_free_handler()
/linux-4.1.27/arch/sh/drivers/dma/
H A Ddmabrg.c51 * dmabrg_request_irq(BRGIRQID, handler, data)
54 * handler prototype: void brgirqhandler(void *data)
70 void (*handler)(void *); member in struct:dmabrg_handler
76 dmabrg_handlers[i].handler(dmabrg_handlers[i].data); dmabrg_call_handler()
80 * main DMABRG irq handler. It acks irqs and then
126 int dmabrg_request_irq(unsigned int dmairq, void(*handler)(void*), dmabrg_request_irq()
129 if ((dmairq > 9) || !handler) dmabrg_request_irq()
131 if (dmabrg_handlers[dmairq].handler) dmabrg_request_irq()
134 dmabrg_handlers[dmairq].handler = handler; dmabrg_request_irq()
146 dmabrg_handlers[dmairq].handler = NULL; dmabrg_free_irq()
H A Ddma-pvr2.c71 .name = "pvr2 DMA handler",
72 .handler = pvr2_dma_interrupt,
/linux-4.1.27/arch/m68k/atari/
H A Dstdma.c64 * @handler: interrupt handler to use after acquisition
69 int stdma_try_lock(irq_handler_t handler, void *data) stdma_try_lock() argument
80 stdma_isr = handler; stdma_try_lock()
104 void stdma_lock(irq_handler_t handler, void *data) stdma_lock() argument
109 wait_event(stdma_wait, stdma_try_lock(handler, data)); stdma_lock()
143 * @handler: interrupt handler previously used to acquire lock.
145 * Returns !0 if locked for the given handler; 0 otherwise.
148 int stdma_is_locked_by(irq_handler_t handler) stdma_is_locked_by() argument
154 result = stdma_locked && (stdma_isr == handler); stdma_is_locked_by()
/linux-4.1.27/drivers/uwb/
H A Duwbd.c79 * UWBD Event handler function signature
81 * Return !0 if the event needs not to be freed (ie the handler
93 * @handler: the function that will handle this event
97 uwbd_evt_handler_f handler; member in struct:uwbd_event
104 .handler = uwbd_evt_handle_rc_ie_rcv,
108 .handler = uwbd_evt_handle_rc_beacon,
112 .handler = uwbd_evt_handle_rc_beacon_size,
116 .handler = uwbd_evt_handle_rc_bpoie_change,
120 .handler = uwbd_evt_handle_rc_bp_slot_change,
124 .handler = uwbd_evt_handle_rc_drp_avail,
128 .handler = uwbd_evt_handle_rc_drp,
132 .handler = uwbd_evt_handle_rc_dev_addr_conflict,
156 .handler = uwbd_msg_handle_reset,
171 * handler.
173 * The event structure passed to the event handler has the radio
175 * once the handler returns, so if it needs it for longer (async),
183 uwbd_evt_handler_f handler; uwbd_event_handle_urc() local
198 handler = type_table->uwbd_events[event].handler; uwbd_event_handle_urc()
199 if (handler == NULL) uwbd_event_handle_urc()
202 result = (*handler)(evt); uwbd_event_handle_urc()
223 result = uwbd_message_handlers[evt->message].handler(evt); uwbd_event_handle_message()
/linux-4.1.27/arch/x86/include/asm/
H A Dmshyperv.h20 void hv_setup_vmbus_irq(void (*handler)(void));
H A Dnmi.h41 nmi_handler_t handler; member in struct:nmiaction
51 .handler = (fn), \
/linux-4.1.27/arch/xtensa/include/uapi/asm/
H A Dptrace.h46 #define EXC_TABLE_FIXUP 0x00c /* Fixup handler */
48 #define EXC_TABLE_SYSCALL_SAVE 0x014 /* For fast syscall handler */
49 #define EXC_TABLE_FAST_USER 0x100 /* Fast user exception handler */
50 #define EXC_TABLE_FAST_KERNEL 0x200 /* Fast kernel exception handler */
/linux-4.1.27/arch/sh/lib64/
H A Dpanic.c13 /* Never return from the panic handler */ panic_handler()
/linux-4.1.27/arch/um/include/shared/
H A Dirq_kern.h13 irq_handler_t handler,
/linux-4.1.27/arch/mn10300/kernel/
H A Dsmp-low.S1 /* SMP IPI low-level handler
27 # IPI interrupt handler
54 # Cache flush IPI interrupt handler
75 # SMP boot CPU IPI interrupt handler
H A Dmn10300-watchdog-low.S3 # MN10300 Watchdog interrupt handler
25 # Watchdog handler entry point
/linux-4.1.27/arch/parisc/include/asm/
H A Dftrace.h18 * Primary handler of a function return.
/linux-4.1.27/arch/c6x/kernel/
H A Dvectors.S18 .macro IRQVEC name, handler
25 || MVKL .S1 \handler,A0
26 MVKH .S1 \handler,A0
34 B .S2 \handler
/linux-4.1.27/arch/arm/mach-imx/
H A Dssi-fiq-ksym.c2 * Exported ksyms for the SSI FIQ handler
/linux-4.1.27/fs/btrfs/
H A Dprops.c109 const struct prop_handler *handler; __btrfs_set_prop() local
115 handler = find_prop_handler(name, NULL); __btrfs_set_prop()
116 if (!handler) __btrfs_set_prop()
120 ret = __btrfs_setxattr(trans, inode, handler->xattr_name, __btrfs_set_prop()
125 ret = handler->apply(inode, NULL, 0); __btrfs_set_prop()
131 ret = handler->validate(value, value_len); __btrfs_set_prop()
134 ret = __btrfs_setxattr(trans, inode, handler->xattr_name, __btrfs_set_prop()
138 ret = handler->apply(inode, value, value_len); __btrfs_set_prop()
140 __btrfs_setxattr(trans, inode, handler->xattr_name, __btrfs_set_prop()
212 const struct prop_handler *handler; iterate_object_props() local
236 handler = find_prop_handler(name_buf, handlers); iterate_object_props()
237 if (!handler) iterate_object_props()
251 iterator(ctx, handler, value_buf, data_len); iterate_object_props()
271 const struct prop_handler *handler, inode_prop_iterator()
279 ret = handler->apply(inode, value, len); inode_prop_iterator()
283 handler->xattr_name, btrfs_ino(inode), inode_prop_iterator()
270 inode_prop_iterator(void *ctx, const struct prop_handler *handler, const char *value, size_t len) inode_prop_iterator() argument
/linux-4.1.27/net/atm/
H A Dprotocols.h1 /* net/atm/protocols.h - ATM protocol handler entry points */
/linux-4.1.27/tools/testing/selftests/powerpc/pmu/ebb/
H A DMakefile4 # The EBB handler is 64-bit code and everything links against it
H A Dback_to_back_ebbs_test.c16 * Test that if we overflow the counter while in the EBB handler, we take
17 * another EBB on exiting from the handler.
20 * overflow the PMU while we're still in the EBB handler, leading to another
H A Debb_on_willing_child_test.c27 /* Setup our EBB handler, before the EBB event is created */ victim_child()
66 /* Signal the child to setup its EBB handler */ ebb_on_willing_child()
/linux-4.1.27/drivers/scsi/bfa/
H A Dbfa_hw_ct.c25 * Dummy interrupt handler for handling spurious interrupt during chip-reinit.
128 bfa->msix.handler[BFI_MSIX_LPU_ERR_CT] = bfa_msix_all; bfa_hwct_msix_ctrl_install()
130 bfa->msix.handler[BFI_MSIX_LPU_ERR_CT] = bfa_msix_lpu_err; bfa_hwct_msix_ctrl_install()
143 bfa->msix.handler[i] = bfa_msix_all; bfa_hwct_msix_queue_install()
148 bfa->msix.handler[i] = bfa_msix_reqq; bfa_hwct_msix_queue_install()
151 bfa->msix.handler[i] = bfa_msix_rspq; bfa_hwct_msix_queue_install()
160 bfa->msix.handler[i] = bfa_hwct_msix_dummy; bfa_hwct_msix_uninstall()
H A Dbfa_hw_cb.c104 * Dummy interrupt handler for handling spurious interrupts.
133 bfa->msix.handler[i] = bfa_msix_all; bfa_hwcb_msix_ctrl_install()
138 bfa->msix.handler[i] = bfa_msix_lpu_err; bfa_hwcb_msix_ctrl_install()
151 bfa->msix.handler[i] = bfa_msix_all; bfa_hwcb_msix_queue_install()
156 bfa->msix.handler[i] = bfa_msix_reqq; bfa_hwcb_msix_queue_install()
159 bfa->msix.handler[i] = bfa_msix_rspq; bfa_hwcb_msix_queue_install()
168 bfa->msix.handler[i] = bfa_hwcb_msix_dummy; bfa_hwcb_msix_uninstall()
/linux-4.1.27/arch/x86/platform/iris/
H A Diris.c42 MODULE_DESCRIPTION("A power_off handler for Iris devices from EuroBraille");
48 MODULE_PARM_DESC(force, "Set to one to force poweroff handler installation.");
60 * Before installing the power_off handler, try to make sure the OS is
70 "Power off handler not installed.\n"); iris_probe()
75 printk(KERN_INFO "Iris power_off handler installed.\n"); iris_probe()
82 printk(KERN_INFO "Iris power_off handler uninstalled.\n"); iris_remove()
110 " The Iris poweroff handler will not be installed.\n"); iris_init()
/linux-4.1.27/arch/ia64/hp/common/
H A Daml_nfw.c2 * OpRegion handler to allow AML to call native firmware
17 * interfaces such as PAL or SAL. This OpRegion handler adds such a mechanism.
18 * After the handler is installed, an AML method can call native firmware by
21 * handler loads up the arguments, makes the firmware call, and returns the
31 MODULE_DESCRIPTION("ACPI opregion handler for native firmware calls");
35 MODULE_PARM_DESC(force, "Install opregion handler even without HPQ5001 device");
159 printk(KERN_INFO "Global 0x%02X opregion handler registered\n", aml_nfw_add_global_handler()
177 printk(KERN_INFO "Global 0x%02X opregion handler removed\n", aml_nfw_remove_global_handler()
186 * the address space handler for the specific device we found. aml_nfw_add()
188 * and always puts the handler at the root, so we'll do the same. aml_nfw_add()
/linux-4.1.27/drivers/acpi/
H A Dtables.c219 acpi_tbl_entry_handler handler, acpi_parse_entries()
230 if (!id || !handler) acpi_parse_entries()
252 if (handler(entry, table_end)) acpi_parse_entries()
283 acpi_tbl_entry_handler handler, acpi_table_parse_entries()
294 if (!id || !handler) acpi_table_parse_entries()
306 count = acpi_parse_entries(id, table_size, handler, table_header, acpi_table_parse_entries()
315 acpi_tbl_entry_handler handler, unsigned int max_entries) acpi_table_parse_madt()
319 handler, max_entries); acpi_table_parse_madt()
323 * acpi_table_parse - find table with @id, run @handler on it
325 * @handler: handler to run
328 * run @handler on it.
332 int __init acpi_table_parse(char *id, acpi_tbl_table_handler handler) acpi_table_parse() argument
340 if (!id || !handler) acpi_table_parse()
349 handler(table); acpi_table_parse()
218 acpi_parse_entries(char *id, unsigned long table_size, acpi_tbl_entry_handler handler, struct acpi_table_header *table_header, int entry_id, unsigned int max_entries) acpi_parse_entries() argument
280 acpi_table_parse_entries(char *id, unsigned long table_size, int entry_id, acpi_tbl_entry_handler handler, unsigned int max_entries) acpi_table_parse_entries() argument
314 acpi_table_parse_madt(enum acpi_madt_type id, acpi_tbl_entry_handler handler, unsigned int max_entries) acpi_table_parse_madt() argument
H A Dec.c809 acpi_ec_get_query_handler(struct acpi_ec_query_handler *handler) acpi_ec_get_query_handler() argument
811 if (handler) acpi_ec_get_query_handler()
812 kref_get(&handler->kref); acpi_ec_get_query_handler()
813 return handler; acpi_ec_get_query_handler()
818 struct acpi_ec_query_handler *handler = acpi_ec_query_handler_release() local
821 kfree(handler); acpi_ec_query_handler_release()
824 static void acpi_ec_put_query_handler(struct acpi_ec_query_handler *handler) acpi_ec_put_query_handler() argument
826 kref_put(&handler->kref, acpi_ec_query_handler_release); acpi_ec_put_query_handler()
833 struct acpi_ec_query_handler *handler = acpi_ec_add_query_handler() local
836 if (!handler) acpi_ec_add_query_handler()
839 handler->query_bit = query_bit; acpi_ec_add_query_handler()
840 handler->handle = handle; acpi_ec_add_query_handler()
841 handler->func = func; acpi_ec_add_query_handler()
842 handler->data = data; acpi_ec_add_query_handler()
844 kref_init(&handler->kref); acpi_ec_add_query_handler()
845 list_add(&handler->node, &ec->list); acpi_ec_add_query_handler()
853 struct acpi_ec_query_handler *handler, *tmp; acpi_ec_remove_query_handler() local
857 list_for_each_entry_safe(handler, tmp, &ec->list, node) { acpi_ec_remove_query_handler()
858 if (query_bit == handler->query_bit) { acpi_ec_remove_query_handler()
859 list_del_init(&handler->node); acpi_ec_remove_query_handler()
860 list_add(&handler->node, &free_list); acpi_ec_remove_query_handler()
864 list_for_each_entry_safe(handler, tmp, &free_list, node) acpi_ec_remove_query_handler()
865 acpi_ec_put_query_handler(handler); acpi_ec_remove_query_handler()
871 struct acpi_ec_query_handler *handler = cxt; acpi_ec_run() local
873 if (!handler) acpi_ec_run()
875 ec_dbg_evt("Query(0x%02x) started", handler->query_bit); acpi_ec_run()
876 if (handler->func) acpi_ec_run()
877 handler->func(handler->data); acpi_ec_run()
878 else if (handler->handle) acpi_ec_run()
879 acpi_evaluate_object(handler->handle, NULL, NULL, NULL); acpi_ec_run()
880 ec_dbg_evt("Query(0x%02x) stopped", handler->query_bit); acpi_ec_run()
881 acpi_ec_put_query_handler(handler); acpi_ec_run()
889 struct acpi_ec_query_handler *handler; acpi_ec_query() local
908 list_for_each_entry(handler, &ec->list, node) { acpi_ec_query()
909 if (value == handler->query_bit) { acpi_ec_query()
910 /* have custom handler for this bit */ acpi_ec_query()
911 handler = acpi_ec_get_query_handler(handler); acpi_ec_query()
913 handler->query_bit); acpi_ec_query()
914 status = acpi_os_execute((handler->func) ? acpi_ec_query()
916 acpi_ec_run, handler); acpi_ec_query()
1100 pr_err("failed to remove space handler\n"); ec_remove_handlers()
1103 pr_err("failed to remove gpe handler\n"); ec_remove_handlers()
1165 struct acpi_ec_query_handler *handler, *tmp; acpi_ec_remove() local
1173 list_for_each_entry_safe(handler, tmp, &ec->list, node) { acpi_ec_remove()
1174 list_del(&handler->node); acpi_ec_remove()
1175 kfree(handler); acpi_ec_remove()
H A Dacpi_cmos_rtc.c67 pr_err(PREFIX "Error installing CMOS-RTC region handler\n"); acpi_install_cmos_rtc_space_handler()
78 pr_err(PREFIX "Error removing CMOS-RTC region handler\n"); acpi_remove_cmos_rtc_space_handler()
H A Dscan.c95 int acpi_scan_add_handler(struct acpi_scan_handler *handler) acpi_scan_add_handler() argument
97 if (!handler) acpi_scan_add_handler()
100 list_add_tail(&handler->list_node, &acpi_scan_handlers_list); acpi_scan_add_handler()
104 int acpi_scan_add_handler_with_hotplug(struct acpi_scan_handler *handler, acpi_scan_add_handler_with_hotplug() argument
109 error = acpi_scan_add_handler(handler); acpi_scan_add_handler_with_hotplug()
113 acpi_sysfs_add_hotplug_profile(&handler->hotplug, hotplug_profile_name); acpi_scan_add_handler_with_hotplug()
408 if (device->handler && !device->handler->hotplug.enabled) { acpi_bus_offline()
519 if (device->handler && device->handler->hotplug.demand_offline acpi_scan_hot_remove()
579 * the scan handler is not attached to this device object yet acpi_scan_device_check()
584 if (adev->handler) { acpi_scan_device_check()
593 if (!adev->handler) { acpi_scan_device_check()
605 struct acpi_scan_handler *handler = adev->handler; acpi_scan_bus_check() local
614 if (handler && handler->hotplug.scan_dependent) acpi_scan_bus_check()
615 return handler->hotplug.scan_dependent(adev); acpi_scan_bus_check()
639 if (adev->handler && !adev->handler->hotplug.enabled) { acpi_generic_hotplug_event()
738 if ((!acpi_device->handler || !acpi_device->handler->hotplug.enabled) acpi_eject_store()
1197 if (acpi_dev->handler && !acpi_is_pnp_device(acpi_dev)) acpi_device_probe()
2221 static bool acpi_scan_handler_matching(struct acpi_scan_handler *handler, acpi_scan_handler_matching() argument
2227 if (handler->match) acpi_scan_handler_matching()
2228 return handler->match(idstr, matchid); acpi_scan_handler_matching()
2230 for (devid = handler->ids; devid->id[0]; devid++) acpi_scan_handler_matching()
2244 struct acpi_scan_handler *handler; acpi_scan_match_handler() local
2246 list_for_each_entry(handler, &acpi_scan_handlers_list, list_node) acpi_scan_match_handler()
2247 if (acpi_scan_handler_matching(handler, idstr, matchid)) acpi_scan_match_handler()
2248 return handler; acpi_scan_match_handler()
2274 struct acpi_scan_handler *handler; acpi_scan_init_hotplug() local
2276 handler = acpi_scan_match_handler(hwid->id, NULL); acpi_scan_init_hotplug()
2277 if (handler) { acpi_scan_init_hotplug()
2437 struct acpi_scan_handler *handler; acpi_scan_attach_handler() local
2439 handler = acpi_scan_match_handler(hwid->id, &devid); acpi_scan_attach_handler()
2440 if (handler) { acpi_scan_attach_handler()
2441 if (!handler->attach) { acpi_scan_attach_handler()
2445 device->handler = handler; acpi_scan_attach_handler()
2446 ret = handler->attach(device, devid); acpi_scan_attach_handler()
2450 device->handler = NULL; acpi_scan_attach_handler()
2475 if (device->handler) acpi_bus_attach()
2506 if (device->handler && device->handler->hotplug.notify_online) acpi_bus_attach()
2507 device->handler->hotplug.notify_online(device); acpi_bus_attach()
2571 struct acpi_scan_handler *handler = adev->handler; acpi_bus_trim() local
2578 if (handler) { acpi_bus_trim()
2579 if (handler->detach) acpi_bus_trim()
2580 handler->detach(adev); acpi_bus_trim()
2582 adev->handler = NULL; acpi_bus_trim()
/linux-4.1.27/arch/cris/arch-v32/mm/
H A Dmmu.S1 ; WARNING : The refill handler has been modified, see below !!!
37 ; Bus fault handler. Extracts relevant information and calls mm subsystem
39 .macro MMU_BUS_FAULT_HANDLER handler, mmu, we, ex
40 .globl \handler
41 .type \handler,"function"
42 \handler:
56 .size \handler, . - \handler
59 ; Refill handler. Three cases may occur:
82 .macro MMU_REFILL_HANDLER handler, mmu
88 .globl \handler
89 .type \handler, "function"
90 \handler:
198 .size \handler, . - \handler
/linux-4.1.27/arch/arc/kernel/
H A Dsignal.c42 * setup_frame( ) sets up PC,SP,BLINK to enable user space signal handler
44 * on resuming user mode, signal handler branches off to BTA of orig JMP
138 * signal handler and/or restorer which clobberes the status32/ret SYSCALL_DEFINE0()
188 * during signal handler execution. This works for SA_SIGINFO as well setup_rt_frame()
195 * SA_SIGINFO requires 3 args to signal handler: setup_rt_frame()
196 * #1: sig-no (common to any handler) setup_rt_frame()
206 /* setup args 2 and 3 for user mode handler */ setup_rt_frame()
221 /* #1 arg to the user Signal handler */ setup_rt_frame()
224 /* setup PC of user space signal handler */ setup_rt_frame()
228 * handler returns using sigreturn stub provided already by userpsace setup_rt_frame()
236 /* User Stack for signal handler will be above the frame just carved */ setup_rt_frame()
240 * Bug 94183, Clear the DE bit, so that when signal handler setup_rt_frame()
256 * only be restarted if there was no handler for arc_restart_syscall()
258 * is a handler, we don't restart arc_restart_syscall()
266 * there is no handler or the handler was arc_restart_syscall()
278 * be called again after the signal handler returns. arc_restart_syscall()
293 * OK, we're invoking a handler
324 /* No handler for syscall: restart it */ do_signal()
H A Dreset.c23 pr_info("Put your restart handler here\n"); machine_restart()
H A Dkprobes.c209 * was hit while within the handler, we save the original arc_kprobe_handler()
226 /* If we have no pre-handler or it returned 0, we continue with arc_kprobe_handler()
227 * normal processing. If we have a pre-handler and it returned arc_kprobe_handler()
230 * the break-handler which is invoked by a kprobe from arc_kprobe_handler()
309 * exception handler as if it is regular exception. In our kprobe_fault_handler()
325 * We are here because the instructions in the pre/post handler kprobe_fault_handler()
337 * handler caused the page_fault, this could happen kprobe_fault_handler()
338 * if handler tries to access user space by kprobe_fault_handler()
340 * user-specified handler try to fix it first. kprobe_fault_handler()
346 * In case the user-specified fault handler returned zero, kprobe_fault_handler()
467 if (ri->rp && ri->rp->handler) hlist_for_each_entry_safe()
468 ri->rp->handler(ri, regs); hlist_for_each_entry_safe()
495 /* By returning a non zero value, we are telling the kprobe handler
/linux-4.1.27/drivers/extcon/
H A Dextcon-adc-jack.c36 * @handling_delay: interrupt handler will schedule extcon event
38 * @handler: extcon event handler called by interrupt handler.
51 struct delayed_work handler; member in struct:adc_jack_data
60 handler); adc_jack_handler()
91 &data->handler, data->handling_delay); adc_jack_irq_thread()
145 INIT_DEFERRABLE_WORK(&data->handler, adc_jack_handler); adc_jack_probe()
175 cancel_work_sync(&data->handler.work); adc_jack_remove()
/linux-4.1.27/arch/mips/lib/
H A Dmemcpy.S61 * When an exception happens on a load, the handler must
71 * The exception handler for loads requires that:
108 * handler : Exception handler
111 #define EXC(insn, type, reg, addr, handler) \
115 PTR 9b, handler; \
124 PTR 9b, handler; \
129 * exception handler or EVA insn \
145 #define LOAD(reg, addr, handler) EXC(ld, LD_INSN, reg, addr, handler)
146 #define LOADL(reg, addr, handler) EXC(ldl, LD_INSN, reg, addr, handler)
147 #define LOADR(reg, addr, handler) EXC(ldr, LD_INSN, reg, addr, handler)
148 #define STOREL(reg, addr, handler) EXC(sdl, ST_INSN, reg, addr, handler)
149 #define STORER(reg, addr, handler) EXC(sdr, ST_INSN, reg, addr, handler)
150 #define STORE(reg, addr, handler) EXC(sd, ST_INSN, reg, addr, handler)
182 #define LOAD(reg, addr, handler) EXC(lw, LD_INSN, reg, addr, handler)
183 #define LOADL(reg, addr, handler) EXC(lwl, LD_INSN, reg, addr, handler)
184 #define LOADR(reg, addr, handler) EXC(lwr, LD_INSN, reg, addr, handler)
185 #define STOREL(reg, addr, handler) EXC(swl, ST_INSN, reg, addr, handler)
186 #define STORER(reg, addr, handler) EXC(swr, ST_INSN, reg, addr, handler)
187 #define STORE(reg, addr, handler) EXC(sw, ST_INSN, reg, addr, handler)
200 #define LOADB(reg, addr, handler) EXC(lb, LD_INSN, reg, addr, handler)
201 #define STOREB(reg, addr, handler) EXC(sb, ST_INSN, reg, addr, handler)
H A Dstrlen_user.S14 #define EX(insn,reg,addr,handler) \
17 PTR 9b, handler; \
H A Dcsum_partial.S324 * The exception handler for loads requires that:
356 * handler : Exception handler
358 #define EXC(insn, type, reg, addr, handler) \
362 PTR 9b, handler; \
371 PTR 9b, handler; \
384 #define LOAD(reg, addr, handler) EXC(ld, LD_INSN, reg, addr, handler)
385 #define LOADBU(reg, addr, handler) EXC(lbu, LD_INSN, reg, addr, handler)
386 #define LOADL(reg, addr, handler) EXC(ldl, LD_INSN, reg, addr, handler)
387 #define LOADR(reg, addr, handler) EXC(ldr, LD_INSN, reg, addr, handler)
388 #define STOREB(reg, addr, handler) EXC(sb, ST_INSN, reg, addr, handler)
389 #define STOREL(reg, addr, handler) EXC(sdl, ST_INSN, reg, addr, handler)
390 #define STORER(reg, addr, handler) EXC(sdr, ST_INSN, reg, addr, handler)
391 #define STORE(reg, addr, handler) EXC(sd, ST_INSN, reg, addr, handler)
404 #define LOAD(reg, addr, handler) EXC(lw, LD_INSN, reg, addr, handler)
405 #define LOADBU(reg, addr, handler) EXC(lbu, LD_INSN, reg, addr, handler)
406 #define LOADL(reg, addr, handler) EXC(lwl, LD_INSN, reg, addr, handler)
407 #define LOADR(reg, addr, handler) EXC(lwr, LD_INSN, reg, addr, handler)
408 #define STOREB(reg, addr, handler) EXC(sb, ST_INSN, reg, addr, handler)
409 #define STOREL(reg, addr, handler) EXC(swl, ST_INSN, reg, addr, handler)
410 #define STORER(reg, addr, handler) EXC(swr, ST_INSN, reg, addr, handler)
411 #define STORE(reg, addr, handler) EXC(sw, ST_INSN, reg, addr, handler)
H A Dstrncpy_user.S14 #define EX(insn,reg,addr,handler) \
17 PTR 9b, handler; \
H A Dstrnlen_user.S13 #define EX(insn,reg,addr,handler) \
16 PTR 9b, handler; \
/linux-4.1.27/net/wireless/
H A Dwext-priv.c79 * Wrapper to call a private Wireless Extension handler.
90 * a iw_handler but process it in your ioctl handler (i.e. use the
111 /* Check for sub-ioctl handler */ get_priv_descr_and_size()
139 iw_handler handler, struct net_device *dev, ioctl_private_iw_point()
167 /* Call the handler */ ioctl_private_iw_point()
168 err = handler(dev, info, (union iwreq_data *) iwp, extra); ioctl_private_iw_point()
189 iw_handler handler) ioctl_private_call()
199 ret = handler(dev, info, &(iwr->u), (char *) &(iwr->u)); ioctl_private_call()
202 handler, dev, info, extra_size); ioctl_private_call()
205 /* Call commit handler if needed and defined */ ioctl_private_call()
215 iw_handler handler) compat_private_call()
225 ret = handler(dev, info, &(iwr->u), (char *) &(iwr->u)); compat_private_call()
236 handler, dev, info, extra_size); compat_private_call()
243 /* Call commit handler if needed and defined */ compat_private_call()
137 ioctl_private_iw_point(struct iw_point *iwp, unsigned int cmd, const struct iw_priv_args *descr, iw_handler handler, struct net_device *dev, struct iw_request_info *info, int extra_size) ioctl_private_iw_point() argument
187 ioctl_private_call(struct net_device *dev, struct iwreq *iwr, unsigned int cmd, struct iw_request_info *info, iw_handler handler) ioctl_private_call() argument
213 compat_private_call(struct net_device *dev, struct iwreq *iwr, unsigned int cmd, struct iw_request_info *info, iw_handler handler) compat_private_call() argument
/linux-4.1.27/sound/firewire/dice/
H A Ddice-transaction.c313 struct fw_address_handler *handler = &dice->notification_handler; snd_dice_transaction_destroy() local
315 if (handler->callback_data == NULL) snd_dice_transaction_destroy()
320 fw_core_remove_address_handler(handler); snd_dice_transaction_destroy()
321 handler->callback_data = NULL; snd_dice_transaction_destroy()
326 struct fw_address_handler *handler = &dice->notification_handler; snd_dice_transaction_reinit() local
328 if (handler->callback_data == NULL) snd_dice_transaction_reinit()
336 struct fw_address_handler *handler = &dice->notification_handler; snd_dice_transaction_init() local
353 handler->length = 4; snd_dice_transaction_init()
354 handler->address_callback = dice_notification; snd_dice_transaction_init()
355 handler->callback_data = dice; snd_dice_transaction_init()
356 err = fw_core_add_address_handler(handler, &fw_high_memory_region); snd_dice_transaction_init()
358 handler->callback_data = NULL; snd_dice_transaction_init()
365 fw_core_remove_address_handler(handler); snd_dice_transaction_init()
366 handler->callback_data = NULL; snd_dice_transaction_init()
/linux-4.1.27/drivers/gpu/drm/msm/mdp/
H A Dmdp_kms.c58 struct mdp_irq *handler, *n; mdp_dispatch_irqs() local
63 list_for_each_entry_safe(handler, n, &mdp_kms->irq_list, node) { mdp_dispatch_irqs()
64 if (handler->irqmask & status) { mdp_dispatch_irqs()
66 handler->irq(handler, handler->irqmask & status); mdp_dispatch_irqs()
/linux-4.1.27/arch/m68k/kernel/
H A Dints.c69 * @handler: called from auto vector interrupts
71 * setup the handler to be called from auto vector interrupts instead of the
75 void __init m68k_setup_auto_interrupt(void (*handler)(unsigned int, struct pt_regs *)) m68k_setup_auto_interrupt()
77 if (handler) m68k_setup_auto_interrupt()
78 *auto_irqhandler_fixup = (u32)handler; m68k_setup_auto_interrupt()
106 * @handle: flow handler which handles specified irq
/linux-4.1.27/arch/m68k/ifpsp060/
H A Dfskeleton.S71 | is present. The routine below should point to the operating system handler
83 bral trap | jump to trap handler
90 | is present. The routine below should point to the operating system handler
102 bral trap | jump to trap handler
108 | is present. The routine below should point to the operating system handler
121 bral trap | jump to trap handler
127 | is present. The routine below should point to the operating system handler
140 bral trap | jump to trap handler
146 | is present. The routine below should point to the operating system handler
159 bral trap | jump to trap handler
165 | is present. The routine below should point to the operating system handler
178 bral trap | jump to trap handler
184 | is present. The routine below should point to the operating system handler
200 bral trap | jump to trap handler
214 bral trap | jump to trap handler
247 | system handler for the trap exception vector number 7.
253 bral trap | jump to trap handler
/linux-4.1.27/arch/metag/tbx/
H A Dtbidefr.S30 /* D1Ar1,D0Ar2,D1Ar5,D0Ar6 -- Arguments to handler, must be preserved
60 * handler wouldnt have been called otherwise.
77 /* Get the handler using the signal number
80 * D0Re0 -- Offset into TBI struct containing handler address
82 * D1RtP -- Address of handler
94 * Do this here in case the handler enables nested interrupts
100 /* Call the handler */
108 /* D1Ar1,D0Ar2,D1Ar5,D0Ar6 -- Arguments to handler, must be preserved
123 * handler wouldnt have been called otherwise.
150 * Do this here in case the handler enables nested interrupts
159 /* Get the handler using the signal number
162 * D0Re0 -- Address of handler
168 /* Tailcall the handler */
/linux-4.1.27/drivers/leds/
H A Dleds-sunfire.c116 set_handler handler; member in struct:led_type
147 lp->brightness_set = types[i].handler; sunfire_led_generic_probe()
179 .handler = clockboard_left_set,
183 .handler = clockboard_middle_set,
187 .handler = clockboard_right_set,
200 .handler = fhc_left_set,
204 .handler = fhc_middle_set,
208 .handler = fhc_right_set,
/linux-4.1.27/arch/xtensa/include/asm/
H A Dtraps.h16 * handler must be either of the following:
20 extern void * __init trap_set_handler(int cause, void *handler);
/linux-4.1.27/drivers/watchdog/
H A Docteon-wdt-nmi.S54 /* Load the address of the third stage handler */
56 /* Call the third stage handler */
/linux-4.1.27/include/linux/platform_data/
H A Dmmc-mxcmmc.h21 * The board code can call 'handler' on a card detection
24 int (*init)(struct device *dev, irq_handler_t handler, void *data);
H A Dremoteproc-omap.h31 * @device_enable: omap-specific handler for enabling a device
32 * @device_shutdown: omap-specific handler for shutting down a device
33 * @set_bootaddr: omap-specific handler for setting the rproc boot address
/linux-4.1.27/arch/m68k/coldfire/
H A Dvectors.c47 * There is a common trap handler and common interrupt trap_init()
48 * handler that handle almost every vector. We treat trap_init()
H A Dsltimers.c55 .handler = mcfslt_profile_tick,
97 .handler = mcfslt_tick,
126 void hw_timer_init(irq_handler_t handler) hw_timer_init() argument
141 timer_interrupt = handler; hw_timer_init()
H A Dtimers.c87 .handler = mcftmr_tick,
118 void hw_timer_init(irq_handler_t handler) hw_timer_init() argument
134 timer_interrupt = handler; hw_timer_init()
175 .handler = coldfire_profile_tick,
/linux-4.1.27/arch/m68k/fpsp040/
H A Dx_bsun.S4 | fpsp_bsun --- FPSP handler for branch/set on unordered exception
8 | The real_bsun handler will need to perform further corrective
/linux-4.1.27/drivers/gpu/vga/
H A Dvga_switcheroo.c59 struct vga_switcheroo_handler *handler; member in struct:vgasr_priv
77 /* we're ready if we get two clients + handler */ vga_switcheroo_ready()
79 vgasr_priv.registered_clients == 2 && vgasr_priv.handler; vga_switcheroo_ready()
87 /* call the handler to init */ vga_switcheroo_enable()
88 if (vgasr_priv.handler->init) vga_switcheroo_enable()
89 vgasr_priv.handler->init(); vga_switcheroo_enable()
94 ret = vgasr_priv.handler->get_client_id(client->pdev); vga_switcheroo_enable()
104 int vga_switcheroo_register_handler(struct vga_switcheroo_handler *handler) vga_switcheroo_register_handler() argument
107 if (vgasr_priv.handler) { vga_switcheroo_register_handler()
112 vgasr_priv.handler = handler; vga_switcheroo_register_handler()
125 vgasr_priv.handler = NULL; vga_switcheroo_unregister_handler()
287 if (vgasr_priv.handler->power_state) vga_switchon()
288 vgasr_priv.handler->power_state(client->id, VGA_SWITCHEROO_ON); vga_switchon()
301 if (vgasr_priv.handler->power_state) vga_switchoff()
302 vgasr_priv.handler->power_state(client->id, VGA_SWITCHEROO_OFF); vga_switchoff()
356 ret = vgasr_priv.handler->switchto(new_client->id); vga_switchto_stage2()
471 ret = vgasr_priv.handler->switchto(client_id); vga_switcheroo_debugfs_write()
586 if (!vgasr_priv.handler->power_state) vga_switcheroo_power_switch()
596 vgasr_priv.handler->power_state(client->id, state); vga_switcheroo_power_switch()
626 if (vgasr_priv.handler->switchto) vga_switcheroo_runtime_suspend()
627 vgasr_priv.handler->switchto(VGA_SWITCHEROO_IGD); vga_switcheroo_runtime_suspend()
/linux-4.1.27/net/irda/
H A Dparameters.c87 /* Call handler for this parameter */ irda_insert_no_value()
90 /* Extract values anyway, since handler may need them */ irda_insert_no_value()
111 /* Extract values anyway, since handler may need them */ irda_extract_no_value()
114 /* Call handler for this parameter */ irda_extract_no_value()
133 p.pi = pi; /* In case handler needs to know */ irda_insert_integer()
137 /* Call handler for this parameter */ irda_insert_integer()
144 * integer, and (2) the handler function does not care which length irda_insert_integer()
200 * handler for processing of the parameter
210 p.pi = pi; /* In case handler needs to know */ irda_extract_integer()
224 * handler want a 16 bits integer then a 32 bits is not good enough irda_extract_integer()
225 * PV_INTEGER means that the handler is flexible. irda_extract_integer()
233 * that the handler expect). This is necessary, as some irda_extract_integer()
275 /* Call handler for this parameter */ irda_extract_integer()
293 p.pi = pi; /* In case handler needs to know */ irda_extract_string()
320 /* Call handler for this parameter */ irda_extract_string()
336 p.pi = pi; /* In case handler needs to know */ irda_extract_octseq()
469 pr_debug("%s(), no handler for parameter=0x%02x\n", irda_param_insert()
482 /* Check if handler has been implemented */ irda_param_insert()
484 net_info_ratelimited("%s: no handler for pi=%#x\n", irda_param_insert()
524 pr_debug("%s(), no handler for parameter=0x%02x\n", irda_param_extract()
540 /* Check if handler has been implemented */ irda_param_extract()
542 net_info_ratelimited("%s: no handler for pi=%#x\n", irda_param_extract()
/linux-4.1.27/drivers/input/
H A Dapm-power.c52 static int apmpower_connect(struct input_handler *handler, apmpower_connect() argument
64 handle->handler = handler; apmpower_connect()
69 pr_err("Failed to register input power handler, error %d\n", apmpower_connect()
H A Dinput.c99 struct input_handler *handler = handle->handler; input_to_handler() local
103 if (handler->filter) { input_to_handler()
105 if (handler->filter(handle, v->type, v->code, v->value)) input_to_handler()
117 if (handler->events) input_to_handler()
118 handler->events(handle, vals, count); input_to_handler()
119 else if (handler->event) input_to_handler()
121 handler->event(handle, v->type, v->code, v->value); input_to_handler()
444 * input_inject_event() - send input event from input handler
556 if (handle->open && handle->handler->start) __input_release_device()
557 handle->handler->start(handle); __input_release_device()
934 static const struct input_device_id *input_match_device(struct input_handler *handler, input_match_device() argument
939 for (id = handler->id_table; id->flags || id->driver_info; id++) { input_match_device()
984 if (!handler->match || handler->match(handler, dev)) input_match_device()
991 static int input_attach_handler(struct input_dev *dev, struct input_handler *handler) input_attach_handler() argument
996 id = input_match_device(handler, dev); input_attach_handler()
1000 error = handler->connect(handler, dev, id); input_attach_handler()
1002 pr_err("failed to attach handler %s to device %s, error: %d\n", input_attach_handler()
1003 handler->name, kobject_name(&dev->dev.kobj), error); input_attach_handler()
1228 struct input_handler *handler = container_of(v, struct input_handler, node); input_handlers_seq_show() local
1231 seq_printf(seq, "N: Number=%u Name=%s", state->pos, handler->name); input_handlers_seq_show()
1232 if (handler->filter) input_handlers_seq_show()
1234 if (handler->legacy_minors) input_handlers_seq_show()
1235 seq_printf(seq, " Minor=%d", handler->minor); input_handlers_seq_show()
2034 handle->handler->disconnect(handle); __input_unregister_device()
2083 struct input_handler *handler; input_register_device() local
2150 list_for_each_entry(handler, &input_handler_list, node) input_register_device()
2151 input_attach_handler(dev, handler); input_register_device()
2202 * input_register_handler - register a new input handler
2203 * @handler: handler to be registered
2205 * This function registers a new input handler (interface) for input
2207 * are compatible with the handler.
2209 int input_register_handler(struct input_handler *handler) input_register_handler() argument
2218 INIT_LIST_HEAD(&handler->h_list); input_register_handler()
2220 list_add_tail(&handler->node, &input_handler_list); input_register_handler()
2223 input_attach_handler(dev, handler); input_register_handler()
2233 * input_unregister_handler - unregisters an input handler
2234 * @handler: handler to be unregistered
2236 * This function disconnects a handler from its input devices and
2239 void input_unregister_handler(struct input_handler *handler) input_unregister_handler() argument
2245 list_for_each_entry_safe(handle, next, &handler->h_list, h_node) input_unregister_handler()
2246 handler->disconnect(handle); input_unregister_handler()
2247 WARN_ON(!list_empty(&handler->h_list)); input_unregister_handler()
2249 list_del_init(&handler->node); input_unregister_handler()
2259 * @handler: input handler to iterate
2269 int input_handler_for_each_handle(struct input_handler *handler, void *data, input_handler_for_each_handle() argument
2277 list_for_each_entry_rcu(handle, &handler->h_list, h_node) { input_handler_for_each_handle()
2294 * and handler's lists so that events can flow through
2297 * This function is supposed to be called from handler's
2302 struct input_handler *handler = handle->handler; input_register_handle() local
2318 if (handler->filter) input_register_handle()
2331 list_add_tail_rcu(&handle->h_node, &handler->h_list); input_register_handle()
2333 if (handler->start) input_register_handle()
2334 handler->start(handle); input_register_handle()
2345 * and handler's lists.
2347 * This function is supposed to be called from handler's
2382 * This function should be called from input handler's ->connect() input_get_new_minor()
/linux-4.1.27/drivers/firewire/
H A Dcore-transaction.c77 /* returns 0 if the split timeout handler is already running */ try_cancel_split_timeout()
491 struct fw_address_handler *handler; lookup_overlapping_address_handler() local
493 list_for_each_entry_rcu(handler, list, link) { list_for_each_entry_rcu()
494 if (handler->offset < offset + length && list_for_each_entry_rcu()
495 offset < handler->offset + handler->length) list_for_each_entry_rcu()
496 return handler; list_for_each_entry_rcu()
502 static bool is_enclosing_handler(struct fw_address_handler *handler, is_enclosing_handler() argument
505 return handler->offset <= offset && is_enclosing_handler()
506 offset + length <= handler->offset + handler->length; is_enclosing_handler()
512 struct fw_address_handler *handler; lookup_enclosing_address_handler() local
514 list_for_each_entry_rcu(handler, list, link) { list_for_each_entry_rcu()
515 if (is_enclosing_handler(handler, offset, length)) list_for_each_entry_rcu()
516 return handler; list_for_each_entry_rcu()
550 * @handler: callback
553 * region->start, ->end, and handler->length have to be quadlet-aligned.
562 * The start offset of the handler's address region is determined by
563 * fw_core_add_address_handler() and is returned in handler->offset.
567 int fw_core_add_address_handler(struct fw_address_handler *handler, fw_core_add_address_handler() argument
576 handler->length & 3 || fw_core_add_address_handler()
577 handler->length == 0) fw_core_add_address_handler()
582 handler->offset = region->start; fw_core_add_address_handler()
583 while (handler->offset + handler->length <= region->end) { fw_core_add_address_handler()
584 if (is_in_fcp_region(handler->offset, handler->length)) fw_core_add_address_handler()
589 handler->offset, handler->length); fw_core_add_address_handler()
591 handler->offset += other->length; fw_core_add_address_handler()
593 list_add_tail_rcu(&handler->link, &address_handler_list); fw_core_add_address_handler()
606 * fw_core_remove_address_handler() - unregister an address handler
610 * When fw_core_remove_address_handler() returns, @handler->callback() is
613 void fw_core_remove_address_handler(struct fw_address_handler *handler) fw_core_remove_address_handler() argument
616 list_del_rcu(&handler->link); fw_core_remove_address_handler()
843 struct fw_address_handler *handler; handle_exclusive_region_request() local
853 handler = lookup_enclosing_address_handler(&address_handler_list, handle_exclusive_region_request()
855 if (handler) handle_exclusive_region_request()
856 handler->address_callback(card, request, handle_exclusive_region_request()
860 handler->callback_data); handle_exclusive_region_request()
863 if (!handler) handle_exclusive_region_request()
872 struct fw_address_handler *handler; handle_fcp_region_request() local
895 list_for_each_entry_rcu(handler, &address_handler_list, link) { handle_fcp_region_request()
896 if (is_enclosing_handler(handler, offset, request->length)) handle_fcp_region_request()
897 handler->address_callback(card, NULL, tcode, handle_fcp_region_request()
902 handler->callback_data); handle_fcp_region_request()
1003 * The response handler may be executed while the request handler fw_core_handle_response()
1004 * is still pending. Cancel the request handler. fw_core_handle_response()
/linux-4.1.27/arch/x86/kernel/cpu/mcheck/
H A Dthreshold.c2 * Common corrected MCE threshold handler code:
/linux-4.1.27/arch/sparc/kernel/
H A Dutrap.S3 utrap_trap: /* %g3=handler,%g4=level */
/linux-4.1.27/arch/mips/kernel/
H A Di8253.c21 .handler = timer_interrupt,
H A Dgenex.S30 * to fit into space reserved for the exception handler.
49 * General exception handler for CPUs with virtual coherency exception.
52 * exception) bytes to fit into space reserved for the exception handler.
77 * c0_badvaddr because after return from this exception handler the
137 .macro BUILD_ROLLBACK_PROLOGUE handler
138 FEXPORT(rollback_\handler)
208 * to fit into space reserved for the exception handler.
215 * EJTAG debug exception handler.
230 * Vectored interrupt handler.
232 * to invoke the handler
252 * Complete the register saves and invoke the handler which is passed in $v0
271 * EJTAG debug exception handler.
300 * handler.
310 * NMI debug exception handler for MIPS reference boards.
329 * Clear BEV - required for page fault exception handler to work
404 .macro __BUILD_HANDLER exception handler clear verbose ext
415 j do_\handler
419 .macro BUILD_HANDLER exception handler clear verbose
420 __BUILD_HANDLER \exception \handler \clear \verbose _int
538 /* A temporary overflow handler used by check_daddi(). */
/linux-4.1.27/arch/mips/txx9/generic/
H A Dirq_tx3927.c2 * Common tx3927 irq handler
H A Dirq_tx4938.c4 * Common tx4938 irq handler
/linux-4.1.27/arch/powerpc/include/asm/
H A Dkexec.h81 extern int crash_shutdown_register(crash_shutdown_t handler);
82 extern int crash_shutdown_unregister(crash_shutdown_t handler);
104 static inline int crash_shutdown_register(crash_shutdown_t handler) crash_shutdown_register() argument
109 static inline int crash_shutdown_unregister(crash_shutdown_t handler) crash_shutdown_unregister() argument
/linux-4.1.27/arch/blackfin/mach-bf561/include/mach/
H A Dsmp.h22 void platform_request_ipi(int irq, /*irq_handler_t*/ void *handler);
/linux-4.1.27/arch/frv/include/asm/
H A Dunaligned.h1 /* unaligned.h: unaligned access handler
H A Dmmu.h19 unsigned long itlb_cached_pge; /* [SCR0] PGE cached for insn TLB handler */
21 unsigned long dtlb_cached_pge; /* [SCR1] PGE cached for data TLB handler */
/linux-4.1.27/arch/arm/mach-footbridge/
H A Disa-timer.c29 .handler = pit_timer_interrupt,
/linux-4.1.27/arch/arc/include/uapi/asm/
H A Dsigcontext.h16 * before the signal handler was invoked.
/linux-4.1.27/kernel/time/
H A Dtick-oneshot.c49 void (*handler)(struct clock_event_device *), tick_setup_oneshot()
52 newdev->event_handler = handler; tick_setup_oneshot()
60 int tick_switch_to_oneshot(void (*handler)(struct clock_event_device *)) tick_switch_to_oneshot()
83 dev->event_handler = handler; tick_switch_to_oneshot()
/linux-4.1.27/net/rfkill/
H A Drfkill.h23 /* input handler */
/linux-4.1.27/drivers/misc/
H A Ddummy-irq.c2 * Dummy IRQ handler driver.
4 * This module only registers itself as a handler that is specified to it
64 MODULE_DESCRIPTION("Dummy IRQ handler driver");
/linux-4.1.27/arch/xtensa/kernel/
H A Dvectors.S22 * fast handler or the default handler, if no fast handler was registered.
23 * The default handler sets up a C-stack and dispatches the exception to a
24 * registerd C handler in the second-level dispatch table.
26 * Fast handler entry condition:
41 * Note: Neither the kernel nor the user exception handler generate literals.
62 * We switch to the kernel stack and jump to the first level handler
80 l32i a0, a0, EXC_TABLE_FAST_USER # load handler
91 * jump to the first-level handler associated with the exception cause.
107 l32i a0, a0, EXC_TABLE_FAST_KERNEL # load handler address
133 * vmalloc memory, possibly requiring repair in a double exception handler.
137 * EXC_TABLE_FIXUP is non-zero, this handler jumps to that address. A value of
138 * zero indicates to use the default kernel/user exception handler.
141 * sections, mainly when the handler writes to the stack to assert the stack
142 * pointer is valid. Once the fixup/default handler leaves that area, the
143 * EXC_TABLE_FIXUP variable is reset to the fixup handler or zero.
149 * Some other things to take care of when a fast exception handler doesn't
150 * specify a particular fixup handler but wants to use the default handlers:
153 * exception handler should only use a2 as the stack pointer.
155 * - If the fast handler manipulates the stack pointer (in a2), it has to
156 * register a valid fixup handler and cannot use the default handlers.
158 * - The handler can use any other generic register from a3 to a15, but it
164 * number of registers a fast handler has saved (excluding a0 and a1) must
178 * - When the kernel enters the fixup handler, it still assumes it is in a
180 * The fixup handler, therefore, has to re-register itself as the fixup
181 * handler before it returns from the double exception.
183 * - Fixup handler can share the same exception frame with the fast handler.
184 * The kernel stack pointer is not changed when entering the fixup handler.
188 * on stack. Because the default handler resets the register fixup handler
189 * the fixup handler must make sure that the default handler returns to
191 * the fixup handler.
310 .Lfixup:/* Check for a fixup handler or if we were in a critical section. */
319 beqz a2, .Ldflt # no handler was registered
364 * save a0, then clobber a0. To restart the handler, we have to restore
375 extui a2, a0, 0, 6 # get offset into 64-byte vector handler
382 * This fixup handler is for the extremely unlikely case where the
383 * overflow handler's reference thru a0 gets a hardware TLB refill
482 * Fixup handler for TLB miss in double exception handler for window owerflow.
498 * - return to user. By the time we get to this fixup handler all information
500 * the window overflow handler is lost, so we just return to userspace to
549 * TLB miss handler may not be atomic and pointer to page table
594 * There is not much space here, so simply jump to another handler.
595 * EXCSAVE[DEBUGLEVEL] has been set to that handler.
H A Dtraps.c86 void* handler; member in struct:__anon3224
197 * IRQ handler.
313 static void set_handler(int idx, void *handler) set_handler() argument
318 per_cpu(exc_table, cpu)[idx] = (unsigned long)handler; set_handler()
321 /* Set exception C handler - for temporary use when probing exceptions */
323 void * __init trap_set_handler(int cause, void *handler) trap_set_handler() argument
327 set_handler(EXC_TABLE_DEFAULT / 4 + cause, handler); trap_set_handler()
346 * - default C-handler C-handler called by the default fast handler.
369 void *handler = dispatch_init_table[i].handler; trap_init() local
372 set_handler (EXC_TABLE_DEFAULT/4 + cause, handler); trap_init()
374 set_handler (EXC_TABLE_FAST_USER/4 + cause, handler); trap_init()
376 set_handler (EXC_TABLE_FAST_KERNEL/4 + cause, handler); trap_init()
/linux-4.1.27/arch/mips/sgi-ip22/
H A Dip22-int.c162 .handler = no_action,
168 .handler = no_action,
174 .handler = no_action,
180 .handler = no_action,
187 .handler = no_action,
309 struct irq_chip *handler; arch_init_irq() local
312 handler = &ip22_local0_irq_type; arch_init_irq()
314 handler = &ip22_local1_irq_type; arch_init_irq()
316 handler = &ip22_local2_irq_type; arch_init_irq()
318 handler = &ip22_local3_irq_type; arch_init_irq()
320 irq_set_chip_and_handler(i, handler, handle_level_irq); arch_init_irq()
323 /* vector handler. this register the IRQ as non-sharable */ arch_init_irq()
/linux-4.1.27/arch/blackfin/include/asm/
H A Dirq_handler.h24 /* BASE LEVEL interrupt handler routines */
48 extern int bfin_request_exception(unsigned int exception, void (*handler)(void));
49 extern int bfin_free_exception(unsigned int exception, void (*handler)(void));
/linux-4.1.27/drivers/media/platform/exynos4-is/
H A Dfimc-isp.c694 struct v4l2_ctrl_handler *handler = &isp->ctrls.handler; fimc_isp_subdev_create() local
716 v4l2_ctrl_handler_init(handler, 20); fimc_isp_subdev_create()
718 ctrls->saturation = v4l2_ctrl_new_std(handler, ops, V4L2_CID_SATURATION, fimc_isp_subdev_create()
720 ctrls->brightness = v4l2_ctrl_new_std(handler, ops, V4L2_CID_BRIGHTNESS, fimc_isp_subdev_create()
722 ctrls->contrast = v4l2_ctrl_new_std(handler, ops, V4L2_CID_CONTRAST, fimc_isp_subdev_create()
724 ctrls->sharpness = v4l2_ctrl_new_std(handler, ops, V4L2_CID_SHARPNESS, fimc_isp_subdev_create()
726 ctrls->hue = v4l2_ctrl_new_std(handler, ops, V4L2_CID_HUE, fimc_isp_subdev_create()
729 ctrls->auto_wb = v4l2_ctrl_new_std_menu(handler, ops, fimc_isp_subdev_create()
733 ctrls->exposure = v4l2_ctrl_new_std(handler, ops, fimc_isp_subdev_create()
737 ctrls->exp_metering = v4l2_ctrl_new_std_menu(handler, ops, fimc_isp_subdev_create()
741 v4l2_ctrl_new_std_menu(handler, ops, V4L2_CID_POWER_LINE_FREQUENCY, fimc_isp_subdev_create()
745 ctrls->auto_iso = v4l2_ctrl_new_std_menu(handler, ops, fimc_isp_subdev_create()
749 ctrls->iso = v4l2_ctrl_new_int_menu(handler, ops, fimc_isp_subdev_create()
753 ctrls->aewb_lock = v4l2_ctrl_new_std(handler, ops, fimc_isp_subdev_create()
757 ctrls->colorfx = v4l2_ctrl_new_std_menu(handler, ops, V4L2_CID_COLORFX, fimc_isp_subdev_create()
760 if (handler->error) { fimc_isp_subdev_create()
762 return handler->error; fimc_isp_subdev_create()
768 sd->ctrl_handler = handler; fimc_isp_subdev_create()
784 v4l2_ctrl_handler_free(&isp->ctrls.handler); fimc_isp_subdev_destroy()
/linux-4.1.27/arch/frv/kernel/
H A Dirq-mb93091.c80 * FPGA PIC interrupt handler
109 .handler = fpga_interrupt,
115 .handler = fpga_interrupt,
121 .handler = fpga_interrupt,
127 .handler = fpga_interrupt,
H A Dirq-mb93493.c1 /* irq-mb93493.c: MB93493 companion chip interrupt handler
90 * MB93493 PIC interrupt handler
120 .handler = mb93493_interrupt,
126 .handler = mb93493_interrupt,
H A Dentry-table.S33 # (4) The exception handler vector table
36 # exception processing. The prologue then jumps to the handler in this
71 # exception handler jump table
89 # handler declaration for a software or program interrupt
108 # handler declaration for a maskable external interrupt
129 # handler declaration for an NMI external interrupt
148 # handler declaration for an MMU only software or program interrupt
/linux-4.1.27/drivers/infiniband/hw/amso1100/
H A Dc2_vq.c51 * 3) wake up the kernel verbs handler blocked awaiting the reply.
55 * VQ Request object. If the kernel verbs handler exits before the adapter
60 * It is used in the interrupt handler (handle_vq()) to wake up the appropriate
61 * kernel verb handler that is blocked awaiting the verb reply.
63 * NOTE: If we guarantee that the kernel verb handler will never bail before
77 * freed by either the kernel verbs handler -or- the interrupt handler. The
78 * kernel verbs handler _must_ free the repbuf, then free the vq request object
121 /* vq_req_free - free the VQ Request Object. It is assumed the verbs handler
146 * kernel verbs handler has already bailed,
195 * When a messages are available, the int handler will wake_up() vq_send_wr()
/linux-4.1.27/drivers/tty/
H A Dsysrq.c12 * Input handler conversion
94 .handler = sysrq_handle_loglevel,
107 .handler = sysrq_handle_SAK,
123 .handler = sysrq_handle_unraw,
141 .handler = sysrq_handle_crash,
154 .handler = sysrq_handle_reboot,
165 .handler = sysrq_handle_sync,
177 .handler = sysrq_handle_show_timers,
187 .handler = sysrq_handle_mountro,
200 .handler = sysrq_handle_showlocks,
251 .handler = sysrq_handle_showallcpus,
266 .handler = sysrq_handle_showregs,
278 .handler = sysrq_handle_showstate,
289 .handler = sysrq_handle_showstate_blocked,
303 .handler = sysrq_ftrace_dump,
317 .handler = sysrq_handle_showmem,
348 .handler = sysrq_handle_term,
368 .handler = sysrq_handle_moom,
380 .handler = sysrq_handle_thaw,
393 .handler = sysrq_handle_kill,
404 .handler = sysrq_handle_unrt,
535 op_p->handler(key); __handle_sysrq()
541 /* Only print the help msg once per handler */ __handle_sysrq()
870 static int sysrq_connect(struct input_handler *handler, sysrq_connect() argument
884 sysrq->handle.handler = handler; sysrq_connect()
892 pr_err("Failed to register input sysrq handler, error %d\n", sysrq_connect()
956 pr_err("Failed to register input handler, error %d", error); sysrq_register_handler()
/linux-4.1.27/drivers/vfio/
H A Dvirqfd.c53 if ((!virqfd->handler || virqfd_wakeup()
54 virqfd->handler(virqfd->opaque, virqfd->data)) && virqfd_wakeup()
108 int (*handler)(void *, void *), vfio_virqfd_enable()
124 virqfd->handler = handler; vfio_virqfd_enable()
176 if ((!handler || handler(opaque, data)) && thread) vfio_virqfd_enable()
/linux-4.1.27/drivers/usb/renesas_usbhs/
H A Dfifo.c44 dev_err(dev, "null handler\n"); usbhsf_null_handle()
71 if (!pipe->handler) { usbhs_pkt_push()
72 dev_err(dev, "no handler function\n"); usbhs_pkt_push()
73 pipe->handler = &usbhsf_null_handler; usbhs_pkt_push()
79 * each pkt must hold own handler. usbhs_pkt_push()
80 * because handler might be changed by its situation. usbhs_pkt_push()
81 * dma handler -> pio handler. usbhs_pkt_push()
85 pkt->handler = pipe->handler; usbhs_pkt_push()
180 func = pkt->handler->prepare; usbhsf_pkt_handler()
183 func = pkt->handler->try_run; usbhsf_pkt_handler()
186 func = pkt->handler->dma_done; usbhsf_pkt_handler()
189 dev_err(dev, "unknown pkt handler\n"); usbhsf_pkt_handler()
415 if (pkt->handler == &usbhs_dcp_status_stage_in_handler) usbhs_dcp_dir_switch_done()
446 * change handler to PIO push usbhsf_dcp_data_stage_try_push()
448 pkt->handler = &usbhs_fifo_pio_push_handler; usbhsf_dcp_data_stage_try_push()
450 return pkt->handler->prepare(pkt, is_done); usbhsf_dcp_data_stage_try_push()
485 * change handler to PIO pop usbhsf_dcp_data_stage_prepare_pop()
487 pkt->handler = &usbhs_fifo_pio_pop_handler; usbhsf_dcp_data_stage_prepare_pop()
489 return pkt->handler->prepare(pkt, is_done); usbhsf_dcp_data_stage_prepare_pop()
497 * PIO push handler
610 * PIO pop handler
740 * DCP ctrol statge handler
762 if (&usbhs_fifo_dma_push_handler == pkt->handler) usbhsf_dma_chan_get()
765 if (&usbhs_fifo_dma_pop_handler == pkt->handler) usbhsf_dma_chan_get()
846 * DMA push handler
903 * change handler to PIO usbhsf_dma_prepare_push()
905 pkt->handler = &usbhs_fifo_pio_push_handler; usbhsf_dma_prepare_push()
907 return pkt->handler->prepare(pkt, is_done); usbhsf_dma_prepare_push()
931 /* change handler to PIO */ usbhsf_dma_push_done()
932 pkt->handler = &usbhs_fifo_pio_push_handler; usbhsf_dma_push_done()
933 return pkt->handler->try_run(pkt, is_done); usbhsf_dma_push_done()
945 * DMA pop handler
1007 * change handler to PIO usbhsf_dma_prepare_pop_with_usb_dmac()
1009 pkt->handler = &usbhs_fifo_pio_pop_handler; usbhsf_dma_prepare_pop_with_usb_dmac()
1012 return pkt->handler->prepare(pkt, is_done); usbhsf_dma_prepare_pop_with_usb_dmac()
1087 * change handler to PIO usbhsf_dma_try_pop_with_rx_irq()
1089 pkt->handler = &usbhs_fifo_pio_pop_handler; usbhsf_dma_try_pop_with_rx_irq()
1091 return pkt->handler->try_run(pkt, is_done); usbhsf_dma_try_pop_with_rx_irq()
1157 * Since the driver disables rx_irq in DMA mode, the interrupt handler usbhsf_dma_pop_done_with_usb_dmac()
/linux-4.1.27/arch/m68k/mac/
H A Diop.c92 * The handler for a message is called when the message state goes to
95 * For receiving message we maintain a list of handler functions to call when
97 * called much like an interrupt handler and are passed a copy of the message
98 * from the IOP. The message state will be in MSG_RCVD while the handler runs;
99 * it is the handler's responsibility to call iop_complete_message() when
101 * the IOP. This two-step process is provided to allow the handler to defer
102 * message processing to a bottom-half handler if the processing will take
128 void (*handler)(struct iop_msg *); member in struct:listener
289 iop_listeners[IOP_NUM_SCC][i].handler = NULL; iop_init()
291 iop_listeners[IOP_NUM_ISM][i].handler = NULL; iop_init()
296 * Register the interrupt handler for the IOPs.
323 * If the handler pointer is NULL the current listener (if any) is
329 void (*handler)(struct iop_msg *), iop_listen()
334 if (iop_listeners[iop_num][chan].handler && handler) return -EINVAL; iop_listen()
336 iop_listeners[iop_num][chan].handler = handler; iop_listen()
413 if (msg->handler) (*msg->handler)(msg); iop_handle_send()
441 msg->handler = iop_listeners[iop_num][chan].handler; iop_handle_recv()
454 if (msg->handler) { iop_handle_recv()
455 (*msg->handler)(msg); iop_handle_recv()
479 void (*handler)(struct iop_msg *)) iop_send_message()
496 msg->handler = handler; iop_send_message()
/linux-4.1.27/arch/s390/kernel/
H A Dirq.c196 ext_int_handler_t handler; member in struct:ext_int_info
202 /* ext_int_hash_lock protects the handler lists for external interrupts */
212 int register_external_irq(u16 code, ext_int_handler_t handler) register_external_irq() argument
222 p->handler = handler; register_external_irq()
232 int unregister_external_irq(u16 code, ext_int_handler_t handler) unregister_external_irq() argument
240 if (p->code == code && p->handler == handler) { unregister_external_irq()
266 p->handler(ext_code, regs->int_parm, regs->int_parm_long); do_ext_interrupt()
274 .handler = do_ext_interrupt,
H A Dpgm_check.S9 #define PGM_CHECK(handler) .long handler
/linux-4.1.27/arch/powerpc/kvm/
H A Dbook3s_rtas.c107 void (*handler)(struct kvm_vcpu *vcpu, struct rtas_args *args); member in struct:rtas_handler
113 { .name = "ibm,set-xive", .handler = kvm_rtas_set_xive },
114 { .name = "ibm,get-xive", .handler = kvm_rtas_get_xive },
115 { .name = "ibm,int-off", .handler = kvm_rtas_int_off },
116 { .name = "ibm,int-on", .handler = kvm_rtas_int_on },
122 struct rtas_handler *handler; member in struct:rtas_token_definition
139 if (rtas_name_matches(d->handler->name, name)) { rtas_token_undefine()
180 d->handler = h; rtas_token_define()
240 d->handler->handler(vcpu, &args); kvmppc_rtas_hcall()
H A Dbook3s_segment.S76 /* Save guest exit handler address and MSR */
179 * R12 = exit handler id
343 * handler, so it can do work for us. This has to happen
350 * or we jump to an interrupt handler if there is an
352 * the rfi[d] at the end of the interrupt handler will
360 * R10 = raw exit handler id
361 * R12 = exit handler id
379 /* Load highmem handler address */
382 /* RFI into the highmem handler, or jump to interrupt handler */
/linux-4.1.27/kernel/
H A Dtest_kprobes.c161 pr_err("incorrect value in jprobe handler\n"); j_kprobe_target()
187 pr_err("jprobe handler not called\n"); test_jprobe()
216 pr_err("jprobe handler not called\n"); test_jprobes()
245 pr_err("incorrect value in kretprobe handler\n"); return_handler()
249 pr_err("call to kretprobe entry handler failed\n"); return_handler()
257 .handler = return_handler,
275 pr_err("kretprobe handler not called\n"); test_kretprobe()
292 pr_err("call to kretprobe entry handler failed\n"); return_handler2()
300 .handler = return_handler2,
322 pr_err("kretprobe handler not called\n"); test_kretprobes()
/linux-4.1.27/include/media/
H A Dv4l2-ctrls.h67 * ctrl->handler->lock is held when these ops are called, so no
68 * one else can access controls owned by that handler.
98 * @handler: The handler that owns the control.
107 * @is_private: If set, then this control is private to its handler and it
123 * @call_notify: If set, then call the handler's notify function whenever the
167 struct v4l2_ctrl_handler *handler; member in struct:v4l2_ctrl
219 * Each control handler has a list of these refs. The list_head is used to
230 /** struct v4l2_ctrl_handler - The control handler keeps track of all the
231 * controls: both the controls owned by the handler and those inherited
234 * @lock: Lock to control access to this handler and its controls.
236 * @ctrls: The list of controls owned by this handler.
243 * Note that the handler's lock is held when the notify function
285 * @is_private: If set, then this control is private to its handler and it
325 /** v4l2_ctrl_handler_init_class() - Initialize the control handler.
326 * @hdl: The control handler.
327 * @nr_of_controls_hint: A hint of how many controls this handler is
364 /** v4l2_ctrl_handler_free() - Free all controls owned by the handler and free
366 * @hdl: The control handler.
372 /** v4l2_ctrl_lock() - Helper function to lock the handler
378 mutex_lock(ctrl->handler->lock); v4l2_ctrl_lock()
381 /** v4l2_ctrl_unlock() - Helper function to unlock the handler
387 mutex_unlock(ctrl->handler->lock); v4l2_ctrl_unlock()
391 * to the handler to initialize the hardware to the current control values.
392 * @hdl: The control handler.
400 /** v4l2_ctrl_handler_log_status() - Log all controls owned by the handler.
401 * @hdl: The control handler.
416 * @hdl: The control handler.
427 * @hdl: The control handler.
448 * @hdl: The control handler.
471 * @hdl: The control handler.
493 * @hdl: The control handler.
509 /** v4l2_ctrl_add_ctrl() - Add a control from another handler to this handler.
510 * @hdl: The control handler.
514 * If the control already belonged to the handler, then it will do
520 /** v4l2_ctrl_add_handler() - Add all controls from handler @add to
521 * handler @hdl.
522 * @hdl: The control handler.
523 * @add: The control handler whose controls you want to add to
524 * the @hdl control handler.
589 * @hdl: The control handler.
592 * If @hdl == NULL this will return NULL as well. Will lock the handler so
606 * This function assumes that the control handler is locked.
620 * This function assumes that the control handler is not locked and will
644 * This function assumes that the control handler is not locked and will
702 * framework. This function will lock the control's handler, so it cannot be
716 * framework. This function will lock the control's handler, so it cannot be
736 * framework. This function will lock the control's handler, so it cannot be
751 * framework. This function will lock the control's handler, so it cannot be
775 * framework. This function will lock the control's handler, so it cannot be
835 /* Log all controls owned by subdev's control handler. */
/linux-4.1.27/include/net/iucv/
H A Diucv.h90 * handler: address of iucv handler structure
91 * private: private information of the handler associated with the path
99 struct iucv_handler *handler; member in struct:iucv_path
136 * structure and "asks" the handler if this path belongs to the
137 * handler. To accept the path the path_pending function needs
140 * handler. The order in which the path_pending functions are
148 * for this handler with iucv_path_connect and got accepted by the
193 * @handler: address of iucv handler structure
194 * @smp: != 0 indicates that the handler can deal with out of order messages
201 int iucv_register(struct iucv_handler *handler, int smp);
205 * @handler: address of iucv handler structure
206 * @smp: != 0 indicates that the handler can deal with out of order messages
249 * @handler: address of iucv handler structure
258 int iucv_path_accept(struct iucv_path *path, struct iucv_handler *handler,
264 * @handler: address of iucv handler structure
276 int iucv_path_connect(struct iucv_path *path, struct iucv_handler *handler,
481 int (*path_accept)(struct iucv_path *path, struct iucv_handler *handler,
484 struct iucv_handler *handler,
489 int (*iucv_register)(struct iucv_handler *handler, int smp);
490 void (*iucv_unregister)(struct iucv_handler *handler, int smp);
/linux-4.1.27/arch/mn10300/mm/
H A Dtlb-mn10300.S25 # Instruction TLB Miss handler entry point
80 mov _PAGE_VALID,d2 # force address error handler to be
88 # Data TLB Miss handler entry point
143 mov _PAGE_VALID,d2 # force address error handler to be
150 # Instruction TLB Address Error handler entry point
187 # Data TLB Address Error handler entry point
/linux-4.1.27/arch/nios2/kernel/
H A Dtraps.c117 /* Breakpoint handler */ breakpoint_c()
130 /* Alignment exception handler */ handle_unaligned_c()
155 /* Illegal instruction handler */ handle_illegal_c()
162 /* Supervisor instruction handler */ handle_supervisor_instr()
169 /* Division error handler */ handle_diverror_c()
176 /* Unhandled exception handler */ unhandled_exception()
/linux-4.1.27/drivers/media/rc/
H A Drc-ir-raw.c29 /* Used to handle IR raw handler extensions */
37 struct ir_raw_handler *handler; ir_raw_event_thread() local
61 list_for_each_entry(handler, &ir_raw_handler_list, list) ir_raw_event_thread()
62 handler->decode(raw->dev, ev); ir_raw_event_thread()
255 struct ir_raw_handler *handler; ir_raw_event_register() local
283 list_for_each_entry(handler, &ir_raw_handler_list, list) ir_raw_event_register()
284 if (handler->raw_register) ir_raw_event_register()
285 handler->raw_register(dev); ir_raw_event_register()
298 struct ir_raw_handler *handler; ir_raw_event_unregister() local
307 list_for_each_entry(handler, &ir_raw_handler_list, list) ir_raw_event_unregister()
308 if (handler->raw_unregister) ir_raw_event_unregister()
309 handler->raw_unregister(dev); ir_raw_event_unregister()
/linux-4.1.27/arch/parisc/include/uapi/asm/
H A Dsignal.h49 * SA_RESETHAND clears the handler when the signal is delivered.
51 * SA_NODEFER prevents the current signal from being masked in the handler.
87 /* Type of a signal handler. */
/linux-4.1.27/arch/cris/arch-v10/mm/
H A Dfault.c4 * Low level bus fault handler
34 /* fast TLB-fill fault handler
73 /* leave it to the MM system fault handler */ handle_mmu_bus_fault()
/linux-4.1.27/arch/m68k/68000/
H A Dtimers.c74 .handler = hw_tick,
103 void hw_timer_init(irq_handler_t handler) hw_timer_init() argument
119 timer_interrupt = handler; hw_timer_init()
/linux-4.1.27/tools/testing/selftests/timers/
H A Dleapcrash.c64 void handler(int unused) handler() function
80 signal(SIGINT, handler); main()
81 signal(SIGKILL, handler); main()
/linux-4.1.27/drivers/mmc/core/
H A Dsdio_irq.c40 * and we know an IRQ was signaled then call irq handler directly. process_sdio_pending_irqs()
79 pr_warn("%s: pending IRQ with no handler\n", process_sdio_pending_irqs()
262 * @handler: IRQ handler callback
265 * handler will be called when that IRQ is asserted. The host is always
266 * claimed already when the handler is called so the handler must not
269 int sdio_claim_irq(struct sdio_func *func, sdio_irq_handler_t *handler) sdio_claim_irq() argument
296 func->irq_handler = handler; sdio_claim_irq()
/linux-4.1.27/arch/sparc/include/asm/
H A Dsignal.h14 * interrupt handler's irq structure should be statically allocated
/linux-4.1.27/arch/unicore32/include/uapi/asm/
H A Dsigcontext.h18 * before the signal handler was invoked. Note: only add new entries
/linux-4.1.27/arch/metag/kernel/
H A Dkick.c12 * called. If that interrupt handler cannot handle the KICK the next
18 * handler must be able to detect whether the KICK was intended for it
19 * or not. For example, when the IPI handler runs and it sees that
90 * can't nest KICK interrupts in a KICK interrupt handler. kick_handler()
/linux-4.1.27/drivers/vfio/platform/
H A Dvfio_platform_irq.c181 int fd, irq_handler_t handler) vfio_set_trigger()
211 ret = request_irq(irq->hwirq, handler, 0, irq->name, irq); vfio_set_trigger()
231 irq_handler_t handler; vfio_platform_set_irq_trigger() local
234 handler = vfio_automasked_irq_handler; vfio_platform_set_irq_trigger()
236 handler = vfio_irq_handler; vfio_platform_set_irq_trigger()
239 return vfio_set_trigger(vdev, index, -1, handler); vfio_platform_set_irq_trigger()
247 return vfio_set_trigger(vdev, index, fd, handler); vfio_platform_set_irq_trigger()
251 handler(irq->hwirq, irq); vfio_platform_set_irq_trigger()
257 handler(irq->hwirq, irq); vfio_platform_set_irq_trigger()
180 vfio_set_trigger(struct vfio_platform_device *vdev, int index, int fd, irq_handler_t handler) vfio_set_trigger() argument
/linux-4.1.27/arch/sh/boards/mach-hp6xx/
H A Dpm_wakeup.S32 ! jump to handler
/linux-4.1.27/arch/mips/mm/
H A Dtlb-funcs.S6 * Micro-assembler generated tlb handler functions.
/linux-4.1.27/arch/cris/include/arch-v32/arch/
H A Dirq.h60 * hardware breakpoints to remain active while we are in an exception handler.
77 * The reason for blocking the IRQ is to allow an sti() before the handler,
102 * multiple_irq handler is run and it prioritizes the timer interrupt. However
107 * timer irq handler is run to acknowledge the interrupt.
/linux-4.1.27/arch/cris/include/uapi/asm/
H A Dsigcontext.h9 a signal handler is executed. It's restored by sys_sigreturn.
/linux-4.1.27/arch/frv/include/uapi/asm/
H A Dsigcontext.h18 * before the signal handler was invoked. Note: only add new entries
/linux-4.1.27/arch/arm/include/uapi/asm/
H A Dsigcontext.h6 * before the signal handler was invoked. Note: only add new entries
/linux-4.1.27/net/iucv/
H A Diucv.c207 * or the work handler. Needed for iucv_path_sever called from tasklet.
579 * handler.
613 * last user unregister its iucv handler.
773 * @handler: address of iucv handler structure
774 * @smp: != 0 indicates that the handler can deal with out of order messages
781 int iucv_register(struct iucv_handler *handler, int smp) iucv_register() argument
796 INIT_LIST_HEAD(&handler->paths); iucv_register()
799 list_add_tail(&handler->list, &iucv_handler_list); iucv_register()
810 * @handler: address of iucv handler structure
811 * @smp: != 0 indicates that the handler can deal with out of order messages
815 void iucv_unregister(struct iucv_handler *handler, int smp) iucv_unregister() argument
821 /* Remove handler from the iucv_handler_list. */ iucv_unregister()
822 list_del_init(&handler->list); iucv_unregister()
823 /* Sever all pathids still referring to the handler. */ iucv_unregister()
824 list_for_each_entry_safe(p, n, &handler->paths, list) { iucv_unregister()
869 * @handler: address of iucv handler structure
878 int iucv_path_accept(struct iucv_path *path, struct iucv_handler *handler, iucv_path_accept() argument
913 * @handler: address of iucv handler structure
925 int iucv_path_connect(struct iucv_path *path, struct iucv_handler *handler, iucv_path_connect() argument
962 path->handler = handler; iucv_path_connect()
964 list_add_tail(&path->list, &handler->paths); iucv_path_connect()
1488 struct iucv_handler *handler; iucv_path_pending() local
1493 /* New pathid, handler found. Create a new path struct. */ iucv_path_pending()
1502 /* Call registered handler until one is found that wants the path. */ iucv_path_pending()
1503 list_for_each_entry(handler, &iucv_handler_list, list) { iucv_path_pending()
1504 if (!handler->path_pending) iucv_path_pending()
1507 * Add path to handler to allow a call to iucv_path_sever iucv_path_pending()
1508 * inside the path_pending function. If the handler returns iucv_path_pending()
1509 * an error remove the path from the handler again. iucv_path_pending()
1511 list_add(&path->list, &handler->paths); iucv_path_pending()
1512 path->handler = handler; iucv_path_pending()
1513 if (!handler->path_pending(path, ipp->ipvmid, ipp->ipuser)) iucv_path_pending()
1516 path->handler = NULL; iucv_path_pending()
1518 /* No handler wanted the path. */ iucv_path_pending()
1553 if (path && path->handler && path->handler->path_complete) iucv_path_complete()
1554 path->handler->path_complete(path, ipc->ipuser); iucv_path_complete()
1581 if (!path || !path->handler) /* Already severed */ iucv_path_severed()
1583 if (path->handler->path_severed) iucv_path_severed()
1584 path->handler->path_severed(path, ips->ipuser); iucv_path_severed()
1617 if (path && path->handler && path->handler->path_quiesced) iucv_path_quiesced()
1618 path->handler->path_quiesced(path, ipq->ipuser); iucv_path_quiesced()
1645 if (path && path->handler && path->handler->path_resumed) iucv_path_resumed()
1646 path->handler->path_resumed(path, ipr->ipuser); iucv_path_resumed()
1677 if (path && path->handler && path->handler->message_complete) { iucv_message_complete()
1685 path->handler->message_complete(path, &msg); iucv_message_complete()
1722 if (path && path->handler && path->handler->message_pending) { iucv_message_pending()
1732 path->handler->message_pending(path, &msg); iucv_message_pending()
1740 * iucv_external_interrupt, calls the appropriate action handler
1785 * handler and then frees the buffer.
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
H A Dfweh.c158 /* handle the event if valid interface and handler */ brcmf_fweh_call_event_handler()
308 brcmf_err("event handler failed (%d)\n", brcmf_fweh_event_worker()
355 * brcmf_fweh_register() - register handler for given event code.
359 * @handler: handler for the given event code.
362 brcmf_fweh_handler_t handler) brcmf_fweh_register()
368 drvr->fweh.evt_handler[code] = handler; brcmf_fweh_register()
369 brcmf_dbg(TRACE, "event handler registered for %s\n", brcmf_fweh_register()
375 * brcmf_fweh_unregister() - remove handler for given code.
383 brcmf_dbg(TRACE, "event handler cleared for %s\n", brcmf_fweh_unregister()
425 * dispatch the event to a registered handler (using worker).
361 brcmf_fweh_register(struct brcmf_pub *drvr, enum brcmf_fweh_event_code code, brcmf_fweh_handler_t handler) brcmf_fweh_register() argument
/linux-4.1.27/fs/
H A Dxattr.c686 #define for_each_xattr_handler(handlers, handler) \
687 for ((handler) = *(handlers)++; \
688 (handler) != NULL; \
689 (handler) = *(handlers)++)
697 const struct xattr_handler *handler; xattr_resolve_name() local
702 for_each_xattr_handler(handlers, handler) { for_each_xattr_handler()
703 const char *n = strcmp_prefix(*name, handler->prefix); for_each_xattr_handler()
709 return handler;
713 * Find the handler for the prefix and dispatch its get() operation.
718 const struct xattr_handler *handler; generic_getxattr() local
720 handler = xattr_resolve_name(dentry->d_sb->s_xattr, &name); generic_getxattr()
721 if (!handler) generic_getxattr()
723 return handler->get(dentry, name, buffer, size, handler->flags); generic_getxattr()
733 const struct xattr_handler *handler, **handlers = dentry->d_sb->s_xattr; generic_listxattr() local
737 for_each_xattr_handler(handlers, handler) { for_each_xattr_handler()
738 size += handler->list(dentry, NULL, 0, NULL, 0, for_each_xattr_handler()
739 handler->flags); for_each_xattr_handler()
744 for_each_xattr_handler(handlers, handler) { for_each_xattr_handler()
745 size = handler->list(dentry, buf, buffer_size, for_each_xattr_handler()
746 NULL, 0, handler->flags); for_each_xattr_handler()
758 * Find the handler for the prefix and dispatch its set() operation.
763 const struct xattr_handler *handler; generic_setxattr() local
767 handler = xattr_resolve_name(dentry->d_sb->s_xattr, &name); generic_setxattr()
768 if (!handler) generic_setxattr()
770 return handler->set(dentry, name, value, size, flags, handler->flags); generic_setxattr()
774 * Find the handler for the prefix and dispatch its set() operation to remove
780 const struct xattr_handler *handler; generic_removexattr() local
782 handler = xattr_resolve_name(dentry->d_sb->s_xattr, &name); generic_removexattr()
783 if (!handler) generic_removexattr()
785 return handler->set(dentry, name, NULL, 0, generic_removexattr()
786 XATTR_REPLACE, handler->flags); generic_removexattr()
/linux-4.1.27/drivers/platform/x86/
H A Dwmi.c67 wmi_notify_handler handler; member in struct:wmi_block
522 * wmi_install_notify_handler - Register handler for WMI events
523 * @handler: Function to handle notifications
524 * @data: Data to be returned to handler when event is fired
526 * Register a handler for events sent to the ACPI-WMI mapper device.
529 wmi_notify_handler handler, void *data) wmi_install_notify_handler()
536 if (!guid || !handler) wmi_install_notify_handler()
547 if (block->handler && wmi_install_notify_handler()
548 block->handler != wmi_notify_debug) wmi_install_notify_handler()
551 block->handler = handler; wmi_install_notify_handler()
566 * wmi_uninstall_notify_handler - Unregister handler for WMI events
568 * Unregister handler for events sent to the ACPI-WMI mapper device.
588 if (!block->handler || wmi_remove_notify_handler()
589 block->handler == wmi_notify_debug) wmi_remove_notify_handler()
593 block->handler = wmi_notify_debug; wmi_remove_notify_handler()
597 block->handler = NULL; wmi_remove_notify_handler()
818 wblock->handler = wmi_notify_debug; parse_wdg()
888 if (wblock->handler) acpi_wmi_notify()
889 wblock->handler(event, wblock->handler_data); acpi_wmi_notify()
922 pr_err("Error installing EC region handler\n"); acpi_wmi_add()
528 wmi_install_notify_handler(const char *guid, wmi_notify_handler handler, void *data) wmi_install_notify_handler() argument
/linux-4.1.27/drivers/mfd/
H A Dpcf50633-irq.c25 void (*handler) (int, void *), void *data) pcf50633_register_irq()
27 if (irq < 0 || irq >= PCF50633_NUM_IRQ || !handler) pcf50633_register_irq()
30 if (WARN_ON(pcf->irq_handler[irq].handler)) pcf50633_register_irq()
34 pcf->irq_handler[irq].handler = handler; pcf50633_register_irq()
48 pcf->irq_handler[irq].handler = NULL; pcf50633_free_irq()
107 if (pcf->irq_handler[irq].handler) pcf50633_irq_call_handler()
108 pcf->irq_handler[irq].handler(irq, pcf->irq_handler[irq].data); pcf50633_irq_call_handler()
/linux-4.1.27/drivers/staging/i2o/
H A Dconfig-osm.c55 osm_err("handler register failed.\n"); i2o_config_init()
60 osm_err("old config handler initialization failed\n"); i2o_config_init()
/linux-4.1.27/drivers/s390/char/
H A Dsclp_quiesce.c2 * signal quiesce handler
25 /* Shutdown handler. Signal completion of shutdown by loading special PSW. */ do_machine_quiesce()
/linux-4.1.27/arch/x86/kernel/
H A Dtime.c55 * Default timer interrupt handler for PIT/HPET
64 .handler = timer_interrupt,
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp5/
H A Dmdp5_smp.h34 * mdp5_smp_init() returns a SMP @handler,
35 * which is then used to call the other mdp5_smp_*(handler, ...) functions.
/linux-4.1.27/drivers/gpu/drm/omapdrm/
H A Domap_irq.c194 struct omap_drm_irq *handler, *n; omap_irq_handler() local
213 list_for_each_entry_safe(handler, n, &priv->irq_list, node) { omap_irq_handler()
214 if (handler->irqmask & irqstatus) { omap_irq_handler()
216 handler->irq(handler, handler->irqmask & irqstatus); omap_irq_handler()
281 /* Before installing handler */ omap_drm_irq_install()
294 /* After installing handler */ omap_drm_irq_install()
/linux-4.1.27/include/net/
H A Dgre.h13 int (*handler)(struct sk_buff *skb); member in struct:gre_protocol
27 int (*handler)(struct sk_buff *skb, const struct tnl_ptk_info *tpi); member in struct:gre_cisco_protocol
H A Dwext.h46 iw_handler handler);
49 iw_handler handler);
/linux-4.1.27/arch/s390/include/asm/
H A Dirq.h91 int register_external_irq(u16 code, ext_int_handler_t handler);
92 int unregister_external_irq(u16 code, ext_int_handler_t handler);
/linux-4.1.27/arch/s390/include/uapi/asm/
H A Dsigcontext.h24 /* Size of stack frame allocated when calling signal handler. */
32 /* Size of stack frame allocated when calling signal handler. */
/linux-4.1.27/arch/mips/loongson/common/
H A Dirq.c15 * the first level int-handler will jump here if it is a bonito irq
52 * int-handler is not on bootstrap arch_init_irq()
/linux-4.1.27/arch/mips/pmcs-msp71xx/
H A Dmsp_smp.c53 .handler = ipi_resched_interrupt,
59 .handler = ipi_call_interrupt,
/linux-4.1.27/arch/mips/sni/
H A Dirq.c29 /* ISA irq handler */ sni_isa_irq_handler()
43 .handler = sni_isa_irq_handler,
/linux-4.1.27/arch/mn10300/unit-asb2364/
H A Dirq-fpga.c55 * FPGA PIC interrupt handler
78 .handler = fpga_interrupt,
/linux-4.1.27/arch/arm64/kernel/
H A Ddebug-monitors.c155 /* Register hotplug handler. */ debug_monitors_init()
206 * There is no Syndrome info to check for determining the handler.
207 * So we call all the registered handlers, until the right handler is
235 * handler first. single_step_handler()
270 * Breakpoint handler is re-entrant as another breakpoint can
271 * hit within breakpoint handler, especically in kprobes.
375 TRAP_HWBKPT, "single-step handler"); debug_traps_init()
377 TRAP_BRKPT, "ptrace BRK handler"); debug_traps_init()
/linux-4.1.27/arch/ia64/include/asm/
H A Dfpswa.h34 * the trap/fault handler
55 * assist trap/fault handler.
/linux-4.1.27/arch/arm/mach-orion5x/
H A Dirq.c32 * break asm irq handler used by non-DT boards. Therefore,
33 * we provide a C-style irq handler even for non-DT boards,
/linux-4.1.27/arch/arm/mach-omap1/include/mach/
H A Dirqs.h32 * IRQ numbers for interrupt handler 1
60 * OMAP-1510 specific IRQ numbers for interrupt handler 1
74 * OMAP-1610 specific IRQ numbers for interrupt handler 1
88 * OMAP-7xx specific IRQ numbers for interrupt handler 1
110 * IRQ numbers for interrupt handler 2
141 * OMAP-1510 specific IRQ numbers for interrupt handler 2
147 * OMAP-1610 specific IRQ numbers for interrupt handler 2
185 * OMAP-7xx specific IRQ numbers for interrupt handler 2
/linux-4.1.27/samples/kprobes/
H A Djprobe_example.c22 * from the probe handler.
54 printk(KERN_INFO "Planted jprobe at %p, handler addr %p\n", jprobe_init()
/linux-4.1.27/tools/perf/scripts/perl/
H A Dwakeup-latency.pl7 # The common_* event handler fields are the most useful fields common to
9 # in the status files. Those fields not available as handler params can
/linux-4.1.27/drivers/xen/
H A Dmanage.c224 static struct shutdown_handler *handler; shutdown_handler() local
241 for (handler = &handlers[0]; handler->command; handler++) { shutdown_handler()
242 if (strcmp(str, handler->command) == 0) shutdown_handler()
247 if (handler->cb) shutdown_handler()
256 if (handler->cb) { shutdown_handler()
257 handler->cb(); shutdown_handler()
/linux-4.1.27/drivers/macintosh/ams/
H A Dams-core.c86 .handler = ams_handle_irq,
93 .handler = ams_handle_irq,
144 /* Register freefall interrupt handler */ ams_sensor_attach()
154 /* Register shock interrupt handler */ ams_sensor_attach()
234 /* Remove handler */ ams_sensor_detach()
/linux-4.1.27/block/
H A Dblk-iopoll.c22 * blk_iopoll_sched - Schedule a run of the iopoll handler
63 * iopoll handler, it'll end the polled mode by calling this function. The
64 * iopoll handler will not be invoked again before blk_iopoll_sched_prep()
158 * Enable iopoll on this @iop. Note that the handler run will not be
173 * @poll_fn: The handler to invoke
/linux-4.1.27/drivers/ide/
H A Dide-iops.c437 * wait for an interrupt response from a drive. handler() points
440 * something goes wrong (see the ide_timer_expiry() handler later on).
444 void __ide_set_handler(ide_drive_t *drive, ide_handler_t *handler, __ide_set_handler() argument
449 BUG_ON(hwif->handler); __ide_set_handler()
450 hwif->handler = handler; __ide_set_handler()
456 void ide_set_handler(ide_drive_t *drive, ide_handler_t *handler, ide_set_handler() argument
463 __ide_set_handler(drive, handler, timeout); ide_set_handler()
472 * @handler: handler for next phase
477 * handler and IRQ setup do not race. All IDE command kick off
482 ide_handler_t *handler, unsigned timeout) ide_execute_command()
491 __ide_set_handler(drive, handler, timeout); ide_execute_command()
481 ide_execute_command(ide_drive_t *drive, struct ide_cmd *cmd, ide_handler_t *handler, unsigned timeout) ide_execute_command() argument
H A Dtc86c001.c63 * handler with our own backing up to that handler in case our recovery fails.
71 /* Restore a higher level driver's expiry handler first. */ tc86c001_timer_expiry()
98 * If not, a higher level driver's expiry handler should tc86c001_timer_expiry()
104 /* Chain to the restored expiry handler if DMA wasn't active. */ tc86c001_timer_expiry()
108 /* If there was no handler, "emulate" that for ide_timer_expiry()... */ tc86c001_timer_expiry()
127 /* Install our timeout expiry hook, saving the current handler... */ tc86c001_dma_start()
/linux-4.1.27/drivers/macintosh/
H A Dadb.c97 void (*handler)(unsigned char *, int, int); member in struct:adb_handler
106 * handler field.
107 * Accesses to the handler field are protected by the adb_handler_lock
108 * rwlock. It is held across all calls to any handler, so that by the
109 * time adb_unregister returns, we know that the old handler isn't being
475 void (*handler)(unsigned char *, int, int)) adb_register()
485 if (adb_handler[i].handler != 0) { adb_register()
492 adb_handler[i].handler = handler; adb_register()
509 if (adb_handler[index].handler) { adb_unregister()
516 adb_handler[index].handler = NULL; adb_unregister()
531 void (*handler)(unsigned char *, int, int); adb_input()
547 handler = adb_handler[id].handler; adb_input()
548 if (handler != NULL) adb_input()
551 if (handler != NULL) { adb_input()
552 (*handler)(buf, nb, autopoll); adb_input()
559 /* Try to change handler to new_id. Will return 1 if successful. */ try_handler_change()
/linux-4.1.27/drivers/gpio/
H A Dgpio-ep93xx.c173 irq_flow_handler_t handler; ep93xx_gpio_irq_type() local
181 handler = handle_edge_irq; ep93xx_gpio_irq_type()
186 handler = handle_edge_irq; ep93xx_gpio_irq_type()
191 handler = handle_level_irq; ep93xx_gpio_irq_type()
196 handler = handle_level_irq; ep93xx_gpio_irq_type()
205 handler = handle_edge_irq; ep93xx_gpio_irq_type()
211 __irq_set_handler_locked(d->irq, handler); ep93xx_gpio_irq_type()
/linux-4.1.27/arch/parisc/kernel/
H A Dhpmc.S2 * HPMC (High Priority Machine Check) handler.
25 * This HPMC handler retrieves the HPMC pim data, resets IO and
26 * returns to the default trap handler with code set to 1 (HPMC).
27 * The default trap handler calls handle interruption, which
38 * returning to the fault handler if things are really
52 * stack for os_hpmc, the HPMC handler.
53 * buffer for IODC procedures (for the HPMC handler).
/linux-4.1.27/arch/cris/arch-v10/kernel/
H A Dirq.c57 * This builds up the IRQ handler stubs using some ugly macros in irq.h
198 /* Initialize IRQ handler descriptors. */ init_IRQ()
206 executed by the associated break handler, rather than just a jump init_IRQ()
207 address. therefore we need to setup a default breakpoint handler init_IRQ()
212 /* except IRQ 15 which is the multiple-IRQ handler on Etrax100 */ init_IRQ()
219 /* and irq 14 which is the mmu bus fault handler */ init_IRQ()
225 /* setup a breakpoint handler for debugging used for both user and init_IRQ()
/linux-4.1.27/net/llc/
H A Dllc_input.c29 * Packet handler for the station, registerable because in the minimal
42 void llc_add_pack(int type, void (*handler)(struct llc_sap *sap, llc_add_pack()
47 llc_type_handlers[type - 1] = handler; llc_add_pack()
57 void llc_set_station_handler(void (*handler)(struct sk_buff *skb)) llc_set_station_handler()
60 if (handler) llc_set_station_handler()
63 llc_station_handler = handler; llc_set_station_handler()
65 if (!handler) llc_set_station_handler()
/linux-4.1.27/arch/microblaze/kernel/
H A Dunwind.c202 const struct trap_handler_info *handler = microblaze_unwind_inner() local
205 /* Is previous function the HW exception handler? */ microblaze_unwind_inner()
209 * HW exception handler doesn't save all registers, microblaze_unwind_inner()
225 /* Is previous function a trap handler? */ microblaze_unwind_inner()
226 for (; handler->start_addr; ++handler) { microblaze_unwind_inner()
227 if ((return_to >= handler->start_addr) microblaze_unwind_inner()
228 && (return_to <= handler->end_addr)) { microblaze_unwind_inner()
230 pr_info("%s\n", handler->trap_name); microblaze_unwind_inner()

Completed in 8630 milliseconds

1234567891011>>