Lines Matching refs:accel_st

76 	struct inv_icm42600_sensor_state *accel_st = iio_priv(indio_dev);  in inv_icm42600_accel_power_mode_set()  local
107 accel_st->power_mode = power_mode; in inv_icm42600_accel_power_mode_set()
108 accel_st->filter = filter; in inv_icm42600_accel_power_mode_set()
117 struct inv_icm42600_sensor_state *accel_st = iio_priv(indio_dev); in inv_icm42600_accel_power_mode_get() local
133 power_mode = accel_st->power_mode; in inv_icm42600_accel_power_mode_get()
202 struct inv_icm42600_sensor_state *accel_st = iio_priv(indio_dev); in inv_icm42600_accel_update_scan_mode() local
203 struct inv_sensors_timestamp *ts = &accel_st->ts; in inv_icm42600_accel_update_scan_mode()
223 conf.mode = accel_st->power_mode; in inv_icm42600_accel_update_scan_mode()
224 conf.filter = accel_st->filter; in inv_icm42600_accel_update_scan_mode()
249 struct inv_icm42600_sensor_state *accel_st = iio_priv(indio_dev); in inv_icm42600_accel_read_sensor() local
277 conf.mode = accel_st->power_mode; in inv_icm42600_accel_read_sensor()
278 conf.filter = accel_st->filter; in inv_icm42600_accel_read_sensor()
336 struct inv_icm42600_sensor_state *accel_st = iio_priv(indio_dev); in inv_icm42600_accel_read_scale() local
341 *val = accel_st->scales[2 * idx]; in inv_icm42600_accel_read_scale()
342 *val2 = accel_st->scales[2 * idx + 1]; in inv_icm42600_accel_read_scale()
350 struct inv_icm42600_sensor_state *accel_st = iio_priv(indio_dev); in inv_icm42600_accel_write_scale() local
356 for (idx = 0; idx < accel_st->scales_len; idx += 2) { in inv_icm42600_accel_write_scale()
357 if (val == accel_st->scales[idx] && in inv_icm42600_accel_write_scale()
358 val2 == accel_st->scales[idx + 1]) in inv_icm42600_accel_write_scale()
361 if (idx >= accel_st->scales_len) in inv_icm42600_accel_write_scale()
443 struct inv_icm42600_sensor_state *accel_st = iio_priv(indio_dev); in inv_icm42600_accel_write_odr() local
444 struct inv_sensors_timestamp *ts = &accel_st->ts; in inv_icm42600_accel_write_odr()
715 struct inv_icm42600_sensor_state *accel_st = iio_priv(indio_dev); in inv_icm42600_accel_read_avail() local
722 *vals = accel_st->scales; in inv_icm42600_accel_read_avail()
724 *length = accel_st->scales_len; in inv_icm42600_accel_read_avail()
842 struct inv_icm42600_sensor_state *accel_st; in inv_icm42600_accel_init() local
851 indio_dev = devm_iio_device_alloc(dev, sizeof(*accel_st)); in inv_icm42600_accel_init()
854 accel_st = iio_priv(indio_dev); in inv_icm42600_accel_init()
858 accel_st->scales = inv_icm42686_accel_scale; in inv_icm42600_accel_init()
859 accel_st->scales_len = ARRAY_SIZE(inv_icm42686_accel_scale); in inv_icm42600_accel_init()
862 accel_st->scales = inv_icm42600_accel_scale; in inv_icm42600_accel_init()
863 accel_st->scales_len = ARRAY_SIZE(inv_icm42600_accel_scale); in inv_icm42600_accel_init()
867 accel_st->power_mode = INV_ICM42600_SENSOR_MODE_LOW_POWER; in inv_icm42600_accel_init()
868 accel_st->filter = INV_ICM42600_FILTER_AVG_16X; in inv_icm42600_accel_init()
877 inv_sensors_timestamp_init(&accel_st->ts, &ts_chip); in inv_icm42600_accel_init()
902 struct inv_icm42600_sensor_state *accel_st = iio_priv(indio_dev); in inv_icm42600_accel_parse_fifo() local
903 struct inv_sensors_timestamp *ts = &accel_st->ts; in inv_icm42600_accel_parse_fifo()