Lines Matching refs:device

176 static int acpi_pcc_hotkey_add(struct acpi_device *device);
177 static int acpi_pcc_hotkey_remove(struct acpi_device *device);
178 static void acpi_pcc_hotkey_notify(struct acpi_device *device, u32 event);
190 static int acpi_pcc_hotkey_resume(struct device *dev);
226 struct acpi_device *device; member
256 static inline int acpi_pcc_get_sqty(struct acpi_device *device) in acpi_pcc_get_sqty() argument
261 status = acpi_evaluate_integer(device->handle, METHOD_HKEY_SQTY, in acpi_pcc_get_sqty()
367 static ssize_t show_numbatt(struct device *dev, struct device_attribute *attr, in show_numbatt()
379 static ssize_t show_lcdtype(struct device *dev, struct device_attribute *attr, in show_lcdtype()
391 static ssize_t show_mute(struct device *dev, struct device_attribute *attr, in show_mute()
403 static ssize_t show_sticky(struct device *dev, struct device_attribute *attr, in show_sticky()
415 static ssize_t set_sticky(struct device *dev, struct device_attribute *attr, in set_sticky()
482 static void acpi_pcc_hotkey_notify(struct acpi_device *device, u32 event) in acpi_pcc_hotkey_notify() argument
484 struct pcc_acpi *pcc = acpi_driver_data(device); in acpi_pcc_hotkey_notify()
549 static int acpi_pcc_hotkey_resume(struct device *dev) in acpi_pcc_hotkey_resume()
567 static int acpi_pcc_hotkey_add(struct acpi_device *device) in acpi_pcc_hotkey_add() argument
573 if (!device) in acpi_pcc_hotkey_add()
576 num_sifr = acpi_pcc_get_sqty(device); in acpi_pcc_hotkey_add()
596 pcc->device = device; in acpi_pcc_hotkey_add()
597 pcc->handle = device->handle; in acpi_pcc_hotkey_add()
599 device->driver_data = pcc; in acpi_pcc_hotkey_add()
600 strcpy(acpi_device_name(device), ACPI_PCC_DEVICE_NAME); in acpi_pcc_hotkey_add()
601 strcpy(acpi_device_class(device), ACPI_PCC_CLASS); in acpi_pcc_hotkey_add()
634 result = sysfs_create_group(&device->dev.kobj, &pcc_attr_group); in acpi_pcc_hotkey_add()
652 static int acpi_pcc_hotkey_remove(struct acpi_device *device) in acpi_pcc_hotkey_remove() argument
654 struct pcc_acpi *pcc = acpi_driver_data(device); in acpi_pcc_hotkey_remove()
656 if (!device || !pcc) in acpi_pcc_hotkey_remove()
659 sysfs_remove_group(&device->dev.kobj, &pcc_attr_group); in acpi_pcc_hotkey_remove()