Lines Matching refs:sensor_info
29 const struct scmi_sensor_info *sensor_info; member
57 if (!sensor->sensor_info->timestamped) { in scmi_iio_sensor_update_cb()
71 tstamp_scale = sensor->sensor_info->tstamp_scale + in scmi_iio_sensor_update_cb()
93 if (sensor->sensor_info->timestamped) in scmi_iio_buffer_preenable()
100 sensor->sensor_info->id, in scmi_iio_buffer_preenable()
104 sensor->sensor_info->name, err); in scmi_iio_buffer_preenable()
118 sensor->sensor_info->id, in scmi_iio_buffer_postdisable()
123 sensor->sensor_info->name, err); in scmi_iio_buffer_postdisable()
142 sensor->sensor_info->id, in scmi_iio_set_odr_val()
147 sensor->sensor_info->name, err); in scmi_iio_set_odr_val()
170 sensor->sensor_info->name); in scmi_iio_set_odr_val()
179 if (sensor->sensor_info->timestamped) { in scmi_iio_set_odr_val()
190 sensor->sensor_info->id, in scmi_iio_set_odr_val()
195 sensor->sensor_info->name, sensor_config, err); in scmi_iio_set_odr_val()
229 *length = sensor->sensor_info->intervals.count * 2; in scmi_iio_read_avail()
230 if (sensor->sensor_info->intervals.segmented) in scmi_iio_read_avail()
258 sensor->sensor_info->id, in scmi_iio_get_odr_val()
263 sensor->sensor_info->name, err); in scmi_iio_get_odr_val()
297 sensor->ph, sensor->sensor_info->id, sensor_config); in scmi_iio_read_channel_data()
301 sensor->sensor_info->name, err); in scmi_iio_read_channel_data()
306 sensor->ph, sensor->sensor_info->id, in scmi_iio_read_channel_data()
307 sensor->sensor_info->num_axis, readings); in scmi_iio_read_channel_data()
311 sensor->sensor_info->name, err); in scmi_iio_read_channel_data()
318 sensor->ph, sensor->sensor_info->id, sensor_config); in scmi_iio_read_channel_data()
322 sensor->sensor_info->name, err); in scmi_iio_read_channel_data()
342 scale = sensor->sensor_info->axis[ch->scan_index].scale; in scmi_iio_read_raw()
387 if (sensor->sensor_info->axis[0].extended_attrs) { in scmi_iio_get_raw_available()
388 min_range = sensor->sensor_info->axis[0].attrs.min_range; in scmi_iio_get_raw_available()
389 max_range = sensor->sensor_info->axis[0].attrs.max_range; in scmi_iio_get_raw_available()
390 resolution = sensor->sensor_info->axis[0].resolution; in scmi_iio_get_raw_available()
391 exponent = sensor->sensor_info->axis[0].exponent; in scmi_iio_get_raw_available()
392 scale = sensor->sensor_info->axis[0].scale; in scmi_iio_get_raw_available()
527 (sensor->sensor_info->intervals.count * 2), in scmi_iio_set_sampling_freq_avail()
532 if (sensor->sensor_info->intervals.segmented) { in scmi_iio_set_sampling_freq_avail()
533 low_interval = sensor->sensor_info->intervals in scmi_iio_set_sampling_freq_avail()
540 step_size = sensor->sensor_info->intervals in scmi_iio_set_sampling_freq_avail()
547 high_interval = sensor->sensor_info->intervals in scmi_iio_set_sampling_freq_avail()
555 for (i = 0; i < sensor->sensor_info->intervals.count; i++) { in scmi_iio_set_sampling_freq_avail()
556 cur_interval = sensor->sensor_info->intervals.desc[i]; in scmi_iio_set_sampling_freq_avail()
571 const struct scmi_sensor_info *sensor_info) in scmi_alloc_iiodev() argument
590 sensor->sensor_info = sensor_info; in scmi_alloc_iiodev()
596 iiodev->num_channels = sensor_info->num_axis + 1; in scmi_alloc_iiodev()
597 iiodev->name = sensor_info->name; in scmi_alloc_iiodev()
611 for (i = 0; i < sensor_info->num_axis; i++) { in scmi_alloc_iiodev()
612 ret = scmi_iio_get_chan_type(sensor_info->axis[i].type, &type); in scmi_alloc_iiodev()
616 ret = scmi_iio_get_chan_modifier(sensor_info->axis[i].name, in scmi_alloc_iiodev()
622 sensor_info->axis[i].id); in scmi_alloc_iiodev()
627 &sensor->sensor_info->id, in scmi_alloc_iiodev()
632 sensor->sensor_info->name); in scmi_alloc_iiodev()
641 const struct scmi_sensor_info *sensor_info; in scmi_iio_dev_probe() local
665 sensor_info = sensor_ops->info_get(ph, i); in scmi_iio_dev_probe()
666 if (!sensor_info) { in scmi_iio_dev_probe()
672 if (sensor_info->num_axis != SCMI_IIO_NUM_OF_AXIS) in scmi_iio_dev_probe()
676 if (sensor_info->axis[0].type != METERS_SEC_SQUARED && in scmi_iio_dev_probe()
677 sensor_info->axis[0].type != RADIANS_SEC) in scmi_iio_dev_probe()
681 sensor_info); in scmi_iio_dev_probe()
685 sensor_info->name); in scmi_iio_dev_probe()
694 sensor_info->name); in scmi_iio_dev_probe()
701 sensor_info->name); in scmi_iio_dev_probe()