Lines Matching refs:als_state

27 struct als_state {  struct
79 struct als_state *als_state = iio_priv(indio_dev); in als_read_raw() local
92 report_id = als_state->als_illum.report_id; in als_read_raw()
93 min = als_state->als_illum.logical_minimum; in als_read_raw()
101 hid_sensor_power_state(&als_state->common_attributes, in als_read_raw()
104 als_state->common_attributes.hsdev, in als_read_raw()
109 hid_sensor_power_state(&als_state->common_attributes, in als_read_raw()
118 *val = als_state->scale_pre_decml; in als_read_raw()
119 *val2 = als_state->scale_post_decml; in als_read_raw()
120 ret_type = als_state->scale_precision; in als_read_raw()
123 *val = als_state->value_offset; in als_read_raw()
128 &als_state->common_attributes, val, val2); in als_read_raw()
132 &als_state->common_attributes, val, val2); in als_read_raw()
149 struct als_state *als_state = iio_priv(indio_dev); in als_write_raw() local
155 &als_state->common_attributes, val, val2); in als_write_raw()
159 &als_state->common_attributes, val, val2); in als_write_raw()
187 struct als_state *als_state = iio_priv(indio_dev); in als_proc_event() local
190 if (atomic_read(&als_state->common_attributes.data_ready)) in als_proc_event()
192 &als_state->illum, in als_proc_event()
193 sizeof(als_state->illum)); in als_proc_event()
205 struct als_state *als_state = iio_priv(indio_dev); in als_capture_sample() local
211 als_state->illum[CHANNEL_SCAN_INDEX_INTENSITY] = sample_data; in als_capture_sample()
212 als_state->illum[CHANNEL_SCAN_INDEX_ILLUM] = sample_data; in als_capture_sample()
227 struct als_state *st) in als_parse_report()
270 struct als_state *als_state; in hid_als_probe() local
273 indio_dev = devm_iio_device_alloc(&pdev->dev, sizeof(struct als_state)); in hid_als_probe()
278 als_state = iio_priv(indio_dev); in hid_als_probe()
279 als_state->common_attributes.hsdev = hsdev; in hid_als_probe()
280 als_state->common_attributes.pdev = pdev; in hid_als_probe()
283 &als_state->common_attributes); in hid_als_probe()
298 HID_USAGE_SENSOR_ALS, als_state); in hid_als_probe()
317 atomic_set(&als_state->common_attributes.data_ready, 0); in hid_als_probe()
319 &als_state->common_attributes); in hid_als_probe()
331 als_state->callbacks.send_event = als_proc_event; in hid_als_probe()
332 als_state->callbacks.capture_sample = als_capture_sample; in hid_als_probe()
333 als_state->callbacks.pdev = pdev; in hid_als_probe()
335 &als_state->callbacks); in hid_als_probe()
346 hid_sensor_remove_trigger(&als_state->common_attributes); in hid_als_probe()
359 struct als_state *als_state = iio_priv(indio_dev); in hid_als_remove() local
363 hid_sensor_remove_trigger(&als_state->common_attributes); in hid_als_remove()