Home
last modified time | relevance | path

Searched refs:effect_id (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.4/drivers/input/
Dff-core.c24 static int check_effect_access(struct ff_device *ff, int effect_id, in check_effect_access() argument
27 if (effect_id < 0 || effect_id >= ff->max_effects || in check_effect_access()
28 !ff->effect_owners[effect_id]) in check_effect_access()
31 if (file && ff->effect_owners[effect_id] != file) in check_effect_access()
172 static int erase_effect(struct input_dev *dev, int effect_id, in erase_effect() argument
178 error = check_effect_access(ff, effect_id, file); in erase_effect()
183 ff->playback(dev, effect_id, 0); in erase_effect()
184 ff->effect_owners[effect_id] = NULL; in erase_effect()
188 error = ff->erase(dev, effect_id); in erase_effect()
191 ff->effect_owners[effect_id] = file; in erase_effect()
[all …]
Dff-memless.c435 static int ml_ff_playback(struct input_dev *dev, int effect_id, int value) in ml_ff_playback() argument
438 struct ml_effect_state *state = &ml->states[effect_id]; in ml_ff_playback()
/Linux-v5.4/drivers/input/joystick/iforce/
Diforce-main.c65 static int iforce_playback(struct input_dev *dev, int effect_id, int value) in iforce_playback() argument
68 struct iforce_core_effect *core_effect = &iforce->core_effects[effect_id]; in iforce_playback()
75 iforce_control_playback(iforce, effect_id, value); in iforce_playback()
152 static int iforce_erase_effect(struct input_dev *dev, int effect_id) in iforce_erase_effect() argument
155 struct iforce_core_effect *core_effect = &iforce->core_effects[effect_id]; in iforce_erase_effect()
/Linux-v5.4/drivers/input/misc/
Duinput.c47 unsigned int effect_id; member
225 static int uinput_dev_playback(struct input_dev *dev, int effect_id, int value) in uinput_dev_playback() argument
227 return uinput_dev_event(dev, EV_FF, effect_id, value); in uinput_dev_playback()
255 static int uinput_dev_erase_effect(struct input_dev *dev, int effect_id) in uinput_dev_erase_effect() argument
264 request.u.effect_id = effect_id; in uinput_dev_erase_effect()
969 ff_erase.effect_id = req->u.effect_id; in uinput_ioctl_handler()
/Linux-v5.4/include/linux/
Dinput.h536 int (*erase)(struct input_dev *dev, int effect_id);
538 int (*playback)(struct input_dev *dev, int effect_id, int value);
561 int input_ff_erase(struct input_dev *dev, int effect_id, struct file *file);
/Linux-v5.4/drivers/hid/
Dhid-logitech-hidpp.c1693 int effect_id; member
1736 static u8 hidpp_ff_find_effect(struct hidpp_ff_private_data *data, int effect_id) in hidpp_ff_find_effect() argument
1741 if (data->effect_ids[i] == effect_id) in hidpp_ff_find_effect()
1756 switch (wd->effect_id) { in hidpp_ff_work_handler()
1765 wd->params[0] = hidpp_ff_find_effect(data, wd->effect_id); in hidpp_ff_work_handler()
1783 if (wd->effect_id >= 0) in hidpp_ff_work_handler()
1785 data->effect_ids[slot-1] = wd->effect_id; in hidpp_ff_work_handler()
1786 else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER) in hidpp_ff_work_handler()
1792 if (wd->effect_id >= 0) in hidpp_ff_work_handler()
1795 else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER) in hidpp_ff_work_handler()
[all …]
/Linux-v5.4/include/uapi/linux/
Duinput.h59 __u32 effect_id; member
/Linux-v5.4/drivers/hid/usbhid/
Dhid-pidff.c511 static int pidff_playback(struct input_dev *dev, int effect_id, int value) in pidff_playback() argument
515 pidff_playback_pid(pidff, pidff->pid_id[effect_id], value); in pidff_playback()
533 static int pidff_erase_effect(struct input_dev *dev, int effect_id) in pidff_erase_effect() argument
536 int pid_id = pidff->pid_id[effect_id]; in pidff_erase_effect()
539 effect_id, pidff->pid_id[effect_id]); in pidff_erase_effect()