Home
last modified time | relevance | path

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

/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()
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 Dff-memless.c431 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 Duinput.c50 unsigned int effect_id; member
241 static int uinput_dev_playback(struct input_dev *dev, int effect_id, int value) in uinput_dev_playback() argument
243 return uinput_dev_event(dev, EV_FF, effect_id, value); in uinput_dev_playback()
271 static int uinput_dev_erase_effect(struct input_dev *dev, int effect_id) in uinput_dev_erase_effect() argument
280 request.u.effect_id = effect_id; in uinput_dev_erase_effect()
1044 ff_erase.effect_id = req->u.effect_id; in uinput_ioctl_handler()
H A Dcs40l50-vibra.c390 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 Dda7280.c659 int effect_id, int val) in da7280_haptics_playback() argument
/linux/drivers/hid/usbhid/
H A Dhid-pidff.c831 static int pidff_needs_playback(struct pidff_device *pidff, int effect_id, int n) in pidff_needs_playback() argument
833 return !pidff->effect[effect_id].is_infinite || in pidff_needs_playback()
834 pidff->effect[effect_id].loop_count != n; in pidff_needs_playback()
862 * Play the effect with effect id @effect_id for @value times
864 static int pidff_playback(struct input_dev *dev, int effect_id, int value) in pidff_playback() argument
868 if (!pidff_needs_playback(pidff, effect_id, value)) in pidff_playback()
872 value == 0 ? "stop" : "playback", effect_id); in pidff_playback()
874 pidff->effect[effect_id].loop_count = value; in pidff_playback()
875 pidff_playback_pid(pidff, pidff->effect[effect_id].pid_id, value); in pidff_playback()
891 * Stop and erase effect with effect_id
893 pidff_erase_effect(struct input_dev * dev,int effect_id) pidff_erase_effect() argument
[all...]
/linux/drivers/hid/
H A Dhid-haptic.c313 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 Dhid-logitech-hidpp.c2413 int effect_id;
2456 static u8 hidpp_ff_find_effect(struct hidpp_ff_private_data *data, int effect_id) in hidpp_ff_find_effect()
2461 if (data->effect_ids[i] == effect_id) in hidpp_ff_find_effect()
2476 switch (wd->effect_id) { in hidpp_ff_work_handler()
2485 wd->params[0] = hidpp_ff_find_effect(data, wd->effect_id); in hidpp_ff_work_handler()
2503 if (wd->effect_id >= 0) in hidpp_ff_work_handler()
2505 data->effect_ids[slot-1] = wd->effect_id; in hidpp_ff_work_handler()
2506 else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER) in hidpp_ff_work_handler()
2514 if (wd->effect_id >= 0) in hidpp_ff_work_handler()
2517 else if (wd->effect_id > in hidpp_ff_work_handler()
2411 int effect_id; global() member
2454 hidpp_ff_find_effect(struct hidpp_ff_private_data * data,int effect_id) hidpp_ff_find_effect() argument
2536 hidpp_ff_queue_work(struct hidpp_ff_private_data * data,int effect_id,u8 command,u8 * params,u8 size) hidpp_ff_queue_work() argument
2708 hidpp_ff_playback(struct input_dev * dev,int effect_id,int value) hidpp_ff_playback() argument
2720 hidpp_ff_erase_effect(struct input_dev * dev,int effect_id) hidpp_ff_erase_effect() argument
[all...]
/linux/include/uapi/linux/
H A Duinput.h59 __u32 effect_id; member