Lines Matching refs:sip
146 u8 sip = sensor->odr / min_odr; in st_lsm6dsx_get_sip() local
148 return sip > 1 ? round_down(sip, 2) : sip; in st_lsm6dsx_get_sip()
155 u16 sip = 0, ts_sip = 0; in st_lsm6dsx_update_decimators() local
171 sensor->sip = st_lsm6dsx_get_sip(sensor, min_odr); in st_lsm6dsx_update_decimators()
174 sensor->sip = 0; in st_lsm6dsx_update_decimators()
177 ts_sip = max_t(u16, ts_sip, sensor->sip); in st_lsm6dsx_update_decimators()
189 sip += sensor->sip; in st_lsm6dsx_update_decimators()
191 hw->sip = sip + ts_sip; in st_lsm6dsx_update_decimators()
262 if (!hw->sip) in st_lsm6dsx_update_watermark()
280 fifo_watermark = max_t(u16, fifo_watermark, hw->sip); in st_lsm6dsx_update_watermark()
281 fifo_watermark = (fifo_watermark / hw->sip) * hw->sip; in st_lsm6dsx_update_watermark()
376 int err, sip, acc_sip, gyro_sip, ts_sip, ext_sip, read_len, offset; in st_lsm6dsx_read_fifo() local
377 u16 fifo_len, pattern_len = hw->sip * ST_LSM6DSX_SAMPLE_SIZE; in st_lsm6dsx_read_fifo()
430 ext_sip = ext_sensor ? ext_sensor->sip : 0; in st_lsm6dsx_read_fifo()
431 gyro_sip = gyro_sensor->sip; in st_lsm6dsx_read_fifo()
432 acc_sip = acc_sensor->sip; in st_lsm6dsx_read_fifo()
435 sip = 0; in st_lsm6dsx_read_fifo()
438 if (gyro_sip > 0 && !(sip % gyro_sensor->decimator)) { in st_lsm6dsx_read_fifo()
444 if (acc_sip > 0 && !(sip % acc_sensor->decimator)) { in st_lsm6dsx_read_fifo()
450 if (ext_sip > 0 && !(sip % ext_sensor->decimator)) { in st_lsm6dsx_read_fifo()
481 if (gyro_sip > 0 && !(sip % gyro_sensor->decimator)) { in st_lsm6dsx_read_fifo()
495 if (acc_sip > 0 && !(sip % acc_sensor->decimator)) { in st_lsm6dsx_read_fifo()
509 if (ext_sip > 0 && !(sip % ext_sensor->decimator)) { in st_lsm6dsx_read_fifo()
516 sip++; in st_lsm6dsx_read_fifo()
596 u16 pattern_len = hw->sip * ST_LSM6DSX_TAGGED_SAMPLE_SIZE; in st_lsm6dsx_read_tagged_fifo()