Lines Matching full:timestamp
22 * @timestamp: the interrupt timestamp
26 * to choose the data timestamp to come.
29 s64 timestamp, size_t nb) in inv_mpu6050_update_period() argument
31 /* Period boundaries for accepting timestamp */ in inv_mpu6050_update_period()
45 * Validate the use of it timestamp by checking if interrupt in inv_mpu6050_update_period()
51 delta = div_s64(timestamp - st->it_timestamp, divider); in inv_mpu6050_update_period()
53 /* update chip period and use it timestamp */ in inv_mpu6050_update_period()
62 * compute timestamp corresponding to the first sample using in inv_mpu6050_update_period()
66 st->data_timestamp = timestamp - interval; in inv_mpu6050_update_period()
69 /* save it timestamp */ in inv_mpu6050_update_period()
70 st->it_timestamp = timestamp; in inv_mpu6050_update_period()
74 * inv_mpu6050_get_timestamp() - Return the current data timestamp
77 * @return: current data timestamp
79 * This function returns the current data timestamp and prepares for next one.
85 /* return current data timestamp and increment */ in inv_mpu6050_get_timestamp()
124 s64 timestamp; in inv_mpu6050_read_fifo() local
180 inv_mpu6050_update_period(st, pf->timestamp, nb); in inv_mpu6050_read_fifo()
191 timestamp = inv_mpu6050_get_timestamp(st); in inv_mpu6050_read_fifo()
192 iio_push_to_buffers_with_timestamp(indio_dev, st->data, timestamp); in inv_mpu6050_read_fifo()