• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/acpi/

Lines Matching defs:dock_station

61 struct dock_station {
103 add_dock_dependent_device(struct dock_station *ds, acpi_handle handle)
130 dock_add_hotplug_device(struct dock_station *ds,
146 dock_del_hotplug_device(struct dock_station *ds,
163 find_dock_dependent_device(struct dock_station *ds, acpi_handle handle)
262 struct dock_station *dock_station;
270 list_for_each_entry(dock_station, &dock_stations, sibling)
271 if (find_dock_dependent_device(dock_station, handle))
285 static int dock_present(struct dock_station *ds)
364 static void hotplug_dock_devices(struct dock_station *ds, u32 event)
392 static void dock_event(struct dock_station *ds, u32 event, int num)
426 static void eject_dock(struct dock_station *ds)
457 static void handle_dock(struct dock_station *ds, int dock)
484 static inline void dock(struct dock_station *ds)
489 static inline void undock(struct dock_station *ds)
494 static inline void begin_dock(struct dock_station *ds)
499 static inline void complete_dock(struct dock_station *ds)
505 static inline void begin_undock(struct dock_station *ds)
510 static inline void complete_undock(struct dock_station *ds)
515 static void dock_lock(struct dock_station *ds, int lock)
542 static int dock_in_progress(struct dock_station *ds)
596 struct dock_station *dock_station;
606 list_for_each_entry(dock_station, &dock_stations, sibling) {
612 dd = find_dock_dependent_device(dock_station, handle);
616 dock_add_hotplug_device(dock_station, dd);
632 struct dock_station *dock_station;
637 list_for_each_entry(dock_station, &dock_stations, sibling) {
638 dd = find_dock_dependent_device(dock_station, handle);
640 dock_del_hotplug_device(dock_station, dd);
651 static int handle_eject_request(struct dock_station *ds, u32 event)
689 struct dock_station *ds = data;
752 struct dock_station *ds;
766 struct dock_station *dock_station;
772 list_for_each_entry(dock_station, &dock_stations, sibling) {
773 if (dock_station->handle == handle) {
781 dd->ds = dock_station;
809 struct dock_station *ds = context;
838 struct dock_station *dock_station = dev->platform_data;
840 if (ACPI_SUCCESS(acpi_bus_get_device(dock_station->handle, &tmp)))
852 struct dock_station *dock_station = dev->platform_data;
853 return snprintf(buf, PAGE_SIZE, "%d\n", dock_station->flags);
865 struct dock_station *dock_station = dev->platform_data;
870 begin_undock(dock_station);
871 ret = handle_eject_request(dock_station, ACPI_NOTIFY_EJECT_REQUEST);
883 struct dock_station *dock_station = dev->platform_data;
884 acpi_status status = acpi_evaluate_integer(dock_station->handle,
896 struct dock_station *dock_station = dev->platform_data;
899 if (dock_station->flags & DOCK_IS_DOCK)
900 type = "dock_station";
901 else if (dock_station->flags & DOCK_IS_ATA)
903 else if (dock_station->flags & DOCK_IS_BAT)
935 struct dock_station ds, *dock_station;
944 dock_station = dd->dev.platform_data;
946 dock_station->handle = handle;
947 dock_station->dock_device = dd;
948 dock_station->last_dock_time = jiffies - HZ;
950 mutex_init(&dock_station->hp_lock);
951 spin_lock_init(&dock_station->dd_lock);
952 INIT_LIST_HEAD(&dock_station->sibling);
953 INIT_LIST_HEAD(&dock_station->hotplug_devices);
955 INIT_LIST_HEAD(&dock_station->dependent_devices);
961 dock_station->flags |= DOCK_IS_DOCK;
963 dock_station->flags |= DOCK_IS_ATA;
965 dock_station->flags |= DOCK_IS_BAT;
974 dock_station, NULL);
977 ret = add_dock_dependent_device(dock_station, handle);
982 list_add(&dock_station->sibling, &dock_stations);
996 static int dock_remove(struct dock_station *ds)
1069 struct dock_station *tmp, *dock_station;
1072 list_for_each_entry_safe(dock_station, tmp, &dock_stations, sibling)
1073 dock_remove(dock_station);