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()
328 u64 period_mag_multi; in da7280_haptic_set_pwm() local339 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()