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()
798 struct acpi_peripheral *acpi_dev; in chromeos_laptop_prepare_acpi_peripherals() local
818 acpi_dev = acpi_peripherals; in chromeos_laptop_prepare_acpi_peripherals()
824 *acpi_dev = *src_dev; in chromeos_laptop_prepare_acpi_peripherals()
828 acpi_dev->swnode.properties = in chromeos_laptop_prepare_acpi_peripherals()
830 if (IS_ERR(acpi_dev->swnode.properties)) { in chromeos_laptop_prepare_acpi_peripherals()
831 error = PTR_ERR(acpi_dev->swnode.properties); in chromeos_laptop_prepare_acpi_peripherals()
836 acpi_dev++; in chromeos_laptop_prepare_acpi_peripherals()
846 acpi_dev = &acpi_peripherals[i]; in chromeos_laptop_prepare_acpi_peripherals()
847 if (!IS_ERR_OR_NULL(acpi_dev->swnode.properties)) in chromeos_laptop_prepare_acpi_peripherals()
848 property_entries_free(acpi_dev->swnode.properties); in chromeos_laptop_prepare_acpi_peripherals()
857 const struct acpi_peripheral *acpi_dev; in chromeos_laptop_destroy() local
867 acpi_dev = &cros_laptop->acpi_peripherals[i]; in chromeos_laptop_destroy()
869 if (acpi_dev->client) in chromeos_laptop_destroy()
870 device_remove_software_node(&acpi_dev->client->dev); in chromeos_laptop_destroy()
872 property_entries_free(acpi_dev->swnode.properties); in chromeos_laptop_destroy()