cros_laptop        75 drivers/platform/chrome/chromeos_laptop.c static const struct chromeos_laptop *cros_laptop;
cros_laptop       136 drivers/platform/chrome/chromeos_laptop.c 	for (i = 0; i < cros_laptop->num_i2c_peripherals; i++) {
cros_laptop       137 drivers/platform/chrome/chromeos_laptop.c 		i2c_dev = &cros_laptop->i2c_peripherals[i];
cros_laptop       170 drivers/platform/chrome/chromeos_laptop.c 	for (i = 0; i < cros_laptop->num_acpi_peripherals; i++) {
cros_laptop       171 drivers/platform/chrome/chromeos_laptop.c 		acpi_dev = &cros_laptop->acpi_peripherals[i];
cros_laptop       197 drivers/platform/chrome/chromeos_laptop.c 	for (i = 0; i < cros_laptop->num_i2c_peripherals; i++) {
cros_laptop       198 drivers/platform/chrome/chromeos_laptop.c 		i2c_dev = &cros_laptop->i2c_peripherals[i];
cros_laptop       716 drivers/platform/chrome/chromeos_laptop.c chromeos_laptop_prepare_i2c_peripherals(struct chromeos_laptop *cros_laptop,
cros_laptop       727 drivers/platform/chrome/chromeos_laptop.c 	cros_laptop->i2c_peripherals = kmemdup(src->i2c_peripherals,
cros_laptop       731 drivers/platform/chrome/chromeos_laptop.c 	if (!cros_laptop->i2c_peripherals)
cros_laptop       734 drivers/platform/chrome/chromeos_laptop.c 	cros_laptop->num_i2c_peripherals = src->num_i2c_peripherals;
cros_laptop       736 drivers/platform/chrome/chromeos_laptop.c 	for (i = 0; i < cros_laptop->num_i2c_peripherals; i++) {
cros_laptop       737 drivers/platform/chrome/chromeos_laptop.c 		i2c_dev = &cros_laptop->i2c_peripherals[i];
cros_laptop       759 drivers/platform/chrome/chromeos_laptop.c 		i2c_dev = &cros_laptop->i2c_peripherals[i];
cros_laptop       764 drivers/platform/chrome/chromeos_laptop.c 	kfree(cros_laptop->i2c_peripherals);
cros_laptop       769 drivers/platform/chrome/chromeos_laptop.c chromeos_laptop_prepare_acpi_peripherals(struct chromeos_laptop *cros_laptop,
cros_laptop       814 drivers/platform/chrome/chromeos_laptop.c 	cros_laptop->acpi_peripherals = acpi_peripherals;
cros_laptop       815 drivers/platform/chrome/chromeos_laptop.c 	cros_laptop->num_acpi_peripherals = n_peripherals;
cros_laptop       830 drivers/platform/chrome/chromeos_laptop.c static void chromeos_laptop_destroy(const struct chromeos_laptop *cros_laptop)
cros_laptop       837 drivers/platform/chrome/chromeos_laptop.c 	for (i = 0; i < cros_laptop->num_i2c_peripherals; i++) {
cros_laptop       838 drivers/platform/chrome/chromeos_laptop.c 		i2c_dev = &cros_laptop->i2c_peripherals[i];
cros_laptop       845 drivers/platform/chrome/chromeos_laptop.c 	for (i = 0; i < cros_laptop->num_acpi_peripherals; i++) {
cros_laptop       846 drivers/platform/chrome/chromeos_laptop.c 		acpi_dev = &cros_laptop->acpi_peripherals[i];
cros_laptop       851 drivers/platform/chrome/chromeos_laptop.c 	kfree(cros_laptop->i2c_peripherals);
cros_laptop       852 drivers/platform/chrome/chromeos_laptop.c 	kfree(cros_laptop->acpi_peripherals);
cros_laptop       853 drivers/platform/chrome/chromeos_laptop.c 	kfree(cros_laptop);
cros_laptop       859 drivers/platform/chrome/chromeos_laptop.c 	struct chromeos_laptop *cros_laptop;
cros_laptop       862 drivers/platform/chrome/chromeos_laptop.c 	cros_laptop = kzalloc(sizeof(*cros_laptop), GFP_KERNEL);
cros_laptop       863 drivers/platform/chrome/chromeos_laptop.c 	if (!cros_laptop)
cros_laptop       866 drivers/platform/chrome/chromeos_laptop.c 	error = chromeos_laptop_prepare_i2c_peripherals(cros_laptop, src);
cros_laptop       868 drivers/platform/chrome/chromeos_laptop.c 		error = chromeos_laptop_prepare_acpi_peripherals(cros_laptop,
cros_laptop       872 drivers/platform/chrome/chromeos_laptop.c 		chromeos_laptop_destroy(cros_laptop);
cros_laptop       876 drivers/platform/chrome/chromeos_laptop.c 	return cros_laptop;
cros_laptop       892 drivers/platform/chrome/chromeos_laptop.c 	cros_laptop = chromeos_laptop_prepare((void *)dmi_id->driver_data);
cros_laptop       893 drivers/platform/chrome/chromeos_laptop.c 	if (IS_ERR(cros_laptop))
cros_laptop       894 drivers/platform/chrome/chromeos_laptop.c 		return PTR_ERR(cros_laptop);
cros_laptop       896 drivers/platform/chrome/chromeos_laptop.c 	if (!cros_laptop->num_i2c_peripherals &&
cros_laptop       897 drivers/platform/chrome/chromeos_laptop.c 	    !cros_laptop->num_acpi_peripherals) {
cros_laptop       921 drivers/platform/chrome/chromeos_laptop.c 	chromeos_laptop_destroy(cros_laptop);
cros_laptop       928 drivers/platform/chrome/chromeos_laptop.c 	chromeos_laptop_destroy(cros_laptop);