Lines Matching defs:max_effects
39 if (effect_id < 0 || effect_id >= ff->max_effects ||
138 for (id = 0; id < ff->max_effects; id++)
142 if (id >= ff->max_effects) {
243 for (i = 0; i < ff->max_effects; i++)
297 * @max_effects: maximum number of effects supported by the device
305 int input_ff_create(struct input_dev *dev, int max_effects)
310 if (!max_effects) {
317 max_effects * sizeof(struct file *), GFP_KERNEL);
321 ff->effects = kcalloc(max_effects, sizeof(struct ff_effect),
328 ff->max_effects = max_effects;