Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/input/misc/
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()
Dda7280.c328 u64 period_mag_multi; in da7280_haptic_set_pwm() local
339 period_mag_multi = (u64)state.period * haptics->gain; in da7280_haptic_set_pwm()
340 period_mag_multi >>= DA7280_MAX_MAGNITUDE_SHIFT; in da7280_haptic_set_pwm()
348 period_mag_multi += state.period; in da7280_haptic_set_pwm()
349 period_mag_multi /= 2; in da7280_haptic_set_pwm()
352 state.duty_cycle = period_mag_multi; in da7280_haptic_set_pwm()