Lines Matching refs:effect_id
2425 int effect_id;
2468 static u8 hidpp_ff_find_effect(struct hidpp_ff_private_data *data, int effect_id)
2473 if (data->effect_ids[i] == effect_id)
2488 switch (wd->effect_id) {
2497 wd->params[0] = hidpp_ff_find_effect(data, wd->effect_id);
2515 if (wd->effect_id >= 0)
2517 data->effect_ids[slot-1] = wd->effect_id;
2518 else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER)
2524 if (wd->effect_id >= 0)
2527 else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER)
2547 static int hidpp_ff_queue_work(struct hidpp_ff_private_data *data, int effect_id, u8 command, u8 *params, u8 size)
2558 wd->effect_id = effect_id;
2719 static int hidpp_ff_playback(struct input_dev *dev, int effect_id, int value)
2726 dbg_hid("St%sing playback of effect %d.\n", value?"art":"opp", effect_id);
2728 return hidpp_ff_queue_work(data, effect_id, HIDPP_FF_SET_EFFECT_STATE, params, ARRAY_SIZE(params));
2731 static int hidpp_ff_erase_effect(struct input_dev *dev, int effect_id)
2736 dbg_hid("Erasing effect %d.\n", effect_id);
2738 return hidpp_ff_queue_work(data, effect_id, HIDPP_FF_DESTROY_EFFECT, &slot, 1);