| /linux/drivers/input/ |
| H A D | ff-core.c | 23 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() 165 static int erase_effect(struct input_dev *dev, int effect_id, in erase_effect() argument 171 error = check_effect_access(ff, effect_id, file); in erase_effect() 176 ff->playback(dev, effect_id, 0); in erase_effect() 177 ff->effect_owners[effect_id] = NULL; in erase_effect() 181 error = ff->erase(dev, effect_id); in erase_effect() 184 ff->effect_owners[effect_id] = file; in erase_effect() [all …]
|
| H A D | ff-memless.c | 431 static int ml_ff_playback(struct input_dev *dev, int effect_id, int value) in ml_ff_playback() argument 434 struct ml_effect_state *state = &ml->states[effect_id]; in ml_ff_playback()
|
| /linux/drivers/input/misc/ |
| H A D | uinput.c | 48 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() 1023 ff_erase.effect_id = req->u.effect_id; in uinput_ioctl_handler()
|
| H A D | cs40l50-vibra.c | 390 static int cs40l50_playback(struct input_dev *dev, int effect_id, int val) in cs40l50_playback() argument 402 work_data->effect = &dev->ff->effects[effect_id]; in cs40l50_playback() 461 static int cs40l50_erase(struct input_dev *dev, int effect_id) in cs40l50_erase() argument 467 work_data.effect = &dev->ff->effects[effect_id]; in cs40l50_erase()
|
| H A D | da7280.c | 659 int effect_id, int val) in da7280_haptics_playback() argument
|
| /linux/drivers/hid/usbhid/ |
| H A D | hid-pidff.c | 817 static int pidff_needs_playback(struct pidff_device *pidff, int effect_id, int n) in pidff_needs_playback() argument 819 return !pidff->effect[effect_id].is_infinite || in pidff_needs_playback() 820 pidff->effect[effect_id].loop_count != n; in pidff_needs_playback() 850 static int pidff_playback(struct input_dev *dev, int effect_id, int value) in pidff_playback() argument 854 if (!pidff_needs_playback(pidff, effect_id, value)) in pidff_playback() 858 value == 0 ? "stop" : "playback", effect_id); in pidff_playback() 860 pidff->effect[effect_id].loop_count = value; in pidff_playback() 861 pidff_playback_pid(pidff, pidff->effect[effect_id].pid_id, value); in pidff_playback() 879 static int pidff_erase_effect(struct input_dev *dev, int effect_id) in pidff_erase_effect() argument 882 int pid_id = pidff->effect[effect_id].pid_id; in pidff_erase_effect() [all …]
|
| /linux/drivers/hid/ |
| H A D | hid-haptic.c | 313 static int hid_haptic_playback(struct input_dev *dev, int effect_id, int value) in hid_haptic_playback() argument 318 queue_work(haptic->wq, &haptic->effect[effect_id].work); in hid_haptic_playback() 335 static int hid_haptic_erase(struct input_dev *dev, int effect_id) in hid_haptic_erase() argument 353 fill_effect_buf(haptic, &effect.u.haptic, &haptic->effect[effect_id], in hid_haptic_erase() 365 fill_effect_buf(haptic, &effect.u.haptic, &haptic->effect[effect_id], in hid_haptic_erase()
|
| H A D | hid-logitech-hidpp.c | 2406 int effect_id; member 2449 static u8 hidpp_ff_find_effect(struct hidpp_ff_private_data *data, int effect_id) in hidpp_ff_find_effect() argument 2454 if (data->effect_ids[i] == effect_id) in hidpp_ff_find_effect() 2469 switch (wd->effect_id) { in hidpp_ff_work_handler() 2478 wd->params[0] = hidpp_ff_find_effect(data, wd->effect_id); in hidpp_ff_work_handler() 2496 if (wd->effect_id >= 0) in hidpp_ff_work_handler() 2498 data->effect_ids[slot-1] = wd->effect_id; in hidpp_ff_work_handler() 2499 else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER) in hidpp_ff_work_handler() 2505 if (wd->effect_id >= 0) in hidpp_ff_work_handler() 2508 else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER) in hidpp_ff_work_handler() [all …]
|
| /linux/include/uapi/linux/ |
| H A D | uinput.h | 59 __u32 effect_id; member
|