Lines Matching refs:wanted

1557 int MPLSensor::setPedQuaternionRate(int64_t wanted)  in setPedQuaternionRate()  argument
1563 int(1000000000.f / wanted), mpu.ped_q_rate, in setPedQuaternionRate()
1565 res = write_sysfs_int(mpu.ped_q_rate, 1000000000.f / wanted); in setPedQuaternionRate()
1567 "HAL:DMP ped quaternion rate %.2f Hz", 1000000000.f / wanted); in setPedQuaternionRate()
1701 int MPLSensor::set6AxisQuaternionRate(int64_t wanted) in set6AxisQuaternionRate() argument
1707 int(1000000000.f / wanted), mpu.six_axis_q_rate, in set6AxisQuaternionRate()
1709 res = write_sysfs_int(mpu.six_axis_q_rate, 1000000000.f / wanted); in set6AxisQuaternionRate()
1711 "HAL:DMP six axis rate %.2f Hz", 1000000000.f / wanted); in set6AxisQuaternionRate()
1779 int MPLSensor::setQuaternionRate(int64_t wanted) in setQuaternionRate() argument
1785 int(1000000000.f / wanted), mpu.three_axis_q_rate, in setQuaternionRate()
1787 res = write_sysfs_int(mpu.three_axis_q_rate, 1000000000.f / wanted); in setQuaternionRate()
1789 "HAL:DMP three axis rate %.2f Hz", 1000000000.f / wanted); in setQuaternionRate()
2420 int64_t wanted = 1000000000LL; local
3551 int64_t wanted = 1000000000LL; local
3573 int tempRate = wanted;
3579 wanted = wanted < ns ? wanted : ns;
3584 gyroRate = wanted;
3585 accelRate = wanted;
3586 compassRate = wanted;
3588 pressureRate = wanted;
3591 wanted_3rd_party_sensor = wanted;
3605 int64_t tempWanted = wanted;
3616 rateInus = (int)wanted / 1000LL;
3633 rateInus, 1000000000.f / wanted);
3648 gyroRate = wanted;
3649 accelRate = wanted;
3650 compassRate = wanted;
3652 wanted_3rd_party_sensor = wanted;
3653 rateInus = (int)wanted / 1000LL;
3656 if (wanted <= RATE_200HZ) {
3664 rateInus, 1000000000.f / wanted);
3729 wanted = (mDelays[Gyro] <= mDelays[RawGyro]?
3733 inv_set_gyro_sample_rate((int)wanted/1000LL);
3735 "HAL:MPL gyro sample rate: (mpl)=%d us", int(wanted/1000LL));
3737 1000000000.f / wanted, mpu.gyro_rate, getTimestamp());
3739 res = write_attribute_sensor(tempFd, 1000000000.f / wanted);
3745 wanted = mDelays[Gyro];
3748 wanted = mDelays[RawGyro];
3750 wanted = mDelays[Accelerometer];
3753 inv_set_accel_sample_rate((int)wanted/1000LL);
3755 int(wanted/1000LL));
3757 1000000000.f / wanted, mpu.accel_rate,
3762 res = write_attribute_sensor(tempFd, wanted / 1000000L);
3766 res = write_attribute_sensor(tempFd, 1000000000.f/wanted);
3777 wanted = compassWanted;
3781 wanted = mDelays[Gyro];
3784 wanted = mDelays[RawGyro];
3787 wanted = mDelays[Accelerometer];
3789 wanted = compassWanted;
3794 mCompassSensor->setDelay(ID_M, wanted);
4889 int MPLSensor::getDmpRate(int64_t *wanted) argument
4895 setQuaternionRate(*wanted);
4897 set6AxisQuaternionRate(*wanted);
4898 setPedQuaternionRate(*wanted);
4901 *wanted= RATE_200HZ;
4903 "HAL:DMP rate= %.2f Hz", 1000000000.f / *wanted);
5980 int64_t wanted = 1000000000LL, ns = 0; local
5988 wanted = (ns < wanted) ? ns : wanted;
6144 wanted = mBatchDelays[GameRotationVector];
6145 setPedQuaternionRate(wanted);
6174 wanted = mBatchDelays[GameRotationVector];
6175 set6AxisQuaternionRate(wanted);
6293 int64_t wanted; local
6306 wanted = mBatchDelays[GameRotationVector];
6307 setPedQuaternionRate(wanted);
6316 wanted = mBatchDelays[GameRotationVector];
6317 set6AxisQuaternionRate(wanted);
6789 int64_t wanted = 1000000000LL; local
6793 wanted = wanted < ns ? wanted : ns;
6796 gyroRate = wanted;
6797 accelRate = wanted;
6798 compassRate = wanted;
6800 pressureRate = wanted;
6891 int64_t wanted = 1000000000LL; local
6903 if ((wanted == ns) && (i != Pressure)) {
6909 wanted = wanted < ns ? wanted : ns;
6913 *resetRate = wanted;
6914 *gyroRate = wanted;
6915 *accelRate = wanted;
6916 *compassRate = wanted;
6917 *pressureRate = wanted;
6928 int64_t wanted; local
6930 wanted = resetRate;
6955 getDmpRate (&wanted);
6958 1000000000.f / wanted, mpu.gyro_fifo_rate,
6961 res = write_attribute_sensor(tempFd, 1000000000.f / wanted);