Lines Matching refs:acpi_dev
167 struct acpi_peripheral *acpi_dev; in chromeos_laptop_adjust_client() local
176 acpi_dev = &cros_laptop->acpi_peripherals[i]; in chromeos_laptop_adjust_client()
178 memcpy(acpi_ids[0].id, acpi_dev->hid, ACPI_ID_LEN); in chromeos_laptop_adjust_client()
181 error = device_add_software_node(&client->dev, &acpi_dev->swnode); in chromeos_laptop_adjust_client()
189 acpi_dev->client = client; in chromeos_laptop_adjust_client()
200 struct acpi_peripheral *acpi_dev; in chromeos_laptop_detach_i2c_client() local
206 acpi_dev = &cros_laptop->acpi_peripherals[i]; in chromeos_laptop_detach_i2c_client()
208 if (acpi_dev->client == client) { in chromeos_laptop_detach_i2c_client()
209 acpi_dev->client = NULL; in chromeos_laptop_detach_i2c_client()
796 struct acpi_peripheral *acpi_dev; in chromeos_laptop_prepare_acpi_peripherals() local
816 acpi_dev = acpi_peripherals; in chromeos_laptop_prepare_acpi_peripherals()
822 *acpi_dev = *src_dev; in chromeos_laptop_prepare_acpi_peripherals()
826 acpi_dev->swnode.properties = in chromeos_laptop_prepare_acpi_peripherals()
828 if (IS_ERR(acpi_dev->swnode.properties)) { in chromeos_laptop_prepare_acpi_peripherals()
829 error = PTR_ERR(acpi_dev->swnode.properties); in chromeos_laptop_prepare_acpi_peripherals()
834 acpi_dev++; in chromeos_laptop_prepare_acpi_peripherals()
844 acpi_dev = &acpi_peripherals[i]; in chromeos_laptop_prepare_acpi_peripherals()
845 if (!IS_ERR_OR_NULL(acpi_dev->swnode.properties)) in chromeos_laptop_prepare_acpi_peripherals()
846 property_entries_free(acpi_dev->swnode.properties); in chromeos_laptop_prepare_acpi_peripherals()
855 const struct acpi_peripheral *acpi_dev; in chromeos_laptop_destroy() local
865 acpi_dev = &cros_laptop->acpi_peripherals[i]; in chromeos_laptop_destroy()
867 if (acpi_dev->client) in chromeos_laptop_destroy()
868 device_remove_software_node(&acpi_dev->client->dev); in chromeos_laptop_destroy()
870 property_entries_free(acpi_dev->swnode.properties); in chromeos_laptop_destroy()