/drivers/infiniband/hw/hfi1/ |
D | mmu_rb.c | 45 struct mmu_rb_handler **handler) in hfi1_mmu_rb_register() argument 71 *handler = h; in hfi1_mmu_rb_register() 75 void hfi1_mmu_rb_unregister(struct mmu_rb_handler *handler) in hfi1_mmu_rb_unregister() argument 83 mmgrab(handler->mn.mm); in hfi1_mmu_rb_unregister() 86 mmu_notifier_unregister(&handler->mn, handler->mn.mm); in hfi1_mmu_rb_unregister() 92 flush_work(&handler->del_work); in hfi1_mmu_rb_unregister() 96 spin_lock_irqsave(&handler->lock, flags); in hfi1_mmu_rb_unregister() 97 while ((node = rb_first_cached(&handler->root))) { in hfi1_mmu_rb_unregister() 99 rb_erase_cached(node, &handler->root); in hfi1_mmu_rb_unregister() 103 spin_unlock_irqrestore(&handler->lock, flags); in hfi1_mmu_rb_unregister() [all …]
|
D | mmu_rb.h | 17 struct mmu_rb_handler *handler; member 51 struct mmu_rb_handler **handler); 52 void hfi1_mmu_rb_unregister(struct mmu_rb_handler *handler); 53 int hfi1_mmu_rb_insert(struct mmu_rb_handler *handler, 57 void hfi1_mmu_rb_evict(struct mmu_rb_handler *handler, void *evict_arg); 58 struct mmu_rb_node *hfi1_mmu_rb_get_first(struct mmu_rb_handler *handler,
|
/drivers/soc/fsl/qbman/ |
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 …]
|
/drivers/acpi/acpica/ |
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 …]
|
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 …]
|
D | evxfregn.c | 45 acpi_adr_space_handler handler, in acpi_install_address_space_handler() argument 75 acpi_ev_install_space_handler(node, space_id, handler, setup, in acpi_install_address_space_handler() 108 acpi_adr_space_handler handler) in ACPI_EXPORT_SYMBOL() 152 handler_obj = obj_desc->common_notify.handler; in ACPI_EXPORT_SYMBOL() 153 last_obj_ptr = &obj_desc->common_notify.handler; in ACPI_EXPORT_SYMBOL() 162 if (handler_obj->address_space.handler != handler) { in ACPI_EXPORT_SYMBOL() 172 handler_obj, handler, in ACPI_EXPORT_SYMBOL() 220 handler, acpi_ut_get_region_name(space_id), space_id, in ACPI_EXPORT_SYMBOL()
|
D | nsobject.c | 314 acpi_object_handler handler, void *data) in acpi_ns_attach_data() argument 326 (obj_desc->data.handler == handler)) { in acpi_ns_attach_data() 341 data_desc->data.handler = handler; in acpi_ns_attach_data() 371 acpi_object_handler handler) in acpi_ns_detach_data() argument 380 (obj_desc->data.handler == handler)) { in acpi_ns_detach_data() 416 acpi_object_handler handler, void **data) in acpi_ns_get_attached_data() argument 423 (obj_desc->data.handler == handler)) { in acpi_ns_get_attached_data()
|
/drivers/irqchip/ |
D | irq-sifive-plic.c | 84 static inline void plic_toggle(struct plic_handler *handler, in plic_toggle() argument 87 u32 __iomem *reg = handler->enable_base + (hwirq / 32) * sizeof(u32); in plic_toggle() 90 raw_spin_lock(&handler->enable_lock); in plic_toggle() 95 raw_spin_unlock(&handler->enable_lock); in plic_toggle() 106 struct plic_handler *handler = per_cpu_ptr(&plic_handlers, cpu); in plic_irq_toggle() local 108 if (handler->present && in plic_irq_toggle() 109 cpumask_test_cpu(cpu, &handler->priv->lmask)) in plic_irq_toggle() 110 plic_toggle(handler, d->hwirq, enable); in plic_irq_toggle() 164 struct plic_handler *handler = this_cpu_ptr(&plic_handlers); in plic_irq_eoi() local 168 writel(d->hwirq, handler->hart_base + CONTEXT_CLAIM); in plic_irq_eoi() [all …]
|
D | irq-loongson-liointc.c | 45 struct liointc_handler_data handler[LIOINTC_NUM_PARENT]; member 53 struct liointc_handler_data *handler = irq_desc_get_handler_data(desc); in liointc_chained_handle_irq() local 55 struct irq_chip_generic *gc = handler->priv->gc; in liointc_chained_handle_irq() 61 pending = readl(handler->priv->core_isr[core]); in liointc_chained_handle_irq() 65 if (handler->priv->has_lpc_irq_errata && in liointc_chained_handle_irq() 66 (handler->parent_int_map & gc->mask_cache & in liointc_chained_handle_irq() 223 priv->handler[i].parent_int_map = of_parent_int_map[i]; in liointc_of_init() 250 u32 pending = priv->handler[i].parent_int_map; in liointc_of_init() 287 priv->handler[i].priv = priv; in liointc_of_init() 289 liointc_chained_handle_irq, &priv->handler[i]); in liointc_of_init()
|
/drivers/acpi/ |
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 …]
|
D | ec.c | 168 struct acpi_ec_query_handler *handler; member 1034 struct acpi_ec_query_handler *handler; in acpi_ec_get_query_handler_by_value() local 1037 list_for_each_entry(handler, &ec->list, node) { in acpi_ec_get_query_handler_by_value() 1038 if (value == handler->query_bit) { in acpi_ec_get_query_handler_by_value() 1039 kref_get(&handler->kref); in acpi_ec_get_query_handler_by_value() 1041 return handler; in acpi_ec_get_query_handler_by_value() 1050 struct acpi_ec_query_handler *handler = in acpi_ec_query_handler_release() local 1053 kfree(handler); in acpi_ec_query_handler_release() 1056 static void acpi_ec_put_query_handler(struct acpi_ec_query_handler *handler) in acpi_ec_put_query_handler() argument 1058 kref_put(&handler->kref, acpi_ec_query_handler_release); in acpi_ec_put_query_handler() [all …]
|
D | scan.c | 88 int acpi_scan_add_handler(struct acpi_scan_handler *handler) in acpi_scan_add_handler() argument 90 if (!handler) in acpi_scan_add_handler() 93 list_add_tail(&handler->list_node, &acpi_scan_handlers_list); in acpi_scan_add_handler() 97 int acpi_scan_add_handler_with_hotplug(struct acpi_scan_handler *handler, in acpi_scan_add_handler_with_hotplug() argument 102 error = acpi_scan_add_handler(handler); in acpi_scan_add_handler_with_hotplug() 106 acpi_sysfs_add_hotplug_profile(&handler->hotplug, hotplug_profile_name); in acpi_scan_add_handler_with_hotplug() 146 if (device->handler && !device->handler->hotplug.enabled) { in acpi_bus_offline() 254 if (device->handler && device->handler->hotplug.demand_offline) { in acpi_scan_hot_remove() 317 if (adev->handler) { in acpi_scan_device_check() 326 if (!adev->handler) { in acpi_scan_device_check() [all …]
|
/drivers/media/rc/ |
D | rc-ir-raw.c | 24 struct ir_raw_handler *handler; in ir_raw_event_thread() local 41 list_for_each_entry(handler, &ir_raw_handler_list, list) in ir_raw_event_thread() 43 handler->protocols || !handler->protocols) in ir_raw_event_thread() 44 handler->decode(dev, ev); in ir_raw_event_thread() 247 struct ir_raw_handler *handler; in change_protocol() local 251 list_for_each_entry(handler, &ir_raw_handler_list, list) { in change_protocol() 252 if (!(dev->enabled_protocols & handler->protocols) && in change_protocol() 253 (*rc_proto & handler->protocols) && handler->raw_register) in change_protocol() 254 handler->raw_register(dev); in change_protocol() 256 if ((dev->enabled_protocols & handler->protocols) && in change_protocol() [all …]
|
/drivers/gpu/drm/amd/display/amdgpu_dm/ |
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() 136 struct amdgpu_dm_irq_handler_data *handler; in remove_irq_handler() local 157 handler = list_entry(entry, struct amdgpu_dm_irq_handler_data, in remove_irq_handler() 160 if (handler == NULL) in remove_irq_handler() 163 if (ih == handler->handler) { in remove_irq_handler() 165 list_del(&handler->list); in remove_irq_handler() 179 kfree(handler); in remove_irq_handler() 199 struct amdgpu_dm_irq_handler_data *handler; in unregister_all_irq_handlers() local [all …]
|
/drivers/scsi/ |
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 …]
|
/drivers/gpu/vga/ |
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 …]
|
/drivers/platform/surface/ |
D | surface_platform_profile.c | 32 struct platform_profile_handler handler; member 115 tpd = container_of(pprof, struct ssam_tmp_profile_device, handler); in ssam_platform_profile_get() 135 tpd = container_of(pprof, struct ssam_tmp_profile_device, handler); in ssam_platform_profile_set() 154 tpd->handler.profile_get = ssam_platform_profile_get; in surface_platform_profile_probe() 155 tpd->handler.profile_set = ssam_platform_profile_set; in surface_platform_profile_probe() 157 set_bit(PLATFORM_PROFILE_LOW_POWER, tpd->handler.choices); in surface_platform_profile_probe() 158 set_bit(PLATFORM_PROFILE_BALANCED, tpd->handler.choices); in surface_platform_profile_probe() 159 set_bit(PLATFORM_PROFILE_BALANCED_PERFORMANCE, tpd->handler.choices); in surface_platform_profile_probe() 160 set_bit(PLATFORM_PROFILE_PERFORMANCE, tpd->handler.choices); in surface_platform_profile_probe() 162 return platform_profile_register(&tpd->handler); in surface_platform_profile_probe()
|
/drivers/input/rmi4/ |
D | rmi_bus.c | 148 struct rmi_function_handler *handler = to_rmi_function_handler(drv); in rmi_function_match() local 151 return fn->fd.function_number == handler->func; in rmi_function_match() 174 struct rmi_function_handler *handler) in rmi_create_function_irq() argument 191 handler->attention, IRQF_ONESHOT, in rmi_create_function_irq() 205 struct rmi_function_handler *handler = in rmi_function_probe() local 211 if (handler->probe) { in rmi_function_probe() 212 error = handler->probe(fn); in rmi_function_probe() 217 if (fn->num_of_irqs && handler->attention) { in rmi_function_probe() 218 error = rmi_create_function_irq(fn, handler); in rmi_function_probe() 229 struct rmi_function_handler *handler = in rmi_function_remove() local [all …]
|
/drivers/firewire/ |
D | core-transaction.c | 487 struct fw_address_handler *handler; in lookup_overlapping_address_handler() local 489 list_for_each_entry_rcu(handler, list, link) { in lookup_overlapping_address_handler() 490 if (handler->offset < offset + length && in lookup_overlapping_address_handler() 491 offset < handler->offset + handler->length) in lookup_overlapping_address_handler() 492 return handler; in lookup_overlapping_address_handler() 498 static bool is_enclosing_handler(struct fw_address_handler *handler, in is_enclosing_handler() argument 501 return handler->offset <= offset && in is_enclosing_handler() 502 offset + length <= handler->offset + handler->length; in is_enclosing_handler() 508 struct fw_address_handler *handler; in lookup_enclosing_address_handler() local 510 list_for_each_entry_rcu(handler, list, link) { in lookup_enclosing_address_handler() [all …]
|
/drivers/tty/ |
D | sysrq.c | 113 .handler = sysrq_handle_loglevel, 127 .handler = sysrq_handle_SAK, 143 .handler = sysrq_handle_unraw, 162 .handler = sysrq_handle_crash, 175 .handler = sysrq_handle_reboot, 188 .handler = sysrq_handle_sync, 200 .handler = sysrq_handle_show_timers, 210 .handler = sysrq_handle_mountro, 223 .handler = sysrq_handle_showlocks, 282 .handler = sysrq_handle_showallcpus, [all …]
|
/drivers/power/reset/ |
D | tps65086-restart.c | 13 struct notifier_block handler; member 21 container_of(this, struct tps65086_restart, handler); in tps65086_restart_notify() 51 tps65086_restart->handler.notifier_call = tps65086_restart_notify; in tps65086_restart_probe() 52 tps65086_restart->handler.priority = 192; in tps65086_restart_probe() 55 ret = register_restart_handler(&tps65086_restart->handler); in tps65086_restart_probe() 70 ret = unregister_restart_handler(&tps65086_restart->handler); in tps65086_restart_remove()
|
/drivers/media/platform/exynos4-is/ |
D | fimc-isp.c | 696 struct v4l2_ctrl_handler *handler = &isp->ctrls.handler; in fimc_isp_subdev_create() local 719 v4l2_ctrl_handler_init(handler, 20); in fimc_isp_subdev_create() 721 ctrls->saturation = v4l2_ctrl_new_std(handler, ops, V4L2_CID_SATURATION, in fimc_isp_subdev_create() 723 ctrls->brightness = v4l2_ctrl_new_std(handler, ops, V4L2_CID_BRIGHTNESS, in fimc_isp_subdev_create() 725 ctrls->contrast = v4l2_ctrl_new_std(handler, ops, V4L2_CID_CONTRAST, in fimc_isp_subdev_create() 727 ctrls->sharpness = v4l2_ctrl_new_std(handler, ops, V4L2_CID_SHARPNESS, in fimc_isp_subdev_create() 729 ctrls->hue = v4l2_ctrl_new_std(handler, ops, V4L2_CID_HUE, in fimc_isp_subdev_create() 732 ctrls->auto_wb = v4l2_ctrl_new_std_menu(handler, ops, in fimc_isp_subdev_create() 736 ctrls->exposure = v4l2_ctrl_new_std(handler, ops, in fimc_isp_subdev_create() 740 ctrls->exp_metering = v4l2_ctrl_new_std_menu(handler, ops, in fimc_isp_subdev_create() [all …]
|
/drivers/leds/ |
D | leds-sunfire.c | 117 set_handler handler; member 148 lp->brightness_set = types[i].handler; in sunfire_led_generic_probe() 180 .handler = clockboard_left_set, 184 .handler = clockboard_middle_set, 188 .handler = clockboard_right_set, 201 .handler = fhc_left_set, 205 .handler = fhc_middle_set, 209 .handler = fhc_right_set,
|
/drivers/infiniband/hw/mlx5/ |
D | fs.c | 697 struct mlx5_ib_flow_handler *handler = container_of(flow_id, in mlx5_ib_destroy_flow() local 701 struct mlx5_ib_dev *dev = handler->dev; in mlx5_ib_destroy_flow() 705 list_for_each_entry_safe(iter, tmp, &handler->list, list) { in mlx5_ib_destroy_flow() 712 mlx5_del_flow_rules(handler->rule); in mlx5_ib_destroy_flow() 713 put_flow_table(dev, handler->prio, true); in mlx5_ib_destroy_flow() 714 mlx5_ib_counters_clear_description(handler->ibcounters); in mlx5_ib_destroy_flow() 716 if (handler->flow_matcher) in mlx5_ib_destroy_flow() 717 atomic_dec(&handler->flow_matcher->usecnt); in mlx5_ib_destroy_flow() 718 kfree(handler); in mlx5_ib_destroy_flow() 910 struct mlx5_ib_flow_handler *handler; in _create_flow_rule() local [all …]
|
/drivers/gpu/drm/amd/amdgpu/ |
D | aldebaran.c | 38 struct amdgpu_reset_handler *handler; in aldebaran_get_reset_handler() local 44 list_for_each_entry(handler, &reset_ctl->reset_handlers, in aldebaran_get_reset_handler() 46 if (handler->reset_method == reset_context->method) in aldebaran_get_reset_handler() 47 return handler; in aldebaran_get_reset_handler() 52 list_for_each_entry(handler, &reset_ctl->reset_handlers, in aldebaran_get_reset_handler() 54 if (handler->reset_method == AMD_RESET_METHOD_MODE2) { in aldebaran_get_reset_handler() 56 return handler; in aldebaran_get_reset_handler() 112 struct amdgpu_reset_handler *handler; in aldebaran_async_reset() local 117 list_for_each_entry(handler, &reset_ctl->reset_handlers, in aldebaran_async_reset() 119 if (handler->reset_method == reset_ctl->active_reset) { in aldebaran_async_reset() [all …]
|