Home
last modified time | relevance | path

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

/openbmc/linux/drivers/input/
H A Dff-core.c23 static int check_effect_access(struct ff_device *ff, int effect_id, in check_effect_access() argument
26 if (effect_id < 0 || effect_id >= ff->max_effects || in check_effect_access()
27 !ff->effect_owners[effect_id]) in check_effect_access()
30 if (file && ff->effect_owners[effect_id] != file) in check_effect_access()
171 static int erase_effect(struct input_dev *dev, int effect_id, in erase_effect() argument
177 error = check_effect_access(ff, effect_id, file); in erase_effect()
182 ff->playback(dev, effect_id, 0); in erase_effect()
183 ff->effect_owners[effect_id] = NULL; in erase_effect()
187 error = ff->erase(dev, effect_id); in erase_effect()
190 ff->effect_owners[effect_id] = file; in erase_effect()
[all …]
H A Dff-memless.c432 static int ml_ff_playback(struct input_dev *dev, int effect_id, int value) in ml_ff_playback() argument
435 struct ml_effect_state *state = &ml->states[effect_id]; in ml_ff_playback()
/openbmc/linux/drivers/input/joystick/iforce/
H A Diforce-main.c66 static int iforce_playback(struct input_dev *dev, int effect_id, int value) in iforce_playback() argument
69 struct iforce_core_effect *core_effect = &iforce->core_effects[effect_id]; in iforce_playback()
76 iforce_control_playback(iforce, effect_id, value); in iforce_playback()
153 static int iforce_erase_effect(struct input_dev *dev, int effect_id) in iforce_erase_effect() argument
156 struct iforce_core_effect *core_effect = &iforce->core_effects[effect_id]; in iforce_erase_effect()
/openbmc/linux/drivers/input/misc/
H A Duinput.c48 unsigned int effect_id; member
230 static int uinput_dev_playback(struct input_dev *dev, int effect_id, int value) in uinput_dev_playback() argument
232 return uinput_dev_event(dev, EV_FF, effect_id, value); in uinput_dev_playback()
260 static int uinput_dev_erase_effect(struct input_dev *dev, int effect_id) in uinput_dev_erase_effect() argument
269 request.u.effect_id = effect_id; in uinput_dev_erase_effect()
1022 ff_erase.effect_id = req->u.effect_id; in uinput_ioctl_handler()
H A Dda7280.c660 int effect_id, int val) in da7280_haptics_playback() argument
/openbmc/linux/include/linux/
H A Dinput.h549 int (*erase)(struct input_dev *dev, int effect_id);
551 int (*playback)(struct input_dev *dev, int effect_id, int value);
574 int input_ff_erase(struct input_dev *dev, int effect_id, struct file *file);
/openbmc/linux/include/uapi/linux/
H A Duinput.h59 __u32 effect_id; member
/openbmc/linux/drivers/hid/
H A Dhid-logitech-hidpp.c2425 int effect_id; member
2473 if (data->effect_ids[i] == effect_id) in hidpp_ff_find_effect()
2488 switch (wd->effect_id) { in hidpp_ff_work_handler()
2497 wd->params[0] = hidpp_ff_find_effect(data, wd->effect_id); in hidpp_ff_work_handler()
2515 if (wd->effect_id >= 0) in hidpp_ff_work_handler()
2517 data->effect_ids[slot-1] = wd->effect_id; in hidpp_ff_work_handler()
2518 else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER) in hidpp_ff_work_handler()
2524 if (wd->effect_id >= 0) in hidpp_ff_work_handler()
2527 else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER) in hidpp_ff_work_handler()
2558 wd->effect_id = effect_id; in hidpp_ff_queue_work()
[all …]
/openbmc/linux/drivers/hid/usbhid/
H A 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()