Home
last modified time | relevance | path

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

/drivers/acpi/
Dglue.c110 struct acpi_device *acpi_dev; in acpi_bind_one() local
128 status = acpi_bus_get_device(handle, &acpi_dev); in acpi_bind_one()
138 mutex_lock(&acpi_dev->physical_node_lock); in acpi_bind_one()
141 list_for_each_entry(pn, &acpi_dev->physical_node_list, node) in acpi_bind_one()
149 find_first_zero_bit(acpi_dev->physical_node_id_bitmap, in acpi_bind_one()
156 set_bit(physical_node->node_id, acpi_dev->physical_node_id_bitmap); in acpi_bind_one()
158 list_add_tail(&physical_node->node, &acpi_dev->physical_node_list); in acpi_bind_one()
159 acpi_dev->physical_node_count++; in acpi_bind_one()
161 mutex_unlock(&acpi_dev->physical_node_lock); in acpi_bind_one()
164 ACPI_HANDLE_SET(dev, acpi_dev->handle); in acpi_bind_one()
[all …]
Dscan.c84 static int create_modalias(struct acpi_device *acpi_dev, char *modalias, in create_modalias() argument
91 if (list_empty(&acpi_dev->pnp.ids)) in create_modalias()
97 list_for_each_entry(id, &acpi_dev->pnp.ids, list) { in create_modalias()
111 struct acpi_device *acpi_dev = to_acpi_device(dev); in acpi_device_modalias_show() local
115 len = create_modalias(acpi_dev, buf, 1024); in acpi_device_modalias_show()
458 struct acpi_device *acpi_dev = to_acpi_device(dev); in acpi_device_hid_show() local
460 return sprintf(buf, "%s\n", acpi_device_hid(acpi_dev)); in acpi_device_hid_show()
467 struct acpi_device *acpi_dev = to_acpi_device(dev); in acpi_device_uid_show() local
469 return sprintf(buf, "%s\n", acpi_dev->pnp.unique_id); in acpi_device_uid_show()
476 struct acpi_device *acpi_dev = to_acpi_device(dev); in acpi_device_adr_show() local
[all …]
Dvideo_detect.c113 struct acpi_device *acpi_dev; in find_video() local
119 if (acpi_bus_get_device(handle, &acpi_dev)) in find_video()
122 if (!acpi_match_device_ids(acpi_dev, video_ids)) { in find_video()
/drivers/hwmon/
Dacpi_power_meter.c90 struct acpi_device *acpi_dev; member
128 status = acpi_evaluate_integer(resource->acpi_dev->handle, "_GAI", in update_avg_interval()
143 struct acpi_device *acpi_dev = to_acpi_device(dev); in show_avg_interval() local
144 struct acpi_power_meter_resource *resource = acpi_dev->driver_data; in show_avg_interval()
157 struct acpi_device *acpi_dev = to_acpi_device(dev); in set_avg_interval() local
158 struct acpi_power_meter_resource *resource = acpi_dev->driver_data; in set_avg_interval()
176 status = acpi_evaluate_integer(resource->acpi_dev->handle, "_PAI", in set_avg_interval()
200 status = acpi_evaluate_integer(resource->acpi_dev->handle, "_GHL", in update_cap()
215 struct acpi_device *acpi_dev = to_acpi_device(dev); in show_cap() local
216 struct acpi_power_meter_resource *resource = acpi_dev->driver_data; in show_cap()
[all …]
Dasus_atk0110.c114 struct acpi_device *acpi_dev; member
341 struct device *dev = &data->acpi_dev->dev; in validate_hwmon_pack()
436 struct device *dev = &data->acpi_dev->dev; in atk_print_sensor()
463 struct device *dev = &data->acpi_dev->dev; in atk_read_value_old()
501 struct device *dev = &data->acpi_dev->dev; in atk_ggrp()
537 struct device *dev = &data->acpi_dev->dev; in atk_gitm()
579 struct device *dev = &data->acpi_dev->dev; in atk_sitm()
616 struct device *dev = &data->acpi_dev->dev; in atk_read_value_new()
850 struct device *dev = &data->acpi_dev->dev; in atk_add_sensor()
973 struct device *dev = &data->acpi_dev->dev; in atk_enumerate_old_hwmon()
[all …]
/drivers/pnp/pnpacpi/
Dcore.c85 struct acpi_device *acpi_dev; in pnpacpi_set_resources() local
93 if (!handle || 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_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_bus_get_device(handle, &acpi_dev)) { in pnpacpi_can_wakeup()
158 struct acpi_device *acpi_dev; in pnpacpi_suspend() local
163 if (!handle || acpi_bus_get_device(handle, &acpi_dev)) { in pnpacpi_suspend()
[all …]
Drsparser.c256 struct acpi_device *acpi_dev = dev->data; in pnpacpi_parse_allocated_resource() local
257 acpi_handle handle = acpi_dev->handle; in pnpacpi_parse_allocated_resource()
535 struct acpi_device *acpi_dev = dev->data; in pnpacpi_parse_resource_option_data() local
536 acpi_handle handle = acpi_dev->handle; in pnpacpi_parse_resource_option_data()
608 struct acpi_device *acpi_dev = dev->data; in pnpacpi_build_resource_template() local
609 acpi_handle handle = acpi_dev->handle; in pnpacpi_build_resource_template()
/drivers/platform/x86/
Dtoshiba_acpi.c120 struct acpi_device *acpi_dev; member
230 status = acpi_evaluate_object(dev->acpi_dev->handle, in hci_raw()
957 status = acpi_evaluate_object(dev->acpi_dev->handle, "INFO", in toshiba_acpi_query_hotkey()
1030 status = acpi_get_handle(dev->acpi_dev->handle, "INFO", &handle); in toshiba_acpi_setup_keyboard()
1044 status = acpi_evaluate_object(dev->acpi_dev->handle, "ENAB", NULL, NULL); in toshiba_acpi_setup_keyboard()
1106 &dev->acpi_dev->dev, in toshiba_acpi_setup_backlight()
1121 static int toshiba_acpi_remove(struct acpi_device *acpi_dev) in toshiba_acpi_remove() argument
1123 struct toshiba_acpi_dev *dev = acpi_driver_data(acpi_dev); in toshiba_acpi_remove()
1172 static int toshiba_acpi_add(struct acpi_device *acpi_dev) in toshiba_acpi_add() argument
1186 hci_method = find_hci_method(acpi_dev->handle); in toshiba_acpi_add()
[all …]
Dsony-laptop.c2958 struct acpi_device *acpi_dev; member
4246 acpi_bus_generate_proc_event(dev->acpi_dev, 1, device_event); in sony_pic_irq()
4304 spic_dev.acpi_dev = device; in sony_pic_add()
/drivers/ata/
Dlibata-zpodd.c90 struct acpi_device *acpi_dev; in odd_can_poweroff() local
96 status = acpi_bus_get_device(handle, &acpi_dev); in odd_can_poweroff()
100 return acpi_device_can_poweroff(acpi_dev); in odd_can_poweroff()
/drivers/gpu/drm/i915/
Dintel_opregion.c343 struct acpi_device *acpi_dev, *acpi_cdev, *acpi_video_bus = NULL; in intel_didl_outputs() local
350 if (!handle || acpi_bus_get_device(handle, &acpi_dev)) in intel_didl_outputs()
354 acpi_video_bus = acpi_dev; in intel_didl_outputs()
356 list_for_each_entry(acpi_cdev, &acpi_dev->children, node) { in intel_didl_outputs()
/drivers/char/ipmi/
Dipmi_si_intf.c2167 struct acpi_device *acpi_dev; in ipmi_pnp_probe() local
2174 acpi_dev = pnp_acpi_device(dev); in ipmi_pnp_probe()
2175 if (!acpi_dev) in ipmi_pnp_probe()
2185 handle = acpi_dev->handle; in ipmi_pnp_probe()