Lines Matching refs:max_effects
39 if (effect_id < 0 || effect_id >= ff->max_effects || in check_effect_access()
138 for (id = 0; id < ff->max_effects; id++) in input_ff_upload()
142 if (id >= ff->max_effects) { in input_ff_upload()
257 for (i = 0; i < ff->max_effects; i++) in input_ff_flush()
317 int input_ff_create(struct input_dev *dev, unsigned int max_effects) in input_ff_create() argument
323 if (!max_effects) { in input_ff_create()
328 if (max_effects > FF_MAX_EFFECTS) { in input_ff_create()
334 max_effects * sizeof(struct file *); in input_ff_create()
335 if (ff_dev_size < max_effects) /* overflow */ in input_ff_create()
342 ff->effects = kcalloc(max_effects, sizeof(struct ff_effect), in input_ff_create()
349 ff->max_effects = max_effects; in input_ff_create()