• 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/drivers/acpi/

Lines Matching defs:dock

2  *  dock.c - ACPI dock station driver
41 ACPI_MODULE_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.
123 * dock_add_hotplug_device - associate a hotplug handler with the dock station
124 * @ds: The dock station
127 * Add the dependent device to the dock's hotplug device list
139 * dock_del_hotplug_device - remove a hotplug handler from the dock station
140 * @ds: The dock station
143 * Delete the dependent device from the dock's hotplug device list
155 * find_dock_dependent_device - get a device dependent on this dock
156 * @ds: the dock station
159 * iterate over the dependent device list for this dock. If the
182 * is_dock - see if a device is a dock station
185 * If an acpi object has a _DCK method, then it is by definition a dock
253 * is_dock_device - see if a device is on a dock station
256 * If this device is either the dock station itself,
257 * or is a device dependent on the dock station, then it
258 * is a dock device
279 * dock_present - see if the dock station is present.
280 * @ds: the dock station
355 * hotplug_dock_devices - insert or remove devices on the dock station
356 * @ds: the dock station
359 * Some devices on the dock station need to have drivers called
360 * to perform hotplug operations after a dock event has occurred.
361 * Traverse the list of dock devices that have registered a
402 sprintf(event_string, "EVENT=dock");
405 * Indicate that the status of the dock station has
420 * eject_dock - respond to a dock eject request
421 * @ds: the dock station
423 * This is called after _DCK is called, to execute the dock station's
433 /* all dock devices should have _EJ0, but check anyway */
436 pr_debug("No _EJ0 support for dock device\n");
451 * handle_dock - handle a dock event
452 * @ds: the dock station
453 * @dock: to dock, or undock - that is the question
457 static void handle_dock(struct dock_station *ds, int dock)
468 (char *)name_buffer.pointer, dock ? "docking" : "undocking");
474 arg.integer.value = dock;
484 static inline void dock(struct dock_station *ds)
535 * dock_in_progress - see if we are in the middle of handling a dock event
536 * @ds: the dock station
538 * Sometimes while docking, false dock events can be sent to the driver
551 * register_dock_notifier - add yourself to the dock notifier list
554 * If a driver wishes to be notified about dock events, they can
555 * use this function to put a notifier block on the dock notifier list.
556 * this notifier call chain will be called after a dock event, but
569 * unregister_dock_notifier - remove yourself from the dock notifier list
587 * If a driver would like to perform a hotplug operation after a dock
589 * the dock driver after _DCK is executed.
603 * make sure this handle is for a device dependent on the dock,
604 * this would include the dock station itself
608 * An ATA bay can be in a dock and itself can be ejected
609 * separately, so there are two 'dock stations' which need the
648 * Check to make sure the dock device is still present, then undock and
660 * Also, even send the dock event if the
678 * dock_notify - act upon an acpi dock notification
679 * @handle: the dock station handle
683 * If we are notified to dock, then check to see if the dock is
684 * present and then dock. Notify all drivers of the dock event,
702 * dock station: BUS_CHECK - docked or surprise removal
706 * To simplify event handling, dock dependent device handler always
716 dock(ds);
718 printk(KERN_ERR PREFIX "Unable to dock!\n");
745 printk(KERN_ERR PREFIX "Unknown dock event %d\n", event);
794 * find_dock_devices - find devices on the dock station
797 * @context: the dock station private data
802 * will see if it is dependent on the dock station.
817 /* see if parent is dependent on dock */
926 * dock_add - add a new dock station
927 * @handle: the dock station handle
929 * allocated and initialize a new dock station device. Find all devices
930 * that are on the dock station, and register for dock event notifications.
940 dd = platform_device_register_data(NULL, "dock", id, &ds, sizeof(ds));
957 /* we want the dock device to send uevents */
976 /* add the dock station as a device dependent on itself */
994 * dock_remove - free up resources related to the dock station
1018 * find_dock - look for a dock station
1021 * @context: counter of dock stations found
1024 * This is called by acpi_walk_namespace to look for dock stations.
1038 /* If bay is a dock, it's already handled */
1049 /* look for a dock station */
1057 printk(KERN_INFO PREFIX "No dock devices found.\n");
1077 * Must be called before drivers of devices in dock, otherwise we can't know
1078 * which devices are in a dock