Lines Matching refs:acpi_device_dir
611 if (!acpi_device_dir(device)) { in acpi_battery_add_fs()
612 acpi_device_dir(device) = proc_mkdir(acpi_device_bid(device), in acpi_battery_add_fs()
614 if (!acpi_device_dir(device)) in acpi_battery_add_fs()
616 acpi_device_dir(device)->owner = THIS_MODULE; in acpi_battery_add_fs()
621 S_IRUGO, acpi_device_dir(device)); in acpi_battery_add_fs()
634 S_IRUGO, acpi_device_dir(device)); in acpi_battery_add_fs()
647 S_IFREG|S_IRUGO|S_IWUSR, acpi_device_dir(device)); in acpi_battery_add_fs()
669 if (acpi_device_dir(device)) { in acpi_battery_remove_fs()
671 acpi_device_dir(device)); in acpi_battery_remove_fs()
673 acpi_device_dir(device)); in acpi_battery_remove_fs()
675 acpi_device_dir(device)); in acpi_battery_remove_fs()
677 acpi_device_dir(device) = NULL; in acpi_battery_remove_fs()