Searched refs:als_state (Results 1 - 1 of 1) sorted by relevance
/linux-4.4.14/drivers/iio/light/ |
H A D | hid-sensor-als.c | 36 struct als_state { struct 79 struct als_state *als_state = iio_priv(indio_dev); als_read_raw() local 90 report_id = als_state->als_illum.report_id; als_read_raw() 99 hid_sensor_power_state(&als_state->common_attributes, als_read_raw() 102 als_state->common_attributes.hsdev, als_read_raw() 106 hid_sensor_power_state(&als_state->common_attributes, als_read_raw() 115 *val = als_state->scale_pre_decml; als_read_raw() 116 *val2 = als_state->scale_post_decml; als_read_raw() 117 ret_type = als_state->scale_precision; als_read_raw() 120 *val = als_state->value_offset; als_read_raw() 125 &als_state->common_attributes, val, val2); als_read_raw() 129 &als_state->common_attributes, val, val2); als_read_raw() 146 struct als_state *als_state = iio_priv(indio_dev); als_write_raw() local 152 &als_state->common_attributes, val, val2); als_write_raw() 156 &als_state->common_attributes, val, val2); als_write_raw() 185 struct als_state *als_state = iio_priv(indio_dev); als_proc_event() local 188 if (atomic_read(&als_state->common_attributes.data_ready)) als_proc_event() 190 &als_state->illum, als_proc_event() 191 sizeof(als_state->illum)); als_proc_event() 203 struct als_state *als_state = iio_priv(indio_dev); als_capture_sample() local 208 als_state->illum = *(u32 *)raw_data; als_capture_sample() 223 struct als_state *st) als_parse_report() 264 struct als_state *als_state; hid_als_probe() local 267 indio_dev = devm_iio_device_alloc(&pdev->dev, sizeof(struct als_state)); hid_als_probe() 272 als_state = iio_priv(indio_dev); hid_als_probe() 273 als_state->common_attributes.hsdev = hsdev; hid_als_probe() 274 als_state->common_attributes.pdev = pdev; hid_als_probe() 277 &als_state->common_attributes); hid_als_probe() 292 HID_USAGE_SENSOR_ALS, als_state); hid_als_probe() 311 atomic_set(&als_state->common_attributes.data_ready, 0); hid_als_probe() 313 &als_state->common_attributes); hid_als_probe() 325 als_state->callbacks.send_event = als_proc_event; hid_als_probe() 326 als_state->callbacks.capture_sample = als_capture_sample; hid_als_probe() 327 als_state->callbacks.pdev = pdev; hid_als_probe() 329 &als_state->callbacks); hid_als_probe() 340 hid_sensor_remove_trigger(&als_state->common_attributes); hid_als_probe() 353 struct als_state *als_state = iio_priv(indio_dev); hid_als_remove() local 357 hid_sensor_remove_trigger(&als_state->common_attributes); hid_als_remove()
|
Completed in 85 milliseconds