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, unsigned int max_effects)
318 if (!max_effects) {
324 max_effects * sizeof(struct file *);
325 if (ff_dev_size < max_effects) /* overflow */
332 ff->effects = kcalloc(max_effects, sizeof(struct ff_effect),
339 ff->max_effects = max_effects;