Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/platform/x86/intel/
H A Drst.c20 acpi = to_acpi_device(dev); in irst_show_wakeup_events()
38 acpi = to_acpi_device(dev); in irst_store_wakeup_events()
64 acpi = to_acpi_device(dev); in irst_show_wakeup_time()
82 acpi = to_acpi_device(dev); in irst_store_wakeup_time()
/openbmc/linux/drivers/acpi/
H A Ddevice_sysfs.c346 struct acpi_device *adev = to_acpi_device(dev); in real_power_state_show()
362 struct acpi_device *adev = to_acpi_device(dev); in power_state_show()
373 struct acpi_device *acpi_device = to_acpi_device(d); in eject_store()
404 struct acpi_device *acpi_dev = to_acpi_device(dev); in hid_show()
413 struct acpi_device *acpi_dev = to_acpi_device(dev); in uid_show()
422 struct acpi_device *acpi_dev = to_acpi_device(dev); in adr_show()
434 struct acpi_device *acpi_dev = to_acpi_device(dev); in path_show()
445 struct acpi_device *acpi_dev = to_acpi_device(dev); in description_show()
471 struct acpi_device *acpi_dev = to_acpi_device(dev); in sun_show()
487 struct acpi_device *acpi_dev = to_acpi_device(dev); in hrv_show()
[all …]
H A Dbus.c1007 struct acpi_device *acpi_dev = to_acpi_device(dev); in acpi_bus_match()
1016 return __acpi_device_uevent_modalias(to_acpi_device(dev), env); in acpi_device_uevent()
1021 struct acpi_device *acpi_dev = to_acpi_device(dev); in acpi_device_probe()
1060 struct acpi_device *acpi_dev = to_acpi_device(dev); in acpi_device_remove()
1100 return adwc->fn(to_acpi_device(dev), adwc->data); in acpi_dev_for_one_check()
H A Dbutton.c485 struct acpi_device *device = to_acpi_device(dev); in acpi_button_suspend()
494 struct acpi_device *device = to_acpi_device(dev); in acpi_button_resume()
H A Dac.c284 ac = acpi_driver_data(to_acpi_device(dev)); in acpi_ac_resume()
H A Dutils.c858 struct acpi_device *adev = to_acpi_device(dev); in acpi_dev_match_cb()
944 return dev ? to_acpi_device(dev) : NULL; in acpi_dev_get_next_match_dev()
/openbmc/linux/drivers/platform/x86/
H A Dpanasonic-laptop.c506 struct acpi_device *acpi = to_acpi_device(dev); in numbatt_show()
518 struct acpi_device *acpi = to_acpi_device(dev); in lcdtype_show()
530 struct acpi_device *acpi = to_acpi_device(dev); in mute_show()
542 struct acpi_device *acpi = to_acpi_device(dev); in mute_store()
560 struct acpi_device *acpi = to_acpi_device(dev); in sticky_key_show()
572 struct acpi_device *acpi = to_acpi_device(dev); in sticky_key_store()
590 struct acpi_device *acpi = to_acpi_device(dev); in eco_mode_show()
614 struct acpi_device *acpi = to_acpi_device(dev); in eco_mode_store()
661 struct acpi_device *acpi = to_acpi_device(dev); in ac_brightness_show()
673 struct acpi_device *acpi = to_acpi_device(dev); in ac_brightness_store()
[all …]
H A Dclassmate-laptop.c209 acpi = to_acpi_device(dev); in cmpc_accel_sensitivity_show_v4()
226 acpi = to_acpi_device(dev); in cmpc_accel_sensitivity_store_v4()
258 acpi = to_acpi_device(dev); in cmpc_accel_g_select_show_v4()
275 acpi = to_acpi_device(dev); in cmpc_accel_g_select_store_v4()
304 acpi = to_acpi_device(input->dev.parent); in cmpc_accel_open_v4()
322 acpi = to_acpi_device(input->dev.parent); in cmpc_accel_close_v4()
552 acpi = to_acpi_device(dev); in cmpc_accel_sensitivity_show()
569 acpi = to_acpi_device(dev); in cmpc_accel_sensitivity_store()
593 acpi = to_acpi_device(input->dev.parent); in cmpc_accel_open()
603 acpi = to_acpi_device(input->dev.parent); in cmpc_accel_close()
[all …]
H A Dfujitsu-laptop.c583 struct acpi_device *device = to_acpi_device(cdev->dev->parent); in logolamp_set()
602 struct acpi_device *device = to_acpi_device(cdev->dev->parent); in logolamp_get()
619 struct acpi_device *device = to_acpi_device(cdev->dev->parent); in kblamps_set()
631 struct acpi_device *device = to_acpi_device(cdev->dev->parent); in kblamps_get()
644 struct acpi_device *device = to_acpi_device(cdev->dev->parent); in radio_led_set()
656 struct acpi_device *device = to_acpi_device(cdev->dev->parent); in radio_led_get()
668 struct acpi_device *device = to_acpi_device(cdev->dev->parent); in eco_led_set()
682 struct acpi_device *device = to_acpi_device(cdev->dev->parent); in eco_led_get()
H A Dtoshiba_haps.c215 haps = acpi_driver_data(to_acpi_device(device)); in toshiba_haps_suspend()
228 haps = acpi_driver_data(to_acpi_device(device)); in toshiba_haps_resume()
H A Dxo15-ebook.c76 return ebook_send_state(to_acpi_device(dev)); in ebook_switch_resume()
H A Dtoshiba_bluetooth.c223 bt_dev = acpi_driver_data(to_acpi_device(dev)); in toshiba_bt_resume()
/openbmc/linux/drivers/hwmon/
H A Dacpi_power_meter.c130 struct acpi_device *acpi_dev = to_acpi_device(dev); in show_avg_interval()
144 struct acpi_device *acpi_dev = to_acpi_device(dev); in set_avg_interval()
204 struct acpi_device *acpi_dev = to_acpi_device(dev); in show_cap()
217 struct acpi_device *acpi_dev = to_acpi_device(dev); in set_cap()
293 struct acpi_device *acpi_dev = to_acpi_device(dev); in set_trip()
345 struct acpi_device *acpi_dev = to_acpi_device(dev); in show_power()
364 struct acpi_device *acpi_dev = to_acpi_device(dev); in show_str()
396 struct acpi_device *acpi_dev = to_acpi_device(dev); in show_val()
451 struct acpi_device *acpi_dev = to_acpi_device(dev); in show_accuracy()
940 resource = acpi_driver_data(to_acpi_device(dev)); in acpi_power_meter_resume()
/openbmc/linux/drivers/platform/chrome/
H A Dchromeos_privacy_screen.c39 handle = acpi_device_handle(to_acpi_device(privacy_screen)); in chromeos_privacy_screen_get_hw_state()
72 handle = acpi_device_handle(to_acpi_device(privacy_screen)); in chromeos_privacy_screen_set_sw_state()
H A Dchromeos_tbmc.c43 struct acpi_device *adev = to_acpi_device(dev); in chromeos_tbmc_resume()
/openbmc/linux/drivers/platform/x86/dell/
H A Ddell-rbtn.c254 struct acpi_device *device = to_acpi_device(dev); in rbtn_suspend()
264 struct acpi_device *device = to_acpi_device(dev); in rbtn_resume()
312 struct acpi_device *device = to_acpi_device(dev); in rbtn_inc_count()
324 struct acpi_device *device = to_acpi_device(dev); in rbtn_switch_dev()
H A Ddell-wmi-ddv.c660 ret = dell_wmi_ddv_battery_index(to_acpi_device(dev->parent), &index); in temp_show()
679 ret = dell_wmi_ddv_battery_index(to_acpi_device(dev->parent), &index); in eppid_show()
705 ret = dell_wmi_ddv_battery_index(to_acpi_device(battery->dev.parent), &index); in dell_wmi_ddv_add_battery()
/openbmc/linux/drivers/platform/surface/
H A Dsurfacepro3_button.c132 struct acpi_device *device = to_acpi_device(dev); in surface_button_suspend()
141 struct acpi_device *device = to_acpi_device(dev); in surface_button_resume()
/openbmc/linux/tools/testing/cxl/
H A Dmock_acpi.c24 adev = to_acpi_device(dev); in to_cxl_host_bridge()
/openbmc/linux/arch/arm64/kernel/
H A Dpci.c75 struct acpi_device *adev = to_acpi_device(cfg->parent); in acpi_pci_bus_find_domain_nr()
100 adev = to_acpi_device(cfg->parent); in pcibios_root_bridge_prepare()
/openbmc/linux/drivers/usb/typec/
H A Dport-mapper.c41 struct acpi_device *adev = to_acpi_device(dev); in typec_port_match()
/openbmc/linux/arch/loongarch/pci/
H A Dacpi.c34 adev = to_acpi_device(cfg->parent); in pcibios_root_bridge_prepare()
45 struct acpi_device *adev = to_acpi_device(cfg->parent); in acpi_pci_bus_find_domain_nr()
/openbmc/linux/drivers/pci/controller/dwc/
H A Dpcie-hisi.c79 struct acpi_device *adev = to_acpi_device(dev); in hisi_pcie_init()
/openbmc/linux/include/acpi/
H A Dacpi_bus.h461 #define to_acpi_device(d) container_of(d, struct acpi_device, dev) macro
467 return to_acpi_device(adev->dev.parent); in acpi_dev_parent()
804 return adev ? to_acpi_device(get_device(&adev->dev)) : NULL; in acpi_dev_get()
/openbmc/linux/drivers/pci/controller/
H A Dpci-thunder-pem.c382 struct acpi_device *adev = to_acpi_device(dev); in thunder_pem_acpi_init()

12