Lines Matching full:dock
3 * dock.c - ACPI dock station driver
62 * Dock Dependent device functions *
65 * add_dock_dependent_device - associate a device with the dock station
66 * @ds: Dock station.
69 * Add the dependent device to the dock's dependent device list.
142 * find_dock_dependent_device - get a device dependent on this dock
143 * @ds: the dock station
146 * iterate over the dependent device list for this dock. If the
171 * Dock functions *
175 * is_dock_device - see if a device is on a dock station
178 * If this device is either the dock station itself,
179 * or is a device dependent on the dock station, then it
180 * is a dock device
201 * dock_present - see if the dock station is present.
202 * @ds: the dock station
221 * hot_remove_dock_devices - Remove dock station devices.
222 * @ds: Dock station.
242 * hotplug_dock_devices - Insert devices on a dock station.
243 * @ds: the dock station
246 * Some devices on the dock station need to have drivers called
247 * to perform hotplug operations after a dock event has occurred.
248 * Traverse the list of dock devices that have registered a
255 /* Call driver specific post-dock fixups. */ in hotplug_dock_devices()
291 sprintf(event_string, "EVENT=dock"); in dock_event()
294 * Indicate that the status of the dock station has in dock_event()
308 * handle_dock - handle a dock event
309 * @ds: the dock station
310 * @dock: to dock, or undock - that is the question
314 static void handle_dock(struct dock_station *ds, int dock) in handle_dock() argument
321 acpi_handle_info(ds->handle, "%s\n", dock ? "docking" : "undocking"); in handle_dock()
327 arg.integer.value = dock; in handle_dock()
334 static inline void dock(struct dock_station *ds) in dock() function
366 * dock_in_progress - see if we are in the middle of handling a dock event
367 * @ds: the dock station
369 * Sometimes while docking, false dock events can be sent to the driver
384 * Check to make sure the dock device is still present, then undock and
396 * Also, even send the dock event if the in handle_eject_request()
414 * dock_notify - Handle ACPI dock notification.
415 * @adev: Dock station's ACPI device object.
418 * If we are notified to dock, then check to see if the dock is
419 * present and then dock. Notify all drivers of the dock event,
440 * dock station: BUS_CHECK - docked or surprise removal in dock_notify()
444 * To simplify event handling, dock dependent device handler always in dock_notify()
453 dock(ds); in dock_notify()
455 acpi_handle_err(handle, "Unable to dock!\n"); in dock_notify()
582 * acpi_dock_add - Add a new dock station
583 * @adev: Dock station ACPI device object.
585 * allocated and initialize a new dock station device.
596 pdevinfo.name = "dock"; in acpi_dock_add()
614 /* we want the dock device to send uevents */ in acpi_dock_add()
628 /* add the dock station as a device dependent on itself */ in acpi_dock_add()
636 dev_info(&adev->dev, "ACPI dock station (docks/bays count: %d)\n", in acpi_dock_add()