/linux/drivers/infiniband/hw/hfi1/ |
H A D | mmu_rb.c | 45 struct mmu_rb_handler **handler) in hfi1_mmu_rb_register() argument 74 *handler = h; in hfi1_mmu_rb_register() 78 void hfi1_mmu_rb_unregister(struct mmu_rb_handler *handler) in hfi1_mmu_rb_unregister() argument 86 mmgrab(handler->mn.mm); in hfi1_mmu_rb_unregister() 89 mmu_notifier_unregister(&handler->mn, handler->mn.mm); in hfi1_mmu_rb_unregister() 95 flush_work(&handler->del_work); in hfi1_mmu_rb_unregister() 99 spin_lock_irqsave(&handler->lock, flags); in hfi1_mmu_rb_unregister() 100 while ((node = rb_first_cached(&handler->root))) { in hfi1_mmu_rb_unregister() 102 rb_erase_cached(node, &handler->root); in hfi1_mmu_rb_unregister() 106 spin_unlock_irqrestore(&handler->lock, flags); in hfi1_mmu_rb_unregister() [all …]
|
/linux/net/ipv4/ |
H A D | tunnel4.c | 31 int xfrm4_tunnel_register(struct xfrm_tunnel *handler, unsigned short family) in xfrm4_tunnel_register() argument 37 int priority = handler->priority; in xfrm4_tunnel_register() 51 handler->next = *pprev; in xfrm4_tunnel_register() 52 rcu_assign_pointer(*pprev, handler); in xfrm4_tunnel_register() 63 int xfrm4_tunnel_deregister(struct xfrm_tunnel *handler, unsigned short family) in xfrm4_tunnel_deregister() argument 75 if (t == handler) { in xfrm4_tunnel_deregister() 76 *pprev = handler->next; in xfrm4_tunnel_deregister() 90 #define for_each_tunnel_rcu(head, handler) \ argument 91 for (handler = rcu_dereference(head); \ 92 handler != NULL; \ [all …]
|
/linux/net/ipv6/ |
H A D | tunnel6.c | 32 int xfrm6_tunnel_register(struct xfrm6_tunnel *handler, unsigned short family) in xfrm6_tunnel_register() argument 37 int priority = handler->priority; in xfrm6_tunnel_register() 64 handler->next = *pprev; in xfrm6_tunnel_register() 65 rcu_assign_pointer(*pprev, handler); in xfrm6_tunnel_register() 76 int xfrm6_tunnel_deregister(struct xfrm6_tunnel *handler, unsigned short family) in xfrm6_tunnel_deregister() argument 101 if (t == handler) { in xfrm6_tunnel_deregister() 102 *pprev = handler->next; in xfrm6_tunnel_deregister() 117 #define for_each_tunnel_rcu(head, handler) \ argument 118 for (handler = rcu_dereference(head); \ 119 handler != NULL; \ [all …]
|
H A D | xfrm6_protocol.c | 41 #define for_each_protocol_rcu(head, handler) \ argument 42 for (handler = rcu_dereference(head); \ 43 handler != NULL; \ 44 handler = rcu_dereference(handler->next)) \ 49 struct xfrm6_protocol *handler; in xfrm6_rcv_cb() local 55 for_each_protocol_rcu(*proto_handlers(protocol), handler) in xfrm6_rcv_cb() 56 if ((ret = handler->cb_handler(skb, err)) <= 0) in xfrm6_rcv_cb() 66 struct xfrm6_protocol *handler; in xfrm6_rcv_encap() local 96 for_each_protocol_rcu(*head, handler) in xfrm6_rcv_encap() 97 if ((ret = handler->input_handler(skb, nexthdr, spi, encap_type)) != -EINVAL) in xfrm6_rcv_encap() [all …]
|
/linux/kernel/ |
H A D | reboot.c | 339 struct sys_off_handler *handler; in sys_off_notify() local 342 handler = container_of(nb, struct sys_off_handler, nb); in sys_off_notify() 343 data.cb_data = handler->cb_data; in sys_off_notify() 346 data.dev = handler->dev; in sys_off_notify() 348 return handler->sys_off_cb(&data); in sys_off_notify() 355 struct sys_off_handler *handler; in alloc_sys_off_handler() local 363 handler = &platform_sys_off_handler; in alloc_sys_off_handler() 364 if (handler->cb_data) in alloc_sys_off_handler() 372 handler = kzalloc(sizeof(*handler), flags); in alloc_sys_off_handler() 373 if (!handler) in alloc_sys_off_handler() [all …]
|
/linux/drivers/soc/fsl/qbman/ |
H A D | qman_test_stash.c | 252 static inline int process_frame_data(struct hp_handler *handler, in process_frame_data() argument 255 u32 *p = handler->frame_ptr; in process_frame_data() 259 if (qm_fd_addr_get64(fd) != handler->addr) { in process_frame_data() 261 qm_fd_addr_get64(fd), handler->addr); in process_frame_data() 265 *p ^= handler->rx_mixer; in process_frame_data() 270 *p ^= handler->tx_mixer; in process_frame_data() 281 struct hp_handler *handler = (struct hp_handler *)fq; in normal_dqrr() local 283 if (process_frame_data(handler, &dqrr->fd)) { in normal_dqrr() 287 if (qman_enqueue(&handler->tx, &dqrr->fd)) { in normal_dqrr() 300 struct hp_handler *handler = (struct hp_handler *)fq; in special_dqrr() local [all …]
|
/linux/drivers/acpi/acpica/ |
H A D | evxface.c | 59 acpi_notify_handler handler, void *context) in acpi_install_notify_handler() argument 72 if ((!device) || (!handler) || (!handler_type) || in acpi_install_notify_handler() 92 if (acpi_gbl_global_notify[i].handler) { in acpi_install_notify_handler() 97 acpi_gbl_global_notify[i].handler = handler; in acpi_install_notify_handler() 147 if (handler_obj->notify.handler == handler) { in acpi_install_notify_handler() 167 handler_obj->notify.handler = handler; in acpi_install_notify_handler() 212 u32 handler_type, acpi_notify_handler handler) in ACPI_EXPORT_SYMBOL() 226 if ((!device) || (!handler) || (!handler_type) || in ACPI_EXPORT_SYMBOL() 242 if (!acpi_gbl_global_notify[i].handler || in ACPI_EXPORT_SYMBOL() 243 (acpi_gbl_global_notify[i].handler != in ACPI_EXPORT_SYMBOL() [all …]
|
H A D | evhandler.c | 128 handler_obj = obj_desc->common_notify.handler; in acpi_ev_has_default_handler() 220 handler); in acpi_ev_install_handler() 330 acpi_adr_space_handler handler, in acpi_ev_install_space_handler() argument 352 if (handler == ACPI_DEFAULT_HANDLER) { in acpi_ev_install_space_handler() 358 handler = acpi_ex_system_memory_space_handler; in acpi_ev_install_space_handler() 364 handler = acpi_ex_system_io_space_handler; in acpi_ev_install_space_handler() 370 handler = acpi_ex_pci_config_space_handler; in acpi_ev_install_space_handler() 376 handler = acpi_ex_cmos_space_handler; in acpi_ev_install_space_handler() 382 handler = acpi_ex_pci_bar_space_handler; in acpi_ev_install_space_handler() 388 handler = acpi_ex_data_table_space_handler; in acpi_ev_install_space_handler() [all …]
|
/linux/drivers/irqchip/ |
H A D | irq-sifive-plic.c | 108 static void plic_toggle(struct plic_handler *handler, int hwirq, int enable) in plic_toggle() argument 112 raw_spin_lock_irqsave(&handler->enable_lock, flags); in plic_toggle() 113 __plic_toggle(handler->enable_base, hwirq, enable); in plic_toggle() 114 raw_spin_unlock_irqrestore(&handler->enable_lock, flags); in plic_toggle() 123 struct plic_handler *handler = per_cpu_ptr(&plic_handlers, cpu); in plic_irq_toggle() local 125 plic_toggle(handler, d->hwirq, enable); in plic_irq_toggle() 156 struct plic_handler *handler = this_cpu_ptr(&plic_handlers); in plic_irq_eoi() local 159 plic_toggle(handler, d->hwirq, 1); in plic_irq_eoi() 160 writel(d->hwirq, handler->hart_base + CONTEXT_CLAIM); in plic_irq_eoi() 161 plic_toggle(handler, d->hwirq, 0); in plic_irq_eoi() [all …]
|
/linux/arch/arm/probes/uprobes/ |
H A D | actions-arm.c | 195 [PROBES_PRELOAD_IMM] = {.handler = probes_simulate_nop}, 196 [PROBES_PRELOAD_REG] = {.handler = probes_simulate_nop}, 197 [PROBES_BRANCH_IMM] = {.handler = simulate_blx1}, 198 [PROBES_MRS] = {.handler = simulate_mrs}, 199 [PROBES_BRANCH_REG] = {.handler = simulate_blx2bx}, 200 [PROBES_CLZ] = {.handler = probes_simulate_nop}, 201 [PROBES_SATURATING_ARITHMETIC] = {.handler = probes_simulate_nop}, 202 [PROBES_MUL1] = {.handler = probes_simulate_nop}, 203 [PROBES_MUL2] = {.handler = probes_simulate_nop}, 204 [PROBES_SWP] = {.handler = probes_simulate_nop}, [all …]
|
/linux/arch/arm/probes/kprobes/ |
H A D | actions-arm.c | 298 [PROBES_PRELOAD_IMM] = {.handler = probes_simulate_nop}, 299 [PROBES_PRELOAD_REG] = {.handler = probes_simulate_nop}, 300 [PROBES_BRANCH_IMM] = {.handler = simulate_blx1}, 301 [PROBES_MRS] = {.handler = simulate_mrs}, 302 [PROBES_BRANCH_REG] = {.handler = simulate_blx2bx}, 303 [PROBES_CLZ] = {.handler = emulate_rd12rm0_noflags_nopc}, 305 .handler = emulate_rd12rn16rm0_rwflags_nopc}, 306 [PROBES_MUL1] = {.handler = emulate_rdlo12rdhi16rn0rm8_rwflags_nopc}, 307 [PROBES_MUL2] = {.handler = emulate_rd16rn12rm0rs8_rwflags_nopc}, 308 [PROBES_SWP] = {.handler = emulate_rd12rn16rm0_rwflags_nopc}, [all …]
|
H A D | actions-thumb.c | 621 [PROBES_T16_ADD_SP] = {.handler = t16_simulate_add_sp_imm}, 622 [PROBES_T16_CBZ] = {.handler = t16_simulate_cbz}, 623 [PROBES_T16_SIGN_EXTEND] = {.handler = t16_emulate_loregs_rwflags}, 626 [PROBES_T16_SEV] = {.handler = probes_emulate_none}, 627 [PROBES_T16_WFE] = {.handler = probes_simulate_nop}, 629 [PROBES_T16_CMP] = {.handler = t16_emulate_loregs_rwflags}, 630 [PROBES_T16_ADDSUB] = {.handler = t16_emulate_loregs_noitrwflags}, 631 [PROBES_T16_LOGICAL] = {.handler = t16_emulate_loregs_noitrwflags}, 632 [PROBES_T16_LDR_LIT] = {.handler = t16_simulate_ldr_literal}, 633 [PROBES_T16_BLX] = {.handler = t16_simulate_bxblx}, [all …]
|
/linux/drivers/acpi/ |
H A D | wakeup.c | 114 struct acpi_wakeup_handler *handler; in acpi_register_wakeup_handler() local 123 handler = kmalloc(sizeof(*handler), GFP_KERNEL); in acpi_register_wakeup_handler() 124 if (!handler) in acpi_register_wakeup_handler() 127 handler->wakeup = wakeup; in acpi_register_wakeup_handler() 128 handler->context = context; in acpi_register_wakeup_handler() 131 list_add(&handler->list_node, &acpi_wakeup_handler_head); in acpi_register_wakeup_handler() 146 struct acpi_wakeup_handler *handler; in acpi_unregister_wakeup_handler() local 149 list_for_each_entry(handler, &acpi_wakeup_handler_head, list_node) { in acpi_unregister_wakeup_handler() 150 if (handler->wakeup == wakeup && handler->context == context) { in acpi_unregister_wakeup_handler() 151 list_del(&handler->list_node); in acpi_unregister_wakeup_handler() [all …]
|
/linux/drivers/media/rc/ |
H A D | rc-ir-raw.c | 24 struct ir_raw_handler *handler; in ir_raw_event_thread() local 39 list_for_each_entry(handler, &ir_raw_handler_list, list) in ir_raw_event_thread() 41 handler->protocols || !handler->protocols) in ir_raw_event_thread() 42 handler->decode(dev, ev); in ir_raw_event_thread() 245 struct ir_raw_handler *handler; in change_protocol() local 249 list_for_each_entry(handler, &ir_raw_handler_list, list) { in change_protocol() 250 if (!(dev->enabled_protocols & handler->protocols) && in change_protocol() 251 (*rc_proto & handler->protocols) && handler->raw_register) in change_protocol() 252 handler->raw_register(dev); in change_protocol() 254 if ((dev->enabled_protocols & handler->protocols) && in change_protocol() [all …]
|
/linux/arch/powerpc/sysdev/ |
H A D | pmi.c | 29 struct list_head handler; member 102 struct pmi_handler *handler; in pmi_notify_handlers() local 105 list_for_each_entry(handler, &data->handler, node) { in pmi_notify_handlers() 106 pr_debug("pmi: notifying handler %p\n", handler); in pmi_notify_handlers() 107 if (handler->type == data->msg.type) in pmi_notify_handlers() 108 handler->handle_pmi_message(data->msg); in pmi_notify_handlers() 138 INIT_LIST_HEAD(&data->handler); in pmi_of_probe() 178 struct pmi_handler *handler, *tmp; in pmi_of_remove() local 185 list_for_each_entry_safe(handler, tmp, &data->handler, node) in pmi_of_remove() 186 list_del(&handler->node); in pmi_of_remove() [all …]
|
/linux/fs/btrfs/ |
H A D | props.c | 70 const struct prop_handler *handler; in btrfs_validate_prop() local 75 handler = find_prop_handler(name, NULL); in btrfs_validate_prop() 76 if (!handler) in btrfs_validate_prop() 82 return handler->validate(inode, value, value_len); in btrfs_validate_prop() 99 const struct prop_handler *handler; in btrfs_ignore_prop() local 101 handler = find_prop_handler(name, NULL); in btrfs_ignore_prop() 102 ASSERT(handler != NULL); in btrfs_ignore_prop() 104 return handler->ignore(inode); in btrfs_ignore_prop() 111 const struct prop_handler *handler; in btrfs_set_prop() local 114 handler = find_prop_handler(name, NULL); in btrfs_set_prop() [all …]
|
/linux/kernel/trace/ |
H A D | rethook.c | 51 rcu_assign_pointer(rh->handler, NULL); in rethook_stop() 87 return (rethook_handler_t)rcu_dereference_check(rh->handler, in rethook_get_handler() 103 struct rethook *rethook_alloc(void *data, rethook_handler_t handler, in rethook_alloc() argument 108 if (!handler || num <= 0 || size < sizeof(struct rethook_node)) in rethook_alloc() 116 rcu_assign_pointer(rh->handler, handler); in rethook_alloc() 144 rethook_handler_t handler; in rethook_recycle() local 146 handler = rethook_get_handler(node->rethook); in rethook_recycle() 147 if (likely(handler)) in rethook_recycle() 163 rethook_handler_t handler = rethook_get_handler(rh); in rethook_try_get() local 166 if (unlikely(!handler)) in rethook_try_get() [all …]
|
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
H A D | amdgpu_dm_irq.c | 80 interrupt_handler handler; member 104 hcd->handler = ih; in init_handler_common_data() 119 handler_data->handler(handler_data->handler_arg); in dm_irq_work_func() 137 struct amdgpu_dm_irq_handler_data *handler; in remove_irq_handler() local 158 handler = list_entry(entry, struct amdgpu_dm_irq_handler_data, in remove_irq_handler() 161 if (handler == NULL) in remove_irq_handler() 164 if (ih == handler->handler) { in remove_irq_handler() 166 list_del(&handler->list); in remove_irq_handler() 181 kfree(handler); in remove_irq_handler() 201 struct amdgpu_dm_irq_handler_data *handler; in unregister_all_irq_handlers() local [all …]
|
/linux/drivers/scsi/ |
H A D | scsi_dh.c | 154 sdev->handler = scsi_dh; in scsi_dh_handler_attach() 165 sdev->handler->detach(sdev); in scsi_dh_handler_detach() 166 sdev_printk(KERN_NOTICE, sdev, "%s: Detached\n", sdev->handler->name); in scsi_dh_handler_detach() 167 module_put(sdev->handler->module); in scsi_dh_handler_detach() 188 if (sdev->handler) in scsi_dh_release_device() 263 if (!sdev->handler) in scsi_dh_activate() 274 if (sdev->handler->activate) in scsi_dh_activate() 275 err = sdev->handler->activate(sdev, fn, data); in scsi_dh_activate() 307 if (sdev->handler && sdev->handler->set_params) in scsi_dh_set_params() 308 err = sdev->handler->set_params(sdev, params); in scsi_dh_set_params() [all …]
|
/linux/arch/mips/lib/ |
H A D | memcpy.S | 115 #define EXC(insn, type, reg, addr, handler) \ argument 119 PTR_WD 9b, handler; \ 128 PTR_WD 9b, handler; \ 149 #define LOAD(reg, addr, handler) EXC(ld, LD_INSN, reg, addr, handler) argument 150 #define LOADL(reg, addr, handler) EXC(ldl, LD_INSN, reg, addr, handler) argument 151 #define LOADR(reg, addr, handler) EXC(ldr, LD_INSN, reg, addr, handler) argument 152 #define STOREL(reg, addr, handler) EXC(sdl, ST_INSN, reg, addr, handler) argument 153 #define STORER(reg, addr, handler) EXC(sdr, ST_INSN, reg, addr, handler) argument 154 #define STORE(reg, addr, handler) EXC(sd, ST_INSN, reg, addr, handler) argument 186 #define LOAD(reg, addr, handler) EXC(lw, LD_INSN, reg, addr, handler) argument [all …]
|
/linux/fs/ |
H A D | xattr.c | 46 #define for_each_xattr_handler(handlers, handler) \ argument 48 for ((handler) = *(handlers)++; \ 49 (handler) != NULL; \ 50 (handler) = *(handlers)++) 59 const struct xattr_handler *handler; in xattr_resolve_name() local 66 for_each_xattr_handler(handlers, handler) { in xattr_resolve_name() 69 n = strcmp_prefix(*name, xattr_prefix(handler)); in xattr_resolve_name() 71 if (!handler->prefix ^ !*n) { in xattr_resolve_name() 77 return handler; in xattr_resolve_name() 165 const struct xattr_handler *handler; in xattr_supports_user_prefix() local [all …]
|
/linux/drivers/gpu/vga/ |
H A D | vga_switcheroo.c | 159 const struct vga_switcheroo_handler *handler; member 183 vgasr_priv.registered_clients == 2 && vgasr_priv.handler; in vga_switcheroo_ready() 192 if (vgasr_priv.handler->init) in vga_switcheroo_enable() 193 vgasr_priv.handler->init(); in vga_switcheroo_enable() 200 ret = vgasr_priv.handler->get_client_id(client->pdev); in vga_switcheroo_enable() 212 ret = vgasr_priv.handler->get_client_id(client->vga_dev); in vga_switcheroo_enable() 236 const struct vga_switcheroo_handler *handler, in vga_switcheroo_register_handler() argument 240 if (vgasr_priv.handler) { in vga_switcheroo_register_handler() 245 vgasr_priv.handler = handler; in vga_switcheroo_register_handler() 266 vgasr_priv.handler = NULL; in vga_switcheroo_unregister_handler() [all …]
|
/linux/drivers/s390/crypto/ |
H A D | pkey_base.c | 36 int pkey_handler_register(struct pkey_handler *handler) in pkey_handler_register() argument 40 if (!handler || in pkey_handler_register() 41 !handler->is_supported_key || in pkey_handler_register() 42 !handler->is_supported_keytype) in pkey_handler_register() 45 if (!try_module_get(handler->module)) in pkey_handler_register() 52 if (h == handler) { in pkey_handler_register() 55 module_put(handler->module); in pkey_handler_register() 61 list_add_rcu(&handler->list, &handler_list); in pkey_handler_register() 65 module_put(handler->module); in pkey_handler_register() 68 handler->name ?: "<no name>"); in pkey_handler_register() [all …]
|
/linux/arch/arm64/kernel/probes/ |
H A D | decode-insn.c | 86 api->handler = simulate_nop; in arm_probe_decode_insn() 98 api->handler = simulate_b_cond; in arm_probe_decode_insn() 101 api->handler = simulate_cbz_cbnz; in arm_probe_decode_insn() 104 api->handler = simulate_tbz_tbnz; in arm_probe_decode_insn() 106 api->handler = simulate_adr_adrp; in arm_probe_decode_insn() 109 api->handler = simulate_b_bl; in arm_probe_decode_insn() 113 api->handler = simulate_br_blr_ret; in arm_probe_decode_insn() 154 api->handler = simulate_ldr_literal; in arm_kprobe_decode_insn() 157 api->handler = simulate_ldrsw_literal; in arm_kprobe_decode_insn()
|
/linux/include/trace/events/ |
H A D | nmi.h | 13 TP_PROTO(void *handler, s64 delta_ns, int handled), 15 TP_ARGS(handler, delta_ns, handled), 18 __field( void *, handler ) 24 __entry->handler = handler; 30 __entry->handler,
|