Lines Matching refs:envelope
62 return &effect->u.periodic.envelope; in get_envelope()
65 return &effect->u.constant.envelope; in get_envelope()
77 const struct ff_envelope *envelope = get_envelope(state->effect); in calculate_next_time() local
80 if (envelope->attack_length) { in calculate_next_time()
82 msecs_to_jiffies(envelope->attack_length); in calculate_next_time()
89 if (envelope->fade_length) { in calculate_next_time()
92 msecs_to_jiffies(envelope->fade_length); in calculate_next_time()
151 struct ff_envelope *envelope) in apply_envelope() argument
160 if (envelope->attack_length && in apply_envelope()
162 state->play_at + msecs_to_jiffies(envelope->attack_length))) { in apply_envelope()
164 value, envelope->attack_level); in apply_envelope()
166 time_of_envelope = envelope->attack_length; in apply_envelope()
167 envelope_level = min_t(u16, envelope->attack_level, 0x7fff); in apply_envelope()
169 } else if (envelope->fade_length && effect->replay.length && in apply_envelope()
171 state->stop_at - msecs_to_jiffies(envelope->fade_length)) && in apply_envelope()
174 time_of_envelope = envelope->fade_length; in apply_envelope()
175 envelope_level = min_t(u16, envelope->fade_level, 0x7fff); in apply_envelope()
255 &new->u.constant.envelope)); in ml_combine_effects()
294 &new->u.periodic.envelope); in ml_combine_effects()