Lines Matching refs:envelope
64 return &effect->u.periodic.envelope; in get_envelope()
67 return &effect->u.constant.envelope; in get_envelope()
79 const struct ff_envelope *envelope = get_envelope(state->effect); in calculate_next_time() local
82 if (envelope->attack_length) { in calculate_next_time()
84 msecs_to_jiffies(envelope->attack_length); in calculate_next_time()
91 if (envelope->fade_length) { in calculate_next_time()
94 msecs_to_jiffies(envelope->fade_length); in calculate_next_time()
153 struct ff_envelope *envelope) in apply_envelope() argument
162 if (envelope->attack_length && in apply_envelope()
164 state->play_at + msecs_to_jiffies(envelope->attack_length))) { in apply_envelope()
166 value, envelope->attack_level); in apply_envelope()
168 time_of_envelope = envelope->attack_length; in apply_envelope()
169 envelope_level = min_t(u16, envelope->attack_level, 0x7fff); in apply_envelope()
171 } else if (envelope->fade_length && effect->replay.length && in apply_envelope()
173 state->stop_at - msecs_to_jiffies(envelope->fade_length)) && in apply_envelope()
176 time_of_envelope = envelope->fade_length; in apply_envelope()
177 envelope_level = min_t(u16, envelope->fade_level, 0x7fff); in apply_envelope()
257 &new->u.constant.envelope)); in ml_combine_effects()
296 &new->u.periodic.envelope); in ml_combine_effects()