• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/acpi/

Lines Matching refs:dock

2  *  dock.c - ACPI dock station driver
38 ACPI_MODULE_NAME("dock");
45 static char dock_device_name[] = "dock";
96 * add_dock_dependent_device - associate a device with the dock station
97 * @ds: The dock station
100 * Add the dependent device to the dock's dependent device list.
112 * dock_add_hotplug_device - associate a hotplug handler with the dock station
113 * @ds: The dock station
116 * Add the dependent device to the dock's hotplug device list
128 * dock_del_hotplug_device - remove a hotplug handler from the dock station
129 * @ds: The dock station
132 * Delete the dependent device from the dock's hotplug device list
144 * find_dock_dependent_device - get a device dependent on this dock
145 * @ds: the dock station
148 * iterate over the dependent device list for this dock. If the
171 * is_dock - see if a device is a dock station
174 * If an acpi object has a _DCK method, then it is by definition a dock
189 * is_dock_device - see if a device is on a dock station
192 * If this device is either the dock station itself,
193 * or is a device dependent on the dock station, then it
194 * is a dock device
210 * dock_present - see if the dock station is present.
211 * @ds: the dock station
290 * hotplug_dock_devices - insert or remove devices on the dock station
291 * @ds: the dock station
294 * Some devices on the dock station need to have drivers called
295 * to perform hotplug operations after a dock event has occurred.
296 * Traverse the list of dock devices that have registered a
332 * Indicate that the status of the dock station has
339 * eject_dock - respond to a dock eject request
340 * @ds: the dock station
342 * This is called after _DCK is called, to execute the dock station's
352 /* all dock devices should have _EJ0, but check anyway */
355 pr_debug("No _EJ0 support for dock device\n");
370 * handle_dock - handle a dock event
371 * @ds: the dock station
372 * @dock: to dock, or undock - that is the question
376 static void handle_dock(struct dock_station *ds, int dock)
388 printk(KERN_INFO PREFIX "%s\n", dock ? "docking" : "undocking");
394 arg.integer.value = dock;
402 static inline void dock(struct dock_station *ds)
424 * dock_in_progress - see if we are in the middle of handling a dock event
425 * @ds: the dock station
427 * Sometimes while docking, false dock events can be sent to the driver
440 * register_dock_notifier - add yourself to the dock notifier list
443 * If a driver wishes to be notified about dock events, they can
444 * use this function to put a notifier block on the dock notifier list.
445 * this notifier call chain will be called after a dock event, but
459 * unregister_dock_notifier - remove yourself from the dock notifier list
478 * If a driver would like to perform a hotplug operation after a dock
480 * the dock driver after _DCK is executed.
492 * make sure this handle is for a device dependent on the dock,
493 * this would include the dock station itself
529 * Check to make sure the dock device is still present, then undock and
558 * dock_notify - act upon an acpi dock notification
559 * @handle: the dock station handle
563 * If we are notified to dock, then check to see if the dock is
564 * present and then dock. Notify all drivers of the dock event,
575 dock(ds);
577 printk(KERN_ERR PREFIX "Unable to dock!\n");
600 printk(KERN_ERR PREFIX "Unknown dock event %d\n", event);
605 * find_dock_devices - find devices on the dock station
608 * @context: the dock station private data
613 * will see if it is dependent on the dock station.
629 /* see if parent is dependent on dock */
689 * dock_add - add a new dock station
690 * @handle: the dock station handle
692 * allocated and initialize a new dock station device. Find all devices
693 * that are on the dock station, and register for dock event notifications.
717 printk(KERN_ERR PREFIX "Error %d registering dock device\n", ret);
749 /* add the dock station as a device dependent on itself */
758 /* register for dock events */
784 * dock_remove - free up resources related to the dock station
799 /* remove dock notify handler */
811 /* free dock station memory */
817 * find_dock - look for a dock station
820 * @context: counter of dock stations found
823 * This is called by acpi_walk_namespace to look for dock stations.
846 /* look for a dock station */
851 printk(KERN_INFO "No dock devices found.\n");