Searched refs:dock_station (Results 1 - 1 of 1) sorted by relevance
/linux-4.1.27/drivers/acpi/ |
H A D | dock.c | 54 struct dock_station { struct 95 static int add_dock_dependent_device(struct dock_station *ds, add_dock_dependent_device() 154 static struct dock_station *find_dock_station(acpi_handle handle) find_dock_station() 156 struct dock_station *ds; find_dock_station() 174 find_dock_dependent_device(struct dock_station *ds, struct acpi_device *adev) find_dock_dependent_device() 188 struct dock_station *ds = find_dock_station(dshandle); register_dock_dependent_device() 208 struct dock_station *dock_station; is_dock_device() local 216 list_for_each_entry(dock_station, &dock_stations, sibling) is_dock_device() 217 if (find_dock_dependent_device(dock_station, adev)) is_dock_device() 231 static int dock_present(struct dock_station *ds) dock_present() 248 static void hot_remove_dock_devices(struct dock_station *ds) hot_remove_dock_devices() 274 static void hotplug_dock_devices(struct dock_station *ds, u32 event) hotplug_dock_devices() 303 static void dock_event(struct dock_station *ds, u32 event, int num) dock_event() 336 static void handle_dock(struct dock_station *ds, int dock) handle_dock() 356 static inline void dock(struct dock_station *ds) dock() 361 static inline void undock(struct dock_station *ds) undock() 366 static inline void begin_dock(struct dock_station *ds) begin_dock() 371 static inline void complete_dock(struct dock_station *ds) complete_dock() 377 static inline void begin_undock(struct dock_station *ds) begin_undock() 382 static inline void complete_undock(struct dock_station *ds) complete_undock() 395 static int dock_in_progress(struct dock_station *ds) dock_in_progress() 409 static int handle_eject_request(struct dock_station *ds, u32 event) handle_eject_request() 447 struct dock_station *ds = find_dock_station(handle); dock_notify() 512 struct dock_station *dock_station = dev->platform_data; show_docked() local 515 acpi_bus_get_device(dock_station->handle, &adev); show_docked() 526 struct dock_station *dock_station = dev->platform_data; show_flags() local 527 return snprintf(buf, PAGE_SIZE, "%d\n", dock_station->flags); show_flags() 539 struct dock_station *dock_station = dev->platform_data; write_undock() local 545 begin_undock(dock_station); write_undock() 546 ret = handle_eject_request(dock_station, ACPI_NOTIFY_EJECT_REQUEST); write_undock() 559 struct dock_station *dock_station = dev->platform_data; show_dock_uid() local 560 acpi_status status = acpi_evaluate_integer(dock_station->handle, show_dock_uid() 572 struct dock_station *dock_station = dev->platform_data; show_dock_type() local 575 if (dock_station->flags & DOCK_IS_DOCK) show_dock_type() 576 type = "dock_station"; show_dock_type() 577 else if (dock_station->flags & DOCK_IS_ATA) show_dock_type() 579 else if (dock_station->flags & DOCK_IS_BAT) show_dock_type() 609 struct dock_station *dock_station, ds = { NULL, }; acpi_dock_add() local 625 dock_station = dd->dev.platform_data; acpi_dock_add() 627 dock_station->handle = handle; acpi_dock_add() 628 dock_station->dock_device = dd; acpi_dock_add() 629 dock_station->last_dock_time = jiffies - HZ; acpi_dock_add() 631 INIT_LIST_HEAD(&dock_station->sibling); acpi_dock_add() 632 INIT_LIST_HEAD(&dock_station->dependent_devices); acpi_dock_add() 638 dock_station->flags |= DOCK_IS_DOCK; acpi_dock_add() 640 dock_station->flags |= DOCK_IS_ATA; acpi_dock_add() 642 dock_station->flags |= DOCK_IS_BAT; acpi_dock_add() 649 ret = add_dock_dependent_device(dock_station, adev); acpi_dock_add() 654 list_add(&dock_station->sibling, &dock_stations); acpi_dock_add()
|
Completed in 29 milliseconds