Home
last modified time | relevance | path

Searched refs:envelope (Results 1 – 5 of 5) sorted by relevance

/drivers/input/joystick/iforce/
Diforce-ff.c250 if (old->u.constant.envelope.attack_length != effect->u.constant.envelope.attack_length in need_envelope_modifier()
251 || old->u.constant.envelope.attack_level != effect->u.constant.envelope.attack_level in need_envelope_modifier()
252 || old->u.constant.envelope.fade_length != effect->u.constant.envelope.fade_length in need_envelope_modifier()
253 || old->u.constant.envelope.fade_level != effect->u.constant.envelope.fade_level) in need_envelope_modifier()
258 if (old->u.periodic.envelope.attack_length != effect->u.periodic.envelope.attack_length in need_envelope_modifier()
259 || old->u.periodic.envelope.attack_level != effect->u.periodic.envelope.attack_level in need_envelope_modifier()
260 || old->u.periodic.envelope.fade_length != effect->u.periodic.envelope.fade_length in need_envelope_modifier()
261 || old->u.periodic.envelope.fade_level != effect->u.periodic.envelope.fade_level) in need_envelope_modifier()
381 effect->u.periodic.envelope.attack_length, in iforce_upload_periodic()
382 effect->u.periodic.envelope.attack_level, in iforce_upload_periodic()
[all …]
/drivers/input/
Dff-memless.c76 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()
[all …]
Dff-core.c87 effect->u.periodic.envelope.attack_length = 0; in compat_effect()
88 effect->u.periodic.envelope.attack_level = 0; in compat_effect()
89 effect->u.periodic.envelope.fade_length = 0; in compat_effect()
90 effect->u.periodic.envelope.fade_level = 0; in compat_effect()
Dinput-compat.h46 struct ff_envelope envelope; member
/drivers/hid/usbhid/
Dhid-pidff.c245 struct ff_envelope *envelope) in pidff_set_envelope_report() argument
251 pidff_rescale(envelope->attack_level > in pidff_set_envelope_report()
252 0x7fff ? 0x7fff : envelope->attack_level, 0x7fff, in pidff_set_envelope_report()
255 pidff_rescale(envelope->fade_level > in pidff_set_envelope_report()
256 0x7fff ? 0x7fff : envelope->fade_level, 0x7fff, in pidff_set_envelope_report()
259 pidff->set_envelope[PID_ATTACK_TIME].value[0] = envelope->attack_length; in pidff_set_envelope_report()
260 pidff->set_envelope[PID_FADE_TIME].value[0] = envelope->fade_length; in pidff_set_envelope_report()
263 envelope->attack_level, in pidff_set_envelope_report()
273 static int pidff_needs_set_envelope(struct ff_envelope *envelope, in pidff_needs_set_envelope() argument
276 return envelope->attack_level != old->attack_level || in pidff_needs_set_envelope()
[all …]