Home
last modified time | relevance | path

Searched refs:max_effects (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/input/
H A Dff-core.c26 if (effect_id < 0 || effect_id >= ff->max_effects || in check_effect_access()
125 for (id = 0; id < ff->max_effects; id++) in input_ff_upload()
129 if (id >= ff->max_effects) in input_ff_upload()
233 for (i = 0; i < ff->max_effects; i++) in input_ff_flush()
291 int input_ff_create(struct input_dev *dev, unsigned int max_effects) in input_ff_create() argument
295 if (!max_effects) { in input_ff_create()
300 if (max_effects > FF_MAX_EFFECTS) { in input_ff_create()
306 kzalloc_flex(*ff, effect_owners, max_effects); in input_ff_create()
310 ff->effects = kzalloc_objs(*ff->effects, max_effects); in input_ff_create()
314 ff->max_effects = max_effects; in input_ff_create()
H A Devdev.c1079 dev->ff->max_effects : 0; in evdev_do_ioctl()
/linux/drivers/hid/usbhid/
H A Dhid-pidff.c1524 int max_effects; in hid_pidff_init_with_quirks() local
1564 max_effects = in hid_pidff_init_with_quirks()
1568 hid_dbg(hid, "max effects is %d\n", max_effects); in hid_pidff_init_with_quirks()
1570 if (max_effects > PID_EFFECTS_MAX) in hid_pidff_init_with_quirks()
1571 max_effects = PID_EFFECTS_MAX; in hid_pidff_init_with_quirks()
1589 error = input_ff_create(dev, max_effects); in hid_pidff_init_with_quirks()
/linux/drivers/hid/
H A Dhid-haptic.c385 for (r = 0; r < ff->max_effects; r++) in hid_haptic_destroy()