Searched refs:sensor_settings (Results 1 – 18 of 18) sorted by relevance
51 static int st_sensors_match_odr(struct st_sensor_settings *sensor_settings, in st_sensors_match_odr() argument57 if (sensor_settings->odr.odr_avl[i].hz == 0) in st_sensors_match_odr()60 if (sensor_settings->odr.odr_avl[i].hz == odr) { in st_sensors_match_odr()61 odr_out->hz = sensor_settings->odr.odr_avl[i].hz; in st_sensors_match_odr()62 odr_out->value = sensor_settings->odr.odr_avl[i].value; in st_sensors_match_odr()80 if (!sdata->sensor_settings->odr.mask) in st_sensors_set_odr()83 err = st_sensors_match_odr(sdata->sensor_settings, odr, &odr_out); in st_sensors_set_odr()87 if ((sdata->sensor_settings->odr.addr == in st_sensors_set_odr()88 sdata->sensor_settings->pw.addr) && in st_sensors_set_odr()89 (sdata->sensor_settings->odr.mask == in st_sensors_set_odr()[all …]
33 if (!sdata->sensor_settings->drdy_irq.stat_drdy.addr) in st_sensors_new_samples_available()41 sdata->sensor_settings->drdy_irq.stat_drdy.addr, in st_sensors_new_samples_available()49 return !!(status & sdata->sensor_settings->drdy_irq.stat_drdy.mask); in st_sensors_new_samples_available()145 if (!sdata->sensor_settings->drdy_irq.addr_ihl) { in st_sensors_allocate_trigger()155 sdata->sensor_settings->drdy_irq.addr_ihl, in st_sensors_allocate_trigger()156 sdata->sensor_settings->drdy_irq.mask_ihl, 1); in st_sensors_allocate_trigger()181 if (!sdata->sensor_settings->drdy_irq.stat_drdy.addr) { in st_sensors_allocate_trigger()206 sdata->sensor_settings->drdy_irq.stat_drdy.addr) in st_sensors_allocate_trigger()
91 sdata->sensor_settings); in st_sensors_spi_configure()96 if (sdata->sensor_settings->multi_read_bit) in st_sensors_spi_configure()
44 if (sdata->sensor_settings->multi_read_bit) in st_sensors_i2c_configure()
763 press_data->num_data_channels = press_data->sensor_settings->num_ch - 1; in st_press_common_probe()764 indio_dev->channels = press_data->sensor_settings->ch; in st_press_common_probe()765 indio_dev->num_channels = press_data->sensor_settings->num_ch; in st_press_common_probe()767 press_data->current_fullscale = &press_data->sensor_settings->fs.fs_avl[0]; in st_press_common_probe()769 press_data->odr = press_data->sensor_settings->odr.odr_avl[0].hz; in st_press_common_probe()772 if (!pdata && (press_data->sensor_settings->drdy_irq.int1.addr || in st_press_common_probe()773 press_data->sensor_settings->drdy_irq.int2.addr)) in st_press_common_probe()
83 press_data->sensor_settings = (struct st_sensor_settings *)settings; in st_press_spi_probe()
100 press_data->sensor_settings = (struct st_sensor_settings *)settings; in st_press_i2c_probe()
40 data->sensor_settings = (struct st_sensor_settings *)settings; in st_lsm9ds0_probe_accel()66 data->sensor_settings = (struct st_sensor_settings *)settings; in st_lsm9ds0_probe_magn()
485 indio_dev->channels = gdata->sensor_settings->ch; in st_gyro_common_probe()492 gdata->current_fullscale = &gdata->sensor_settings->fs.fs_avl[0]; in st_gyro_common_probe()493 gdata->odr = gdata->sensor_settings->odr.odr_avl[0].hz; in st_gyro_common_probe()
82 gdata->sensor_settings = (struct st_sensor_settings *)settings; in st_gyro_i2c_probe()
87 gdata->sensor_settings = (struct st_sensor_settings *)settings; in st_gyro_spi_probe()
621 indio_dev->channels = mdata->sensor_settings->ch; in st_magn_common_probe()628 mdata->current_fullscale = &mdata->sensor_settings->fs.fs_avl[0]; in st_magn_common_probe()629 mdata->odr = mdata->sensor_settings->odr.odr_avl[0].hz; in st_magn_common_probe()
77 mdata->sensor_settings = (struct st_sensor_settings *)settings; in st_magn_spi_probe()
82 mdata->sensor_settings = (struct st_sensor_settings *)settings; in st_magn_i2c_probe()
132 adata->sensor_settings = (struct st_sensor_settings *)settings; in st_accel_spi_probe()
190 adata->sensor_settings = (struct st_sensor_settings *)settings; in st_accel_i2c_probe()
1429 indio_dev->channels = adata->sensor_settings->ch; in st_accel_common_probe()1443 adata->current_fullscale = &adata->sensor_settings->fs.fs_avl[0]; in st_accel_common_probe()1444 adata->odr = adata->sensor_settings->odr.odr_avl[0].hz; in st_accel_common_probe()
244 struct st_sensor_settings *sensor_settings; member