Lines Matching refs:dock_station

30 struct dock_station {  struct
71 static int add_dock_dependent_device(struct dock_station *ds, in add_dock_dependent_device()
130 static struct dock_station *find_dock_station(acpi_handle handle) in find_dock_station()
132 struct dock_station *ds; in find_dock_station()
150 find_dock_dependent_device(struct dock_station *ds, struct acpi_device *adev) in find_dock_dependent_device()
164 struct dock_station *ds = find_dock_station(dshandle); in register_dock_dependent_device()
184 struct dock_station *dock_station; in is_dock_device() local
192 list_for_each_entry(dock_station, &dock_stations, sibling) in is_dock_device()
193 if (find_dock_dependent_device(dock_station, adev)) in is_dock_device()
207 static int dock_present(struct dock_station *ds) in dock_present()
224 static void hot_remove_dock_devices(struct dock_station *ds) in hot_remove_dock_devices()
251 static void hotplug_dock_devices(struct dock_station *ds, u32 event) in hotplug_dock_devices()
281 static void dock_event(struct dock_station *ds, u32 event, int num) in dock_event()
314 static void handle_dock(struct dock_station *ds, int dock) in handle_dock()
334 static inline void dock(struct dock_station *ds) in dock()
339 static inline void undock(struct dock_station *ds) in undock()
344 static inline void begin_dock(struct dock_station *ds) in begin_dock()
349 static inline void complete_dock(struct dock_station *ds) in complete_dock()
355 static inline void begin_undock(struct dock_station *ds) in begin_undock()
360 static inline void complete_undock(struct dock_station *ds) in complete_undock()
373 static int dock_in_progress(struct dock_station *ds) in dock_in_progress()
387 static int handle_eject_request(struct dock_station *ds, u32 event) in handle_eject_request()
425 struct dock_station *ds = find_dock_station(handle); in dock_notify()
491 struct dock_station *dock_station = dev->platform_data; in docked_show() local
492 struct acpi_device *adev = acpi_fetch_acpi_dev(dock_station->handle); in docked_show()
504 struct dock_station *dock_station = dev->platform_data; in flags_show() local
506 return sysfs_emit(buf, "%d\n", dock_station->flags); in flags_show()
518 struct dock_station *dock_station = dev->platform_data; in undock_store() local
524 begin_undock(dock_station); in undock_store()
525 ret = handle_eject_request(dock_station, ACPI_NOTIFY_EJECT_REQUEST); in undock_store()
538 struct dock_station *dock_station = dev->platform_data; in uid_show() local
540 acpi_status status = acpi_evaluate_integer(dock_station->handle, in uid_show()
552 struct dock_station *dock_station = dev->platform_data; in type_show() local
555 if (dock_station->flags & DOCK_IS_DOCK) in type_show()
557 else if (dock_station->flags & DOCK_IS_ATA) in type_show()
559 else if (dock_station->flags & DOCK_IS_BAT) in type_show()
589 struct dock_station *dock_station, ds = { NULL, }; in acpi_dock_add() local
605 dock_station = dd->dev.platform_data; in acpi_dock_add()
607 dock_station->handle = handle; in acpi_dock_add()
608 dock_station->dock_device = dd; in acpi_dock_add()
609 dock_station->last_dock_time = jiffies - HZ; in acpi_dock_add()
611 INIT_LIST_HEAD(&dock_station->sibling); in acpi_dock_add()
612 INIT_LIST_HEAD(&dock_station->dependent_devices); in acpi_dock_add()
618 dock_station->flags |= DOCK_IS_DOCK; in acpi_dock_add()
620 dock_station->flags |= DOCK_IS_ATA; in acpi_dock_add()
622 dock_station->flags |= DOCK_IS_BAT; in acpi_dock_add()
629 ret = add_dock_dependent_device(dock_station, adev); in acpi_dock_add()
634 list_add(&dock_station->sibling, &dock_stations); in acpi_dock_add()