Home
last modified time | relevance | path

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

/drivers/acpi/
Dglue.c164 int acpi_bind_one(struct device *dev, struct acpi_device *acpi_dev) in acpi_bind_one() argument
173 if (acpi_dev) { in acpi_bind_one()
177 acpi_dev = ACPI_COMPANION(dev); in acpi_bind_one()
180 if (!acpi_dev) in acpi_bind_one()
183 acpi_dev_get(acpi_dev); in acpi_bind_one()
191 mutex_lock(&acpi_dev->physical_node_lock); in acpi_bind_one()
197 physnode_list = &acpi_dev->physical_node_list; in acpi_bind_one()
199 list_for_each_entry(pn, &acpi_dev->physical_node_list, node) { in acpi_bind_one()
202 mutex_unlock(&acpi_dev->physical_node_lock); in acpi_bind_one()
206 if (ACPI_COMPANION(dev) != acpi_dev) in acpi_bind_one()
[all …]
Ddevice_sysfs.c135 static int create_pnp_modalias(struct acpi_device *acpi_dev, char *modalias, in create_pnp_modalias() argument
143 if (!acpi_device_is_present(acpi_dev)) in create_pnp_modalias()
152 list_for_each_entry(id, &acpi_dev->pnp.ids, list) in create_pnp_modalias()
165 list_for_each_entry(id, &acpi_dev->pnp.ids, list) { in create_pnp_modalias()
193 static int create_of_modalias(struct acpi_device *acpi_dev, char *modalias, in create_of_modalias() argument
203 status = acpi_get_name(acpi_dev->handle, ACPI_SINGLE_NAME, &buf); in create_of_modalias()
219 of_compatible = acpi_dev->data.of_compatible; in create_of_modalias()
403 struct acpi_device *acpi_dev = to_acpi_device(dev); in hid_show() local
405 return sprintf(buf, "%s\n", acpi_device_hid(acpi_dev)); in hid_show()
412 struct acpi_device *acpi_dev = to_acpi_device(dev); in uid_show() local
[all …]
Dbus.c981 struct acpi_device *acpi_dev = to_acpi_device(dev); in acpi_bus_match() local
984 return acpi_dev->flags.match_driver in acpi_bus_match()
985 && !acpi_match_device_ids(acpi_dev, acpi_drv->ids); in acpi_bus_match()
995 struct acpi_device *acpi_dev = to_acpi_device(dev); in acpi_device_probe() local
999 if (acpi_dev->handler && !acpi_is_pnp_device(acpi_dev)) in acpi_device_probe()
1005 ret = acpi_drv->ops.add(acpi_dev); in acpi_device_probe()
1009 acpi_dev->driver = acpi_drv; in acpi_device_probe()
1012 acpi_drv->name, acpi_dev->pnp.bus_id); in acpi_device_probe()
1015 ret = acpi_device_install_notify_handler(acpi_dev); in acpi_device_probe()
1018 acpi_drv->ops.remove(acpi_dev); in acpi_device_probe()
[all …]
Dvideo_detect.c64 struct acpi_device *acpi_dev; in find_video() local
70 if (acpi_bus_get_device(handle, &acpi_dev)) in find_video()
73 if (!acpi_match_device_ids(acpi_dev, video_ids)) { in find_video()
Dscan.c460 struct acpi_device *acpi_dev = to_acpi_device(dev); in acpi_device_release() local
462 acpi_free_properties(acpi_dev); in acpi_device_release()
463 acpi_free_pnp_ids(&acpi_dev->pnp); in acpi_device_release()
464 acpi_free_power_resources_lists(acpi_dev); in acpi_device_release()
465 kfree(acpi_dev); in acpi_device_release()
/drivers/pnp/pnpacpi/
Dcore.c51 struct acpi_device *acpi_dev; in pnpacpi_set_resources() local
57 acpi_dev = ACPI_COMPANION(&dev->dev); in pnpacpi_set_resources()
58 if (!acpi_dev) { in pnpacpi_set_resources()
63 if (WARN_ON_ONCE(acpi_dev != dev->data)) in pnpacpi_set_resources()
64 dev->data = acpi_dev; in pnpacpi_set_resources()
66 handle = acpi_dev->handle; in pnpacpi_set_resources()
84 if (!ret && acpi_device_power_manageable(acpi_dev)) in pnpacpi_set_resources()
85 ret = acpi_device_set_power(acpi_dev, ACPI_STATE_D0); in pnpacpi_set_resources()
92 struct acpi_device *acpi_dev; in pnpacpi_disable_resources() local
97 acpi_dev = ACPI_COMPANION(&dev->dev); in pnpacpi_disable_resources()
[all …]
Drsparser.c272 struct acpi_device *acpi_dev = dev->data; in pnpacpi_parse_allocated_resource() local
273 acpi_handle handle = acpi_dev->handle; in pnpacpi_parse_allocated_resource()
551 struct acpi_device *acpi_dev = dev->data; in pnpacpi_parse_resource_option_data() local
552 acpi_handle handle = acpi_dev->handle; in pnpacpi_parse_resource_option_data()
624 struct acpi_device *acpi_dev = dev->data; in pnpacpi_build_resource_template() local
625 acpi_handle handle = acpi_dev->handle; in pnpacpi_build_resource_template()
/drivers/hwmon/
Dacpi_power_meter.c76 struct acpi_device *acpi_dev; member
114 status = acpi_evaluate_integer(resource->acpi_dev->handle, "_GAI", in update_avg_interval()
117 acpi_evaluation_failure_warn(resource->acpi_dev->handle, "_GAI", in update_avg_interval()
130 struct acpi_device *acpi_dev = to_acpi_device(dev); in show_avg_interval() local
131 struct acpi_power_meter_resource *resource = acpi_dev->driver_data; in show_avg_interval()
144 struct acpi_device *acpi_dev = to_acpi_device(dev); in set_avg_interval() local
145 struct acpi_power_meter_resource *resource = acpi_dev->driver_data; in set_avg_interval()
163 status = acpi_evaluate_integer(resource->acpi_dev->handle, "_PAI", in set_avg_interval()
170 acpi_evaluation_failure_warn(resource->acpi_dev->handle, "_PAI", in set_avg_interval()
188 status = acpi_evaluate_integer(resource->acpi_dev->handle, "_GHL", in update_cap()
[all …]
Dasus_atk0110.c109 struct acpi_device *acpi_dev; member
329 struct device *dev = &data->acpi_dev->dev; in validate_hwmon_pack()
424 struct device *dev = &data->acpi_dev->dev; in atk_print_sensor()
451 struct device *dev = &data->acpi_dev->dev; in atk_read_value_old()
489 struct device *dev = &data->acpi_dev->dev; in atk_ggrp()
525 struct device *dev = &data->acpi_dev->dev; in atk_gitm()
567 struct device *dev = &data->acpi_dev->dev; in atk_sitm()
604 struct device *dev = &data->acpi_dev->dev; in atk_read_value_new()
822 struct device *dev = &data->acpi_dev->dev; in atk_add_sensor()
940 struct device *dev = &data->acpi_dev->dev; in atk_enumerate_old_hwmon()
[all …]
/drivers/acpi/dptf/
Ddptf_power.c32 struct acpi_device *acpi_dev = dev_get_drvdata(dev);\
36 status = acpi_evaluate_integer(acpi_dev->handle, #object,\
70 struct acpi_device *acpi_dev = dev_get_drvdata(dev); in prochot_confirm_store() local
77 status = acpi_execute_simple_method(acpi_dev->handle, "PBOK", seq_no); in prochot_confirm_store()
174 struct acpi_device *acpi_dev; in dptf_power_add() local
178 acpi_dev = ACPI_COMPANION(&(pdev->dev)); in dptf_power_add()
179 if (!acpi_dev) in dptf_power_add()
182 ptype = dptf_participant_type(acpi_dev->handle); in dptf_power_add()
190 result = acpi_install_notify_handler(acpi_dev->handle, in dptf_power_add()
200 acpi_remove_notify_handler(acpi_dev->handle, in dptf_power_add()
[all …]
Ddptf_pch_fivr.c61 struct acpi_device *acpi_dev = dev_get_drvdata(dev);\
65 status = pch_fivr_read(acpi_dev->handle, #method, &fivr_resp);\
77 struct acpi_device *acpi_dev = dev_get_drvdata(dev);\
84 status = acpi_execute_simple_method(acpi_dev->handle, #method, val);\
121 struct acpi_device *acpi_dev; in pch_fivr_add() local
126 acpi_dev = ACPI_COMPANION(&(pdev->dev)); in pch_fivr_add()
127 if (!acpi_dev) in pch_fivr_add()
130 status = acpi_evaluate_integer(acpi_dev->handle, "PTYP", NULL, &ptype); in pch_fivr_add()
139 platform_set_drvdata(pdev, acpi_dev); in pch_fivr_add()
/drivers/platform/x86/
Dtoshiba_haps.c21 struct acpi_device *acpi_dev; member
85 ret = toshiba_haps_protection_level(haps->acpi_dev->handle, level); in protection_level_store()
111 ret = toshiba_haps_reset_protection(haps->acpi_dev->handle); in reset_protection_store()
175 static int toshiba_haps_add(struct acpi_device *acpi_dev) in toshiba_haps_add() argument
183 if (!toshiba_haps_available(acpi_dev->handle)) in toshiba_haps_add()
192 haps->acpi_dev = acpi_dev; in toshiba_haps_add()
194 acpi_dev->driver_data = haps; in toshiba_haps_add()
195 dev_set_drvdata(&acpi_dev->dev, haps); in toshiba_haps_add()
198 ret = toshiba_haps_protection_level(acpi_dev->handle, 2); in toshiba_haps_add()
202 ret = sysfs_create_group(&acpi_dev->dev.kobj, &haps_attr_group); in toshiba_haps_add()
[all …]
Dsystem76_acpi.c21 struct acpi_device *acpi_dev; member
63 handle = acpi_device_handle(data->acpi_dev); in system76_get()
83 handle = acpi_device_handle(data->acpi_dev); in system76_set()
274 static void system76_notify(struct acpi_device *acpi_dev, u32 event) in system76_notify() argument
278 data = acpi_driver_data(acpi_dev); in system76_notify()
299 static int system76_add(struct acpi_device *acpi_dev) in system76_add() argument
304 data = devm_kzalloc(&acpi_dev->dev, sizeof(*data), GFP_KERNEL); in system76_add()
307 acpi_dev->driver_data = data; in system76_add()
308 data->acpi_dev = acpi_dev; in system76_add()
319 err = devm_led_classdev_register(&acpi_dev->dev, &data->ap_led); in system76_add()
[all …]
Dtoshiba_bluetooth.c30 struct acpi_device *acpi_dev; member
147 status = toshiba_bluetooth_status(bt_dev->acpi_dev->handle); in toshiba_bluetooth_sync_status()
177 ret = toshiba_bluetooth_disable(bt_dev->acpi_dev->handle); in bt_rfkill_set_block()
179 ret = toshiba_bluetooth_enable(bt_dev->acpi_dev->handle); in bt_rfkill_set_block()
249 bt_dev->acpi_dev = device; in toshiba_bt_rfkill_add()
Dtoshiba_acpi.c162 struct acpi_device *acpi_dev; member
326 status = acpi_evaluate_object(dev->acpi_dev->handle, in tci_raw()
2396 if (sysfs_update_group(&toshiba_acpi->acpi_dev->dev.kobj, in toshiba_acpi_kbd_bl_work()
2408 acpi_bus_generate_netlink_event(toshiba_acpi->acpi_dev->pnp.device_class, in toshiba_acpi_kbd_bl_work()
2409 dev_name(&toshiba_acpi->acpi_dev->dev), in toshiba_acpi_kbd_bl_work()
2603 &dev->acpi_dev->dev, in toshiba_acpi_setup_wwan_rfkill()
2631 status = acpi_evaluate_object(dev->acpi_dev->handle, in toshiba_acpi_enable_hotkeys()
2692 status = acpi_evaluate_integer(dev->acpi_dev->handle, "INFO", in toshiba_acpi_query_hotkey()
2827 if (acpi_has_method(dev->acpi_dev->handle, "INFO")) in toshiba_acpi_setup_keyboard()
2904 &dev->acpi_dev->dev, in toshiba_acpi_setup_backlight()
[all …]
Dwireless-hotkey.c62 static void wl_notify(struct acpi_device *acpi_dev, u32 event) in wl_notify() argument
Dsony-laptop.c3357 struct acpi_device *acpi_dev; member
4701 spic_dev.acpi_dev = device; in sony_pic_add()
/drivers/platform/chrome/
Dchromeos_laptop.c167 struct acpi_peripheral *acpi_dev; in chromeos_laptop_adjust_client() local
176 acpi_dev = &cros_laptop->acpi_peripherals[i]; in chromeos_laptop_adjust_client()
178 memcpy(acpi_ids[0].id, acpi_dev->hid, ACPI_ID_LEN); in chromeos_laptop_adjust_client()
181 error = device_add_software_node(&client->dev, &acpi_dev->swnode); in chromeos_laptop_adjust_client()
189 acpi_dev->client = client; in chromeos_laptop_adjust_client()
200 struct acpi_peripheral *acpi_dev; in chromeos_laptop_detach_i2c_client() local
206 acpi_dev = &cros_laptop->acpi_peripherals[i]; in chromeos_laptop_detach_i2c_client()
208 if (acpi_dev->client == client) { in chromeos_laptop_detach_i2c_client()
209 acpi_dev->client = NULL; in chromeos_laptop_detach_i2c_client()
798 struct acpi_peripheral *acpi_dev; in chromeos_laptop_prepare_acpi_peripherals() local
[all …]
/drivers/gpio/
Dgpio-amdpt.c75 struct acpi_device *acpi_dev; in pt_gpio_probe() local
80 if (acpi_bus_get_device(handle, &acpi_dev)) { in pt_gpio_probe()
/drivers/perf/
Dqcom_l3_pmu.c732 struct acpi_device *acpi_dev; in qcom_l3_cache_pmu_probe() local
739 acpi_dev = ACPI_COMPANION(&pdev->dev); in qcom_l3_cache_pmu_probe()
740 if (!acpi_dev) in qcom_l3_cache_pmu_probe()
745 acpi_dev->parent->pnp.unique_id, acpi_dev->pnp.unique_id); in qcom_l3_cache_pmu_probe()
Darm_dsu_pmu.c649 struct acpi_device *acpi_dev; in dsu_pmu_acpi_get_cpus() local
655 acpi_dev = ACPI_COMPANION(cpu_dev); in dsu_pmu_acpi_get_cpus()
656 if (acpi_dev && in dsu_pmu_acpi_get_cpus()
657 acpi_dev->parent == ACPI_COMPANION(dev)->parent) in dsu_pmu_acpi_get_cpus()
/drivers/gpu/drm/i915/display/
Dintel_dsi_vbt.c440 struct acpi_device *acpi_dev; in i2c_acpi_find_adapter() local
444 acpi_dev = ACPI_COMPANION(dev); in i2c_acpi_find_adapter()
445 if (acpi_dev) { in i2c_acpi_find_adapter()
449 lookup.dev_handle = acpi_device_handle(acpi_dev); in i2c_acpi_find_adapter()
452 acpi_dev_get_resources(acpi_dev, &resource_list, in i2c_acpi_find_adapter()
/drivers/mfd/
Dkempld-core.c436 struct acpi_device *acpi_dev = ACPI_COMPANION(dev); in kempld_get_acpi_data() local
448 ret = acpi_dev_get_resources(acpi_dev, &resource_list, NULL, NULL); in kempld_get_acpi_data()
459 resources = devm_kcalloc(&acpi_dev->dev, count, sizeof(*resources), in kempld_get_acpi_data()
/drivers/platform/mellanox/
Dmlxbf-pmc.c1388 struct acpi_device *acpi_dev = ACPI_COMPANION(&pdev->dev); in mlxbf_pmc_probe() local
1389 const char *hid = acpi_device_hid(acpi_dev); in mlxbf_pmc_probe()
/drivers/scsi/hisi_sas/
Dhisi_sas_v3_hw.c924 struct acpi_device *acpi_dev; in hw_init_v3_hw() local
955 acpi_dev = ACPI_COMPANION(dev); in hw_init_v3_hw()
956 if (!acpi_device_power_manageable(acpi_dev)) in hw_init_v3_hw()