Lines Matching +full:iio +full:- +full:aux
1 /* SPDX-License-Identifier: GPL-2.0-only */
15 #include <linux/iio/iio.h>
27 #define ST_LSM6DS3TRC_DEV_NAME "lsm6ds3tr-c"
29 #define ST_LSM9DS1_DEV_NAME "lsm9ds1-imu"
165 * struct st_lsm6dsx_fifo_ops - ST IMU FIFO settings
189 * struct st_lsm6dsx_hw_ts_settings - ST IMU hw timer settings
205 * struct st_lsm6dsx_shub_settings - ST IMU hw i2c controller settings
208 * @pullup_en: i2c controller pull-up register info (addr + mask).
209 * @aux_sens: aux sensor register info (addr + mask).
260 * struct st_lsm6dsx_ext_dev_settings - i2c controller slave settings
296 * struct st_lsm6dsx_settings - ST IMU sensor settings
301 * @channels: IIO channels supported by the device.
303 * @drdy_mask: register info for data-ready mask (addr + mask).
363 * struct st_lsm6dsx_sensor - ST IMU sensor instance
398 * struct st_lsm6dsx_hw - ST IMU MEMS hw instance
492 mutex_lock(&hw->page_lock); in st_lsm6dsx_update_bits_locked()
493 err = regmap_update_bits(hw->regmap, addr, mask, val); in st_lsm6dsx_update_bits_locked()
494 mutex_unlock(&hw->page_lock); in st_lsm6dsx_update_bits_locked()
505 mutex_lock(&hw->page_lock); in st_lsm6dsx_read_locked()
506 err = regmap_bulk_read(hw->regmap, addr, val, len); in st_lsm6dsx_read_locked()
507 mutex_unlock(&hw->page_lock); in st_lsm6dsx_read_locked()
518 mutex_lock(&hw->page_lock); in st_lsm6dsx_write_locked()
519 err = regmap_write(hw->regmap, addr, val); in st_lsm6dsx_write_locked()
520 mutex_unlock(&hw->page_lock); in st_lsm6dsx_write_locked()
530 struct st_lsm6dsx_hw *hw = sensor->hw; in st_lsm6dsx_get_mount_matrix()
532 return &hw->orientation; in st_lsm6dsx_get_mount_matrix()
538 if (sensor->id == ST_LSM6DSX_ID_EXT0 || in st_lsm6dsx_device_set_enable()
539 sensor->id == ST_LSM6DSX_ID_EXT1 || in st_lsm6dsx_device_set_enable()
540 sensor->id == ST_LSM6DSX_ID_EXT2) in st_lsm6dsx_device_set_enable()