Lines Matching refs:effect_id
23 static int check_effect_access(struct ff_device *ff, int effect_id, in check_effect_access() argument
26 if (effect_id < 0 || effect_id >= ff->max_effects || in check_effect_access()
27 !ff->effect_owners[effect_id]) in check_effect_access()
30 if (file && ff->effect_owners[effect_id] != file) in check_effect_access()
165 static int erase_effect(struct input_dev *dev, int effect_id, in erase_effect() argument
171 error = check_effect_access(ff, effect_id, file); in erase_effect()
176 ff->playback(dev, effect_id, 0); in erase_effect()
177 ff->effect_owners[effect_id] = NULL; in erase_effect()
181 error = ff->erase(dev, effect_id); in erase_effect()
184 ff->effect_owners[effect_id] = file; in erase_effect()
203 int input_ff_erase(struct input_dev *dev, int effect_id, struct file *file) in input_ff_erase() argument
211 return erase_effect(dev, effect_id, file); in input_ff_erase()