Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/input/
Dff-core.c21 static int check_effect_access(struct ff_device *ff, int effect_id, in check_effect_access() argument
24 if (effect_id < 0 || effect_id >= ff->max_effects || in check_effect_access()
25 !ff->effect_owners[effect_id]) in check_effect_access()
28 if (file && ff->effect_owners[effect_id] != file) in check_effect_access()
169 static int erase_effect(struct input_dev *dev, int effect_id, in erase_effect() argument
175 error = check_effect_access(ff, effect_id, file); in erase_effect()
180 ff->playback(dev, effect_id, 0); in erase_effect()
181 ff->effect_owners[effect_id] = NULL; in erase_effect()
185 error = ff->erase(dev, effect_id); in erase_effect()
188 ff->effect_owners[effect_id] = file; in erase_effect()
[all …]
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()
/Linux-v6.1/drivers/input/joystick/iforce/
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()
/Linux-v6.1/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()
974 ff_erase.effect_id = req->u.effect_id; in uinput_ioctl_handler()
Dda7280.c660 int effect_id, int val) in da7280_haptics_playback() argument
/Linux-v6.1/include/linux/
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);
/Linux-v6.1/drivers/hid/
Dhid-logitech-hidpp.c2149 int effect_id; member
2192 static u8 hidpp_ff_find_effect(struct hidpp_ff_private_data *data, int effect_id) in hidpp_ff_find_effect() argument
2197 if (data->effect_ids[i] == effect_id) in hidpp_ff_find_effect()
2212 switch (wd->effect_id) { in hidpp_ff_work_handler()
2221 wd->params[0] = hidpp_ff_find_effect(data, wd->effect_id); in hidpp_ff_work_handler()
2239 if (wd->effect_id >= 0) in hidpp_ff_work_handler()
2241 data->effect_ids[slot-1] = wd->effect_id; in hidpp_ff_work_handler()
2242 else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER) in hidpp_ff_work_handler()
2248 if (wd->effect_id >= 0) in hidpp_ff_work_handler()
2251 else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER) in hidpp_ff_work_handler()
[all …]
/Linux-v6.1/include/uapi/linux/
Duinput.h59 __u32 effect_id; member
/Linux-v6.1/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()