• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/acpi/

Lines Matching refs:bay

2  *  bay.c - ACPI removable drive bay driver
35 ACPI_MODULE_NAME("bay");
39 #define ACPI_BAY_CLASS "bay"
49 struct bay {
80 * bay_present - see if the bay device is present
81 * @bay: the drive bay
85 static int bay_present(struct bay *bay)
90 if (bay) {
91 status = acpi_evaluate_integer(bay->handle, "_STA", NULL, &sta);
127 struct bay *bay = dev_get_drvdata(dev);
128 return snprintf(buf, PAGE_SIZE, "%d\n", bay_present(bay));
139 struct bay *bay = dev_get_drvdata(dev);
144 eject_device(bay->handle);
184 * is_ejectable_bay - see if a device is an ejectable drive bay
189 * drive bay
223 static int acpi_bay_add_fs(struct bay *bay)
226 struct device *dev = &bay->pdev->dev;
239 bay_dprintk(bay->handle, "Error adding sysfs files\n");
243 static void acpi_bay_remove_fs(struct bay *bay)
245 struct device *dev = &bay->pdev->dev;
267 struct bay *new_bay;
275 * Initialize bay device structure
285 printk(KERN_ERR PREFIX "Error registering bay device\n");
300 printk(KERN_ERR PREFIX "Error installing bay notify handler\n");
321 * bay_notify - act upon an acpi bay notification
322 * @handle: the bay handle
329 struct bay *bay_dev = (struct bay *)data;
351 * there could be more than one ejectable bay.
356 bay_dprintk(handle, "found ejectable bay");
381 struct bay *bay, *tmp;
383 list_for_each_entry_safe(bay, tmp, &drive_bays, list) {
384 if (is_dock_device(bay->handle))
385 unregister_hotplug_dock_device(bay->handle);
386 acpi_bay_remove_fs(bay);
387 acpi_remove_notify_handler(bay->handle, ACPI_SYSTEM_NOTIFY,
389 platform_device_unregister(bay->pdev);
390 kfree(bay->name);
391 kfree(bay);