Lines Matching refs:acpi_dev

28 	struct acpi_device *acpi_dev;  member
75 handle = acpi_device_handle(data->acpi_dev); in system76_get()
96 handle = acpi_device_handle(data->acpi_dev); in system76_get_index()
110 handle = acpi_device_handle(data->acpi_dev); in system76_get_object()
143 handle = acpi_device_handle(data->acpi_dev); in system76_set()
630 static void system76_notify(struct acpi_device *acpi_dev, u32 event) in system76_notify() argument
634 data = acpi_driver_data(acpi_dev); in system76_notify()
658 static int system76_add(struct acpi_device *acpi_dev) in system76_add() argument
663 data = devm_kzalloc(&acpi_dev->dev, sizeof(*data), GFP_KERNEL); in system76_add()
666 acpi_dev->driver_data = data; in system76_add()
667 data->acpi_dev = acpi_dev; in system76_add()
671 data->has_open_ec = acpi_has_method(acpi_device_handle(data->acpi_dev), "NFAN"); in system76_add()
682 err = devm_led_classdev_register(&acpi_dev->dev, &data->ap_led); in system76_add()
690 if (acpi_has_method(acpi_device_handle(data->acpi_dev), "SKBC")) { in system76_add()
700 err = devm_led_classdev_register(&acpi_dev->dev, &data->kb_led); in system76_add()
704 data->input = devm_input_allocate_device(&acpi_dev->dev); in system76_add()
711 data->input->dev.parent = &acpi_dev->dev; in system76_add()
727 data->therm = devm_hwmon_device_register_with_info(&acpi_dev->dev, in system76_add()
747 static int system76_remove(struct acpi_device *acpi_dev) in system76_remove() argument
751 data = acpi_driver_data(acpi_dev); in system76_remove()
759 devm_led_classdev_unregister(&acpi_dev->dev, &data->ap_led); in system76_remove()
760 devm_led_classdev_unregister(&acpi_dev->dev, &data->kb_led); in system76_remove()