Lines Matching refs:sensor_info

28 	const struct scmi_sensor_info *sensor_info;  member
54 if (!sensor->sensor_info->timestamped) { in scmi_iio_sensor_update_cb()
68 tstamp_scale = sensor->sensor_info->tstamp_scale + in scmi_iio_sensor_update_cb()
90 if (sensor->sensor_info->timestamped) in scmi_iio_buffer_preenable()
97 sensor->sensor_info->id, in scmi_iio_buffer_preenable()
101 sensor->sensor_info->name, err); in scmi_iio_buffer_preenable()
115 sensor->sensor_info->id, in scmi_iio_buffer_postdisable()
120 sensor->sensor_info->name, err); in scmi_iio_buffer_postdisable()
139 sensor->sensor_info->id, in scmi_iio_set_odr_val()
144 sensor->sensor_info->name, err); in scmi_iio_set_odr_val()
167 sensor->sensor_info->name); in scmi_iio_set_odr_val()
176 if (sensor->sensor_info->timestamped) { in scmi_iio_set_odr_val()
187 sensor->sensor_info->id, in scmi_iio_set_odr_val()
192 sensor->sensor_info->name, sensor_config, err); in scmi_iio_set_odr_val()
225 *length = sensor->sensor_info->intervals.count * 2; in scmi_iio_read_avail()
226 if (sensor->sensor_info->intervals.segmented) in scmi_iio_read_avail()
254 sensor->sensor_info->id, in scmi_iio_get_odr_val()
259 sensor->sensor_info->name, err); in scmi_iio_get_odr_val()
293 sensor->ph, sensor->sensor_info->id, sensor_config); in scmi_iio_read_channel_data()
297 sensor->sensor_info->name, err); in scmi_iio_read_channel_data()
302 sensor->ph, sensor->sensor_info->id, in scmi_iio_read_channel_data()
303 sensor->sensor_info->num_axis, readings); in scmi_iio_read_channel_data()
307 sensor->sensor_info->name, err); in scmi_iio_read_channel_data()
314 sensor->ph, sensor->sensor_info->id, sensor_config); in scmi_iio_read_channel_data()
318 sensor->sensor_info->name, err); in scmi_iio_read_channel_data()
338 scale = sensor->sensor_info->axis[ch->scan_index].scale; in scmi_iio_read_raw()
383 if (sensor->sensor_info->axis[0].extended_attrs) { in scmi_iio_get_raw_available()
384 min_range = sensor->sensor_info->axis[0].attrs.min_range; in scmi_iio_get_raw_available()
385 max_range = sensor->sensor_info->axis[0].attrs.max_range; in scmi_iio_get_raw_available()
386 resolution = sensor->sensor_info->axis[0].resolution; in scmi_iio_get_raw_available()
387 exponent = sensor->sensor_info->axis[0].exponent; in scmi_iio_get_raw_available()
388 scale = sensor->sensor_info->axis[0].scale; in scmi_iio_get_raw_available()
523 (sensor->sensor_info->intervals.count * 2), in scmi_iio_set_sampling_freq_avail()
528 if (sensor->sensor_info->intervals.segmented) { in scmi_iio_set_sampling_freq_avail()
529 low_interval = sensor->sensor_info->intervals in scmi_iio_set_sampling_freq_avail()
536 step_size = sensor->sensor_info->intervals in scmi_iio_set_sampling_freq_avail()
543 high_interval = sensor->sensor_info->intervals in scmi_iio_set_sampling_freq_avail()
551 for (i = 0; i < sensor->sensor_info->intervals.count; i++) { in scmi_iio_set_sampling_freq_avail()
552 cur_interval = sensor->sensor_info->intervals.desc[i]; in scmi_iio_set_sampling_freq_avail()
567 const struct scmi_sensor_info *sensor_info) in scmi_alloc_iiodev() argument
586 sensor->sensor_info = sensor_info; in scmi_alloc_iiodev()
591 iiodev->num_channels = sensor_info->num_axis + 1; in scmi_alloc_iiodev()
592 iiodev->name = sensor_info->name; in scmi_alloc_iiodev()
606 for (i = 0; i < sensor_info->num_axis; i++) { in scmi_alloc_iiodev()
607 ret = scmi_iio_get_chan_type(sensor_info->axis[i].type, &type); in scmi_alloc_iiodev()
611 ret = scmi_iio_get_chan_modifier(sensor_info->axis[i].name, in scmi_alloc_iiodev()
617 sensor_info->axis[i].id); in scmi_alloc_iiodev()
622 &sensor->sensor_info->id, in scmi_alloc_iiodev()
627 sensor->sensor_info->name, ret); in scmi_alloc_iiodev()
638 const struct scmi_sensor_info *sensor_info; in scmi_iio_dev_probe() local
663 sensor_info = sensor_ops->info_get(ph, i); in scmi_iio_dev_probe()
664 if (!sensor_info) { in scmi_iio_dev_probe()
670 if (sensor_info->num_axis != SCMI_IIO_NUM_OF_AXIS) in scmi_iio_dev_probe()
674 if (sensor_info->axis[0].type != METERS_SEC_SQUARED && in scmi_iio_dev_probe()
675 sensor_info->axis[0].type != RADIANS_SEC) in scmi_iio_dev_probe()
679 sensor_info); in scmi_iio_dev_probe()
683 sensor_info->name, PTR_ERR(scmi_iio_dev)); in scmi_iio_dev_probe()
693 sensor_info->name, err); in scmi_iio_dev_probe()
701 sensor_info->name, err); in scmi_iio_dev_probe()