Lines Matching defs:effect
105 * It uploads an effect to the device
107 static int iforce_upload_effect(struct input_dev *dev, struct ff_effect *effect, struct ff_effect *old)
110 struct iforce_core_effect *core_effect = &iforce->core_effects[effect->id];
114 /* Check the effect is not already being updated */
120 * Upload the effect
122 switch (effect->type) {
124 ret = iforce_upload_periodic(iforce, effect, old);
128 ret = iforce_upload_constant(iforce, effect, old);
133 ret = iforce_upload_condition(iforce, effect, old);
150 * Erases an effect: it frees the effect id and mark as unused the memory
249 iforce->device_memory.name = "I-Force device effect memory";