Lines Matching refs:max_effects
41 if (effect_id < 0 || effect_id >= ff->max_effects ||
140 for (id = 0; id < ff->max_effects; id++)
144 if (id >= ff->max_effects) {
253 for (i = 0; i < ff->max_effects; i++)
304 * @max_effects: maximum number of effects supported by the device
312 int input_ff_create(struct input_dev *dev, int max_effects)
317 if (!max_effects) {
324 max_effects * sizeof(struct file *), GFP_KERNEL);
328 ff->effects = kcalloc(max_effects, sizeof(struct ff_effect),
335 ff->max_effects = max_effects;