/drivers/pci/hotplug/ |
D | acpiphp_glue.c | 63 static void acpiphp_set_hpp_values(acpi_handle handle, struct pci_bus *bus); 64 static void handle_hotplug_event_func(acpi_handle handle, u32 type, void *context); 68 is_pci_dock_device(acpi_handle handle, u32 lvl, void *context, void **rv) in is_pci_dock_device() argument 72 if (is_dock_device(handle)) { in is_pci_dock_device() 121 register_slot(acpi_handle handle, u32 lvl, void *context, void **rv) in register_slot() argument 132 if (!acpi_pci_check_ejectable(pbus, handle) && !is_dock_device(handle)) in register_slot() 135 acpi_evaluate_integer(handle, "_ADR", NULL, &adr); in register_slot() 144 newfunc->handle = handle; in register_slot() 147 if (ACPI_SUCCESS(acpi_get_handle(handle, "_EJ0", &tmp))) in register_slot() 150 if (ACPI_SUCCESS(acpi_get_handle(handle, "_STA", &tmp))) in register_slot() [all …]
|
D | acpi_pcihp.c | 152 acpi_run_hpx(acpi_handle handle, struct hotplug_params *hpx) in acpi_run_hpx() argument 163 status = acpi_evaluate_object(handle, "_HPX", NULL, &buffer); in acpi_run_hpx() 217 acpi_run_hpp(acpi_handle handle, struct hotplug_params *hpp) in acpi_run_hpp() argument 226 acpi_get_name(handle, ACPI_FULL_PATHNAME, &string); in acpi_run_hpp() 232 status = acpi_evaluate_object(handle, METHOD_NAME__HPP, NULL, &ret_buf); in acpi_run_hpp() 242 status = acpi_evaluate_object(handle, METHOD_NAME__HPP, in acpi_run_hpp() 302 static acpi_status acpi_run_oshp(acpi_handle handle) in acpi_run_oshp() argument 307 acpi_get_name(handle, ACPI_FULL_PATHNAME, &string); in acpi_run_oshp() 310 status = acpi_evaluate_object(handle, METHOD_NAME_OSHP, NULL, NULL); in acpi_run_oshp() 335 acpi_handle handle, phandle; in acpi_get_hp_params_from_firmware() local [all …]
|
/drivers/acpi/ |
D | dock.c | 60 acpi_handle handle; member 77 acpi_handle handle; member 101 alloc_dock_dependent_device(acpi_handle handle) in alloc_dock_dependent_device() argument 107 dd->handle = handle; in alloc_dock_dependent_device() 171 find_dock_dependent_device(struct dock_station *ds, acpi_handle handle) in find_dock_dependent_device() argument 177 if (handle == dd->handle) { in find_dock_dependent_device() 196 static int is_dock(acpi_handle handle) in is_dock() argument 201 status = acpi_get_handle(handle, "_DCK", &tmp); in is_dock() 207 static int is_ejectable(acpi_handle handle) in is_ejectable() argument 212 status = acpi_get_handle(handle, "_EJ0", &tmp); in is_ejectable() [all …]
|
D | pci_slot.c | 68 static int acpi_pci_slot_add(acpi_handle handle); 69 static void acpi_pci_slot_remove(acpi_handle handle); 79 check_slot(acpi_handle handle, unsigned long long *sun) in check_slot() argument 86 acpi_get_name(handle, ACPI_FULL_PATHNAME, &buffer); in check_slot() 91 status = acpi_evaluate_integer(handle, "_STA", NULL, &sta); in check_slot() 96 status = acpi_evaluate_integer(handle, "_ADR", NULL, &adr); in check_slot() 103 status = acpi_evaluate_integer(handle, "_SUN", NULL, sun); in check_slot() 132 register_slot(acpi_handle handle, u32 lvl, void *context, void **rv) in register_slot() argument 142 device = check_slot(handle, &sun); in register_slot() 182 walk_p2p_bridge(acpi_handle handle, u32 lvl, void *context, void **rv) in walk_p2p_bridge() argument [all …]
|
D | glue.c | 69 static int acpi_find_bridge_device(struct device *dev, acpi_handle * handle) in acpi_find_bridge_device() argument 76 if (tmp->find_bridge && !tmp->find_bridge(dev, handle)) { in acpi_find_bridge_device() 87 acpi_handle handle; member 92 do_acpi_find_child(acpi_handle handle, u32 lvl, void *context, void **rv) in do_acpi_find_child() argument 99 status = acpi_get_object_info(handle, &buffer); in do_acpi_find_child() 103 find->handle = handle; in do_acpi_find_child() 117 return find.handle; in acpi_get_child() 123 static void acpi_glue_data_handler(acpi_handle handle, in acpi_glue_data_handler() argument 130 struct device *acpi_get_physical_device(acpi_handle handle) in acpi_get_physical_device() argument 135 status = acpi_get_data(handle, acpi_glue_data_handler, (void **)&dev); in acpi_get_physical_device() [all …]
|
D | container.c | 74 static int is_device_present(acpi_handle handle) in is_device_present() argument 81 status = acpi_get_handle(handle, "_STA", &temp); in is_device_present() 85 status = acpi_evaluate_integer(handle, "_STA", NULL, &sta); in is_device_present() 107 container->handle = device->handle; in acpi_container_add() 128 static int container_device_add(struct acpi_device **device, acpi_handle handle) in container_device_add() argument 135 if (acpi_get_parent(handle, &phandle)) { in container_device_add() 143 if (acpi_bus_add(device, pdev, handle, ACPI_BUS_TYPE_DEVICE)) { in container_device_add() 152 static void container_notify_cb(acpi_handle handle, u32 type, void *context) in container_notify_cb() argument 160 present = is_device_present(handle); in container_notify_cb() 169 status = acpi_bus_get_device(handle, &device); in container_notify_cb() [all …]
|
D | scan.c | 99 acpi_handle handle = context; in acpi_bus_hot_remove_device() local 104 if (acpi_bus_get_device(handle, &device)) in acpi_bus_hot_remove_device() 120 status = acpi_evaluate_object(handle, "_PS3", NULL, NULL); in acpi_bus_hot_remove_device() 130 acpi_evaluate_object(handle, "_LCK", &arg_list, NULL); in acpi_bus_hot_remove_device() 141 status = acpi_evaluate_object(handle, "_EJ0", &arg_list, NULL); in acpi_bus_hot_remove_device() 167 status = acpi_get_type(acpi_device->handle, &type); in acpi_eject_store() 175 acpi_device->handle, "acpi_hot_remove_device"); in acpi_eject_store() 198 result = acpi_get_name(acpi_dev->handle, ACPI_FULL_PATHNAME, &path); in acpi_device_path_show() 218 if(dev->handle) { in acpi_device_setup_files() 240 status = acpi_get_handle(dev->handle, "_EJ0", &temp); in acpi_device_setup_files() [all …]
|
D | video_detect.c | 47 acpi_backlight_cap_match(acpi_handle handle, u32 level, void *context, in acpi_backlight_cap_match() argument 53 if (ACPI_SUCCESS(acpi_get_handle(handle, "_BCM", &h_dummy)) && in acpi_backlight_cap_match() 54 ACPI_SUCCESS(acpi_get_handle(handle, "_BCL", &h_dummy))) { in acpi_backlight_cap_match() 81 if (ACPI_SUCCESS(acpi_get_handle(device->handle, "_DOD", &h_dummy)) && in acpi_is_video_device() 82 ACPI_SUCCESS(acpi_get_handle(device->handle, "_DOS", &h_dummy))) in acpi_is_video_device() 86 if (ACPI_SUCCESS(acpi_get_handle(device->handle, "_ROM", &h_dummy))) in acpi_is_video_device() 90 if (ACPI_SUCCESS(acpi_get_handle(device->handle, "_VPO", &h_dummy)) && in acpi_is_video_device() 91 ACPI_SUCCESS(acpi_get_handle(device->handle, "_GPD", &h_dummy)) && in acpi_is_video_device() 92 ACPI_SUCCESS(acpi_get_handle(device->handle, "_SPD", &h_dummy))) in acpi_is_video_device() 97 acpi_walk_namespace(ACPI_TYPE_DEVICE, device->handle, in acpi_is_video_device() [all …]
|
D | pci_bind.c | 49 static void acpi_pci_data_handler(acpi_handle handle, u32 function, in acpi_pci_data_handler() argument 65 acpi_status acpi_get_pci_id(acpi_handle handle, struct acpi_pci_id *id) in acpi_get_pci_id() argument 76 result = acpi_bus_get_device(handle, &device); in acpi_get_pci_id() 84 status = acpi_get_data(handle, acpi_pci_data_handler, (void **)&data); in acpi_get_pci_id() 118 acpi_handle handle; in acpi_pci_bind() local 130 status = acpi_get_name(device->handle, ACPI_FULL_PATHNAME, &buffer); in acpi_pci_bind() 144 status = acpi_get_data(device->parent->handle, acpi_pci_data_handler, in acpi_pci_bind() 231 status = acpi_attach_data(device->handle, acpi_pci_data_handler, data); in acpi_pci_bind() 250 status = acpi_get_handle(device->handle, METHOD_NAME__PRT, &handle); in acpi_pci_bind() 253 acpi_pci_irq_add_prt(device->handle, data->id.segment, in acpi_pci_bind() [all …]
|
D | processor_core.c | 85 static void acpi_processor_notify(acpi_handle handle, u32 event, void *data); 86 static acpi_status acpi_processor_hotadd_init(acpi_handle handle, int *p_cpu); 305 status = acpi_evaluate_object(pr->handle, "_PDC", pdc_in, NULL); in acpi_processor_set_pdc() 412 static int get_cpu_id(acpi_handle handle, int type, u32 acpi_id) { return -1; } in get_cpu_id() argument 488 static int map_mat_entry(acpi_handle handle, int type, u32 acpi_id) in map_mat_entry() argument 495 if (ACPI_FAILURE(acpi_evaluate_object(handle, "_MAT", NULL, &buffer))) in map_mat_entry() 520 static int get_cpu_id(acpi_handle handle, int type, u32 acpi_id) in get_cpu_id() argument 525 apic_id = map_mat_entry(handle, type, acpi_id); in get_cpu_id() 579 status = acpi_evaluate_integer(pr->handle, METHOD_NAME__UID, in acpi_processor_get_info() 590 status = acpi_evaluate_object(pr->handle, NULL, NULL, &buffer); in acpi_processor_get_info() [all …]
|
/drivers/infiniband/hw/ehca/ |
D | hcp_if.c | 242 adapter_handle.handle, /* r4 */ in hipz_h_alloc_resource_eq() 246 eq_handle->handle = outs[0]; in hipz_h_alloc_resource_eq() 262 adapter_handle.handle, /* r4 */ in hipz_h_reset_event() 263 eq_handle.handle, /* r5 */ in hipz_h_reset_event() 276 adapter_handle.handle, /* r4 */ in hipz_h_alloc_resource_cq() 278 param->eq_handle.handle, /* r6 */ in hipz_h_alloc_resource_cq() 282 cq->ipz_cq_handle.handle = outs[0]; in hipz_h_alloc_resource_cq() 338 adapter_handle.handle, /* r4 */ in hipz_h_alloc_resource_qp() 340 parms->send_cq_handle.handle, in hipz_h_alloc_resource_qp() 341 parms->recv_cq_handle.handle, in hipz_h_alloc_resource_qp() [all …]
|
/drivers/input/ |
D | evbug.c | 39 static void evbug_event(struct input_handle *handle, unsigned int type, unsigned int code, int valu… in evbug_event() argument 42 dev_name(&handle->dev->dev), type, code, value); in evbug_event() 48 struct input_handle *handle; in evbug_connect() local 51 handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL); in evbug_connect() 52 if (!handle) in evbug_connect() 55 handle->dev = dev; in evbug_connect() 56 handle->handler = handler; in evbug_connect() 57 handle->name = "evbug"; in evbug_connect() 59 error = input_register_handle(handle); in evbug_connect() 63 error = input_open_device(handle); in evbug_connect() [all …]
|
D | apm-power.c | 34 static void apmpower_event(struct input_handle *handle, unsigned int type, in apmpower_event() argument 55 struct input_handle *handle; in apmpower_connect() local 58 handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL); in apmpower_connect() 59 if (!handle) in apmpower_connect() 62 handle->dev = dev; in apmpower_connect() 63 handle->handler = handler; in apmpower_connect() 64 handle->name = "apm-power"; in apmpower_connect() 66 error = input_register_handle(handle); in apmpower_connect() 71 kfree(handle); in apmpower_connect() 75 error = input_open_device(handle); in apmpower_connect() [all …]
|
D | keyreset.c | 47 static void keyreset_event(struct input_handle *handle, unsigned int type, in keyreset_event() argument 51 struct keyreset_state *state = handle->private; in keyreset_event() 103 struct input_handle *handle; in keyreset_connect() local 114 handle = kzalloc(sizeof(*handle), GFP_KERNEL); in keyreset_connect() 115 if (!handle) in keyreset_connect() 118 handle->dev = dev; in keyreset_connect() 119 handle->handler = handler; in keyreset_connect() 120 handle->name = "keyreset"; in keyreset_connect() 121 handle->private = state; in keyreset_connect() 123 ret = input_register_handle(handle); in keyreset_connect() [all …]
|
D | input.c | 95 struct input_handle *handle; in input_pass_event() local 99 handle = rcu_dereference(dev->grab); in input_pass_event() 100 if (handle) in input_pass_event() 101 handle->handler->event(handle, type, code, value); in input_pass_event() 103 list_for_each_entry_rcu(handle, &dev->h_list, d_node) in input_pass_event() 104 if (handle->open) in input_pass_event() 105 handle->handler->event(handle, in input_pass_event() 322 void input_inject_event(struct input_handle *handle, in input_inject_event() argument 325 struct input_dev *dev = handle->dev; in input_inject_event() 334 if (!grab || grab == handle) in input_inject_event() [all …]
|
/drivers/pci/ |
D | pci-acpi.c | 22 acpi_handle handle; member 37 static struct acpi_osc_data *acpi_get_osc_data(acpi_handle handle) in acpi_get_osc_data() argument 42 if (data->handle == handle) in acpi_get_osc_data() 49 data->handle = handle; in acpi_get_osc_data() 57 static acpi_status acpi_run_osc(acpi_handle handle, in acpi_run_osc() argument 81 status = acpi_evaluate_object(handle, "_OSC", &input, &output); in acpi_run_osc() 134 status = acpi_run_osc(osc_data->handle, &osc_args, &result); in __acpi_query_osc() 150 int pci_acpi_osc_support(acpi_handle handle, u32 flags) in pci_acpi_osc_support() argument 157 status = acpi_get_handle(handle, "_OSC", &tmp); in pci_acpi_osc_support() 162 osc_data = acpi_get_osc_data(handle); in pci_acpi_osc_support() [all …]
|
/drivers/platform/x86/ |
D | intel_menlow.c | 64 acpi_handle handle = device->handle; in memory_get_int_max_bandwidth() local 74 status = acpi_evaluate_integer(handle, MEMORY_GET_BANDWIDTH, in memory_get_int_max_bandwidth() 100 acpi_handle handle = device->handle; in memory_get_cur_bandwidth() local 110 status = acpi_evaluate_integer(handle, MEMORY_GET_BANDWIDTH, in memory_get_cur_bandwidth() 122 acpi_handle handle = device->handle; in memory_set_cur_bandwidth() local 141 acpi_evaluate_integer(handle, MEMORY_SET_BANDWIDTH, &arg_list, in memory_set_cur_bandwidth() 171 status = acpi_get_handle(device->handle, MEMORY_GET_BANDWIDTH, &dummy); in intel_menlow_memory_add() 175 status = acpi_get_handle(device->handle, MEMORY_SET_BANDWIDTH, &dummy); in intel_menlow_memory_add() 250 acpi_handle handle; member 263 static int sensor_get_auxtrip(acpi_handle handle, int index, in sensor_get_auxtrip() argument [all …]
|
D | wmi.c | 66 acpi_handle handle; member 227 acpi_handle handle; in wmi_method_enable() local 230 handle = wblock->handle; in wmi_method_enable() 241 status = acpi_evaluate_object(handle, method, &input, NULL); in wmi_method_enable() 267 acpi_handle handle; in wmi_evaluate_method() local 277 handle = wblock->handle; in wmi_evaluate_method() 306 status = acpi_evaluate_object(handle, method, &input, out); in wmi_evaluate_method() 325 acpi_handle handle, wc_handle; in wmi_query_block() local 339 handle = wblock->handle; in wmi_query_block() 370 wc_status = acpi_get_handle(handle, wc_method, &wc_handle); in wmi_query_block() [all …]
|
/drivers/gpu/drm/ |
D | drm_context.c | 159 request->handle = NULL; in drm_getsareactx() 162 request->handle = in drm_getsareactx() 167 if (request->handle == NULL) in drm_getsareactx() 195 && r_list->user_token == (unsigned long) request->handle) in drm_setsareactx() 297 ctx.handle = i; in drm_resctx() 324 ctx->handle = drm_ctxbitmap_next(dev); in drm_addctx() 325 if (ctx->handle == DRM_KERNEL_CONTEXT) { in drm_addctx() 327 ctx->handle = drm_ctxbitmap_next(dev); in drm_addctx() 329 DRM_DEBUG("%d\n", ctx->handle); in drm_addctx() 330 if (ctx->handle == -1) { in drm_addctx() [all …]
|
D | drm_memory.c | 132 int drm_free_agp(DRM_AGP_MEM * handle, int pages) in drm_free_agp() argument 134 return drm_agp_free_memory(handle) ? 0 : -EINVAL; in drm_free_agp() 139 int drm_bind_agp(DRM_AGP_MEM * handle, unsigned int start) in drm_bind_agp() argument 141 return drm_agp_bind_memory(handle, start); in drm_bind_agp() 145 int drm_unbind_agp(DRM_AGP_MEM * handle) in drm_unbind_agp() argument 147 return drm_agp_unbind_memory(handle); in drm_unbind_agp() 166 map->handle = agp_remap(map->offset, map->size, dev); in drm_core_ioremap() 168 map->handle = ioremap(map->offset, map->size); in drm_core_ioremap() 176 map->handle = agp_remap(map->offset, map->size, dev); in drm_core_ioremap_wc() 178 map->handle = ioremap_wc(map->offset, map->size); in drm_core_ioremap_wc() [all …]
|
D | drm_ioc32.c | 186 u32 handle; /**< User-space: "Handle" to pass to mmap() */ member 197 void *handle; in compat_drm_getmap() local 217 || __get_user(handle, &map->handle) in compat_drm_getmap() 221 m32.handle = (unsigned long)handle; in compat_drm_getmap() 235 void *handle; in compat_drm_addmap() local 256 || __get_user(handle, &map->handle)) in compat_drm_addmap() 259 m32.handle = (unsigned long)handle; in compat_drm_addmap() 260 if (m32.handle != (unsigned long)handle && printk_ratelimit()) in compat_drm_addmap() 263 handle, m32.type, m32.offset); in compat_drm_addmap() 276 u32 handle; in compat_drm_rmmap() local [all …]
|
/drivers/sh/ |
D | intc.c | 39 unsigned long handle; member 78 unsigned int handle) in set_field() argument 80 unsigned int width = _INTC_WIDTH(handle); in set_field() 81 unsigned int shift = _INTC_SHIFT(handle); in set_field() 148 unsigned long handle, in intc_mode_field() argument 154 fn(addr, handle, ((1 << _INTC_WIDTH(handle)) - 1)); in intc_mode_field() 158 unsigned long handle, in intc_mode_zero() argument 164 fn(addr, handle, 0); in intc_mode_zero() 168 unsigned long handle, in intc_mode_prio() argument 174 fn(addr, handle, intc_prio_level[irq]); in intc_mode_prio() [all …]
|
/drivers/char/ |
D | keyboard.c | 195 struct input_handle *handle; in getkeycode() local 199 list_for_each_entry(handle, &kbd_handler.h_list, h_node) { in getkeycode() 200 error = input_get_keycode(handle->dev, scancode, &keycode); in getkeycode() 210 struct input_handle *handle; in setkeycode() local 213 list_for_each_entry(handle, &kbd_handler.h_list, h_node) { in setkeycode() 214 error = input_set_keycode(handle->dev, scancode, keycode); in setkeycode() 227 struct input_handle *handle; in kd_nosound() local 229 list_for_each_entry(handle, &kbd_handler.h_list, h_node) { in kd_nosound() 230 if (test_bit(EV_SND, handle->dev->evbit)) { in kd_nosound() 231 if (test_bit(SND_TONE, handle->dev->sndbit)) in kd_nosound() [all …]
|
/drivers/hwmon/ |
D | hp_accel.c | 92 acpi_status lis3lv02d_acpi_init(acpi_handle handle) in lis3lv02d_acpi_init() argument 94 return acpi_evaluate_object(handle, METHOD_NAME__INI, NULL, NULL); in lis3lv02d_acpi_init() 105 acpi_status lis3lv02d_acpi_read(acpi_handle handle, int reg, u8 *ret) in lis3lv02d_acpi_read() argument 114 status = acpi_evaluate_integer(handle, "ALRD", &args, &lret); in lis3lv02d_acpi_read() 127 acpi_status lis3lv02d_acpi_write(acpi_handle handle, int reg, u8 val) in lis3lv02d_acpi_write() argument 138 return acpi_evaluate_integer(handle, "ALWR", &args, &ret); in lis3lv02d_acpi_write() 217 acpi_handle handle = adev.device->handle; in hpled_set() local 225 acpi_evaluate_integer(handle, "ALED", &args, &ret); in hpled_set() 256 status = acpi_walk_resources(device->handle, METHOD_NAME__CRS, in lis3lv02d_enum_resources() 262 static s16 lis3lv02d_read_16(acpi_handle handle, int reg) in lis3lv02d_read_16() argument [all …]
|
/drivers/media/video/cx18/ |
D | cx18-streams.c | 114 s->handle = CX18_INVALID_TASK_HANDLE; in cx18_stream_init() 366 data[0] = s->handle; in cx18_vbi_setup() 398 if (s->handle == CX18_INVALID_TASK_HANDLE || in cx18_stream_put_buf_fw() 407 cx18_vapi(cx, CX18_CPU_DE_SET_MDL, 5, s->handle, in cx18_stream_put_buf_fw() 478 s->handle, !!test_bit(CX18_F_I_RADIO_USER, &cx->i_flags)); in cx18_start_v4l2_encode_stream() 484 s->handle = data[0]; in cx18_start_v4l2_encode_stream() 485 cx18_vapi(cx, CX18_CPU_SET_CHANNEL_TYPE, 2, s->handle, captype); in cx18_start_v4l2_encode_stream() 491 cx18_vapi(cx, CX18_CPU_SET_VER_CROP_LINE, 2, s->handle, 0); in cx18_start_v4l2_encode_stream() 492 cx18_vapi(cx, CX18_CPU_SET_MISC_PARAMETERS, 3, s->handle, 3, 1); in cx18_start_v4l2_encode_stream() 493 cx18_vapi(cx, CX18_CPU_SET_MISC_PARAMETERS, 3, s->handle, 8, 0); in cx18_start_v4l2_encode_stream() [all …]
|