Lines Matching refs:settings

182 	hub_settings = &hw->settings->shub_settings;  in st_lsm6dsx_shub_read_output()
259 hub_settings = &hw->settings->shub_settings; in st_lsm6dsx_shub_master_enable()
294 hub_settings = &hw->settings->shub_settings; in st_lsm6dsx_shub_read()
296 aux_sens = &hw->settings->shub_settings.aux_sens; in st_lsm6dsx_shub_read()
345 hub_settings = &hw->settings->shub_settings; in st_lsm6dsx_shub_write()
407 const struct st_lsm6dsx_ext_dev_settings *settings; in st_lsm6dsx_shub_get_odr_val() local
410 settings = sensor->ext_info.settings; in st_lsm6dsx_shub_get_odr_val()
411 for (i = 0; i < settings->odr_table.odr_len; i++) { in st_lsm6dsx_shub_get_odr_val()
412 if (settings->odr_table.odr_avl[i].milli_hz == odr) in st_lsm6dsx_shub_get_odr_val()
416 if (i == settings->odr_table.odr_len) in st_lsm6dsx_shub_get_odr_val()
419 *val = settings->odr_table.odr_avl[i].val; in st_lsm6dsx_shub_get_odr_val()
426 const struct st_lsm6dsx_ext_dev_settings *settings; in st_lsm6dsx_shub_set_odr() local
434 settings = sensor->ext_info.settings; in st_lsm6dsx_shub_set_odr()
436 settings->odr_table.reg.addr, in st_lsm6dsx_shub_set_odr()
437 settings->odr_table.reg.mask, in st_lsm6dsx_shub_set_odr()
447 const struct st_lsm6dsx_ext_dev_settings *settings; in st_lsm6dsx_shub_config_channels() local
453 hub_settings = &hw->settings->shub_settings; in st_lsm6dsx_shub_config_channels()
467 settings = cur_sensor->ext_info.settings; in st_lsm6dsx_shub_config_channels()
469 config[j + 1] = settings->out.addr; in st_lsm6dsx_shub_config_channels()
470 config[j + 2] = (settings->out.len & ST_LS6DSX_READ_OP_MASK) | in st_lsm6dsx_shub_config_channels()
482 const struct st_lsm6dsx_ext_dev_settings *settings; in st_lsm6dsx_shub_set_enable() local
489 settings = sensor->ext_info.settings; in st_lsm6dsx_shub_set_enable()
497 settings->odr_table.reg.addr, in st_lsm6dsx_shub_set_enable()
498 settings->odr_table.reg.mask, 0); in st_lsm6dsx_shub_set_enable()
503 if (settings->pwr_table.reg.addr) { in st_lsm6dsx_shub_set_enable()
506 val = enable ? settings->pwr_table.on_val in st_lsm6dsx_shub_set_enable()
507 : settings->pwr_table.off_val; in st_lsm6dsx_shub_set_enable()
509 settings->pwr_table.reg.addr, in st_lsm6dsx_shub_set_enable()
510 settings->pwr_table.reg.mask, val); in st_lsm6dsx_shub_set_enable()
595 fs_table = &sensor->ext_info.settings->fs_table; in st_lsm6dsx_shub_set_full_scale()
674 const struct st_lsm6dsx_ext_dev_settings *settings; in st_lsm6dsx_shub_sampling_freq_avail() local
677 settings = sensor->ext_info.settings; in st_lsm6dsx_shub_sampling_freq_avail()
678 for (i = 0; i < settings->odr_table.odr_len; i++) { in st_lsm6dsx_shub_sampling_freq_avail()
679 u32 val = settings->odr_table.odr_avl[i].milli_hz; in st_lsm6dsx_shub_sampling_freq_avail()
694 const struct st_lsm6dsx_ext_dev_settings *settings; in st_lsm6dsx_shub_scale_avail() local
697 settings = sensor->ext_info.settings; in st_lsm6dsx_shub_scale_avail()
698 for (i = 0; i < settings->fs_table.fs_len; i++) in st_lsm6dsx_shub_scale_avail()
700 settings->fs_table.fs_avl[i].gain); in st_lsm6dsx_shub_scale_avail()
747 sensor->odr = hw->settings->odr_table[ref_id].odr_avl[0].milli_hz; in st_lsm6dsx_shub_alloc_iiodev()
750 sensor->ext_info.settings = info; in st_lsm6dsx_shub_alloc_iiodev()
790 const struct st_lsm6dsx_ext_dev_settings *settings; in st_lsm6dsx_shub_init_device() local
793 settings = sensor->ext_info.settings; in st_lsm6dsx_shub_init_device()
794 if (settings->bdu.addr) { in st_lsm6dsx_shub_init_device()
796 settings->bdu.addr, in st_lsm6dsx_shub_init_device()
797 settings->bdu.mask, 1); in st_lsm6dsx_shub_init_device()
802 if (settings->temp_comp.addr) { in st_lsm6dsx_shub_init_device()
804 settings->temp_comp.addr, in st_lsm6dsx_shub_init_device()
805 settings->temp_comp.mask, 1); in st_lsm6dsx_shub_init_device()
810 if (settings->off_canc.addr) { in st_lsm6dsx_shub_init_device()
812 settings->off_canc.addr, in st_lsm6dsx_shub_init_device()
813 settings->off_canc.mask, 1); in st_lsm6dsx_shub_init_device()
823 const struct st_lsm6dsx_ext_dev_settings *settings) in st_lsm6dsx_shub_check_wai() argument
833 hub_settings = &hw->settings->shub_settings; in st_lsm6dsx_shub_check_wai()
834 aux_sens = &hw->settings->shub_settings.aux_sens; in st_lsm6dsx_shub_check_wai()
840 for (i = 0; i < ARRAY_SIZE(settings->i2c_addr); i++) { in st_lsm6dsx_shub_check_wai()
841 if (!settings->i2c_addr[i]) in st_lsm6dsx_shub_check_wai()
845 config[0] = (settings->i2c_addr[i] << 1) | 0x1; in st_lsm6dsx_shub_check_wai()
846 config[1] = settings->wai.addr; in st_lsm6dsx_shub_check_wai()
867 if (data != settings->wai.val) in st_lsm6dsx_shub_check_wai()
870 *i2c_addr = settings->i2c_addr[i]; in st_lsm6dsx_shub_check_wai()
913 if (++num_ext_dev >= hw->settings->shub_settings.num_ext_dev) in st_lsm6dsx_shub_probe()