Lines Matching refs:effect_id

1693 	int effect_id;  member
1736 static u8 hidpp_ff_find_effect(struct hidpp_ff_private_data *data, int effect_id) in hidpp_ff_find_effect() argument
1741 if (data->effect_ids[i] == effect_id) in hidpp_ff_find_effect()
1756 switch (wd->effect_id) { in hidpp_ff_work_handler()
1765 wd->params[0] = hidpp_ff_find_effect(data, wd->effect_id); in hidpp_ff_work_handler()
1783 if (wd->effect_id >= 0) in hidpp_ff_work_handler()
1785 data->effect_ids[slot-1] = wd->effect_id; in hidpp_ff_work_handler()
1786 else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER) in hidpp_ff_work_handler()
1792 if (wd->effect_id >= 0) in hidpp_ff_work_handler()
1795 else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER) in hidpp_ff_work_handler()
1815 static int hidpp_ff_queue_work(struct hidpp_ff_private_data *data, int effect_id, u8 command, u8 *p… in hidpp_ff_queue_work() argument
1826 wd->effect_id = effect_id; in hidpp_ff_queue_work()
1988 static int hidpp_ff_playback(struct input_dev *dev, int effect_id, int value) in hidpp_ff_playback() argument
1995 dbg_hid("St%sing playback of effect %d.\n", value?"art":"opp", effect_id); in hidpp_ff_playback()
1997 return hidpp_ff_queue_work(data, effect_id, HIDPP_FF_SET_EFFECT_STATE, params, ARRAY_SIZE(params)); in hidpp_ff_playback()
2000 static int hidpp_ff_erase_effect(struct input_dev *dev, int effect_id) in hidpp_ff_erase_effect() argument
2005 dbg_hid("Erasing effect %d.\n", effect_id); in hidpp_ff_erase_effect()
2007 return hidpp_ff_queue_work(data, effect_id, HIDPP_FF_DESTROY_EFFECT, &slot, 1); in hidpp_ff_erase_effect()