Lines Matching refs:dock_station
45 struct dock_station { struct
86 static int add_dock_dependent_device(struct dock_station *ds, in add_dock_dependent_device()
145 static struct dock_station *find_dock_station(acpi_handle handle) in find_dock_station()
147 struct dock_station *ds; in find_dock_station()
165 find_dock_dependent_device(struct dock_station *ds, struct acpi_device *adev) in find_dock_dependent_device()
179 struct dock_station *ds = find_dock_station(dshandle); in register_dock_dependent_device()
199 struct dock_station *dock_station; in is_dock_device() local
207 list_for_each_entry(dock_station, &dock_stations, sibling) in is_dock_device()
208 if (find_dock_dependent_device(dock_station, adev)) in is_dock_device()
222 static int dock_present(struct dock_station *ds) in dock_present()
239 static void hot_remove_dock_devices(struct dock_station *ds) in hot_remove_dock_devices()
265 static void hotplug_dock_devices(struct dock_station *ds, u32 event) in hotplug_dock_devices()
294 static void dock_event(struct dock_station *ds, u32 event, int num) in dock_event()
327 static void handle_dock(struct dock_station *ds, int dock) in handle_dock()
347 static inline void dock(struct dock_station *ds) in dock()
352 static inline void undock(struct dock_station *ds) in undock()
357 static inline void begin_dock(struct dock_station *ds) in begin_dock()
362 static inline void complete_dock(struct dock_station *ds) in complete_dock()
368 static inline void begin_undock(struct dock_station *ds) in begin_undock()
373 static inline void complete_undock(struct dock_station *ds) in complete_undock()
386 static int dock_in_progress(struct dock_station *ds) in dock_in_progress()
400 static int handle_eject_request(struct dock_station *ds, u32 event) in handle_eject_request()
438 struct dock_station *ds = find_dock_station(handle); in dock_notify()
504 struct dock_station *dock_station = dev->platform_data; in show_docked() local
507 acpi_bus_get_device(dock_station->handle, &adev); in show_docked()
518 struct dock_station *dock_station = dev->platform_data; in show_flags() local
519 return snprintf(buf, PAGE_SIZE, "%d\n", dock_station->flags); in show_flags()
531 struct dock_station *dock_station = dev->platform_data; in write_undock() local
537 begin_undock(dock_station); in write_undock()
538 ret = handle_eject_request(dock_station, ACPI_NOTIFY_EJECT_REQUEST); in write_undock()
551 struct dock_station *dock_station = dev->platform_data; in show_dock_uid() local
552 acpi_status status = acpi_evaluate_integer(dock_station->handle, in show_dock_uid()
564 struct dock_station *dock_station = dev->platform_data; in show_dock_type() local
567 if (dock_station->flags & DOCK_IS_DOCK) in show_dock_type()
569 else if (dock_station->flags & DOCK_IS_ATA) in show_dock_type()
571 else if (dock_station->flags & DOCK_IS_BAT) in show_dock_type()
601 struct dock_station *dock_station, ds = { NULL, }; in acpi_dock_add() local
617 dock_station = dd->dev.platform_data; in acpi_dock_add()
619 dock_station->handle = handle; in acpi_dock_add()
620 dock_station->dock_device = dd; in acpi_dock_add()
621 dock_station->last_dock_time = jiffies - HZ; in acpi_dock_add()
623 INIT_LIST_HEAD(&dock_station->sibling); in acpi_dock_add()
624 INIT_LIST_HEAD(&dock_station->dependent_devices); in acpi_dock_add()
630 dock_station->flags |= DOCK_IS_DOCK; in acpi_dock_add()
632 dock_station->flags |= DOCK_IS_ATA; in acpi_dock_add()
634 dock_station->flags |= DOCK_IS_BAT; in acpi_dock_add()
641 ret = add_dock_dependent_device(dock_station, adev); in acpi_dock_add()
646 list_add(&dock_station->sibling, &dock_stations); in acpi_dock_add()