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()
693 press_data->num_data_channels = press_data->sensor_settings->num_ch - 1; in st_press_common_probe()694 indio_dev->channels = press_data->sensor_settings->ch; in st_press_common_probe()695 indio_dev->num_channels = press_data->sensor_settings->num_ch; in st_press_common_probe()697 press_data->current_fullscale = &press_data->sensor_settings->fs.fs_avl[0]; in st_press_common_probe()699 press_data->odr = press_data->sensor_settings->odr.odr_avl[0].hz; in st_press_common_probe()702 if (!pdata && (press_data->sensor_settings->drdy_irq.int1.addr || in st_press_common_probe()703 press_data->sensor_settings->drdy_irq.int2.addr)) in st_press_common_probe()
79 press_data->sensor_settings = (struct st_sensor_settings *)settings; in st_press_spi_probe()
96 press_data->sensor_settings = (struct st_sensor_settings *)settings; in st_press_i2c_probe()
92 data->sensor_settings = (struct st_sensor_settings *)settings; in st_lsm9ds0_probe_accel()120 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()
87 gdata->sensor_settings = (struct st_sensor_settings *)settings; in st_gyro_spi_probe()
83 gdata->sensor_settings = (struct st_sensor_settings *)settings; in st_gyro_i2c_probe()
619 indio_dev->channels = mdata->sensor_settings->ch; in st_magn_common_probe()626 mdata->current_fullscale = &mdata->sensor_settings->fs.fs_avl[0]; in st_magn_common_probe()627 mdata->odr = mdata->sensor_settings->odr.odr_avl[0].hz; in st_magn_common_probe()
73 mdata->sensor_settings = (struct st_sensor_settings *)settings; in st_magn_spi_probe()
79 mdata->sensor_settings = (struct st_sensor_settings *)settings; in st_magn_i2c_probe()
124 adata->sensor_settings = (struct st_sensor_settings *)settings; in st_accel_spi_probe()
180 adata->sensor_settings = (struct st_sensor_settings *)settings; in st_accel_i2c_probe()
1426 indio_dev->channels = adata->sensor_settings->ch; in st_accel_common_probe()1440 adata->current_fullscale = &adata->sensor_settings->fs.fs_avl[0]; in st_accel_common_probe()1441 adata->odr = adata->sensor_settings->odr.odr_avl[0].hz; in st_accel_common_probe()
245 struct st_sensor_settings *sensor_settings; member