Lines Matching refs:effect_id
1920 int effect_id;
1963 static u8 hidpp_ff_find_effect(struct hidpp_ff_private_data *data, int effect_id)
1968 if (data->effect_ids[i] == effect_id)
1983 switch (wd->effect_id) {
1992 wd->params[0] = hidpp_ff_find_effect(data, wd->effect_id);
2010 if (wd->effect_id >= 0)
2012 data->effect_ids[slot-1] = wd->effect_id;
2013 else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER)
2019 if (wd->effect_id >= 0)
2022 else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER)
2042 static int hidpp_ff_queue_work(struct hidpp_ff_private_data *data, int effect_id, u8 command, u8 *params, u8 size)
2053 wd->effect_id = effect_id;
2215 static int hidpp_ff_playback(struct input_dev *dev, int effect_id, int value)
2222 dbg_hid("St%sing playback of effect %d.\n", value?"art":"opp", effect_id);
2224 return hidpp_ff_queue_work(data, effect_id, HIDPP_FF_SET_EFFECT_STATE, params, ARRAY_SIZE(params));
2227 static int hidpp_ff_erase_effect(struct input_dev *dev, int effect_id)
2232 dbg_hid("Erasing effect %d.\n", effect_id);
2234 return hidpp_ff_queue_work(data, effect_id, HIDPP_FF_DESTROY_EFFECT, &slot, 1);