Lines Matching defs:effect_id
35 * Check that the effect_id is a valid effect and whether the user
38 static int check_effect_access(struct ff_device *ff, int effect_id,
41 if (effect_id < 0 || effect_id >= ff->max_effects ||
42 !ff->effect_owners[effect_id])
45 if (file && ff->effect_owners[effect_id] != file)
186 static int erase_effect(struct input_dev *dev, int effect_id,
192 error = check_effect_access(ff, effect_id, file);
197 ff->playback(dev, effect_id, 0);
198 ff->effect_owners[effect_id] = NULL;
202 error = ff->erase(dev, effect_id);
205 ff->effect_owners[effect_id] = file;
218 * @effect_id: id of the ffect to be erased
225 int input_ff_erase(struct input_dev *dev, int effect_id, struct file *file)
234 ret = erase_effect(dev, effect_id, file);