Lines Matching refs:hub_settings
175 const struct st_lsm6dsx_shub_settings *hub_settings; in st_lsm6dsx_shub_read_output() local
180 hub_settings = &hw->settings->shub_settings; in st_lsm6dsx_shub_read_output()
181 if (hub_settings->shub_out.sec_page) { in st_lsm6dsx_shub_read_output()
187 err = regmap_bulk_read(hw->regmap, hub_settings->shub_out.addr, in st_lsm6dsx_shub_read_output()
190 if (hub_settings->shub_out.sec_page) in st_lsm6dsx_shub_read_output()
245 const struct st_lsm6dsx_shub_settings *hub_settings; in st_lsm6dsx_shub_master_enable() local
257 hub_settings = &hw->settings->shub_settings; in st_lsm6dsx_shub_master_enable()
258 if (hub_settings->master_en.sec_page) { in st_lsm6dsx_shub_master_enable()
264 data = ST_LSM6DSX_SHIFT_VAL(enable, hub_settings->master_en.mask); in st_lsm6dsx_shub_master_enable()
265 err = regmap_update_bits(hw->regmap, hub_settings->master_en.addr, in st_lsm6dsx_shub_master_enable()
266 hub_settings->master_en.mask, data); in st_lsm6dsx_shub_master_enable()
268 if (hub_settings->master_en.sec_page) in st_lsm6dsx_shub_master_enable()
286 const struct st_lsm6dsx_shub_settings *hub_settings; in st_lsm6dsx_shub_read() local
292 hub_settings = &hw->settings->shub_settings; in st_lsm6dsx_shub_read()
293 slv_addr = ST_LSM6DSX_SLV_ADDR(0, hub_settings->slv0_addr); in st_lsm6dsx_shub_read()
321 config[0] = hub_settings->pause; in st_lsm6dsx_shub_read()
338 const struct st_lsm6dsx_shub_settings *hub_settings; in st_lsm6dsx_shub_write() local
343 hub_settings = &hw->settings->shub_settings; in st_lsm6dsx_shub_write()
344 if (hub_settings->wr_once.addr) { in st_lsm6dsx_shub_write()
347 data = ST_LSM6DSX_SHIFT_VAL(1, hub_settings->wr_once.mask); in st_lsm6dsx_shub_write()
349 hub_settings->wr_once.addr, in st_lsm6dsx_shub_write()
350 hub_settings->wr_once.mask, in st_lsm6dsx_shub_write()
356 slv_addr = ST_LSM6DSX_SLV_ADDR(0, hub_settings->slv0_addr); in st_lsm6dsx_shub_write()
366 err = st_lsm6dsx_shub_write_reg(hw, hub_settings->dw_slv0_addr, in st_lsm6dsx_shub_write()
380 config[0] = hub_settings->pause; in st_lsm6dsx_shub_write()
444 const struct st_lsm6dsx_shub_settings *hub_settings; in st_lsm6dsx_shub_config_channels() local
451 hub_settings = &hw->settings->shub_settings; in st_lsm6dsx_shub_config_channels()
469 hub_settings->batch_en; in st_lsm6dsx_shub_config_channels()
473 slv_addr = ST_LSM6DSX_SLV_ADDR(1, hub_settings->slv0_addr); in st_lsm6dsx_shub_config_channels()
823 const struct st_lsm6dsx_shub_settings *hub_settings; in st_lsm6dsx_shub_check_wai() local
831 hub_settings = &hw->settings->shub_settings; in st_lsm6dsx_shub_check_wai()
833 slv_addr = ST_LSM6DSX_SLV_ADDR(0, hub_settings->slv0_addr); in st_lsm6dsx_shub_check_wai()
874 config[0] = hub_settings->pause; in st_lsm6dsx_shub_check_wai()