Home
last modified time | relevance | path

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

123456789

/drivers/acpi/
Dinternal.h46 void register_dock_dependent_device(struct acpi_device *adev,
48 int dock_notify(struct acpi_device *adev, u32 event);
49 void acpi_dock_add(struct acpi_device *adev);
51 static inline void register_dock_dependent_device(struct acpi_device *adev, in register_dock_dependent_device()
53 static inline int dock_notify(struct acpi_device *adev, u32 event) { return -ENODEV; } in dock_notify()
54 static inline void acpi_dock_add(struct acpi_device *adev) {} in acpi_dock_add()
83 acpi_status acpi_hotplug_schedule(struct acpi_device *adev, u32 src);
85 void acpi_device_hotplug(struct acpi_device *adev, u32 src);
86 bool acpi_scan_is_offline(struct acpi_device *adev, bool uevent);
105 void acpi_init_device_object(struct acpi_device *device, acpi_handle handle,
[all …]
Dscan.c27 extern struct acpi_device *acpi_root;
75 void acpi_initialize_hp_context(struct acpi_device *adev, in acpi_initialize_hp_context()
77 int (*notify)(struct acpi_device *, u32), in acpi_initialize_hp_context() argument
78 void (*uevent)(struct acpi_device *, u32)) in acpi_initialize_hp_context() argument
110 bool acpi_scan_is_offline(struct acpi_device *adev, bool uevent) in acpi_scan_is_offline()
138 struct acpi_device *device = acpi_fetch_acpi_dev(handle); in acpi_bus_offline()
183 struct acpi_device *device = acpi_fetch_acpi_dev(handle); in acpi_bus_online()
202 static int acpi_scan_try_to_offline(struct acpi_device *device) in acpi_scan_try_to_offline()
248 static int acpi_scan_hot_remove(struct acpi_device *device) in acpi_scan_hot_remove()
293 static int acpi_scan_device_not_present(struct acpi_device *adev) in acpi_scan_device_not_present()
[all …]
Ddevice_pm.c48 static int acpi_dev_pm_explicit_get(struct acpi_device *device, int *state) in acpi_dev_pm_explicit_get()
75 int acpi_device_get_power(struct acpi_device *device, int *state) in acpi_device_get_power()
78 struct acpi_device *parent; in acpi_device_get_power()
141 static int acpi_dev_pm_explicit_set(struct acpi_device *adev, int state) in acpi_dev_pm_explicit_set()
162 int acpi_device_set_power(struct acpi_device *device, int state) in acpi_device_set_power()
197 struct acpi_device *parent; in acpi_device_set_power()
298 struct acpi_device *device = acpi_fetch_acpi_dev(handle); in acpi_bus_set_power()
307 int acpi_bus_init_power(struct acpi_device *device) in acpi_bus_init_power()
365 int acpi_device_fix_up_power(struct acpi_device *device) in acpi_device_fix_up_power()
378 static int fix_up_power_if_applicable(struct acpi_device *adev, void *not_used) in fix_up_power_if_applicable()
[all …]
Ddevice_sysfs.c136 static int create_pnp_modalias(struct acpi_device *acpi_dev, char *modalias, in create_pnp_modalias()
194 static int create_of_modalias(struct acpi_device *acpi_dev, char *modalias, in create_of_modalias()
244 int __acpi_device_uevent_modalias(struct acpi_device *adev, in __acpi_device_uevent_modalias()
288 static int __acpi_device_modalias(struct acpi_device *adev, char *buf, int size) in __acpi_device_modalias()
346 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() local
380 if ((!acpi_device->handler || !acpi_device->handler->hotplug.enabled) in eject_store()
384 status = acpi_get_type(acpi_device->handle, &not_used); in eject_store()
385 if (ACPI_FAILURE(status) || !acpi_device->flags.ejectable) in eject_store()
[all …]
Dglue.c81 static int match_any(struct acpi_device *adev, void *not_used) in match_any()
86 static bool acpi_dev_has_children(struct acpi_device *adev) in acpi_dev_has_children()
91 static int find_child_checks(struct acpi_device *adev, bool check_children) in find_child_checks()
129 struct acpi_device *adev;
136 static int check_one_child(struct acpi_device *adev, void *data) in check_one_child()
187 static struct acpi_device *acpi_find_child(struct acpi_device *parent, in acpi_find_child()
205 struct acpi_device *acpi_find_child_device(struct acpi_device *parent, in acpi_find_child_device()
212 struct acpi_device *acpi_find_child_by_adr(struct acpi_device *adev, in acpi_find_child_by_adr()
228 int acpi_bind_one(struct device *dev, struct acpi_device *acpi_dev) in acpi_bind_one()
321 struct acpi_device *acpi_dev = ACPI_COMPANION(dev); in acpi_unbind_one()
[all …]
Dbutton.c127 static int acpi_button_add(struct acpi_device *device);
128 static int acpi_button_remove(struct acpi_device *device);
129 static void acpi_button_notify(struct acpi_device *device, u32 event);
163 static struct acpi_device *lid_device;
174 static int acpi_lid_evaluate_state(struct acpi_device *device) in acpi_lid_evaluate_state()
186 static int acpi_lid_notify_state(struct acpi_device *device, int state) in acpi_lid_notify_state()
271 struct acpi_device *device = seq->private; in acpi_button_state_seq_show()
280 static int acpi_button_add_fs(struct acpi_device *device) in acpi_button_add_fs()
339 static int acpi_button_remove_fs(struct acpi_device *device) in acpi_button_remove_fs()
369 static int acpi_lid_update_state(struct acpi_device *device, in acpi_lid_update_state()
[all …]
Dbus.c39 struct acpi_device *acpi_root;
97 int acpi_bus_get_status(struct acpi_device *device) in acpi_bus_get_status()
469 struct acpi_device *adev; in acpi_bus_notify()
524 struct acpi_device *device = data; in acpi_notify_device()
532 struct acpi_device *device = data; in acpi_notify_device_fixed()
544 static int acpi_device_install_notify_handler(struct acpi_device *device, in acpi_device_install_notify_handler()
573 static void acpi_device_remove_notify_handler(struct acpi_device *device, in acpi_device_remove_notify_handler()
652 struct device *acpi_get_first_physical_node(struct acpi_device *adev) in acpi_get_first_physical_node()
673 static struct acpi_device *acpi_primary_dev_companion(struct acpi_device *adev, in acpi_primary_dev_companion()
692 bool acpi_device_is_first_physical_node(struct acpi_device *adev, in acpi_device_is_first_physical_node()
[all …]
Dpower.c50 struct acpi_device device;
78 struct acpi_power_resource *to_power_resource(struct acpi_device *device) in to_power_resource()
85 struct acpi_device *device = acpi_fetch_acpi_dev(handle); in acpi_power_get_context()
155 struct acpi_device *rdev; in acpi_extract_power_resources()
313 int acpi_device_power_add_dependent(struct acpi_device *adev, in acpi_device_power_add_dependent()
348 void acpi_device_power_remove_dependent(struct acpi_device *adev, in acpi_device_power_remove_dependent()
536 static void acpi_power_hide_list(struct acpi_device *adev, in acpi_power_hide_list()
546 struct acpi_device *res_dev = &entry->resource->device; in acpi_power_hide_list()
555 static void acpi_power_expose_list(struct acpi_device *adev, in acpi_power_expose_list()
570 struct acpi_device *res_dev = &entry->resource->device; in acpi_power_expose_list()
[all …]
Dfan_core.c32 struct acpi_device *device = cdev->devdata; in fan_get_max_state()
47 int acpi_fan_get_fst(struct acpi_device *device, struct acpi_fan_fst *fst) in acpi_fan_get_fst()
78 static int fan_get_state_acpi4(struct acpi_device *device, unsigned long *state) in fan_get_state_acpi4()
114 static int fan_get_state(struct acpi_device *device, unsigned long *state) in fan_get_state()
132 struct acpi_device *device = cdev->devdata; in fan_get_cur_state()
141 static int fan_set_state(struct acpi_device *device, unsigned long state) in fan_set_state()
150 static int fan_set_state_acpi4(struct acpi_device *device, unsigned long state) in fan_set_state_acpi4()
186 struct acpi_device *device = cdev->devdata; in fan_set_cur_state()
206 static bool acpi_fan_is_acpi4(struct acpi_device *device) in acpi_fan_is_acpi4()
214 static int acpi_fan_get_fif(struct acpi_device *device) in acpi_fan_get_fif()
[all …]
Ddock.c44 struct acpi_device *adev;
72 struct acpi_device *adev) in add_dock_dependent_device()
90 struct acpi_device *adev = dd->adev; in dock_hotplug_event()
98 void (*fixup)(struct acpi_device *); in dock_hotplug_event()
107 void (*uevent)(struct acpi_device *, u32); in dock_hotplug_event()
116 int (*notify)(struct acpi_device *, u32); in dock_hotplug_event()
150 find_dock_dependent_device(struct dock_station *ds, struct acpi_device *adev) in find_dock_dependent_device()
161 void register_dock_dependent_device(struct acpi_device *adev, in register_dock_dependent_device()
182 int is_dock_device(struct acpi_device *adev) in is_dock_device()
270 struct acpi_device *adev = dd->adev; in hotplug_dock_devices()
[all …]
Dac.c35 static int acpi_ac_add(struct acpi_device *device);
36 static int acpi_ac_remove(struct acpi_device *device);
37 static void acpi_ac_notify(struct acpi_device *device, u32 event);
69 struct acpi_device *device;
131 static void acpi_ac_notify(struct acpi_device *device, u32 event) in acpi_ac_notify()
217 static int acpi_ac_add(struct acpi_device *device) in acpi_ac_add()
291 static int acpi_ac_remove(struct acpi_device *device) in acpi_ac_remove()
/drivers/platform/x86/dell/
Ddell-rbtn.c33 static enum rbtn_type rbtn_check(struct acpi_device *device) in rbtn_check()
54 static int rbtn_get(struct acpi_device *device) in rbtn_get()
66 static int rbtn_acquire(struct acpi_device *device, bool enable) in rbtn_acquire()
91 struct acpi_device *device = data; in rbtn_rfkill_query()
112 static int rbtn_rfkill_init(struct acpi_device *device) in rbtn_rfkill_init()
140 static void rbtn_rfkill_exit(struct acpi_device *device) in rbtn_rfkill_exit()
152 static void rbtn_rfkill_event(struct acpi_device *device) in rbtn_rfkill_event()
208 static int rbtn_add(struct acpi_device *device);
209 static int rbtn_remove(struct acpi_device *device);
210 static void rbtn_notify(struct acpi_device *device, u32 event);
[all …]
/drivers/platform/x86/
Dfujitsu-laptop.c137 static struct acpi_device *fext;
141 static int call_fext_func(struct acpi_device *device, in call_fext_func()
169 static int set_lcd_level(struct acpi_device *device, int level) in set_lcd_level()
208 static int get_lcd_level(struct acpi_device *device) in get_lcd_level()
225 static int get_max_brightness(struct acpi_device *device) in get_max_brightness()
246 struct acpi_device *device = bl_get_data(b); in bl_get_brightness()
253 struct acpi_device *device = bl_get_data(b); in bl_update_status()
340 static int acpi_fujitsu_bl_input_setup(struct acpi_device *device) in acpi_fujitsu_bl_input_setup()
364 static int fujitsu_backlight_register(struct acpi_device *device) in fujitsu_backlight_register()
385 static int acpi_fujitsu_bl_add(struct acpi_device *device) in acpi_fujitsu_bl_add()
[all …]
Dpanasonic-laptop.c185 static int acpi_pcc_hotkey_add(struct acpi_device *device);
186 static int acpi_pcc_hotkey_remove(struct acpi_device *device);
187 static void acpi_pcc_hotkey_notify(struct acpi_device *device, u32 event);
240 struct acpi_device *device;
303 static inline int acpi_pcc_get_sqty(struct acpi_device *device) in acpi_pcc_get_sqty()
505 struct acpi_device *acpi = to_acpi_device(dev); in numbatt_show()
517 struct acpi_device *acpi = to_acpi_device(dev); in lcdtype_show()
529 struct acpi_device *acpi = to_acpi_device(dev); in mute_show()
541 struct acpi_device *acpi = to_acpi_device(dev); in mute_store()
559 struct acpi_device *acpi = to_acpi_device(dev); in sticky_key_show()
[all …]
Dwmi.c71 struct acpi_device *acpi_device; member
197 handle = wblock->acpi_device->handle; in wmi_method_enable()
244 return acpi_evaluate_object(wblock->acpi_device->handle, "_WED", &input, out); in get_event_data()
316 handle = wblock->acpi_device->handle; in wmidev_evaluate_method()
360 handle = wblock->acpi_device->handle; in __query_block()
474 handle = wblock->acpi_device->handle; in wmi_set_block()
697 return acpi_device_uid(wblock->acpi_device); in wmi_get_acpi_device_uid()
1083 struct acpi_device *device) in wmi_create_device()
1154 static void wmi_free_devices(struct acpi_device *device) in wmi_free_devices()
1160 if (wblock->acpi_device == device) { in wmi_free_devices()
[all …]
Dclassmate-laptop.c42 static int cmpc_add_acpi_notify_device(struct acpi_device *acpi, char *name, in cmpc_add_acpi_notify_device()
63 static int cmpc_remove_acpi_notify_device(struct acpi_device *acpi) in cmpc_remove_acpi_notify_device()
183 static void cmpc_accel_handler_v4(struct acpi_device *dev, u32 event) in cmpc_accel_handler_v4()
205 struct acpi_device *acpi; in cmpc_accel_sensitivity_show_v4()
220 struct acpi_device *acpi; in cmpc_accel_sensitivity_store_v4()
254 struct acpi_device *acpi; in cmpc_accel_g_select_show_v4()
269 struct acpi_device *acpi; in cmpc_accel_g_select_store_v4()
301 struct acpi_device *acpi; in cmpc_accel_open_v4()
319 struct acpi_device *acpi; in cmpc_accel_close_v4()
376 static int cmpc_accel_add_v4(struct acpi_device *acpi) in cmpc_accel_add_v4()
[all …]
Dtoshiba_bluetooth.c30 struct acpi_device *acpi_dev;
38 static int toshiba_bt_rfkill_add(struct acpi_device *device);
39 static int toshiba_bt_rfkill_remove(struct acpi_device *device);
40 static void toshiba_bt_rfkill_notify(struct acpi_device *device, u32 event);
207 static void toshiba_bt_rfkill_notify(struct acpi_device *device, u32 event) in toshiba_bt_rfkill_notify()
235 static int toshiba_bt_rfkill_add(struct acpi_device *device) in toshiba_bt_rfkill_add()
282 static int toshiba_bt_rfkill_remove(struct acpi_device *device) in toshiba_bt_rfkill_remove()
/drivers/platform/x86/intel/int3472/
Dcommon.h48 struct acpi_device;
79 struct acpi_device *adev;
81 struct acpi_device *sensor;
108 union acpi_object *skl_int3472_get_acpi_buffer(struct acpi_device *adev,
110 int skl_int3472_fill_cldb(struct acpi_device *adev, struct int3472_cldb *cldb);
112 struct acpi_device **sensor_adev_ret,
Dcommon.c9 union acpi_object *skl_int3472_get_acpi_buffer(struct acpi_device *adev, char *id) in skl_int3472_get_acpi_buffer()
33 int skl_int3472_fill_cldb(struct acpi_device *adev, struct int3472_cldb *cldb) in skl_int3472_fill_cldb()
58 struct acpi_device **sensor_adev_ret, in skl_int3472_get_sensor_adev_and_name()
61 struct acpi_device *adev = ACPI_COMPANION(dev); in skl_int3472_get_sensor_adev_and_name()
62 struct acpi_device *sensor; in skl_int3472_get_sensor_adev_and_name()
/drivers/platform/x86/intel/
Drst.c16 struct acpi_device *acpi; in irst_show_wakeup_events()
33 struct acpi_device *acpi; in irst_store_wakeup_events()
60 struct acpi_device *acpi; in irst_show_wakeup_time()
77 struct acpi_device *acpi; in irst_store_wakeup_time()
101 static int irst_add(struct acpi_device *acpi) in irst_add()
116 static int irst_remove(struct acpi_device *acpi) in irst_remove()
/drivers/thunderbolt/
Dacpi.c17 struct acpi_device *adev = acpi_fetch_acpi_dev(handle); in tb_acpi_add_link()
209 struct acpi_device *adev; in tb_acpi_retimer_set_power()
304 static struct acpi_device *tb_acpi_switch_find_companion(struct tb_switch *sw) in tb_acpi_switch_find_companion()
306 struct acpi_device *adev = NULL; in tb_acpi_switch_find_companion()
316 struct acpi_device *port_adev; in tb_acpi_switch_find_companion()
324 struct acpi_device *parent_adev; in tb_acpi_switch_find_companion()
334 static struct acpi_device *tb_acpi_find_companion(struct device *dev) in tb_acpi_find_companion()
359 struct acpi_device *adev = ACPI_COMPANION(dev); in tb_acpi_setup()
/drivers/platform/surface/
Dsurface3-wmi.c45 struct acpi_device *touchscreen_adev;
46 struct acpi_device *pnp0c0d_adev;
109 static int s3_wmi_hp_notify(struct acpi_device *adev, u32 value) in s3_wmi_hp_notify()
119 struct acpi_device *adev = acpi_fetch_acpi_dev(handle); in s3_wmi_attach_spi_device()
120 struct acpi_device **ts_adev = data; in s3_wmi_attach_spi_device()
138 struct acpi_device *adev = ACPI_COMPANION(dev); in s3_wmi_check_platform_device()
139 struct acpi_device *ts_adev = NULL; in s3_wmi_check_platform_device()
/drivers/platform/chrome/
Dchromeos_tbmc.c24 static int chromeos_tbmc_query_switch(struct acpi_device *adev, in chromeos_tbmc_query_switch()
43 struct acpi_device *adev = to_acpi_device(dev); in chromeos_tbmc_resume()
48 static void chromeos_tbmc_notify(struct acpi_device *adev, u32 event) in chromeos_tbmc_notify()
62 struct acpi_device *adev = input_get_drvdata(idev); in chromeos_tbmc_open()
67 static int chromeos_tbmc_add(struct acpi_device *adev) in chromeos_tbmc_add()
/drivers/usb/core/
Dusb-acpi.c192 static struct acpi_device *
196 struct acpi_device *adev; in usb_acpi_get_companion_for_port()
225 static struct acpi_device *
228 struct acpi_device *adev; in usb_acpi_find_companion_for_port()
249 static struct acpi_device *
252 struct acpi_device *adev; in usb_acpi_find_companion_for_device()
277 static struct acpi_device *usb_acpi_find_companion(struct device *dev) in usb_acpi_find_companion()
/drivers/pnp/pnpacpi/
Dcore.c51 struct acpi_device *acpi_dev; in pnpacpi_set_resources()
92 struct acpi_device *acpi_dev; in pnpacpi_disable_resources()
118 struct acpi_device *acpi_dev = ACPI_COMPANION(&dev->dev); in pnpacpi_can_wakeup()
130 struct acpi_device *acpi_dev = ACPI_COMPANION(&dev->dev); in pnpacpi_suspend()
166 struct acpi_device *acpi_dev = ACPI_COMPANION(&dev->dev); in pnpacpi_resume()
197 static const char *__init pnpacpi_get_id(struct acpi_device *device) in pnpacpi_get_id()
209 static int __init pnpacpi_add_device(struct acpi_device *device) in pnpacpi_add_device()
290 struct acpi_device *device = acpi_fetch_acpi_dev(handle); in pnpacpi_add_device_handler()

123456789