Home
last modified time | relevance | path

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

/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()
/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()
/drivers/input/misc/
Duinput.c47 unsigned int effect_id; member
229 static int uinput_dev_playback(struct input_dev *dev, int effect_id, int value) in uinput_dev_playback() argument
231 return uinput_dev_event(dev, EV_FF, effect_id, value); in uinput_dev_playback()
259 static int uinput_dev_erase_effect(struct input_dev *dev, int effect_id) in uinput_dev_erase_effect() argument
268 request.u.effect_id = effect_id; in uinput_dev_erase_effect()
973 ff_erase.effect_id = req->u.effect_id; in uinput_ioctl_handler()
/drivers/hid/
Dhid-logitech-hidpp.c1696 int effect_id; member
1739 static u8 hidpp_ff_find_effect(struct hidpp_ff_private_data *data, int effect_id) in hidpp_ff_find_effect() argument
1744 if (data->effect_ids[i] == effect_id) in hidpp_ff_find_effect()
1759 switch (wd->effect_id) { in hidpp_ff_work_handler()
1768 wd->params[0] = hidpp_ff_find_effect(data, wd->effect_id); in hidpp_ff_work_handler()
1786 if (wd->effect_id >= 0) in hidpp_ff_work_handler()
1788 data->effect_ids[slot-1] = wd->effect_id; in hidpp_ff_work_handler()
1789 else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER) in hidpp_ff_work_handler()
1795 if (wd->effect_id >= 0) in hidpp_ff_work_handler()
1798 else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER) in hidpp_ff_work_handler()
[all …]
/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()