Home
last modified time | relevance | path

Searched refs:acpi_dev (Results 1 – 12 of 12) sorted by relevance

/drivers/hwmon/
Dacpi_power_meter.c89 struct acpi_device *acpi_dev; member
135 status = acpi_evaluate_integer(resource->acpi_dev->handle, "_GAI", in update_avg_interval()
150 struct acpi_device *acpi_dev = to_acpi_device(dev); in show_avg_interval() local
151 struct acpi_power_meter_resource *resource = acpi_dev->driver_data; in show_avg_interval()
164 struct acpi_device *acpi_dev = to_acpi_device(dev); in set_avg_interval() local
165 struct acpi_power_meter_resource *resource = acpi_dev->driver_data; in set_avg_interval()
183 status = acpi_evaluate_integer(resource->acpi_dev->handle, "_PAI", in set_avg_interval()
207 status = acpi_evaluate_integer(resource->acpi_dev->handle, "_GHL", in update_cap()
222 struct acpi_device *acpi_dev = to_acpi_device(dev); in show_cap() local
223 struct acpi_power_meter_resource *resource = acpi_dev->driver_data; in show_cap()
[all …]
Dasus_atk0110.c112 struct acpi_device *acpi_dev; member
339 struct device *dev = &data->acpi_dev->dev; in validate_hwmon_pack()
434 struct device *dev = &data->acpi_dev->dev; in atk_print_sensor()
461 struct device *dev = &data->acpi_dev->dev; in atk_read_value_old()
499 struct device *dev = &data->acpi_dev->dev; in atk_ggrp()
535 struct device *dev = &data->acpi_dev->dev; in atk_gitm()
577 struct device *dev = &data->acpi_dev->dev; in atk_sitm()
614 struct device *dev = &data->acpi_dev->dev; in atk_read_value_new()
848 struct device *dev = &data->acpi_dev->dev; in atk_add_sensor()
972 struct device *dev = &data->acpi_dev->dev; in atk_enumerate_old_hwmon()
[all …]
/drivers/acpi/
Dscan.c47 static int create_modalias(struct acpi_device *acpi_dev, char *modalias, in create_modalias() argument
54 if (list_empty(&acpi_dev->pnp.ids)) in create_modalias()
60 list_for_each_entry(id, &acpi_dev->pnp.ids, list) { in create_modalias()
74 struct acpi_device *acpi_dev = to_acpi_device(dev); in acpi_device_modalias_show() local
78 len = create_modalias(acpi_dev, buf, 1024); in acpi_device_modalias_show()
172 struct acpi_device *acpi_dev = to_acpi_device(dev); in acpi_device_hid_show() local
174 return sprintf(buf, "%s\n", acpi_device_hid(acpi_dev)); in acpi_device_hid_show()
180 struct acpi_device *acpi_dev = to_acpi_device(dev); in acpi_device_path_show() local
184 result = acpi_get_name(acpi_dev->handle, ACPI_FULL_PATHNAME, &path); in acpi_device_path_show()
287 struct acpi_device *acpi_dev = to_acpi_device(dev); in acpi_device_release() local
[all …]
Dglue.c148 struct acpi_device *acpi_dev; in acpi_bind_one() local
163 status = acpi_bus_get_device(handle, &acpi_dev); in acpi_bind_one()
167 ret = sysfs_create_link(&dev->kobj, &acpi_dev->dev.kobj, in acpi_bind_one()
169 ret = sysfs_create_link(&acpi_dev->dev.kobj, &dev->kobj, in acpi_bind_one()
171 if (acpi_dev->wakeup.flags.valid) in acpi_bind_one()
183 struct acpi_device *acpi_dev; in acpi_unbind_one() local
189 &acpi_dev)) { in acpi_unbind_one()
191 sysfs_remove_link(&acpi_dev->dev.kobj, "physical_node"); in acpi_unbind_one()
Dvideo_detect.c116 struct acpi_device *acpi_dev; in find_video() local
122 if (acpi_bus_get_device(handle, &acpi_dev)) in find_video()
125 if (!acpi_match_device_ids(acpi_dev, video_ids)) { in find_video()
130 *cap |= acpi_is_video_device(acpi_dev); in find_video()
Dpower.c209 struct acpi_device *acpi_dev; in acpi_power_on_device() local
213 if (acpi_bus_get_device(handle, &acpi_dev)) in acpi_power_on_device()
216 if(acpi_power_get_inferred_state(acpi_dev, &state)) in acpi_power_on_device()
388 struct acpi_device *acpi_dev; in acpi_power_resource_unregister_device() local
395 if (acpi_bus_get_device(handle, &acpi_dev)) in acpi_power_resource_unregister_device()
398 list = &acpi_dev->power.states[ACPI_STATE_D0].resources; in acpi_power_resource_unregister_device()
434 struct acpi_device *acpi_dev; in acpi_power_resource_register_device() local
442 ret = acpi_bus_get_device(handle, &acpi_dev); in acpi_power_resource_register_device()
446 if (!acpi_dev->power.flags.power_resources) in acpi_power_resource_register_device()
456 list = &acpi_dev->power.states[ACPI_STATE_D0].resources; in acpi_power_resource_register_device()
/drivers/pnp/pnpacpi/
Dcore.c85 struct acpi_device *acpi_dev; in pnpacpi_set_resources() local
93 if (!handle || ACPI_FAILURE(acpi_bus_get_device(handle, &acpi_dev))) { in pnpacpi_set_resources()
98 if (WARN_ON_ONCE(acpi_dev != dev->data)) in pnpacpi_set_resources()
99 dev->data = acpi_dev; in pnpacpi_set_resources()
119 struct acpi_device *acpi_dev; in pnpacpi_disable_resources() local
126 if (!handle || ACPI_FAILURE(acpi_bus_get_device(handle, &acpi_dev))) { in pnpacpi_disable_resources()
144 struct acpi_device *acpi_dev; in pnpacpi_can_wakeup() local
148 if (!handle || ACPI_FAILURE(acpi_bus_get_device(handle, &acpi_dev))) { in pnpacpi_can_wakeup()
158 struct acpi_device *acpi_dev; in pnpacpi_suspend() local
163 if (!handle || ACPI_FAILURE(acpi_bus_get_device(handle, &acpi_dev))) { in pnpacpi_suspend()
[all …]
Drsparser.c488 struct acpi_device *acpi_dev = dev->data; in pnpacpi_parse_allocated_resource() local
489 acpi_handle handle = acpi_dev->handle; in pnpacpi_parse_allocated_resource()
767 struct acpi_device *acpi_dev = dev->data; in pnpacpi_parse_resource_option_data() local
768 acpi_handle handle = acpi_dev->handle; in pnpacpi_parse_resource_option_data()
840 struct acpi_device *acpi_dev = dev->data; in pnpacpi_build_resource_template() local
841 acpi_handle handle = acpi_dev->handle; in pnpacpi_build_resource_template()
/drivers/platform/x86/
Dtoshiba_acpi.c119 struct acpi_device *acpi_dev; member
228 status = acpi_evaluate_object(dev->acpi_dev->handle, in hci_raw()
909 status = acpi_evaluate_object(dev->acpi_dev->handle, "INFO", in toshiba_acpi_query_hotkey()
982 status = acpi_get_handle(dev->acpi_dev->handle, "INFO", &handle); in toshiba_acpi_setup_keyboard()
996 status = acpi_evaluate_object(dev->acpi_dev->handle, "ENAB", NULL, NULL); in toshiba_acpi_setup_keyboard()
1023 static int toshiba_acpi_remove(struct acpi_device *acpi_dev, int type) in toshiba_acpi_remove() argument
1025 struct toshiba_acpi_dev *dev = acpi_driver_data(acpi_dev); in toshiba_acpi_remove()
1074 static int __devinit toshiba_acpi_add(struct acpi_device *acpi_dev) in toshiba_acpi_add() argument
1089 hci_method = find_hci_method(acpi_dev->handle); in toshiba_acpi_add()
1098 dev->acpi_dev = acpi_dev; in toshiba_acpi_add()
[all …]
Dsony-laptop.c1886 struct acpi_device *acpi_dev; member
3165 acpi_bus_generate_proc_event(dev->acpi_dev, 1, device_event); in sony_pic_irq()
3223 spic_dev.acpi_dev = device; in sony_pic_add()
/drivers/gpu/drm/i915/
Dintel_opregion.c337 struct acpi_device *acpi_dev, *acpi_cdev, *acpi_video_bus = NULL; in intel_didl_outputs() local
343 if (!handle || ACPI_FAILURE(acpi_bus_get_device(handle, &acpi_dev))) in intel_didl_outputs()
346 if (acpi_is_video_device(acpi_dev)) in intel_didl_outputs()
347 acpi_video_bus = acpi_dev; in intel_didl_outputs()
349 list_for_each_entry(acpi_cdev, &acpi_dev->children, node) { in intel_didl_outputs()
/drivers/char/ipmi/
Dipmi_si_intf.c2134 struct acpi_device *acpi_dev; in ipmi_pnp_probe() local
2141 acpi_dev = pnp_acpi_device(dev); in ipmi_pnp_probe()
2142 if (!acpi_dev) in ipmi_pnp_probe()
2152 handle = acpi_dev->handle; in ipmi_pnp_probe()