Lines Matching refs:effect_id
36 static int check_effect_access(struct ff_device *ff, int effect_id, in check_effect_access() argument
39 if (effect_id < 0 || effect_id >= ff->max_effects || in check_effect_access()
40 !ff->effect_owners[effect_id]) in check_effect_access()
43 if (file && ff->effect_owners[effect_id] != file) in check_effect_access()
184 static int erase_effect(struct input_dev *dev, int effect_id, in erase_effect() argument
190 error = check_effect_access(ff, effect_id, file); in erase_effect()
195 ff->playback(dev, effect_id, 0); in erase_effect()
196 ff->effect_owners[effect_id] = NULL; in erase_effect()
200 error = ff->erase(dev, effect_id); in erase_effect()
203 ff->effect_owners[effect_id] = file; in erase_effect()
223 int input_ff_erase(struct input_dev *dev, int effect_id, struct file *file) in input_ff_erase() argument
232 ret = erase_effect(dev, effect_id, file); in input_ff_erase()