/linux-6.1.9/drivers/pnp/pnpacpi/ |
D | core.c | 51 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 …]
|
D | rsparser.c | 273 struct acpi_device *acpi_dev = dev->data; in pnpacpi_parse_allocated_resource() local 274 acpi_handle handle = acpi_dev->handle; in pnpacpi_parse_allocated_resource() 552 struct acpi_device *acpi_dev = dev->data; in pnpacpi_parse_resource_option_data() local 553 acpi_handle handle = acpi_dev->handle; in pnpacpi_parse_resource_option_data() 625 struct acpi_device *acpi_dev = dev->data; in pnpacpi_build_resource_template() local 626 acpi_handle handle = acpi_dev->handle; in pnpacpi_build_resource_template()
|
/linux-6.1.9/drivers/acpi/ |
D | glue.c | 228 int acpi_bind_one(struct device *dev, struct acpi_device *acpi_dev) in acpi_bind_one() argument 237 if (acpi_dev) { in acpi_bind_one() 241 acpi_dev = ACPI_COMPANION(dev); in acpi_bind_one() 244 if (!acpi_dev) in acpi_bind_one() 247 acpi_dev_get(acpi_dev); in acpi_bind_one() 255 mutex_lock(&acpi_dev->physical_node_lock); in acpi_bind_one() 261 physnode_list = &acpi_dev->physical_node_list; in acpi_bind_one() 263 list_for_each_entry(pn, &acpi_dev->physical_node_list, node) { in acpi_bind_one() 266 mutex_unlock(&acpi_dev->physical_node_lock); in acpi_bind_one() 270 if (ACPI_COMPANION(dev) != acpi_dev) in acpi_bind_one() [all …]
|
D | device_sysfs.c | 136 static int create_pnp_modalias(struct acpi_device *acpi_dev, char *modalias, in create_pnp_modalias() argument 144 if (!acpi_device_is_present(acpi_dev)) in create_pnp_modalias() 153 list_for_each_entry(id, &acpi_dev->pnp.ids, list) in create_pnp_modalias() 166 list_for_each_entry(id, &acpi_dev->pnp.ids, list) { in create_pnp_modalias() 194 static int create_of_modalias(struct acpi_device *acpi_dev, char *modalias, in create_of_modalias() argument 204 status = acpi_get_name(acpi_dev->handle, ACPI_SINGLE_NAME, &buf); in create_of_modalias() 218 of_compatible = acpi_dev->data.of_compatible; in create_of_modalias() 402 struct acpi_device *acpi_dev = to_acpi_device(dev); in hid_show() local 404 return sprintf(buf, "%s\n", acpi_device_hid(acpi_dev)); in hid_show() 411 struct acpi_device *acpi_dev = to_acpi_device(dev); in uid_show() local [all …]
|
D | bus.c | 1007 struct acpi_device *acpi_dev = to_acpi_device(dev); in acpi_bus_match() local 1010 return acpi_dev->flags.match_driver in acpi_bus_match() 1011 && !acpi_match_device_ids(acpi_dev, acpi_drv->ids); in acpi_bus_match() 1021 struct acpi_device *acpi_dev = to_acpi_device(dev); in acpi_device_probe() local 1025 if (acpi_dev->handler && !acpi_is_pnp_device(acpi_dev)) in acpi_device_probe() 1031 ret = acpi_drv->ops.add(acpi_dev); in acpi_device_probe() 1036 acpi_drv->name, acpi_dev->pnp.bus_id); in acpi_device_probe() 1039 ret = acpi_device_install_notify_handler(acpi_dev); in acpi_device_probe() 1042 acpi_drv->ops.remove(acpi_dev); in acpi_device_probe() 1044 acpi_dev->driver_data = NULL; in acpi_device_probe() [all …]
|
D | fan_attr.c | 54 struct acpi_device *acpi_dev = container_of(dev, struct acpi_device, dev); in show_fan_speed() local 58 status = acpi_fan_get_fst(acpi_dev, &fst); in show_fan_speed() 67 struct acpi_device *acpi_dev = container_of(dev, struct acpi_device, dev); in show_fine_grain_control() local 68 struct acpi_fan *fan = acpi_driver_data(acpi_dev); in show_fine_grain_control()
|
D | video_detect.c | 64 struct acpi_device *acpi_dev = acpi_fetch_acpi_dev(handle); in find_video() local 73 if (acpi_dev && !acpi_match_device_ids(acpi_dev, video_ids)) { in find_video()
|
D | scan.c | 454 struct acpi_device *acpi_dev = to_acpi_device(dev); in acpi_device_release() local 456 acpi_free_properties(acpi_dev); in acpi_device_release() 457 acpi_free_pnp_ids(&acpi_dev->pnp); in acpi_device_release() 458 acpi_free_power_resources_lists(acpi_dev); in acpi_device_release() 459 kfree(acpi_dev); in acpi_device_release()
|
/linux-6.1.9/drivers/acpi/dptf/ |
D | dptf_power.c | 30 struct acpi_device *acpi_dev = dev_get_drvdata(dev);\ 34 status = acpi_evaluate_integer(acpi_dev->handle, #object,\ 68 struct acpi_device *acpi_dev = dev_get_drvdata(dev); in prochot_confirm_store() local 75 status = acpi_execute_simple_method(acpi_dev->handle, "PBOK", seq_no); in prochot_confirm_store() 175 struct acpi_device *acpi_dev; in dptf_power_add() local 179 acpi_dev = ACPI_COMPANION(&(pdev->dev)); in dptf_power_add() 180 if (!acpi_dev) in dptf_power_add() 183 ptype = dptf_participant_type(acpi_dev->handle); in dptf_power_add() 191 result = acpi_install_notify_handler(acpi_dev->handle, in dptf_power_add() 201 acpi_remove_notify_handler(acpi_dev->handle, in dptf_power_add() [all …]
|
D | dptf_pch_fivr.c | 61 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()
|
/linux-6.1.9/drivers/platform/x86/ |
D | toshiba_haps.c | 21 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 …]
|
D | system76_acpi.c | 28 struct acpi_device *acpi_dev; member 75 handle = acpi_device_handle(data->acpi_dev); in system76_get() 96 handle = acpi_device_handle(data->acpi_dev); in system76_get_index() 110 handle = acpi_device_handle(data->acpi_dev); in system76_get_object() 143 handle = acpi_device_handle(data->acpi_dev); in system76_set() 630 static void system76_notify(struct acpi_device *acpi_dev, u32 event) in system76_notify() argument 634 data = acpi_driver_data(acpi_dev); in system76_notify() 658 static int system76_add(struct acpi_device *acpi_dev) in system76_add() argument 663 data = devm_kzalloc(&acpi_dev->dev, sizeof(*data), GFP_KERNEL); in system76_add() 666 acpi_dev->driver_data = data; in system76_add() [all …]
|
D | toshiba_bluetooth.c | 30 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()
|
D | toshiba_acpi.c | 172 struct acpi_device *acpi_dev; member 333 status = acpi_evaluate_object(dev->acpi_dev->handle, in tci_raw() 2492 if (sysfs_update_group(&toshiba_acpi->acpi_dev->dev.kobj, in toshiba_acpi_kbd_bl_work() 2504 acpi_bus_generate_netlink_event(toshiba_acpi->acpi_dev->pnp.device_class, in toshiba_acpi_kbd_bl_work() 2505 dev_name(&toshiba_acpi->acpi_dev->dev), in toshiba_acpi_kbd_bl_work() 2699 &dev->acpi_dev->dev, in toshiba_acpi_setup_wwan_rfkill() 2727 status = acpi_evaluate_object(dev->acpi_dev->handle, in toshiba_acpi_enable_hotkeys() 2788 status = acpi_evaluate_integer(dev->acpi_dev->handle, "INFO", in toshiba_acpi_query_hotkey() 2885 dev->hotkey_dev->dev.parent = &dev->acpi_dev->dev; in toshiba_acpi_setup_keyboard() 2924 if (acpi_has_method(dev->acpi_dev->handle, "INFO")) in toshiba_acpi_setup_keyboard() [all …]
|
D | wireless-hotkey.c | 62 static void wl_notify(struct acpi_device *acpi_dev, u32 event) in wl_notify() argument
|
D | sony-laptop.c | 3347 struct acpi_device *acpi_dev; member 4686 spic_dev.acpi_dev = device; in sony_pic_add()
|
/linux-6.1.9/drivers/hwmon/ |
D | acpi_power_meter.c | 75 struct acpi_device *acpi_dev; member 113 status = acpi_evaluate_integer(resource->acpi_dev->handle, "_GAI", in update_avg_interval() 116 acpi_evaluation_failure_warn(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() 169 acpi_evaluation_failure_warn(resource->acpi_dev->handle, "_PAI", in set_avg_interval() 187 status = acpi_evaluate_integer(resource->acpi_dev->handle, "_GHL", in update_cap() [all …]
|
D | asus_atk0110.c | 109 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 …]
|
/linux-6.1.9/drivers/platform/chrome/ |
D | chromeos_laptop.c | 167 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 …]
|
/linux-6.1.9/drivers/perf/ |
D | qcom_l3_pmu.c | 732 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(acpi_dev)->pnp.unique_id, in qcom_l3_cache_pmu_probe() 746 acpi_dev->pnp.unique_id); in qcom_l3_cache_pmu_probe()
|
D | arm_dsu_pmu.c | 650 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 && acpi_dev_parent(acpi_dev) == parent_adev) in dsu_pmu_acpi_get_cpus()
|
/linux-6.1.9/drivers/mfd/ |
D | kempld-core.c | 436 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()
|
/linux-6.1.9/drivers/platform/mellanox/ |
D | mlxbf-pmc.c | 1390 struct acpi_device *acpi_dev = ACPI_COMPANION(&pdev->dev); in mlxbf_pmc_probe() local 1391 const char *hid = acpi_device_hid(acpi_dev); in mlxbf_pmc_probe()
|
/linux-6.1.9/drivers/scsi/hisi_sas/ |
D | hisi_sas_v3_hw.c | 925 struct acpi_device *acpi_dev; in hw_init_v3_hw() local 956 acpi_dev = ACPI_COMPANION(dev); in hw_init_v3_hw() 957 if (!acpi_device_power_manageable(acpi_dev)) in hw_init_v3_hw()
|