Lines Matching refs:dock_station

30 struct dock_station {
71 static int add_dock_dependent_device(struct dock_station *ds,
130 static struct dock_station *find_dock_station(acpi_handle handle)
132 struct dock_station *ds;
150 find_dock_dependent_device(struct dock_station *ds, struct acpi_device *adev)
164 struct dock_station *ds = find_dock_station(dshandle);
184 struct dock_station *dock_station;
192 list_for_each_entry(dock_station, &dock_stations, sibling)
193 if (find_dock_dependent_device(dock_station, adev))
207 static int dock_present(struct dock_station *ds)
224 static void hot_remove_dock_devices(struct dock_station *ds)
251 static void hotplug_dock_devices(struct dock_station *ds, u32 event)
280 static void dock_event(struct dock_station *ds, u32 event, int num)
313 static void handle_dock(struct dock_station *ds, int dock)
333 static inline void dock(struct dock_station *ds)
338 static inline void undock(struct dock_station *ds)
343 static inline void begin_dock(struct dock_station *ds)
348 static inline void complete_dock(struct dock_station *ds)
354 static inline void begin_undock(struct dock_station *ds)
359 static inline void complete_undock(struct dock_station *ds)
372 static int dock_in_progress(struct dock_station *ds)
386 static int handle_eject_request(struct dock_station *ds, u32 event)
424 struct dock_station *ds = find_dock_station(handle);
490 struct dock_station *dock_station = dev->platform_data;
493 acpi_bus_get_device(dock_station->handle, &adev);
504 struct dock_station *dock_station = dev->platform_data;
505 return snprintf(buf, PAGE_SIZE, "%d\n", dock_station->flags);
517 struct dock_station *dock_station = dev->platform_data;
523 begin_undock(dock_station);
524 ret = handle_eject_request(dock_station, ACPI_NOTIFY_EJECT_REQUEST);
537 struct dock_station *dock_station = dev->platform_data;
538 acpi_status status = acpi_evaluate_integer(dock_station->handle,
550 struct dock_station *dock_station = dev->platform_data;
553 if (dock_station->flags & DOCK_IS_DOCK)
554 type = "dock_station";
555 else if (dock_station->flags & DOCK_IS_ATA)
557 else if (dock_station->flags & DOCK_IS_BAT)
587 struct dock_station *dock_station, ds = { NULL, };
603 dock_station = dd->dev.platform_data;
605 dock_station->handle = handle;
606 dock_station->dock_device = dd;
607 dock_station->last_dock_time = jiffies - HZ;
609 INIT_LIST_HEAD(&dock_station->sibling);
610 INIT_LIST_HEAD(&dock_station->dependent_devices);
616 dock_station->flags |= DOCK_IS_DOCK;
618 dock_station->flags |= DOCK_IS_ATA;
620 dock_station->flags |= DOCK_IS_BAT;
627 ret = add_dock_dependent_device(dock_station, adev);
632 list_add(&dock_station->sibling, &dock_stations);