Searched refs:ST_LSM6DSX_SHIFT_VAL (Results 1 – 4 of 4) sorted by relevance
/linux-6.12.1/drivers/iio/imu/st_lsm6dsx/ |
D | st_lsm6dsx_core.c | 1561 data = ST_LSM6DSX_SHIFT_VAL(enable, hub_settings->page_mux.mask); in st_lsm6dsx_set_page() 1622 data = ST_LSM6DSX_SHIFT_VAL(fs_table->fs_avl[i].val, in st_lsm6dsx_set_full_scale() 1721 data = ST_LSM6DSX_SHIFT_VAL(val, reg->mask); in st_lsm6dsx_set_odr() 1879 data = ST_LSM6DSX_SHIFT_VAL(state, reg->mask); in st_lsm6dsx_event_setup() 1887 data = ST_LSM6DSX_SHIFT_VAL(state, hw->irq_routing->mask); in st_lsm6dsx_event_setup() 1932 data = ST_LSM6DSX_SHIFT_VAL(val, reg->mask); in st_lsm6dsx_write_event() 2181 data = ST_LSM6DSX_SHIFT_VAL(1, hub_settings->pullup_en.mask); in st_lsm6dsx_init_shub() 2199 data = ST_LSM6DSX_SHIFT_VAL(3, hub_settings->aux_sens.mask); in st_lsm6dsx_init_shub() 2211 data = ST_LSM6DSX_SHIFT_VAL(1, hub_settings->emb_func.mask); in st_lsm6dsx_init_shub() 2228 val = ST_LSM6DSX_SHIFT_VAL(1, ts_settings->timer_en.mask); in st_lsm6dsx_init_hw_timer() [all …]
|
D | st_lsm6dsx_shub.c | 264 data = ST_LSM6DSX_SHIFT_VAL(enable, hub_settings->master_en.mask); in st_lsm6dsx_shub_master_enable() 297 slv_config = ST_LSM6DSX_SHIFT_VAL(3, aux_sens->mask); in st_lsm6dsx_shub_read() 347 data = ST_LSM6DSX_SHIFT_VAL(1, hub_settings->wr_once.mask); in st_lsm6dsx_shub_write() 836 slv_config = ST_LSM6DSX_SHIFT_VAL(3, aux_sens->mask); in st_lsm6dsx_shub_check_wai()
|
D | st_lsm6dsx_buffer.c | 181 int val = ST_LSM6DSX_SHIFT_VAL(data, dec_reg->mask); in st_lsm6dsx_update_decimators() 203 val = ST_LSM6DSX_SHIFT_VAL(ts_dec, ts_dec_reg->mask); in st_lsm6dsx_update_decimators() 241 val = ST_LSM6DSX_SHIFT_VAL(data, batch_reg->mask); in st_lsm6dsx_set_fifo_odr()
|
D | st_lsm6dsx.h | 81 #define ST_LSM6DSX_SHIFT_VAL(val, mask) (((val) << __ffs(mask)) & (mask)) macro
|