Lines Matching refs:envelope
76 return &effect->u.periodic.envelope; in get_envelope()
79 return &effect->u.constant.envelope; in get_envelope()
91 const struct ff_envelope *envelope = get_envelope(state->effect); in calculate_next_time() local
94 if (envelope->attack_length) { in calculate_next_time()
96 msecs_to_jiffies(envelope->attack_length); in calculate_next_time()
103 if (envelope->fade_length) { in calculate_next_time()
106 msecs_to_jiffies(envelope->fade_length); in calculate_next_time()
165 struct ff_envelope *envelope) in apply_envelope() argument
174 if (envelope->attack_length && in apply_envelope()
176 state->play_at + msecs_to_jiffies(envelope->attack_length))) { in apply_envelope()
178 value, envelope->attack_level); in apply_envelope()
180 time_of_envelope = envelope->attack_length; in apply_envelope()
181 envelope_level = min_t(u16, envelope->attack_level, 0x7fff); in apply_envelope()
183 } else if (envelope->fade_length && effect->replay.length && in apply_envelope()
185 state->stop_at - msecs_to_jiffies(envelope->fade_length)) && in apply_envelope()
188 time_of_envelope = envelope->fade_length; in apply_envelope()
189 envelope_level = min_t(u16, envelope->fade_level, 0x7fff); in apply_envelope()
269 &new->u.constant.envelope)); in ml_combine_effects()
308 &new->u.periodic.envelope); in ml_combine_effects()