Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/acpi/
Dglue.c174 int acpi_bind_one(struct device *dev, struct acpi_device *acpi_dev) in acpi_bind_one() argument
183 if (acpi_dev) { in acpi_bind_one()
187 acpi_dev = ACPI_COMPANION(dev); in acpi_bind_one()
190 if (!acpi_dev) in acpi_bind_one()
193 get_device(&acpi_dev->dev); in acpi_bind_one()
201 mutex_lock(&acpi_dev->physical_node_lock); in acpi_bind_one()
207 physnode_list = &acpi_dev->physical_node_list; in acpi_bind_one()
209 list_for_each_entry(pn, &acpi_dev->physical_node_list, node) { in acpi_bind_one()
212 mutex_unlock(&acpi_dev->physical_node_lock); in acpi_bind_one()
216 if (ACPI_COMPANION(dev) != acpi_dev) in acpi_bind_one()
[all …]
Ddevice_sysfs.c134 static int create_pnp_modalias(struct acpi_device *acpi_dev, char *modalias, in create_pnp_modalias() argument
142 if (!acpi_device_is_present(acpi_dev)) in create_pnp_modalias()
151 list_for_each_entry(id, &acpi_dev->pnp.ids, list) in create_pnp_modalias()
164 list_for_each_entry(id, &acpi_dev->pnp.ids, list) { in create_pnp_modalias()
192 static int create_of_modalias(struct acpi_device *acpi_dev, char *modalias, in create_of_modalias() argument
202 status = acpi_get_name(acpi_dev->handle, ACPI_SINGLE_NAME, &buf); in create_of_modalias()
216 of_compatible = acpi_dev->data.of_compatible; in create_of_modalias()
395 struct acpi_device *acpi_dev = to_acpi_device(dev); in hid_show() local
397 return sprintf(buf, "%s\n", acpi_device_hid(acpi_dev)); in hid_show()
404 struct acpi_device *acpi_dev = to_acpi_device(dev); in uid_show() local
[all …]
Dbus.c889 struct acpi_device *acpi_dev = to_acpi_device(dev); in acpi_bus_match() local
892 return acpi_dev->flags.match_driver in acpi_bus_match()
893 && !acpi_match_device_ids(acpi_dev, acpi_drv->ids); in acpi_bus_match()
903 struct acpi_device *acpi_dev = to_acpi_device(dev); in acpi_device_probe() local
907 if (acpi_dev->handler && !acpi_is_pnp_device(acpi_dev)) in acpi_device_probe()
913 ret = acpi_drv->ops.add(acpi_dev); in acpi_device_probe()
917 acpi_dev->driver = acpi_drv; in acpi_device_probe()
920 acpi_drv->name, acpi_dev->pnp.bus_id)); in acpi_device_probe()
923 ret = acpi_device_install_notify_handler(acpi_dev); in acpi_device_probe()
926 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.c466 struct acpi_device *acpi_dev = to_acpi_device(dev); in acpi_device_release() local
468 acpi_free_properties(acpi_dev); in acpi_device_release()
469 acpi_free_pnp_ids(&acpi_dev->pnp); in acpi_device_release()
470 acpi_free_power_resources_lists(acpi_dev); in acpi_device_release()
471 kfree(acpi_dev); in acpi_device_release()
/kernel/linux/linux-5.10/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 …]
Dhp-wireless.c61 static void hpwl_notify(struct acpi_device *acpi_dev, u32 event) in hpwl_notify() argument
Dsony-laptop.c3360 struct acpi_device *acpi_dev; member
4704 spic_dev.acpi_dev = device; in sony_pic_add()
/kernel/linux/linux-5.10/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);\
112 struct acpi_device *acpi_dev; in pch_fivr_add() local
117 acpi_dev = ACPI_COMPANION(&(pdev->dev)); in pch_fivr_add()
118 if (!acpi_dev) in pch_fivr_add()
121 status = acpi_evaluate_integer(acpi_dev->handle, "PTYP", NULL, &ptype); in pch_fivr_add()
130 platform_set_drvdata(pdev, acpi_dev); in pch_fivr_add()
/kernel/linux/linux-5.10/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()
129 struct acpi_device *acpi_dev = to_acpi_device(dev); in show_avg_interval() local
130 struct acpi_power_meter_resource *resource = acpi_dev->driver_data; in show_avg_interval()
143 struct acpi_device *acpi_dev = to_acpi_device(dev); in set_avg_interval() local
144 struct acpi_power_meter_resource *resource = acpi_dev->driver_data; in set_avg_interval()
162 status = acpi_evaluate_integer(resource->acpi_dev->handle, "_PAI", in set_avg_interval()
186 status = acpi_evaluate_integer(resource->acpi_dev->handle, "_GHL", in update_cap()
201 struct acpi_device *acpi_dev = to_acpi_device(dev); in show_cap() local
202 struct acpi_power_meter_resource *resource = acpi_dev->driver_data; in show_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 …]
/kernel/linux/linux-5.10/drivers/platform/chrome/
Dchromeos_laptop.c164 const struct acpi_peripheral *acpi_dev; in chromeos_laptop_adjust_client() local
173 acpi_dev = &cros_laptop->acpi_peripherals[i]; in chromeos_laptop_adjust_client()
175 memcpy(acpi_ids[0].id, acpi_dev->hid, ACPI_ID_LEN); in chromeos_laptop_adjust_client()
179 acpi_dev->properties); in chromeos_laptop_adjust_client()
777 struct acpi_peripheral *acpi_dev; in chromeos_laptop_prepare_acpi_peripherals() local
797 acpi_dev = acpi_peripherals; in chromeos_laptop_prepare_acpi_peripherals()
803 *acpi_dev = *src_dev; in chromeos_laptop_prepare_acpi_peripherals()
807 acpi_dev->properties = in chromeos_laptop_prepare_acpi_peripherals()
809 if (IS_ERR(acpi_dev->properties)) { in chromeos_laptop_prepare_acpi_peripherals()
810 error = PTR_ERR(acpi_dev->properties); in chromeos_laptop_prepare_acpi_peripherals()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/perf/
Dqcom_l3_pmu.c735 struct acpi_device *acpi_dev; in qcom_l3_cache_pmu_probe() local
742 acpi_dev = ACPI_COMPANION(&pdev->dev); in qcom_l3_cache_pmu_probe()
743 if (!acpi_dev) in qcom_l3_cache_pmu_probe()
748 acpi_dev->parent->pnp.unique_id, acpi_dev->pnp.unique_id); in qcom_l3_cache_pmu_probe()
Darm_dsu_pmu.c650 struct acpi_device *acpi_dev; in dsu_pmu_acpi_get_cpus() local
656 acpi_dev = ACPI_COMPANION(cpu_dev); in dsu_pmu_acpi_get_cpus()
657 if (acpi_dev && in dsu_pmu_acpi_get_cpus()
658 acpi_dev->parent == ACPI_COMPANION(dev)->parent) in dsu_pmu_acpi_get_cpus()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/mfd/
Dkempld-core.c438 struct acpi_device *acpi_dev = ACPI_COMPANION(dev); in kempld_get_acpi_data() local
450 ret = acpi_dev_get_resources(acpi_dev, &resource_list, NULL, NULL); in kempld_get_acpi_data()
461 resources = devm_kcalloc(&acpi_dev->dev, count, sizeof(*resources), in kempld_get_acpi_data()
/kernel/linux/linux-5.10/drivers/scsi/hisi_sas/
Dhisi_sas_v3_hw.c906 struct acpi_device *acpi_dev; in hw_init_v3_hw() local
937 acpi_dev = ACPI_COMPANION(dev); in hw_init_v3_hw()
938 if (!acpi_device_power_manageable(acpi_dev)) in hw_init_v3_hw()