Searched refs:period_mag_multi (Results 1 – 2 of 2) sorted by relevance
237 u64 period_mag_multi; in max77693_haptic_play_effect() local249 period_mag_multi = (u64)pargs.period * haptic->magnitude; in max77693_haptic_play_effect()250 haptic->pwm_duty = (unsigned int)(period_mag_multi >> in max77693_haptic_play_effect()
327 u64 period_mag_multi; in da7280_haptic_set_pwm() local338 period_mag_multi = (u64)state.period * haptics->gain; in da7280_haptic_set_pwm()339 period_mag_multi >>= DA7280_MAX_MAGNITUDE_SHIFT; in da7280_haptic_set_pwm()347 period_mag_multi += state.period; in da7280_haptic_set_pwm()348 period_mag_multi /= 2; in da7280_haptic_set_pwm()351 state.duty_cycle = period_mag_multi; in da7280_haptic_set_pwm()