Lines Matching refs:effect_id
21 static int check_effect_access(struct ff_device *ff, int effect_id, in check_effect_access() argument
24 if (effect_id < 0 || effect_id >= ff->max_effects || in check_effect_access()
25 !ff->effect_owners[effect_id]) in check_effect_access()
28 if (file && ff->effect_owners[effect_id] != file) in check_effect_access()
169 static int erase_effect(struct input_dev *dev, int effect_id, in erase_effect() argument
175 error = check_effect_access(ff, effect_id, file); in erase_effect()
180 ff->playback(dev, effect_id, 0); in erase_effect()
181 ff->effect_owners[effect_id] = NULL; in erase_effect()
185 error = ff->erase(dev, effect_id); in erase_effect()
188 ff->effect_owners[effect_id] = file; in erase_effect()
208 int input_ff_erase(struct input_dev *dev, int effect_id, struct file *file) in input_ff_erase() argument
217 ret = erase_effect(dev, effect_id, file); in input_ff_erase()