Lines Matching full:settings
180 hub_settings = &hw->settings->shub_settings; in st_lsm6dsx_shub_read_output()
257 hub_settings = &hw->settings->shub_settings; in st_lsm6dsx_shub_master_enable()
292 hub_settings = &hw->settings->shub_settings; in st_lsm6dsx_shub_read()
294 aux_sens = &hw->settings->shub_settings.aux_sens; in st_lsm6dsx_shub_read()
343 hub_settings = &hw->settings->shub_settings; in st_lsm6dsx_shub_write()
405 const struct st_lsm6dsx_ext_dev_settings *settings; in st_lsm6dsx_shub_get_odr_val() local
408 settings = sensor->ext_info.settings; in st_lsm6dsx_shub_get_odr_val()
409 for (i = 0; i < settings->odr_table.odr_len; i++) { in st_lsm6dsx_shub_get_odr_val()
410 if (settings->odr_table.odr_avl[i].milli_hz == odr) in st_lsm6dsx_shub_get_odr_val()
414 if (i == settings->odr_table.odr_len) in st_lsm6dsx_shub_get_odr_val()
417 *val = settings->odr_table.odr_avl[i].val; in st_lsm6dsx_shub_get_odr_val()
424 const struct st_lsm6dsx_ext_dev_settings *settings; in st_lsm6dsx_shub_set_odr() local
432 settings = sensor->ext_info.settings; in st_lsm6dsx_shub_set_odr()
434 settings->odr_table.reg.addr, in st_lsm6dsx_shub_set_odr()
435 settings->odr_table.reg.mask, in st_lsm6dsx_shub_set_odr()
445 const struct st_lsm6dsx_ext_dev_settings *settings; in st_lsm6dsx_shub_config_channels() local
451 hub_settings = &hw->settings->shub_settings; in st_lsm6dsx_shub_config_channels()
465 settings = cur_sensor->ext_info.settings; in st_lsm6dsx_shub_config_channels()
467 config[j + 1] = settings->out.addr; in st_lsm6dsx_shub_config_channels()
468 config[j + 2] = (settings->out.len & ST_LS6DSX_READ_OP_MASK) | in st_lsm6dsx_shub_config_channels()
480 const struct st_lsm6dsx_ext_dev_settings *settings; in st_lsm6dsx_shub_set_enable() local
487 settings = sensor->ext_info.settings; in st_lsm6dsx_shub_set_enable()
495 settings->odr_table.reg.addr, in st_lsm6dsx_shub_set_enable()
496 settings->odr_table.reg.mask, 0); in st_lsm6dsx_shub_set_enable()
501 if (settings->pwr_table.reg.addr) { in st_lsm6dsx_shub_set_enable()
504 val = enable ? settings->pwr_table.on_val in st_lsm6dsx_shub_set_enable()
505 : settings->pwr_table.off_val; in st_lsm6dsx_shub_set_enable()
507 settings->pwr_table.reg.addr, in st_lsm6dsx_shub_set_enable()
508 settings->pwr_table.reg.mask, val); in st_lsm6dsx_shub_set_enable()
593 fs_table = &sensor->ext_info.settings->fs_table; in st_lsm6dsx_shub_set_full_scale()
672 const struct st_lsm6dsx_ext_dev_settings *settings; in st_lsm6dsx_shub_sampling_freq_avail() local
675 settings = sensor->ext_info.settings; in st_lsm6dsx_shub_sampling_freq_avail()
676 for (i = 0; i < settings->odr_table.odr_len; i++) { in st_lsm6dsx_shub_sampling_freq_avail()
677 u32 val = settings->odr_table.odr_avl[i].milli_hz; in st_lsm6dsx_shub_sampling_freq_avail()
692 const struct st_lsm6dsx_ext_dev_settings *settings; in st_lsm6dsx_shub_scale_avail() local
695 settings = sensor->ext_info.settings; in st_lsm6dsx_shub_scale_avail()
696 for (i = 0; i < settings->fs_table.fs_len; i++) in st_lsm6dsx_shub_scale_avail()
698 settings->fs_table.fs_avl[i].gain); in st_lsm6dsx_shub_scale_avail()
745 sensor->odr = hw->settings->odr_table[ref_id].odr_avl[0].milli_hz; in st_lsm6dsx_shub_alloc_iiodev()
748 sensor->ext_info.settings = info; in st_lsm6dsx_shub_alloc_iiodev()
788 const struct st_lsm6dsx_ext_dev_settings *settings; in st_lsm6dsx_shub_init_device() local
791 settings = sensor->ext_info.settings; in st_lsm6dsx_shub_init_device()
792 if (settings->bdu.addr) { in st_lsm6dsx_shub_init_device()
794 settings->bdu.addr, in st_lsm6dsx_shub_init_device()
795 settings->bdu.mask, 1); in st_lsm6dsx_shub_init_device()
800 if (settings->temp_comp.addr) { in st_lsm6dsx_shub_init_device()
802 settings->temp_comp.addr, in st_lsm6dsx_shub_init_device()
803 settings->temp_comp.mask, 1); in st_lsm6dsx_shub_init_device()
808 if (settings->off_canc.addr) { in st_lsm6dsx_shub_init_device()
810 settings->off_canc.addr, in st_lsm6dsx_shub_init_device()
811 settings->off_canc.mask, 1); in st_lsm6dsx_shub_init_device()
821 const struct st_lsm6dsx_ext_dev_settings *settings) in st_lsm6dsx_shub_check_wai() argument
831 hub_settings = &hw->settings->shub_settings; in st_lsm6dsx_shub_check_wai()
832 aux_sens = &hw->settings->shub_settings.aux_sens; in st_lsm6dsx_shub_check_wai()
838 for (i = 0; i < ARRAY_SIZE(settings->i2c_addr); i++) { in st_lsm6dsx_shub_check_wai()
839 if (!settings->i2c_addr[i]) in st_lsm6dsx_shub_check_wai()
843 config[0] = (settings->i2c_addr[i] << 1) | 0x1; in st_lsm6dsx_shub_check_wai()
844 config[1] = settings->wai.addr; in st_lsm6dsx_shub_check_wai()
865 if (data != settings->wai.val) in st_lsm6dsx_shub_check_wai()
868 *i2c_addr = settings->i2c_addr[i]; in st_lsm6dsx_shub_check_wai()
911 if (++num_ext_dev >= hw->settings->shub_settings.num_ext_dev) in st_lsm6dsx_shub_probe()