Lines Matching refs:als
98 static int acpi_als_read_value(struct acpi_als *als, char *prop, s32 *val) in acpi_als_read_value() argument
103 status = acpi_evaluate_integer(als->device->handle, prop, NULL, in acpi_als_read_value()
119 struct acpi_als *als = iio_priv(indio_dev); in acpi_als_notify() local
120 s32 *buffer = als->evt_buffer; in acpi_als_notify()
125 mutex_lock(&als->lock); in acpi_als_notify()
131 ret = acpi_als_read_value(als, ACPI_ALS_ILLUMINANCE, &val); in acpi_als_notify()
143 iio_push_to_buffers_with_timestamp(indio_dev, als->evt_buffer, time_ns); in acpi_als_notify()
146 mutex_unlock(&als->lock); in acpi_als_notify()
153 struct acpi_als *als = iio_priv(indio_dev); in acpi_als_read_raw() local
164 ret = acpi_als_read_value(als, ACPI_ALS_ILLUMINANCE, &temp_val); in acpi_als_read_raw()
179 struct acpi_als *als; in acpi_als_add() local
183 indio_dev = devm_iio_device_alloc(&device->dev, sizeof(*als)); in acpi_als_add()
187 als = iio_priv(indio_dev); in acpi_als_add()
190 als->device = device; in acpi_als_add()
191 mutex_init(&als->lock); in acpi_als_add()