Searched refs:envelope (Results 1 – 9 of 9) sorted by relevance
/drivers/input/joystick/iforce/ |
D | iforce-ff.c | 231 if (old->u.constant.envelope.attack_length != effect->u.constant.envelope.attack_length in need_envelope_modifier() 232 || old->u.constant.envelope.attack_level != effect->u.constant.envelope.attack_level in need_envelope_modifier() 233 || old->u.constant.envelope.fade_length != effect->u.constant.envelope.fade_length in need_envelope_modifier() 234 || old->u.constant.envelope.fade_level != effect->u.constant.envelope.fade_level) in need_envelope_modifier() 239 if (old->u.periodic.envelope.attack_length != effect->u.periodic.envelope.attack_length in need_envelope_modifier() 240 || old->u.periodic.envelope.attack_level != effect->u.periodic.envelope.attack_level in need_envelope_modifier() 241 || old->u.periodic.envelope.fade_length != effect->u.periodic.envelope.fade_length in need_envelope_modifier() 242 || old->u.periodic.envelope.fade_level != effect->u.periodic.envelope.fade_level) in need_envelope_modifier() 362 effect->u.periodic.envelope.attack_length, in iforce_upload_periodic() 363 effect->u.periodic.envelope.attack_level, in iforce_upload_periodic() [all …]
|
/drivers/input/ |
D | ff-memless.c | 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() [all …]
|
D | ff-core.c | 73 effect->u.periodic.envelope.attack_length = 0; in compat_effect() 74 effect->u.periodic.envelope.attack_level = 0; in compat_effect() 75 effect->u.periodic.envelope.fade_length = 0; in compat_effect() 76 effect->u.periodic.envelope.fade_level = 0; in compat_effect()
|
D | input-compat.h | 32 struct ff_envelope envelope; member
|
/drivers/iio/adc/ |
D | envelope-detector.c | 46 struct envelope { struct 80 static int envelope_detector_comp_latch(struct envelope *env) in envelope_detector_comp_latch() argument 118 struct envelope *env = ctx; in envelope_detector_comp_isr() 128 static void envelope_detector_setup_compare(struct envelope *env) in envelope_detector_setup_compare() 174 struct envelope *env = container_of(work, struct envelope, in envelope_detector_timeout() 191 struct envelope *env = iio_priv(indio_dev); in envelope_detector_read_raw() 235 struct envelope *env = iio_priv(indio_dev); in envelope_show_invert() 245 struct envelope *env = iio_priv(indio_dev); in envelope_store_invert() 275 struct envelope *env = iio_priv(indio_dev); in envelope_show_comp_interval() 285 struct envelope *env = iio_priv(indio_dev); in envelope_store_comp_interval() [all …]
|
D | Makefile | 42 obj-$(CONFIG_ENVELOPE_DETECTOR) += envelope-detector.o
|
D | Kconfig | 411 Say yes here to build support for an envelope detector using a DAC 415 called envelope-detector.
|
/drivers/hid/usbhid/ |
D | hid-pidff.c | 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() [all …]
|
/drivers/hid/ |
D | hid-logitech-hidpp.c | 2088 params[8] = effect->u.constant.envelope.attack_level >> 7; in hidpp_ff_upload_effect() 2089 params[9] = effect->u.constant.envelope.attack_length >> 8; in hidpp_ff_upload_effect() 2090 params[10] = effect->u.constant.envelope.attack_length & 255; in hidpp_ff_upload_effect() 2091 params[11] = effect->u.constant.envelope.fade_level >> 7; in hidpp_ff_upload_effect() 2092 params[12] = effect->u.constant.envelope.fade_length >> 8; in hidpp_ff_upload_effect() 2093 params[13] = effect->u.constant.envelope.fade_length & 255; in hidpp_ff_upload_effect() 2099 effect->u.constant.envelope.attack_level, in hidpp_ff_upload_effect() 2100 effect->u.constant.envelope.attack_length, in hidpp_ff_upload_effect() 2101 effect->u.constant.envelope.fade_level, in hidpp_ff_upload_effect() 2102 effect->u.constant.envelope.fade_length); in hidpp_ff_upload_effect() [all …]
|