Lines Matching refs:effect_id
24 static int check_effect_access(struct ff_device *ff, int effect_id, in check_effect_access() argument
27 if (effect_id < 0 || effect_id >= ff->max_effects || in check_effect_access()
28 !ff->effect_owners[effect_id]) in check_effect_access()
31 if (file && ff->effect_owners[effect_id] != file) in check_effect_access()
172 static int erase_effect(struct input_dev *dev, int effect_id, in erase_effect() argument
178 error = check_effect_access(ff, effect_id, file); in erase_effect()
183 ff->playback(dev, effect_id, 0); in erase_effect()
184 ff->effect_owners[effect_id] = NULL; in erase_effect()
188 error = ff->erase(dev, effect_id); in erase_effect()
191 ff->effect_owners[effect_id] = file; in erase_effect()
211 int input_ff_erase(struct input_dev *dev, int effect_id, struct file *file) in input_ff_erase() argument
220 ret = erase_effect(dev, effect_id, file); in input_ff_erase()