Home
last modified time | relevance | path

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

12345678910

/drivers/acpi/
Dinternal.h14 extern struct acpi_device *acpi_root;
43 void register_dock_dependent_device(struct acpi_device *adev,
45 int dock_notify(struct acpi_device *adev, u32 event);
46 void acpi_dock_add(struct acpi_device *adev);
48 static inline void register_dock_dependent_device(struct acpi_device *adev, in register_dock_dependent_device()
50 static inline int dock_notify(struct acpi_device *adev, u32 event) { return -ENODEV; } in dock_notify()
51 static inline void acpi_dock_add(struct acpi_device *adev) {} in acpi_dock_add()
80 acpi_status acpi_hotplug_schedule(struct acpi_device *adev, u32 src);
82 void acpi_device_hotplug(struct acpi_device *adev, u32 src);
83 bool acpi_scan_is_offline(struct acpi_device *adev, bool uevent);
[all …]
Dscan.c74 void acpi_initialize_hp_context(struct acpi_device *adev, in acpi_initialize_hp_context()
76 int (*notify)(struct acpi_device *, u32), in acpi_initialize_hp_context() argument
77 void (*uevent)(struct acpi_device *, u32)) in acpi_initialize_hp_context() argument
109 bool acpi_scan_is_offline(struct acpi_device *adev, bool uevent) in acpi_scan_is_offline()
137 struct acpi_device *device = acpi_fetch_acpi_dev(handle); in acpi_bus_offline()
182 struct acpi_device *device = acpi_fetch_acpi_dev(handle); in acpi_bus_online()
201 static int acpi_scan_try_to_offline(struct acpi_device *device) in acpi_scan_try_to_offline()
247 static int acpi_scan_hot_remove(struct acpi_device *device) in acpi_scan_hot_remove()
292 static int acpi_scan_device_not_present(struct acpi_device *adev) in acpi_scan_device_not_present()
302 static int acpi_scan_device_check(struct acpi_device *adev) in acpi_scan_device_check()
[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(const struct acpi_device *acpi_dev, char *modalias, in create_pnp_modalias()
194 static int create_of_modalias(const struct acpi_device *acpi_dev, char *modalias, in create_of_modalias()
244 int __acpi_device_uevent_modalias(const struct acpi_device *adev, in __acpi_device_uevent_modalias()
288 static int __acpi_device_modalias(const 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 …]
Dbus.c37 struct acpi_device *acpi_root;
95 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()
530 static int acpi_device_install_notify_handler(struct acpi_device *device, in acpi_device_install_notify_handler()
545 static void acpi_device_remove_notify_handler(struct acpi_device *device, in acpi_device_remove_notify_handler()
557 int acpi_dev_install_notify_handler(struct acpi_device *adev, in acpi_dev_install_notify_handler()
572 void acpi_dev_remove_notify_handler(struct acpi_device *adev, in acpi_dev_remove_notify_handler()
642 struct device *acpi_get_first_physical_node(struct acpi_device *adev) in acpi_get_first_physical_node()
663 static struct acpi_device *acpi_primary_dev_companion(struct acpi_device *adev, in acpi_primary_dev_companion()
[all …]
Dbutton.c136 static int acpi_button_add(struct acpi_device *device);
137 static void acpi_button_remove(struct acpi_device *device);
170 static struct acpi_device *lid_device;
181 static int acpi_lid_evaluate_state(struct acpi_device *device) in acpi_lid_evaluate_state()
193 static int acpi_lid_notify_state(struct acpi_device *device, int state) in acpi_lid_notify_state()
278 struct acpi_device *device = seq->private; in acpi_button_state_seq_show()
287 static int acpi_button_add_fs(struct acpi_device *device) in acpi_button_add_fs()
346 static int acpi_button_remove_fs(struct acpi_device *device) in acpi_button_remove_fs()
376 static int acpi_lid_update_state(struct acpi_device *device, in acpi_lid_update_state()
391 static void acpi_lid_initialize_state(struct acpi_device *device) in acpi_lid_initialize_state()
[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 …]
/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 void 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 void 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
198 handle = wblock->acpi_device->handle; in wmi_method_enable()
245 return acpi_evaluate_object(wblock->acpi_device->handle, "_WED", &input, out); in get_event_data()
364 handle = wblock->acpi_device->handle; in wmidev_evaluate_method()
408 handle = wblock->acpi_device->handle; in __query_block()
535 handle = wblock->acpi_device->handle; in wmi_set_block()
766 return acpi_device_uid(wblock->acpi_device); in wmi_get_acpi_device_uid()
1145 struct acpi_device *device) in wmi_create_device()
1216 static void wmi_free_devices(struct acpi_device *device) in wmi_free_devices()
1222 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 …]
Dwireless-hotkey.c37 static int wireless_input_setup(struct acpi_device *device) in wireless_input_setup()
65 static void wireless_input_destroy(struct acpi_device *device) in wireless_input_destroy()
73 static void wl_notify(struct acpi_device *acpi_dev, u32 event) in wl_notify()
88 static int wl_add(struct acpi_device *device) in wl_add()
108 static void wl_remove(struct acpi_device *device) in wl_remove()
Dtoshiba_bluetooth.c30 struct acpi_device *acpi_dev;
38 static int toshiba_bt_rfkill_add(struct acpi_device *device);
39 static void 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 void toshiba_bt_rfkill_remove(struct acpi_device *device) in toshiba_bt_rfkill_remove()
/drivers/platform/x86/intel/int3472/
Dcommon.h52 struct acpi_device;
74 struct acpi_device *adev;
76 struct acpi_device *sensor;
112 union acpi_object *skl_int3472_get_acpi_buffer(struct acpi_device *adev,
114 int skl_int3472_fill_cldb(struct acpi_device *adev, struct int3472_cldb *cldb);
116 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/thermal/
Dthermal_acpi.c24 static int thermal_acpi_trip_temp(struct acpi_device *adev, char *obj_name, in thermal_acpi_trip_temp()
59 int thermal_acpi_active_trip_temp(struct acpi_device *adev, int id, int *ret_temp) in thermal_acpi_active_trip_temp()
80 int thermal_acpi_passive_trip_temp(struct acpi_device *adev, int *ret_temp) in thermal_acpi_passive_trip_temp()
97 int thermal_acpi_hot_trip_temp(struct acpi_device *adev, int *ret_temp) in thermal_acpi_hot_trip_temp()
113 int thermal_acpi_critical_trip_temp(struct acpi_device *adev, int *ret_temp) in thermal_acpi_critical_trip_temp()
/drivers/thunderbolt/
Dacpi.c17 struct acpi_device *adev = acpi_fetch_acpi_dev(handle); in tb_acpi_add_link()
210 struct acpi_device *adev; in tb_acpi_retimer_set_power()
305 static struct acpi_device *tb_acpi_switch_find_companion(struct tb_switch *sw) in tb_acpi_switch_find_companion()
308 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/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 void irst_remove(struct acpi_device *acpi) in irst_remove()
/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.c188 static struct acpi_device *
192 struct acpi_device *adev; in usb_acpi_get_companion_for_port()
221 static struct acpi_device *
224 struct acpi_device *adev; in usb_acpi_find_companion_for_port()
245 static struct acpi_device *
248 struct acpi_device *adev; in usb_acpi_find_companion_for_device()
273 static struct acpi_device *usb_acpi_find_companion(struct device *dev) in usb_acpi_find_companion()

12345678910