Home
last modified time | relevance | path

Searched refs:iio_devs (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/drivers/iio/imu/st_lsm6dsx/
Dst_lsm6dsx_buffer.c108 if (!hw->iio_devs[i]) in st_lsm6dsx_get_max_min_odr()
111 sensor = iio_priv(hw->iio_devs[i]); in st_lsm6dsx_get_max_min_odr()
134 if (!hw->iio_devs[i]) in st_lsm6dsx_update_decimators()
137 sensor = iio_priv(hw->iio_devs[i]); in st_lsm6dsx_update_decimators()
244 if (!hw->iio_devs[i]) in st_lsm6dsx_update_watermark()
247 cur_sensor = iio_priv(hw->iio_devs[i]); in st_lsm6dsx_update_watermark()
293 if (!hw->iio_devs[i]) in st_lsm6dsx_reset_hw_ts()
296 sensor = iio_priv(hw->iio_devs[i]); in st_lsm6dsx_reset_hw_ts()
301 sensor->ts_ref = iio_get_time_ns(hw->iio_devs[i]); in st_lsm6dsx_reset_hw_ts()
367 acc_sensor = iio_priv(hw->iio_devs[ST_LSM6DSX_ID_ACC]); in st_lsm6dsx_read_fifo()
[all …]
Dst_lsm6dsx_shub.c98 sensor = iio_priv(hw->iio_devs[ST_LSM6DSX_ID_ACC]); in st_lsm6dsx_shub_wait_complete()
374 if (!hw->iio_devs[i]) in st_lsm6dsx_shub_config_channels()
377 cur_sensor = iio_priv(hw->iio_devs[i]); in st_lsm6dsx_shub_config_channels()
695 sensor = iio_priv(hw->iio_devs[ST_LSM6DSX_ID_ACC]); in st_lsm6dsx_shub_check_wai()
759 hw->iio_devs[id] = st_lsm6dsx_shub_alloc_iiodev(hw, id, in st_lsm6dsx_shub_probe()
762 if (!hw->iio_devs[id]) in st_lsm6dsx_shub_probe()
765 sensor = iio_priv(hw->iio_devs[id]); in st_lsm6dsx_shub_probe()
Dst_lsm6dsx_core.c995 struct st_lsm6dsx_sensor *ref = iio_priv(hw->iio_devs[id]); in st_lsm6dsx_check_odr_dependency()
1030 ref_sensor = iio_priv(hw->iio_devs[ST_LSM6DSX_ID_ACC]); in st_lsm6dsx_set_odr()
1032 if (!hw->iio_devs[i] || i == sensor->id) in st_lsm6dsx_set_odr()
1510 hw->iio_devs[i] = st_lsm6dsx_alloc_iiodev(hw, i, name); in st_lsm6dsx_probe()
1511 if (!hw->iio_devs[i]) in st_lsm6dsx_probe()
1533 if (!hw->iio_devs[i]) in st_lsm6dsx_probe()
1536 err = devm_iio_device_register(hw->dev, hw->iio_devs[i]); in st_lsm6dsx_probe()
1552 if (!hw->iio_devs[i]) in st_lsm6dsx_suspend()
1555 sensor = iio_priv(hw->iio_devs[i]); in st_lsm6dsx_suspend()
1584 if (!hw->iio_devs[i]) in st_lsm6dsx_resume()
[all …]
Dst_lsm6dsx.h327 struct iio_dev *iio_devs[ST_LSM6DSX_ID_MAX]; member