Lines Matching refs:dock_station
50 struct dock_station { struct
91 static int add_dock_dependent_device(struct dock_station *ds, in add_dock_dependent_device()
150 static struct dock_station *find_dock_station(acpi_handle handle) in find_dock_station()
152 struct dock_station *ds; in find_dock_station()
170 find_dock_dependent_device(struct dock_station *ds, struct acpi_device *adev) in find_dock_dependent_device()
184 struct dock_station *ds = find_dock_station(dshandle); in register_dock_dependent_device()
204 struct dock_station *dock_station; in is_dock_device() local
212 list_for_each_entry(dock_station, &dock_stations, sibling) in is_dock_device()
213 if (find_dock_dependent_device(dock_station, adev)) in is_dock_device()
227 static int dock_present(struct dock_station *ds) in dock_present()
244 static void hot_remove_dock_devices(struct dock_station *ds) in hot_remove_dock_devices()
270 static void hotplug_dock_devices(struct dock_station *ds, u32 event) in hotplug_dock_devices()
299 static void dock_event(struct dock_station *ds, u32 event, int num) in dock_event()
332 static void handle_dock(struct dock_station *ds, int dock) in handle_dock()
352 static inline void dock(struct dock_station *ds) in dock()
357 static inline void undock(struct dock_station *ds) in undock()
362 static inline void begin_dock(struct dock_station *ds) in begin_dock()
367 static inline void complete_dock(struct dock_station *ds) in complete_dock()
373 static inline void begin_undock(struct dock_station *ds) in begin_undock()
378 static inline void complete_undock(struct dock_station *ds) in complete_undock()
391 static int dock_in_progress(struct dock_station *ds) in dock_in_progress()
405 static int handle_eject_request(struct dock_station *ds, u32 event) in handle_eject_request()
443 struct dock_station *ds = find_dock_station(handle); in dock_notify()
508 struct dock_station *dock_station = dev->platform_data; in show_docked() local
511 acpi_bus_get_device(dock_station->handle, &adev); in show_docked()
522 struct dock_station *dock_station = dev->platform_data; in show_flags() local
523 return snprintf(buf, PAGE_SIZE, "%d\n", dock_station->flags); in show_flags()
535 struct dock_station *dock_station = dev->platform_data; in write_undock() local
541 begin_undock(dock_station); in write_undock()
542 ret = handle_eject_request(dock_station, ACPI_NOTIFY_EJECT_REQUEST); in write_undock()
555 struct dock_station *dock_station = dev->platform_data; in show_dock_uid() local
556 acpi_status status = acpi_evaluate_integer(dock_station->handle, in show_dock_uid()
568 struct dock_station *dock_station = dev->platform_data; in show_dock_type() local
571 if (dock_station->flags & DOCK_IS_DOCK) in show_dock_type()
573 else if (dock_station->flags & DOCK_IS_ATA) in show_dock_type()
575 else if (dock_station->flags & DOCK_IS_BAT) in show_dock_type()
605 struct dock_station *dock_station, ds = { NULL, }; in acpi_dock_add() local
621 dock_station = dd->dev.platform_data; in acpi_dock_add()
623 dock_station->handle = handle; in acpi_dock_add()
624 dock_station->dock_device = dd; in acpi_dock_add()
625 dock_station->last_dock_time = jiffies - HZ; in acpi_dock_add()
627 INIT_LIST_HEAD(&dock_station->sibling); in acpi_dock_add()
628 INIT_LIST_HEAD(&dock_station->dependent_devices); in acpi_dock_add()
634 dock_station->flags |= DOCK_IS_DOCK; in acpi_dock_add()
636 dock_station->flags |= DOCK_IS_ATA; in acpi_dock_add()
638 dock_station->flags |= DOCK_IS_BAT; in acpi_dock_add()
645 ret = add_dock_dependent_device(dock_station, adev); in acpi_dock_add()
650 list_add(&dock_station->sibling, &dock_stations); in acpi_dock_add()