Lines Matching refs:effect_id

1880 	int effect_id;  member
1923 static u8 hidpp_ff_find_effect(struct hidpp_ff_private_data *data, int effect_id) in hidpp_ff_find_effect() argument
1928 if (data->effect_ids[i] == effect_id) in hidpp_ff_find_effect()
1943 switch (wd->effect_id) { in hidpp_ff_work_handler()
1952 wd->params[0] = hidpp_ff_find_effect(data, wd->effect_id); in hidpp_ff_work_handler()
1970 if (wd->effect_id >= 0) in hidpp_ff_work_handler()
1972 data->effect_ids[slot-1] = wd->effect_id; in hidpp_ff_work_handler()
1973 else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER) in hidpp_ff_work_handler()
1979 if (wd->effect_id >= 0) in hidpp_ff_work_handler()
1982 else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER) in hidpp_ff_work_handler()
2002 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
2013 wd->effect_id = effect_id; in hidpp_ff_queue_work()
2175 static int hidpp_ff_playback(struct input_dev *dev, int effect_id, int value) in hidpp_ff_playback() argument
2182 dbg_hid("St%sing playback of effect %d.\n", value?"art":"opp", effect_id); in hidpp_ff_playback()
2184 return hidpp_ff_queue_work(data, effect_id, HIDPP_FF_SET_EFFECT_STATE, params, ARRAY_SIZE(params)); in hidpp_ff_playback()
2187 static int hidpp_ff_erase_effect(struct input_dev *dev, int effect_id) in hidpp_ff_erase_effect() argument
2192 dbg_hid("Erasing effect %d.\n", effect_id); in hidpp_ff_erase_effect()
2194 return hidpp_ff_queue_work(data, effect_id, HIDPP_FF_DESTROY_EFFECT, &slot, 1); in hidpp_ff_erase_effect()