Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/input/
Dff-core.c38 static int check_effect_access(struct ff_device *ff, int effect_id, in check_effect_access() argument
41 if (effect_id < 0 || effect_id >= ff->max_effects || in check_effect_access()
42 !ff->effect_owners[effect_id]) in check_effect_access()
45 if (file && ff->effect_owners[effect_id] != file) in check_effect_access()
186 static int erase_effect(struct input_dev *dev, int effect_id, in erase_effect() argument
192 error = check_effect_access(ff, effect_id, file); in erase_effect()
197 ff->playback(dev, effect_id, 0); in erase_effect()
198 ff->effect_owners[effect_id] = NULL; in erase_effect()
202 error = ff->erase(dev, effect_id); in erase_effect()
205 ff->effect_owners[effect_id] = file; in erase_effect()
[all …]
Dff-memless.c434 static int ml_ff_playback(struct input_dev *dev, int effect_id, int value) in ml_ff_playback() argument
437 struct ml_effect_state *state = &ml->states[effect_id]; in ml_ff_playback()
/linux-3.4.99/include/linux/
Duinput.h54 int effect_id; member
89 int effect_id; member
Dinput.h1622 int (*erase)(struct input_dev *dev, int effect_id);
1624 int (*playback)(struct input_dev *dev, int effect_id, int value);
1647 int input_ff_erase(struct input_dev *dev, int effect_id, struct file *file);
/linux-3.4.99/drivers/input/joystick/iforce/
Diforce-main.c89 static int iforce_playback(struct input_dev *dev, int effect_id, int value) in iforce_playback() argument
92 struct iforce_core_effect *core_effect = &iforce->core_effects[effect_id]; in iforce_playback()
99 iforce_control_playback(iforce, effect_id, value); in iforce_playback()
177 static int iforce_erase_effect(struct input_dev *dev, int effect_id) in iforce_erase_effect() argument
180 struct iforce_core_effect *core_effect = &iforce->core_effects[effect_id]; in iforce_erase_effect()
/linux-3.4.99/drivers/input/misc/
Duinput.c161 static int uinput_dev_playback(struct input_dev *dev, int effect_id, int value) in uinput_dev_playback() argument
163 return uinput_dev_event(dev, EV_FF, effect_id, value); in uinput_dev_playback()
198 static int uinput_dev_erase_effect(struct input_dev *dev, int effect_id) in uinput_dev_erase_effect() argument
210 request.u.effect_id = effect_id; in uinput_dev_erase_effect()
734 ff_erase.effect_id = req->u.effect_id; in uinput_ioctl_handler()
/linux-3.4.99/drivers/hid/usbhid/
Dhid-pidff.c523 static int pidff_playback(struct input_dev *dev, int effect_id, int value) in pidff_playback() argument
527 pidff_playback_pid(pidff, pidff->pid_id[effect_id], value); in pidff_playback()
545 static int pidff_erase_effect(struct input_dev *dev, int effect_id) in pidff_erase_effect() argument
548 int pid_id = pidff->pid_id[effect_id]; in pidff_erase_effect()
551 effect_id, pidff->pid_id[effect_id]); in pidff_erase_effect()