/Linux-v4.19/drivers/input/joystick/iforce/ |
D | iforce-ff.c | 226 struct ff_effect *effect) in need_magnitude_modifier() argument 228 if (effect->type != FF_CONSTANT) { in need_magnitude_modifier() 234 return old->u.constant.level != effect->u.constant.level; in need_magnitude_modifier() 242 struct ff_effect *effect) in need_envelope_modifier() argument 244 switch (effect->type) { in need_envelope_modifier() 246 if (old->u.constant.envelope.attack_length != effect->u.constant.envelope.attack_length in need_envelope_modifier() 247 || old->u.constant.envelope.attack_level != effect->u.constant.envelope.attack_level in need_envelope_modifier() 248 || old->u.constant.envelope.fade_length != effect->u.constant.envelope.fade_length in need_envelope_modifier() 249 || old->u.constant.envelope.fade_level != effect->u.constant.envelope.fade_level) in need_envelope_modifier() 254 if (old->u.periodic.envelope.attack_length != effect->u.periodic.envelope.attack_length in need_envelope_modifier() [all …]
|
D | iforce-main.c | 119 static int iforce_upload_effect(struct input_dev *dev, struct ff_effect *effect, struct ff_effect *… in iforce_upload_effect() argument 122 struct iforce_core_effect *core_effect = &iforce->core_effects[effect->id]; in iforce_upload_effect() 134 switch (effect->type) { in iforce_upload_effect() 137 ret = iforce_upload_periodic(iforce, effect, old); in iforce_upload_effect() 141 ret = iforce_upload_constant(iforce, effect, old); in iforce_upload_effect() 146 ret = iforce_upload_condition(iforce, effect, old); in iforce_upload_effect()
|
/Linux-v4.19/drivers/input/ |
D | ff-memless.c | 51 struct ff_effect *effect; member 67 struct ff_effect *effect); 70 static const struct ff_envelope *get_envelope(const struct ff_effect *effect) in get_envelope() argument 74 switch (effect->type) { in get_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() 102 if (state->effect->replay.length) { in calculate_next_time() 167 struct ff_effect *effect = state->effect; in apply_envelope() local 183 } else if (envelope->fade_length && effect->replay.length && in apply_envelope() [all …]
|
D | ff-core.c | 63 static int compat_effect(struct ff_device *ff, struct ff_effect *effect) in compat_effect() argument 67 switch (effect->type) { in compat_effect() 76 magnitude = effect->u.rumble.strong_magnitude / 3 + in compat_effect() 77 effect->u.rumble.weak_magnitude / 6; in compat_effect() 79 effect->type = FF_PERIODIC; in compat_effect() 80 effect->u.periodic.waveform = FF_SINE; in compat_effect() 81 effect->u.periodic.period = 50; in compat_effect() 82 effect->u.periodic.magnitude = max(magnitude, 0x7fff); in compat_effect() 83 effect->u.periodic.offset = 0; in compat_effect() 84 effect->u.periodic.phase = 0; in compat_effect() [all …]
|
D | input-compat.c | 66 struct ff_effect *effect) in input_ff_effect_from_user() argument 79 compat_effect = (struct ff_effect_compat *)effect; in input_ff_effect_from_user() 87 effect->u.periodic.custom_data = in input_ff_effect_from_user() 93 if (copy_from_user(effect, buffer, sizeof(struct ff_effect))) in input_ff_effect_from_user() 121 struct ff_effect *effect) in input_ff_effect_from_user() argument 126 if (copy_from_user(effect, buffer, sizeof(struct ff_effect))) in input_ff_effect_from_user()
|
/Linux-v4.19/drivers/hid/usbhid/ |
D | hid-pidff.c | 286 struct ff_effect *effect) in pidff_set_constant_force_report() argument 291 effect->u.constant.level); in pidff_set_constant_force_report() 300 static int pidff_needs_set_constant(struct ff_effect *effect, in pidff_needs_set_constant() argument 303 return effect->u.constant.level != old->u.constant.level; in pidff_needs_set_constant() 310 struct ff_effect *effect) in pidff_set_effect_report() argument 316 pidff->set_effect[PID_DURATION].value[0] = effect->replay.length; in pidff_set_effect_report() 317 pidff->set_effect[PID_TRIGGER_BUTTON].value[0] = effect->trigger.button; in pidff_set_effect_report() 319 effect->trigger.interval; in pidff_set_effect_report() 324 pidff_rescale(effect->direction, 0xffff, in pidff_set_effect_report() 326 pidff->set_effect[PID_START_DELAY].value[0] = effect->replay.delay; in pidff_set_effect_report() [all …]
|
/Linux-v4.19/sound/synth/emux/ |
D | emux_effect.c | 102 short effect; in effect_set_byte() local 105 effect = fx->val[type]; in effect_set_byte() 108 effect += *(char*)valp; in effect_set_byte() 110 effect += *valp; in effect_set_byte() 112 if (effect < parm_defs[type].low) in effect_set_byte() 113 effect = parm_defs[type].low; in effect_set_byte() 114 else if (effect > parm_defs[type].high) in effect_set_byte() 115 effect = parm_defs[type].high; in effect_set_byte() 116 *valp = (unsigned char)effect; in effect_set_byte() 123 int effect; in effect_set_word() local [all …]
|
/Linux-v4.19/Documentation/input/ |
D | ff.rst | 115 int ioctl(int file_descriptor, int request, struct ff_effect *effect); 119 "effect" points to a structure describing the effect to upload. The effect is 121 The content of effect may be modified. In particular, its field "id" is set 123 some operations (removing an effect, controlling the playback). 125 allocate a new effect. 142 Removing an effect from the device 147 int ioctl(int fd, EVIOCRMFF, effect.id); 150 stops the effect if it was playing. 164 struct ff_effect effect; 171 play.code = effect.id; [all …]
|
/Linux-v4.19/drivers/hid/ |
D | hid-logitech-hidpp.c | 1611 static int hidpp_ff_upload_effect(struct input_dev *dev, struct ff_effect *effect, struct ff_effect… in hidpp_ff_upload_effect() argument 1619 params[2] = effect->replay.length >> 8; in hidpp_ff_upload_effect() 1620 params[3] = effect->replay.length & 255; in hidpp_ff_upload_effect() 1621 params[4] = effect->replay.delay >> 8; in hidpp_ff_upload_effect() 1622 params[5] = effect->replay.delay & 255; in hidpp_ff_upload_effect() 1624 switch (effect->type) { in hidpp_ff_upload_effect() 1626 force = (effect->u.constant.level * fixp_sin16((effect->direction * 360) >> 16)) >> 15; in hidpp_ff_upload_effect() 1630 params[8] = effect->u.constant.envelope.attack_level >> 7; in hidpp_ff_upload_effect() 1631 params[9] = effect->u.constant.envelope.attack_length >> 8; in hidpp_ff_upload_effect() 1632 params[10] = effect->u.constant.envelope.attack_length & 255; in hidpp_ff_upload_effect() [all …]
|
D | hid-lgff.c | 69 static int hid_lgff_play(struct input_dev *dev, void *data, struct ff_effect *effect) in hid_lgff_play() argument 79 switch (effect->type) { in hid_lgff_play() 81 x = effect->u.ramp.start_level + 0x7f; /* 0x7f is center */ in hid_lgff_play() 82 y = effect->u.ramp.end_level + 0x7f; in hid_lgff_play() 94 right = effect->u.rumble.strong_magnitude; in hid_lgff_play() 95 left = effect->u.rumble.weak_magnitude; in hid_lgff_play()
|
D | hid-tmff.c | 84 struct ff_effect *effect) in tmff_play() argument 92 switch (effect->type) { in tmff_play() 94 x = tmff_scale_s8(effect->u.ramp.start_level, in tmff_play() 97 y = tmff_scale_s8(effect->u.ramp.end_level, in tmff_play() 108 left = tmff_scale_u16(effect->u.rumble.weak_magnitude, in tmff_play() 111 right = tmff_scale_u16(effect->u.rumble.strong_magnitude, in tmff_play()
|
D | hid-lg3ff.c | 61 struct ff_effect *effect) in hid_lg3ff_play() argument 75 switch (effect->type) { in hid_lg3ff_play() 81 x = effect->u.ramp.start_level; in hid_lg3ff_play() 82 y = effect->u.ramp.end_level; in hid_lg3ff_play()
|
D | hid-lg2ff.c | 35 struct ff_effect *effect) in play_effect() argument 41 strong = effect->u.rumble.strong_magnitude; in play_effect() 42 weak = effect->u.rumble.weak_magnitude; in play_effect()
|
D | hid-zpff.c | 38 struct ff_effect *effect) in zpff_play() argument 50 left = effect->u.rumble.strong_magnitude; in zpff_play() 51 right = effect->u.rumble.weak_magnitude; in zpff_play()
|
D | hid-betopff.c | 41 struct ff_effect *effect) in hid_betopff_play() argument 47 left = effect->u.rumble.strong_magnitude; in hid_betopff_play() 48 right = effect->u.rumble.weak_magnitude; in hid_betopff_play()
|
D | hid-emsff.c | 35 struct ff_effect *effect) in emsff_play() argument 41 weak = effect->u.rumble.weak_magnitude; in emsff_play() 42 strong = effect->u.rumble.strong_magnitude; in emsff_play()
|
D | hid-mf.c | 42 static int mf_play(struct input_dev *dev, void *data, struct ff_effect *effect) in mf_play() argument 48 strong = effect->u.rumble.strong_magnitude; in mf_play() 49 weak = effect->u.rumble.weak_magnitude; in mf_play()
|
D | hid-holtekff.c | 103 struct ff_effect *effect) in holtekff_play() argument 112 left = effect->u.rumble.strong_magnitude; in holtekff_play() 113 right = effect->u.rumble.weak_magnitude; in holtekff_play()
|
D | hid-sjoy.c | 42 struct ff_effect *effect) in hid_sjoyff_play() argument 48 left = effect->u.rumble.strong_magnitude; in hid_sjoyff_play() 49 right = effect->u.rumble.weak_magnitude; in hid_sjoyff_play()
|
/Linux-v4.19/drivers/input/misc/ |
D | arizona-haptics.c | 112 struct ff_effect *effect) in arizona_haptics_play() argument 122 if (effect->u.rumble.strong_magnitude) { in arizona_haptics_play() 126 effect->u.rumble.strong_magnitude >> 9; in arizona_haptics_play() 127 if (effect->direction < 0x8000) in arizona_haptics_play() 131 effect->u.rumble.strong_magnitude >> 8; in arizona_haptics_play()
|
D | uinput.c | 61 struct ff_effect *effect; member 243 struct ff_effect *effect, in uinput_dev_upload_effect() argument 256 if (effect->type == FF_PERIODIC && in uinput_dev_upload_effect() 257 effect->u.periodic.waveform == FF_CUSTOM) in uinput_dev_upload_effect() 261 request.u.upload.effect = effect; in uinput_dev_upload_effect() 727 struct ff_effect_compat effect; member 745 memcpy(&ff_up_compat.effect, &ff_up->effect, in uinput_ff_upload_to_user() 774 memcpy(&ff_up->effect, &ff_up_compat.effect, in uinput_ff_upload_from_user() 953 !req->u.upload.effect) { in uinput_ioctl_handler() 959 ff_up.effect = *req->u.upload.effect; in uinput_ioctl_handler() [all …]
|
D | twl4030-vibra.c | 137 struct ff_effect *effect) in vibra_play() argument 141 info->speed = effect->u.rumble.strong_magnitude >> 8; in vibra_play() 143 info->speed = effect->u.rumble.weak_magnitude >> 9; in vibra_play() 144 info->direction = effect->direction < EFFECT_DIR_180_DEG ? 0 : 1; in vibra_play()
|
/Linux-v4.19/sound/isa/sb/ |
D | emu8000.c | 681 int effect = emu->chorus_mode; in snd_emu8000_update_chorus_mode() local 682 if (effect < 0 || effect >= SNDRV_EMU8000_CHORUS_NUMBERS || in snd_emu8000_update_chorus_mode() 683 (effect >= SNDRV_EMU8000_CHORUS_PREDEFINED && !chorus_defined[effect])) in snd_emu8000_update_chorus_mode() 685 EMU8000_INIT3_WRITE(emu, 0x09, chorus_parm[effect].feedback); in snd_emu8000_update_chorus_mode() 686 EMU8000_INIT3_WRITE(emu, 0x0c, chorus_parm[effect].delay_offset); in snd_emu8000_update_chorus_mode() 687 EMU8000_INIT4_WRITE(emu, 0x03, chorus_parm[effect].lfo_depth); in snd_emu8000_update_chorus_mode() 688 EMU8000_HWCF4_WRITE(emu, chorus_parm[effect].delay); in snd_emu8000_update_chorus_mode() 689 EMU8000_HWCF5_WRITE(emu, chorus_parm[effect].lfo_freq); in snd_emu8000_update_chorus_mode() 809 int effect = emu->reverb_mode; in snd_emu8000_update_reverb_mode() local 812 if (effect < 0 || effect >= SNDRV_EMU8000_REVERB_NUMBERS || in snd_emu8000_update_reverb_mode() [all …]
|
/Linux-v4.19/Documentation/input/devices/ |
D | iforce-protocol.rst | 82 01 Bit 8 is set if the effect is playing. Bits 0 to 7 are the effect id. 89 Force effect 111 Bits 4-7: Val 2 = effect along one axis. Byte 05 indicates direction 116 Val x+1 = Button x triggers the effect 119 03-04 Duration of effect (little endian encoding, in ms) 121 05 Direction of effect, if applicable. Else, see 02 for value to assign. 133 0c-0d Delay before execution of effect (little endian encoding, in ms) 283 Query effect 290 Send effect type. 367 3. Play the effect, and watch what happens on the spy screen. [all …]
|
/Linux-v4.19/drivers/media/platform/exynos4-is/ |
D | fimc-core.c | 485 struct fimc_effect *effect = &ctx->effect; in fimc_set_color_effect() local 489 effect->type = FIMC_REG_CIIMGEFF_FIN_BYPASS; in fimc_set_color_effect() 492 effect->type = FIMC_REG_CIIMGEFF_FIN_ARBITRARY; in fimc_set_color_effect() 493 effect->pat_cb = 128; in fimc_set_color_effect() 494 effect->pat_cr = 128; in fimc_set_color_effect() 497 effect->type = FIMC_REG_CIIMGEFF_FIN_ARBITRARY; in fimc_set_color_effect() 498 effect->pat_cb = 115; in fimc_set_color_effect() 499 effect->pat_cr = 145; in fimc_set_color_effect() 502 effect->type = FIMC_REG_CIIMGEFF_FIN_NEGATIVE; in fimc_set_color_effect() 505 effect->type = FIMC_REG_CIIMGEFF_FIN_EMBOSSING; in fimc_set_color_effect() [all …]
|