Lines Matching refs:effect_id

2426 	int effect_id;  member
2469 static u8 hidpp_ff_find_effect(struct hidpp_ff_private_data *data, int effect_id) in hidpp_ff_find_effect() argument
2474 if (data->effect_ids[i] == effect_id) in hidpp_ff_find_effect()
2489 switch (wd->effect_id) { in hidpp_ff_work_handler()
2498 wd->params[0] = hidpp_ff_find_effect(data, wd->effect_id); in hidpp_ff_work_handler()
2516 if (wd->effect_id >= 0) in hidpp_ff_work_handler()
2518 data->effect_ids[slot-1] = wd->effect_id; in hidpp_ff_work_handler()
2519 else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER) in hidpp_ff_work_handler()
2525 if (wd->effect_id >= 0) in hidpp_ff_work_handler()
2528 else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER) in hidpp_ff_work_handler()
2548 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
2559 wd->effect_id = effect_id; in hidpp_ff_queue_work()
2720 static int hidpp_ff_playback(struct input_dev *dev, int effect_id, int value) in hidpp_ff_playback() argument
2727 dbg_hid("St%sing playback of effect %d.\n", value?"art":"opp", effect_id); in hidpp_ff_playback()
2729 return hidpp_ff_queue_work(data, effect_id, HIDPP_FF_SET_EFFECT_STATE, params, ARRAY_SIZE(params)); in hidpp_ff_playback()
2732 static int hidpp_ff_erase_effect(struct input_dev *dev, int effect_id) in hidpp_ff_erase_effect() argument
2737 dbg_hid("Erasing effect %d.\n", effect_id); in hidpp_ff_erase_effect()
2739 return hidpp_ff_queue_work(data, effect_id, HIDPP_FF_DESTROY_EFFECT, &slot, 1); in hidpp_ff_erase_effect()