Home
last modified time | relevance | path

Searched refs:period_mag_multi (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/input/misc/
H A Dmax77693-haptic.c237 u64 period_mag_multi; in max77693_haptic_play_effect() local
249 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()
H A Dda7280.c327 u64 period_mag_multi; in da7280_haptic_set_pwm() local
338 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()