Home
last modified time | relevance | path

Searched refs:effect (Results 1 – 25 of 413) sorted by relevance

12345678910>>...17

/linux/drivers/input/joystick/iforce/
A Diforce-ff.c229 switch (effect->type) { in need_envelope_modifier()
352 effect->u.periodic.magnitude, effect->u.periodic.offset, in iforce_upload_periodic()
353 effect->u.periodic.period, effect->u.periodic.phase); in iforce_upload_periodic()
387 effect->replay.delay, in iforce_upload_periodic()
390 effect->direction); in iforce_upload_periodic()
447 effect->replay.delay, in iforce_upload_constant()
450 effect->direction); in iforce_upload_constant()
475 switch (effect->type) { in iforce_upload_condition()
512 effect->replay.length, effect->replay.delay, in iforce_upload_condition()
513 effect->trigger.button, effect->trigger.interval, in iforce_upload_condition()
[all …]
A Diforce-main.c106 static int iforce_upload_effect(struct input_dev *dev, struct ff_effect *effect, struct ff_effect *… in iforce_upload_effect() argument
109 struct iforce_core_effect *core_effect = &iforce->core_effects[effect->id]; in iforce_upload_effect()
121 switch (effect->type) { in iforce_upload_effect()
123 ret = iforce_upload_periodic(iforce, effect, old); in iforce_upload_effect()
127 ret = iforce_upload_constant(iforce, effect, old); in iforce_upload_effect()
132 ret = iforce_upload_condition(iforce, effect, old); in iforce_upload_effect()
/linux/drivers/input/
A Dff-memless.c39 struct ff_effect *effect; member
62 switch (effect->type) { in get_envelope()
155 struct ff_effect *effect = state->effect; in apply_envelope() local
277 effect->direction, in ml_combine_effects()
282 effect->direction, in ml_combine_effects()
286 effect->direction = 0; in ml_combine_effects()
303 effect->direction, in ml_combine_effects()
307 effect->direction = 0; in ml_combine_effects()
330 struct ff_effect *effect; in ml_get_combo_effect() local
342 effect = state->effect; in ml_get_combo_effect()
[all …]
A Dff-core.c55 switch (effect->type) { in compat_effect()
67 effect->type = FF_PERIODIC; in compat_effect()
69 effect->u.periodic.period = 50; in compat_effect()
71 effect->u.periodic.offset = 0; in compat_effect()
72 effect->u.periodic.phase = 0; in compat_effect()
103 if (effect->type < FF_EFFECT_MIN || effect->type > FF_EFFECT_MAX || in input_ff_upload()
118 ret = compat_effect(ff, effect); in input_ff_upload()
125 if (effect->id == -1) { in input_ff_upload()
135 effect->id = id; in input_ff_upload()
139 id = effect->id; in input_ff_upload()
[all …]
A Dinput-compat.c63 struct ff_effect *effect) in input_ff_effect_from_user() argument
76 compat_effect = (struct ff_effect_compat *)effect; in input_ff_effect_from_user()
84 effect->u.periodic.custom_data = in input_ff_effect_from_user()
90 if (copy_from_user(effect, buffer, sizeof(struct ff_effect))) in input_ff_effect_from_user()
118 struct ff_effect *effect) in input_ff_effect_from_user() argument
123 if (copy_from_user(effect, buffer, sizeof(struct ff_effect))) in input_ff_effect_from_user()
/linux/drivers/hid/usbhid/
A Dhid-pidff.c279 effect->u.constant.level); in pidff_set_constant_force_report()
298 struct ff_effect *effect) in pidff_set_effect_report() argument
307 effect->trigger.interval; in pidff_set_effect_report()
344 effect->u.periodic.offset); in pidff_set_periodic_report()
423 struct ff_effect *effect) in pidff_set_ramp_force_report() argument
428 effect->u.ramp.start_level); in pidff_set_ramp_force_report()
430 effect->u.ramp.end_level); in pidff_set_ramp_force_report()
562 pidff->pid_id[effect->id]; in pidff_upload_effect()
565 switch (effect->type) { in pidff_upload_effect()
638 &effect->u.ramp.envelope); in pidff_upload_effect()
[all …]
/linux/sound/synth/emux/
A Demux_effect.c88 short effect; in effect_set_byte() local
91 effect = fx->val[type]; in effect_set_byte()
94 effect += *(char*)valp; in effect_set_byte()
96 effect += *valp; in effect_set_byte()
99 effect = parm_defs[type].low; in effect_set_byte()
109 int effect; in effect_set_word() local
114 effect += *valp; in effect_set_word()
278 if (p->effect) { in snd_emux_create_effect()
290 kfree(p->effect); in snd_emux_delete_effect()
291 p->effect = NULL; in snd_emux_delete_effect()
[all …]
/linux/Documentation/input/
A Dff.rst119 "effect" points to a structure describing the effect to upload. The effect is
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;
176 /* Stop an effect */
178 stop.code = effect.id;
224 Dynamic update of an effect
[all …]
/linux/Documentation/ABI/testing/
A Ddebugfs-hisi-sec7 Only available for PF, and take no other effect on SEC.
37 Only available for PF, and take no other effect on SEC.
44 Available for both PF and VF, and take no other effect on SEC.
50 Available for both PF and VF, and take no other effect on SEC.
56 Available for both PF and VF, and take no other effect on SEC.
62 Available for both PF and VF, and take no other effect on SEC.
68 Available for both PF and VF, and take no other effect on SEC.
75 Available for both PF and VF, and take no other effect on SEC.
81 Available for both PF and VF, and take no other effect on SEC.
87 Available for both PF and VF, and take no other effect on SEC.
[all …]
A Ddebugfs-hisi-hpre19 functional effect, only enable or disable counters clear after
55 Writing to this file has no functional effect, only enable or
64 Available for both PF and VF, and take no other effect on HPRE.
70 Available for both PF and VF, and take no other effect on HPRE.
76 Available for both PF and VF, and take no other effect on HPRE.
82 Available for both PF and VF, and take no other effect on HPRE.
88 Available for both PF and VF, and take no other effect on HPRE.
95 Available for both PF and VF, and take no other effect on HPRE.
101 Available for both PF and VF, and take no other effect on HPRE.
107 Available for both PF and VF, and take no other effect on HPRE.
[all …]
A Ddebugfs-hisi-zip18 Writing to this file has no functional effect, only enable or
48 Writing to this file has no functional effect, only enable or
57 Available for both PF and VF, and take no other effect on ZIP.
63 Available for both PF and VF, and take no other effect on ZIP.
69 Available for both PF and VF, and take no other effect on ZIP.
75 Available for both PF and VF, and take no other effect on ZIP.
81 Available for both PF and VF, and take no other effect on ZIP.
88 Available for both PF and VF, and take no other effect on ZIP.
94 Available for both PF and VF, and take no other effect on ZIP.
100 Available for both PF and VF, and take no other effect on ZIP.
[all …]
/linux/drivers/hid/
A Dhid-logitech-hidpp.c2307 switch (effect->type) { in hidpp_ff_upload_effect()
2309 force = (effect->u.constant.level * fixp_sin16((effect->direction * 360) >> 16)) >> 15; in hidpp_ff_upload_effect()
2321 effect->u.constant.level, in hidpp_ff_upload_effect()
2322 effect->direction, force); in hidpp_ff_upload_effect()
2368 effect->u.periodic.magnitude, effect->direction, in hidpp_ff_upload_effect()
2369 effect->u.periodic.offset, in hidpp_ff_upload_effect()
2370 effect->u.periodic.period, in hidpp_ff_upload_effect()
2371 effect->u.periodic.phase); in hidpp_ff_upload_effect()
2384 force = (effect->u.ramp.end_level * fixp_sin16((effect->direction * 360) >> 16)) >> 15; in hidpp_ff_upload_effect()
2396 effect->u.ramp.end_level, in hidpp_ff_upload_effect()
[all …]
A Dhid-lgff.c57 static int hid_lgff_play(struct input_dev *dev, void *data, struct ff_effect *effect) in hid_lgff_play() argument
67 switch (effect->type) { in hid_lgff_play()
69 x = effect->u.ramp.start_level + 0x7f; /* 0x7f is center */ in hid_lgff_play()
70 y = effect->u.ramp.end_level + 0x7f; in hid_lgff_play()
82 right = effect->u.rumble.strong_magnitude; in hid_lgff_play()
83 left = effect->u.rumble.weak_magnitude; in hid_lgff_play()
A Dhid-tmff.c74 struct ff_effect *effect) in tmff_play() argument
83 switch (effect->type) { in tmff_play()
85 x = tmff_scale_s8(effect->u.ramp.start_level, in tmff_play()
88 y = tmff_scale_s8(effect->u.ramp.end_level, in tmff_play()
99 left = tmff_scale_u16(effect->u.rumble.weak_magnitude, in tmff_play()
102 right = tmff_scale_u16(effect->u.rumble.strong_magnitude, in tmff_play()
A Dhid-lg3ff.c49 struct ff_effect *effect) in hid_lg3ff_play() argument
63 switch (effect->type) { in hid_lg3ff_play()
69 x = effect->u.ramp.start_level; in hid_lg3ff_play()
70 y = effect->u.ramp.end_level; in hid_lg3ff_play()
A Dhid-lg2ff.c23 struct ff_effect *effect) in play_effect() argument
29 strong = effect->u.rumble.strong_magnitude; in play_effect()
30 weak = effect->u.rumble.weak_magnitude; in play_effect()
A Dhid-zpff.c26 struct ff_effect *effect) in zpff_play() argument
38 left = effect->u.rumble.strong_magnitude; in zpff_play()
39 right = effect->u.rumble.weak_magnitude; in zpff_play()
A Dhid-betopff.c38 struct ff_effect *effect) in hid_betopff_play() argument
44 left = effect->u.rumble.strong_magnitude; in hid_betopff_play()
45 right = effect->u.rumble.weak_magnitude; in hid_betopff_play()
/linux/sound/isa/sb/
A Demu8000.c668 int effect = emu->chorus_mode; in snd_emu8000_update_chorus_mode() local
669 if (effect < 0 || effect >= SNDRV_EMU8000_CHORUS_NUMBERS || in snd_emu8000_update_chorus_mode()
670 (effect >= SNDRV_EMU8000_CHORUS_PREDEFINED && !chorus_defined[effect])) in snd_emu8000_update_chorus_mode()
672 EMU8000_INIT3_WRITE(emu, 0x09, chorus_parm[effect].feedback); in snd_emu8000_update_chorus_mode()
673 EMU8000_INIT3_WRITE(emu, 0x0c, chorus_parm[effect].delay_offset); in snd_emu8000_update_chorus_mode()
674 EMU8000_INIT4_WRITE(emu, 0x03, chorus_parm[effect].lfo_depth); in snd_emu8000_update_chorus_mode()
675 EMU8000_HWCF4_WRITE(emu, chorus_parm[effect].delay); in snd_emu8000_update_chorus_mode()
676 EMU8000_HWCF5_WRITE(emu, chorus_parm[effect].lfo_freq); in snd_emu8000_update_chorus_mode()
796 int effect = emu->reverb_mode; in snd_emu8000_update_reverb_mode() local
799 if (effect < 0 || effect >= SNDRV_EMU8000_REVERB_NUMBERS || in snd_emu8000_update_reverb_mode()
[all …]
/linux/Documentation/input/devices/
A Diforce-protocol.rst82 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/drivers/input/misc/
A Darizona-haptics.c109 struct ff_effect *effect) in arizona_haptics_play() argument
119 if (effect->u.rumble.strong_magnitude) { in arizona_haptics_play()
123 effect->u.rumble.strong_magnitude >> 9; in arizona_haptics_play()
124 if (effect->direction < 0x8000) in arizona_haptics_play()
128 effect->u.rumble.strong_magnitude >> 8; in arizona_haptics_play()
A Duinput.c49 struct ff_effect *effect; member
235 struct ff_effect *effect, in uinput_dev_upload_effect() argument
248 if (effect->type == FF_PERIODIC && in uinput_dev_upload_effect()
249 effect->u.periodic.waveform == FF_CUSTOM) in uinput_dev_upload_effect()
253 request.u.upload.effect = effect; in uinput_dev_upload_effect()
720 struct ff_effect_compat effect; member
738 memcpy(&ff_up_compat.effect, &ff_up->effect, in uinput_ff_upload_to_user()
767 memcpy(&ff_up->effect, &ff_up_compat.effect, in uinput_ff_upload_from_user()
946 !req->u.upload.effect) { in uinput_ioctl_handler()
952 ff_up.effect = *req->u.upload.effect; in uinput_ioctl_handler()
[all …]
A Dda7280.c506 struct ff_effect *effect, in da7280_haptics_upload_effect() argument
519 switch (effect->type) { in da7280_haptics_upload_effect()
524 tmp = effect->u.constant.level * 254; in da7280_haptics_upload_effect()
529 haptics->gain = effect->u.constant.level <= 0 ? in da7280_haptics_upload_effect()
530 0 : effect->u.constant.level; in da7280_haptics_upload_effect()
535 if (effect->u.periodic.waveform != FF_CUSTOM) { in da7280_haptics_upload_effect()
560 if (copy_from_user(data, effect->u.periodic.custom_data, in da7280_haptics_upload_effect()
562 effect->u.periodic.custom_len)) in da7280_haptics_upload_effect()
567 for (i = 0; i < effect->u.periodic.custom_len; i++) { in da7280_haptics_upload_effect()
586 if (copy_from_user(data, effect->u.periodic.custom_data, in da7280_haptics_upload_effect()
[all …]
A Dtwl4030-vibra.c123 struct ff_effect *effect) in vibra_play() argument
127 info->speed = effect->u.rumble.strong_magnitude >> 8; in vibra_play()
129 info->speed = effect->u.rumble.weak_magnitude >> 9; in vibra_play()
130 info->direction = effect->direction < EFFECT_DIR_180_DEG ? 0 : 1; in vibra_play()
/linux/drivers/media/platform/exynos4-is/
A Dfimc-core.c461 struct fimc_effect *effect = &ctx->effect; in fimc_set_color_effect() local
465 effect->type = FIMC_REG_CIIMGEFF_FIN_BYPASS; in fimc_set_color_effect()
468 effect->type = FIMC_REG_CIIMGEFF_FIN_ARBITRARY; in fimc_set_color_effect()
469 effect->pat_cb = 128; in fimc_set_color_effect()
470 effect->pat_cr = 128; in fimc_set_color_effect()
473 effect->type = FIMC_REG_CIIMGEFF_FIN_ARBITRARY; in fimc_set_color_effect()
474 effect->pat_cb = 115; in fimc_set_color_effect()
475 effect->pat_cr = 145; in fimc_set_color_effect()
478 effect->type = FIMC_REG_CIIMGEFF_FIN_NEGATIVE; in fimc_set_color_effect()
481 effect->type = FIMC_REG_CIIMGEFF_FIN_EMBOSSING; in fimc_set_color_effect()
[all …]

Completed in 65 milliseconds

12345678910>>...17