Lines Matching refs:envelope
233 struct ff_envelope *envelope) in pidff_set_envelope_report() argument
239 pidff_rescale(envelope->attack_level > in pidff_set_envelope_report()
240 0x7fff ? 0x7fff : envelope->attack_level, 0x7fff, in pidff_set_envelope_report()
243 pidff_rescale(envelope->fade_level > in pidff_set_envelope_report()
244 0x7fff ? 0x7fff : envelope->fade_level, 0x7fff, in pidff_set_envelope_report()
247 pidff->set_envelope[PID_ATTACK_TIME].value[0] = envelope->attack_length; in pidff_set_envelope_report()
248 pidff->set_envelope[PID_FADE_TIME].value[0] = envelope->fade_length; in pidff_set_envelope_report()
251 envelope->attack_level, in pidff_set_envelope_report()
261 static int pidff_needs_set_envelope(struct ff_envelope *envelope, in pidff_needs_set_envelope() argument
264 return envelope->attack_level != old->attack_level || in pidff_needs_set_envelope()
265 envelope->fade_level != old->fade_level || in pidff_needs_set_envelope()
266 envelope->attack_length != old->attack_length || in pidff_needs_set_envelope()
267 envelope->fade_length != old->fade_length; in pidff_needs_set_envelope()
578 pidff_needs_set_envelope(&effect->u.constant.envelope, in pidff_upload_effect()
579 &old->u.constant.envelope)) in pidff_upload_effect()
581 &effect->u.constant.envelope); in pidff_upload_effect()
617 pidff_needs_set_envelope(&effect->u.periodic.envelope, in pidff_upload_effect()
618 &old->u.periodic.envelope)) in pidff_upload_effect()
620 &effect->u.periodic.envelope); in pidff_upload_effect()
635 pidff_needs_set_envelope(&effect->u.ramp.envelope, in pidff_upload_effect()
636 &old->u.ramp.envelope)) in pidff_upload_effect()
638 &effect->u.ramp.envelope); in pidff_upload_effect()