Lines Matching refs:effect_id
1881 int effect_id; member
1924 static u8 hidpp_ff_find_effect(struct hidpp_ff_private_data *data, int effect_id) in hidpp_ff_find_effect() argument
1929 if (data->effect_ids[i] == effect_id) in hidpp_ff_find_effect()
1944 switch (wd->effect_id) { in hidpp_ff_work_handler()
1953 wd->params[0] = hidpp_ff_find_effect(data, wd->effect_id); in hidpp_ff_work_handler()
1971 if (wd->effect_id >= 0) in hidpp_ff_work_handler()
1973 data->effect_ids[slot-1] = wd->effect_id; in hidpp_ff_work_handler()
1974 else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER) in hidpp_ff_work_handler()
1980 if (wd->effect_id >= 0) in hidpp_ff_work_handler()
1983 else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER) in hidpp_ff_work_handler()
2003 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
2014 wd->effect_id = effect_id; in hidpp_ff_queue_work()
2176 static int hidpp_ff_playback(struct input_dev *dev, int effect_id, int value) in hidpp_ff_playback() argument
2183 dbg_hid("St%sing playback of effect %d.\n", value?"art":"opp", effect_id); in hidpp_ff_playback()
2185 return hidpp_ff_queue_work(data, effect_id, HIDPP_FF_SET_EFFECT_STATE, params, ARRAY_SIZE(params)); in hidpp_ff_playback()
2188 static int hidpp_ff_erase_effect(struct input_dev *dev, int effect_id) in hidpp_ff_erase_effect() argument
2193 dbg_hid("Erasing effect %d.\n", effect_id); in hidpp_ff_erase_effect()
2195 return hidpp_ff_queue_work(data, effect_id, HIDPP_FF_DESTROY_EFFECT, &slot, 1); in hidpp_ff_erase_effect()