Lines Matching refs:acpi_dev

34 	struct acpi_device *acpi_dev;  member
82 handle = acpi_device_handle(data->acpi_dev); in system76_get()
103 handle = acpi_device_handle(data->acpi_dev); in system76_get_index()
117 handle = acpi_device_handle(data->acpi_dev); in system76_get_object()
150 handle = acpi_device_handle(data->acpi_dev); in system76_set()
337 if (acpi_has_method(acpi_device_handle(data->acpi_dev), "GKBK")) { in kb_led_set()
413 if (acpi_has_method(acpi_device_handle(data->acpi_dev), "GKBK")) { in kb_led_hotkey_hardware()
647 static void system76_notify(struct acpi_device *acpi_dev, u32 event) in system76_notify() argument
651 data = acpi_driver_data(acpi_dev); in system76_notify()
675 static int system76_add(struct acpi_device *acpi_dev) in system76_add() argument
680 data = devm_kzalloc(&acpi_dev->dev, sizeof(*data), GFP_KERNEL); in system76_add()
683 acpi_dev->driver_data = data; in system76_add()
684 data->acpi_dev = acpi_dev; in system76_add()
688 data->has_open_ec = acpi_has_method(acpi_device_handle(data->acpi_dev), "NFAN"); in system76_add()
699 err = devm_led_classdev_register(&acpi_dev->dev, &data->ap_led); in system76_add()
707 if (acpi_has_method(acpi_device_handle(data->acpi_dev), "GKBK")) { in system76_add()
729 if (acpi_has_method(acpi_device_handle(data->acpi_dev), "SKBC")) { in system76_add()
743 err = devm_led_classdev_register(&acpi_dev->dev, &data->kb_led); in system76_add()
748 data->input = devm_input_allocate_device(&acpi_dev->dev); in system76_add()
755 data->input->dev.parent = &acpi_dev->dev; in system76_add()
771 data->therm = devm_hwmon_device_register_with_info(&acpi_dev->dev, in system76_add()
791 static void system76_remove(struct acpi_device *acpi_dev) in system76_remove() argument
795 data = acpi_driver_data(acpi_dev); in system76_remove()
803 devm_led_classdev_unregister(&acpi_dev->dev, &data->ap_led); in system76_remove()
804 devm_led_classdev_unregister(&acpi_dev->dev, &data->kb_led); in system76_remove()