Lines Matching refs:als_state

25 struct als_state {  struct
77 struct als_state *als_state = iio_priv(indio_dev); in als_read_raw() local
90 report_id = als_state->als_illum.report_id; in als_read_raw()
91 min = als_state->als_illum.logical_minimum; in als_read_raw()
99 hid_sensor_power_state(&als_state->common_attributes, in als_read_raw()
102 als_state->common_attributes.hsdev, in als_read_raw()
107 hid_sensor_power_state(&als_state->common_attributes, in als_read_raw()
116 *val = als_state->scale_pre_decml; in als_read_raw()
117 *val2 = als_state->scale_post_decml; in als_read_raw()
118 ret_type = als_state->scale_precision; in als_read_raw()
121 *val = als_state->value_offset; in als_read_raw()
126 &als_state->common_attributes, val, val2); in als_read_raw()
130 &als_state->common_attributes, val, val2); in als_read_raw()
147 struct als_state *als_state = iio_priv(indio_dev); in als_write_raw() local
153 &als_state->common_attributes, val, val2); in als_write_raw()
157 &als_state->common_attributes, val, val2); in als_write_raw()
185 struct als_state *als_state = iio_priv(indio_dev); in als_proc_event() local
188 if (atomic_read(&als_state->common_attributes.data_ready)) in als_proc_event()
190 &als_state->illum, in als_proc_event()
191 sizeof(als_state->illum)); in als_proc_event()
203 struct als_state *als_state = iio_priv(indio_dev); in als_capture_sample() local
209 als_state->illum[CHANNEL_SCAN_INDEX_INTENSITY] = sample_data; in als_capture_sample()
210 als_state->illum[CHANNEL_SCAN_INDEX_ILLUM] = sample_data; in als_capture_sample()
225 struct als_state *st) in als_parse_report()
268 struct als_state *als_state; in hid_als_probe() local
271 indio_dev = devm_iio_device_alloc(&pdev->dev, sizeof(struct als_state)); in hid_als_probe()
276 als_state = iio_priv(indio_dev); in hid_als_probe()
277 als_state->common_attributes.hsdev = hsdev; in hid_als_probe()
278 als_state->common_attributes.pdev = pdev; in hid_als_probe()
281 &als_state->common_attributes); in hid_als_probe()
296 HID_USAGE_SENSOR_ALS, als_state); in hid_als_probe()
308 atomic_set(&als_state->common_attributes.data_ready, 0); in hid_als_probe()
311 &als_state->common_attributes); in hid_als_probe()
323 als_state->callbacks.send_event = als_proc_event; in hid_als_probe()
324 als_state->callbacks.capture_sample = als_capture_sample; in hid_als_probe()
325 als_state->callbacks.pdev = pdev; in hid_als_probe()
327 &als_state->callbacks); in hid_als_probe()
338 hid_sensor_remove_trigger(indio_dev, &als_state->common_attributes); in hid_als_probe()
349 struct als_state *als_state = iio_priv(indio_dev); in hid_als_remove() local
353 hid_sensor_remove_trigger(indio_dev, &als_state->common_attributes); in hid_als_remove()